stdalign-tests: new module
[gnulib.git] / ChangeLog
1 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2
3         stdalign: new module
4         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
5         * modules/stdalign: New files.
6         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
8
9         stdalign-tests: new module
10         * modules/stdalign-tests, tests/test-stdalign.c: New files.
11
12 2011-10-27  Bruno Haible  <bruno@clisp.org>
13
14         raise test: Avoid a test failure on Linux/MIPS.
15         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
16         because 99 is a valid signal on Linux/MIPS.
17
18 2011-10-27  Bruno Haible  <bruno@clisp.org>
19
20         nonblocking tests: Fix test failure on Linux/MIPS.
21         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
22         Set to 270000.
23
24 2011-10-27  Bruno Haible  <bruno@clisp.org>
25
26         utimensat: Work around problem on Linux/hppa.
27         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
28         values.
29         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
30
31 2011-10-25  Jim Meyering  <meyering@redhat.com>
32
33         maint.mk: fix a bug in sc_prohibit_stddef_without_use
34         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
35         after symbols like NULL, size_t, etc.
36         Reported by Alfred M. Szmidt.
37
38         maint.mk: exempt ENODATA from a syntax-check rule
39         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
40         from the sc_prohibit_always-defined_macros syntax-check rule.
41         Add a comment.  See this for more details:
42         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
43
44 2011-10-23  Jim Meyering  <meyering@redhat.com>
45
46         fts: close parent dir FD before returning from post-traversal fts_read
47         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
48         unlink A, even though an FD open on A remained.  This is suboptimal
49         (holding a file descriptor open longer than needed), but otherwise not
50         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
51         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
52         that represents a real problem: it causes the removal of A to fail
53         with e.g., "rm: cannot remove `A': Device or resource busy"
54
55         fts visits each directory twice and keeps a cache (fts_fd_ring) of
56         directory file descriptors.  After completing the final, FTS_DP,
57         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
58         cache, but then proceeded to add a new FD to it via the subsequent
59         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
60         final file descriptor would be closed only via fts_close's call to
61         fd_ring_clear.  Now, it is usually closed earlier, via the final
62         FTS_DP-returning fts_read call.
63         * lib/fts.c (restore_initial_cwd): New function, converted from
64         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
65         Update callers.
66         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
67         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
68
69 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
70             Bruno Haible  <bruno@clisp.org>
71             Jim Meyering  <jim@meyering.net>
72
73         readme-release: improve safety of release prep instructions.
74         * README-release: Don't git pull all branches when only master
75         is needed for the release process.
76         Run make maintainer-clean before changing trees and merging.
77         Don't try to run ./configure right after git pull in case files
78         that influence the bootstrap process have changed, move the
79         ./configure step to after running ./bootstrap.
80         Don't bootstrap "one last time"... it's the first time!
81
82 2011-10-22  Bruno Haible  <bruno@clisp.org>
83
84         errno, strerror-override: Support for MSVC 10.
85         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
86         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
87         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
88         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
89         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
90         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
91         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
92         Assign values compatible with MSVC 10.
93         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
94         New macros.
95         (GNULIB_defined_EWINSOCK): New macro.
96         * lib/strerror-override.c (strerror_override): Update accordingly.
97         * lib/strerror-override.h: Likewise.
98         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
99         longer equal to the corresponding errno value.
100         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
101
102 2011-10-22  Bruno Haible  <bruno@clisp.org>
103
104         perror: Recognize when test program crashes.
105         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
106         strerror, set gl_cv_func_perror_works to no.
107         Reported by Daniel Richard G. <skunk@iskunk.org>.
108
109         perror: Fix indentation.
110         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
111
112 2011-10-22  Bruno Haible  <bruno@clisp.org>
113
114         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
115         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
116         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
117         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
118         functions, not as a macro.
119         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
120         macros.
121         (isfinite, isinf, isnan, signbit): Check overloaded functions and
122         absence of macro.
123         Suggested by Eric Blake.
124         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
125
126 2011-10-21  Bruno Haible  <bruno@clisp.org>
127
128         relocatable-prog-wrapper: Don't leave object files behind.
129         * build-aux/install-reloc: Re-synchronize list of .o files to be
130         removed with list of compilation units.
131
132 2011-10-20  Bruno Haible  <bruno@clisp.org>
133
134         openpty, posix_openpt: Remove code duplication.
135         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
136         * lib/openpty.c: Include <stdlib.h>.
137         (openpty): Use posix_openpt on all platforms except IRIX.
138         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
139
140 2011-10-20  Bruno Haible  <bruno@clisp.org>
141
142         unlockpt: Detect invalid argument.
143         * lib/unlockpt.c: Include <fcntl.h>.
144         (unlockpt): Check whether fd is valid, using fcntl().
145         * modules/unlockpt (Depends-on): Add fcntl-h.
146
147 2011-10-20  Bruno Haible  <bruno@clisp.org>
148
149         openpty: Avoid compilation error on AIX 6.1.
150         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
151
152 2011-10-20  Bruno Haible  <bruno@clisp.org>
153
154         posix_openpt: Support for OpenBSD.
155         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
156         (posix_openpt) [OpenBSD]: New code.
157         * lib/grantpt.c: Include <fcntl.h>.
158         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
159         * modules/grantpt (Depends-on): Add fcntl-h.
160
161 2011-10-20  Bruno Haible  <bruno@clisp.org>
162
163         posix_openpt test: Coding style.
164         * tests/test-posix_openpt.c: Use GNU coding style.
165
166 2011-10-20  Bruno Haible  <bruno@clisp.org>
167
168         grantpt: Support --avoid=pt_chown.
169         * modules/grantpt (Files): Add lib/pty-private.h.
170
171 2011-10-20  Bruno Haible  <bruno@clisp.org>
172
173         posix_openpt: Fix autoconf macro.
174         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
175         unneeded check for _getpty.
176
177 2011-10-20  Bruno Haible  <bruno@clisp.org>
178
179         openpty: Update comments.
180         * lib/openpty.c: Add comments about Minix.
181
182 2011-10-19  Eric Blake  <eblake@redhat.com>
183
184         openpty: relax license
185         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
186
187         pt_chown: use configmake to simplify build
188         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
189
190         ptsname and others: relax license
191         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
192         * modules/unlockpt (License): Likewise.
193         * modules/pt_chown (License): Likewise.
194         * modules/ptsname (License): Likewise.
195         * modules/ttyname_r (License): Likewise.
196
197 2011-10-19  Jim Meyering  <meyering@redhat.com>
198
199         posix_openpt: remove spurious #endif
200         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
201
202 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
203
204         maint.mk: Respect $(build_aux) in web-manual rule.
205         * top/maint.mk (web-manual): Find gen-announce script in user's
206         $(build_aux) directory instead of hard-coding 'build-aux'.
207
208 2011-10-19  Bruno Haible  <bruno@clisp.org>
209
210         posix_openpt: Fix compilation error.
211         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
212         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
213         Mention the openpty module as an alternative.
214
215 2011-10-19  Bruno Haible  <bruno@clisp.org>
216
217         Support for old NeXTstep 3.3 frexp().
218         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
219         execution time of the test to 5 seconds.
220         Reported by Daniel Richard G. <skunk@iskunk.org>.
221
222 2011-10-19  Bruno Haible  <bruno@clisp.org>
223
224         Support for old NeXTstep 3.3 sed.
225         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
226         part, use /.../, not \|...|. Escape periods in the header file name.
227         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
228         Reported by Daniel Richard G. <skunk@iskunk.org>.
229
230 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
231
232         Support for old NeXTstep 3.3 gcc.
233         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
234         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
235         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
236         * lib/spawn.in.h (_Restrict_arr_): Likewise.
237         * lib/regex.h (_Restrict_arr_): Likewise.
238         * lib/regex_internal.h (re_token_t): Likewise.
239         * lib/regexec.c (check_node_accept_bytes): Likewise.
240         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
241
242 2011-10-18  Eric Blake  <eblake@redhat.com>
243
244         posix_openpt: new module
245         * modules/posix_openpt: New module.
246         * m4/posix_openpt.m4: New file.
247         * lib/posix_openpt.c: Likewise.
248         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
249         (gl_STDLIB_H_DEFAULTS): Set defaults.
250         * modules/stdlib (Makefile.am): Substitute macros.
251         * lib/stdlib.in.h (posix_openpt): Declare.
252         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
253         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
254         * modules/posix_openpt-tests: New test module.
255         * tests/test-posix_openpt.c: New test.
256
257 2011-10-15  Bruno Haible  <bruno@clisp.org>
258
259         xstrtoll: Fix compilation failure.
260         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
261         from lib/strtol.c.
262         * doc/posix-headers/limits.texi: Mention missing numerical limits on
263         some platforms.
264         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
265
266 2011-10-15  Bruno Haible  <bruno@clisp.org>
267
268         vasnprintf: Optimize bit search operation.
269         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
271         gl_DOUBLE_EXPONENT_LOCATION.
272         * modules/vasnprintf (Files): Add m4/exponentd.m4.
273         * modules/unistdio/u8-vasnprintf (Files): Likewise.
274         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
275         * modules/unistdio/u16-vasnprintf (Files): Likewise.
276         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
277         * modules/unistdio/u32-vasnprintf (Files): Likewise.
278         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
279         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
280         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
281
282 2011-10-15  Bruno Haible  <bruno@clisp.org>
283
284         vasnprintf: Fix comments.
285         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
286
287 2011-10-14  Bruno Haible  <bruno@clisp.org>
288
289         Tests for module 'integer_length_ll'.
290         * modules/integer_length_ll-tests: New file.
291         * tests/test-integer_length_ll.c: New file.
292
293         New module 'integer_length_ll'.
294         * lib/integer_length_ll.c: New file.
295         * modules/integer_length_ll: New file.
296
297 2011-10-14  Bruno Haible  <bruno@clisp.org>
298
299         Tests for module 'integer_length_l'.
300         * modules/integer_length_l-tests: New file.
301         * tests/test-integer_length_l.c: New file.
302
303         New module 'integer_length_l'.
304         * lib/integer_length_l.c: New file.
305         * modules/integer_length_l: New file.
306
307 2011-10-14  Bruno Haible  <bruno@clisp.org>
308
309         Tests for module 'integer_length'.
310         * modules/integer_length-tests: New file.
311         * tests/test-integer_length.c: New file.
312
313         New module 'integer_length'.
314         * lib/integer_length.h: New file.
315         * lib/integer_length.c: New file.
316         * modules/integer_length: New file.
317
318 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
319
320         popen: Fix dependency conditions.
321         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
322
323 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
324
325         perror: Fix autoconf test.
326         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
327         <stdlib.h> and <string.h>.
328
329 2011-10-14  Bruno Haible  <bruno@clisp.org>
330
331         ffsl: Optimize on 64-bit platforms.
332         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
333         unrolling.
334
335 2011-10-13  Bruno Haible  <bruno@clisp.org>
336
337         ffsl: Optimize on 32-bit platforms.
338         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
339         use ffs() without a loop.
340
341         ffsl, ffsll: Optimize for GCC.
342         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
343         * lib/ffsl.c (GCC_BUILTIN): New macro.
344         * lib/ffsll.c (GCC_BUILTIN): Likewise.
345
346 2011-10-13  Bruno Haible  <bruno@clisp.org>
347
348         ffs, bcopy, memset: Support symbol renaming via config.h.
349         * lib/ffs.c: Include <config.h>.
350         * lib/bcopy.c: Likewise.
351         * lib/memset.c: Likewise.
352
353 2011-10-10  Bruno Haible  <bruno@clisp.org>
354
355         atanl: Simplify for platforms where 'long double' == 'double'.
356         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
357         alternative implementation.
358         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
359         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
360         * modules/atanl (Depends-on): Add atan. Update conditions.
361
362 2011-10-10  Bruno Haible  <bruno@clisp.org>
363
364         acosl: Simplify for platforms where 'long double' == 'double'.
365         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
366         alternative implementation.
367         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
368         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
369         * modules/acosl (Depends-on): Add acos. Update conditions.
370
371 2011-10-10  Bruno Haible  <bruno@clisp.org>
372
373         asinl: Simplify for platforms where 'long double' == 'double'.
374         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
375         alternative implementation.
376         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
377         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
378         * modules/asinl (Depends-on): Add asin. Update conditions.
379
380 2011-10-10  Bruno Haible  <bruno@clisp.org>
381
382         tanl: Simplify for platforms where 'long double' == 'double'.
383         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
384         implementation.
385         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
386         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
387         * modules/tanl (Depends-on): Add tan. Update conditions.
388         (configure.ac): Don't compile trigl.c if
389         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
390
391 2011-10-10  Bruno Haible  <bruno@clisp.org>
392
393         cosl: Simplify for platforms where 'long double' == 'double'.
394         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
395         implementation.
396         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
397         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
398         * modules/cosl (Depends-on): Add cos. Update conditions.
399         (configure.ac): Don't compile sincosl.c and trigl.c if
400         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
401
402 2011-10-10  Bruno Haible  <bruno@clisp.org>
403
404         sinl: Simplify for platforms where 'long double' == 'double'.
405         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
406         implementation.
407         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
408         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
409         * modules/sinl (Depends-on): Add sin. Update conditions.
410         (configure.ac): Don't compile sincosl.c and trigl.c if
411         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
412
413 2011-10-10  Bruno Haible  <bruno@clisp.org>
414
415         logl: Simplify for platforms where 'long double' == 'double'.
416         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
417         implementation.
418         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
419         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
420         * modules/logl (Depends-on): Add log. Update conditions.
421
422 2011-10-10  Bruno Haible  <bruno@clisp.org>
423
424         expl: Simplify for platforms where 'long double' == 'double'.
425         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
426         implementation.
427         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
428         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
429         * modules/expl (Depends-on): Add exp. Update conditions.
430
431 2011-10-10  Bruno Haible  <bruno@clisp.org>
432
433         sqrtl: Simplify for platforms where 'long double' == 'double'.
434         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
435         alternative implementation.
436         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
437         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
438         * modules/sqrtl (Depends-on): Update conditions.
439
440 2011-10-10  Bruno Haible  <bruno@clisp.org>
441
442         ldexpl: Simplify for platforms where 'long double' == 'double'.
443         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
444         alternative implementation.
445         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
446         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
447         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
448
449 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
450
451         ffsll: set correct witness
452         * modules/ffsll (configure.ac): Fix typo.
453
454 2011-10-10  Bruno Haible  <bruno@clisp.org>
455
456         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
457         * lib/printf-frexpl.c: Include <config.h>.
458         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
459         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
460         second time.
461         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
462         gl_LONG_DOUBLE_VS_DOUBLE.
463         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
464         conditions.
465
466 2011-10-10  Bruno Haible  <bruno@clisp.org>
467
468         frexpl: Simplify for platforms where 'long double' == 'double'.
469         * lib/frexpl.c: Include <config.h>.
470         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
471         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
472         time.
473         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
474         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
475         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
476         * modules/frexpl (Depends-on): Add frexp. Update conditions.
477         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
478         conditions.
479
480 2011-10-10  Jim Meyering  <meyering@redhat.com>
481
482         test-renameat: don't leave behind a temporary file
483         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
484           ERROR: files left in build directory after distclean:
485           ./gltests/test-renameat.too
486           make[1]: *** [distcleancheck] Error 1
487         Reported by Tom G. Christensen.
488
489 2011-10-09  Bruno Haible  <bruno@clisp.org>
490
491         rint: Determine RINT_LIBM correctly on AIX 7.
492         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
493         directly, not only through a function pointer. Also accept an optional
494         4th argument with extra code.
495         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
496         rintf() call by gcc when optimizing.
497
498         mathfunc.m4: Refactor.
499         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
500         m4 variable.
501
502 2011-10-09  Bruno Haible  <bruno@clisp.org>
503
504         rintl: Simplify for platforms where 'long double' == 'double'.
505         * lib/rintl.c: Include <config.h>.
506         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
507         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
508         time.
509         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
510         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
511         * modules/rintl (Depends-on): Add rint. Update conditions.
512
513 2011-10-09  Bruno Haible  <bruno@clisp.org>
514
515         roundl: Simplify for platforms where 'long double' == 'double'.
516         * lib/roundl.c: Include <config.h>.
517         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
518         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
519         time.
520         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
521         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
522         * modules/roundl (Depends-on): Add round. Update conditions.
523
524 2011-10-09  Bruno Haible  <bruno@clisp.org>
525
526         truncl: Simplify for platforms where 'long double' == 'double'.
527         * lib/truncl.c: Include <config.h>.
528         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
529         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
530         time.
531         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
532         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
533         * modules/truncl (Depends-on): Add trunc. Update conditions.
534
535 2011-10-09  Bruno Haible  <bruno@clisp.org>
536
537         ceill: Simplify for platforms where 'long double' == 'double'.
538         * lib/ceill.c: Include <config.h>.
539         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
540         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
541         time.
542         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
543         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
544         * modules/ceill (Depends-on): Add ceil. Update conditions.
545
546 2011-10-09  Bruno Haible  <bruno@clisp.org>
547
548         floorl: Simplify for platforms where 'long double' == 'double'.
549         * lib/floorl.c: Include <config.h>.
550         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
551         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
552         time.
553         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
554         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
555         * modules/floorl (Depends-on): Add floor. Update conditions.
556
557 2011-10-09  Bruno Haible  <bruno@clisp.org>
558
559         rint: Fix ordering constraints.
560         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
561         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
562         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
563
564 2011-10-09  Bruno Haible  <bruno@clisp.org>
565
566         copysignl: Simplify for platforms where 'long double' == 'double'.
567         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
568         alternative.
569         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
570         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
571         * modules/copysignl (Depends-on): Add copysign. Update conditions.
572
573 2011-10-09  Bruno Haible  <bruno@clisp.org>
574
575         Tests for module 'rintl'.
576         * modules/rintl-tests: New file.
577         * tests/test-rintl.c: New file.
578
579         New module 'rintl'.
580         * lib/math.in.h (rintl): New declaration.
581         * lib/rintl.c: New file.
582         * m4/rintl.m4: New file.
583         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
585         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
586         * modules/rintl: New file.
587         * tests/test-math-c++.cc: Check the declaration of rintl.
588         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
589         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
590         * doc/posix-functions/rintl.texi: Mention the new module.
591
592 2011-10-09  Bruno Haible  <bruno@clisp.org>
593
594         Tests for module 'rintf'.
595         * modules/rintf-tests: New file.
596         * tests/test-rintf.c: New file.
597
598         New module 'rintf'.
599         * lib/math.in.h (rintf): New declaration.
600         * lib/rintf.c: New file.
601         * m4/rintf.m4: New file.
602         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
603         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
604         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
605         * modules/rintf: New file.
606         * tests/test-math-c++.cc: Check the declaration of rintf.
607         * doc/posix-functions/rintf.texi: Mention the new module.
608
609 2011-10-09  Bruno Haible  <bruno@clisp.org>
610
611         rint: Support for MSVC.
612         * lib/math.in.h (rint): New declaration.
613         * lib/rint.c: New file.
614         * m4/rint.m4: New file.
615         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
616         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
617         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
618         * modules/rint (Description): Fix.
619         (Files): Add lib/rint.c, m4/rint.m4.
620         (Depends-on): Add math.
621         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
622         gl_MATH_MODULE_INDICATOR.
623         * tests/test-math-c++.cc: Check the declaration of rint.
624         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
625         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
626         * doc/posix-functions/rint.texi: Mention the replacement provided by
627         the module.
628
629         rint tests: More tests.
630         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
631         minus-zero.h, infinity.h, nan.h.
632         (main): Skip the test if the current rounding mode is not standard. Add
633         tests for negative numbers, minus zero, infinity, NaN.
634         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
635         tests/nan.h.
636         (Depends-on): Add isnand-nolibm.
637
638 2011-10-09  Bruno Haible  <bruno@clisp.org>
639
640         Tests for module 'copysignl'.
641         * modules/copysignl-tests: New file.
642         * tests/test-copysignl.c: New file.
643
644         New module 'copysignl'.
645         * lib/math.in.h (copysignl): New declaration.
646         * lib/copysignl.c: New file.
647         * m4/copysignl.m4: New file.
648         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
650         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
651         HAVE_COPYSIGNL.
652         * modules/copysignl: New file.
653         * tests/test-math-c++.cc: Check the declaration of copysignl.
654         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
655         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
656         * doc/posix-functions/copysignl.texi: Mention the new module.
657
658 2011-10-09  Bruno Haible  <bruno@clisp.org>
659
660         Tests for module 'copysignf'.
661         * modules/copysignf-tests: New file.
662         * tests/test-copysignf.c: New file.
663
664         New module 'copysignf'.
665         * lib/math.in.h (copysignf): New declaration.
666         * lib/copysignf.c: New file.
667         * m4/copysignf.m4: New file.
668         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
670         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
671         HAVE_COPYSIGNF.
672         * modules/copysignf: New file.
673         * tests/test-math-c++.cc: Check the declaration of copysignf.
674         * doc/posix-functions/copysignf.texi: Mention the new module.
675
676 2011-10-09  Bruno Haible  <bruno@clisp.org>
677
678         Ensure that HAVE_* variables are set to 1 before they are set to 0.
679         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
680         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
681         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
682         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
683         gl_SIGNAL_H_DEFAULTS.
684
685 2011-10-09  Bruno Haible  <bruno@clisp.org>
686
687         poll: Make macro safer.
688         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
689         ac_cv_header_poll_h is not set.
690
691 2011-10-09  Bruno Haible  <bruno@clisp.org>
692
693         copysign: Provide replacement.
694         * lib/math.in.h (copysign): New declaration.
695         * lib/copysign.c: New file.
696         * m4/copysign.m4: New file.
697         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
698         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
699         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
700         HAVE_COPYSIGN.
701         * modules/copysign (Description): Clarify.
702         (Files): Add lib/copysign.c, m4/copysign.m4.
703         (Depends-on): Add math, signbit.
704         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
705         gl_MATH_MODULE_INDICATOR.
706         * tests/test-math-c++.cc: Check the declaration of copysign.
707         * doc/posix-functions/copysign.texi: Mention the effects of the module
708         on Minix and MSVC.
709
710 2011-10-09  Bruno Haible  <bruno@clisp.org>
711
712         isinf: Ensure macro on AIX 5.1.
713         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
714         macro.
715         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
716
717 2011-10-09  Bruno Haible  <bruno@clisp.org>
718
719         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
720         * modules/snprintf-posix-tests (configure.ac): Require
721         gl_LONG_DOUBLE_VS_DOUBLE.
722         * modules/sprintf-posix-tests (configure.ac): Likewise.
723         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
724         * modules/vasprintf-posix-tests (configure.ac): Likewise.
725         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
726         * modules/vsprintf-posix-tests (configure.ac): Likewise.
727         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
728         tests on platforms where 'long double' is the same as 'double'.
729         * tests/test-sprintf-posix.h (test_function): Likewise.
730         * tests/test-vasnprintf-posix.c (test_function): Likewise.
731         * tests/test-vasprintf-posix.c (test_function): Likewise.
732
733         *printf: Fix for platforms where 'long double' == 'double'.
734         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
735         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
736         * modules/dprintf-posix (Files): Add m4/math_h.m4.
737         * modules/fprintf-posix (Files): Likewise.
738         * modules/obstack-printf-posix (Files): Likewise.
739         * modules/snprintf-posix (Files): Likewise.
740         * modules/sprintf-posix (Files): Likewise.
741         * modules/vasnprintf (Files): Likewise.
742         * modules/vasnprintf-posix (Files): Likewise.
743         * modules/vasprintf-posix (Files): Likewise.
744         * modules/vdprintf-posix (Files): Likewise.
745         * modules/vfprintf-posix (Files): Likewise.
746         * modules/vsnprintf-posix (Files): Likewise.
747         * modules/vsprintf-posix (Files): Likewise.
748         * modules/unistdio/u8-vasnprintf (Files): Likewise.
749         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
750         * modules/unistdio/u16-vasnprintf (Files): Likewise.
751         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
752         * modules/unistdio/u32-vasnprintf (Files): Likewise.
753         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
754         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
755
756         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
757         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
758         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
759         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
760         'long double'.
761         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
762
763         isinf: Fix for platforms where 'long double' == 'double'.
764         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
765         Don't blindly assume 80-bit 'long double'.
766
767         isfinite: Fix for platforms where 'long double' == 'double'.
768         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
769         Don't blindly assume 80-bit 'long double'.
770
771         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
772         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
773         * modules/isfinite-tests (configure.ac): Require
774         gl_LONG_DOUBLE_VS_DOUBLE.
775         * modules/isinf-tests (configure.ac): Likewise.
776         * modules/isnan-tests (configure.ac): Likewise.
777         * modules/isnanl-tests (configure.ac): Likewise.
778         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
779         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
780         tests on platforms where 'long double' is the same as 'double'.
781         * tests/test-isinf.c (test_isinfl): Likewise.
782         * tests/test-isnan.c (test_long_double): Likewise.
783         * tests/test-isnanl.h (main): Likewise.
784
785 2011-10-08  Bruno Haible  <bruno@clisp.org>
786
787         Tests for module 'tanhf'.
788         * modules/tanhf-tests: New file.
789         * tests/test-tanhf.c: New file.
790
791         New module 'tanhf'.
792         * lib/math.in.h (tanhf): New declaration.
793         * lib/tanhf.c: New file.
794         * m4/tanhf.m4: New file.
795         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
797         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
798         * modules/tanhf: New file.
799         * tests/test-math-c++.cc: Check the declaration of tanhf.
800         * doc/posix-functions/tanhf.texi: Mention the new module.
801
802         tanh: Use a .m4 file.
803         * m4/tanh.m4: New file.
804         * modules/tanh (Files): Add it.
805         (configure.ac): Just invoke gl_FUNC_TANH.
806
807 2011-10-08  Bruno Haible  <bruno@clisp.org>
808
809         Tests for module 'coshf'.
810         * modules/coshf-tests: New file.
811         * tests/test-coshf.c: New file.
812
813         New module 'coshf'.
814         * lib/math.in.h (coshf): New declaration.
815         * lib/coshf.c: New file.
816         * m4/coshf.m4: New file.
817         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
818         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
819         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
820         * modules/coshf: New file.
821         * tests/test-math-c++.cc: Check the declaration of coshf.
822         * doc/posix-functions/coshf.texi: Mention the new module.
823
824         cosh: Use a .m4 file.
825         * m4/cosh.m4: New file.
826         * modules/cosh (Files): Add it.
827         (configure.ac): Just invoke gl_FUNC_COSH.
828
829 2011-10-08  Bruno Haible  <bruno@clisp.org>
830
831         Tests for module 'sinhf'.
832         * modules/sinhf-tests: New file.
833         * tests/test-sinhf.c: New file.
834
835         New module 'sinhf'.
836         * lib/math.in.h (sinhf): New declaration.
837         * lib/sinhf.c: New file.
838         * m4/sinhf.m4: New file.
839         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
841         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
842         * modules/sinhf: New file.
843         * tests/test-math-c++.cc: Check the declaration of sinhf.
844         * doc/posix-functions/sinhf.texi: Mention the new module.
845
846         sinh: Use a .m4 file.
847         * m4/sinh.m4: New file.
848         * modules/sinh (Files): Add it.
849         (configure.ac): Just invoke gl_FUNC_SINH.
850
851 2011-10-08  Bruno Haible  <bruno@clisp.org>
852
853         Tests for module 'atan2f'.
854         * modules/atan2f-tests: New file.
855         * tests/test-atan2f.c: New file.
856
857         New module 'atan2f'.
858         * lib/math.in.h (atan2f): New declaration.
859         * lib/atan2f.c: New file.
860         * m4/atan2f.m4: New file.
861         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
863         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
864         * modules/atan2f: New file.
865         * tests/test-math-c++.cc: Check the declaration of atan2f.
866         * doc/posix-functions/atan2f.texi: Mention the new module.
867
868         atan2: Use a .m4 file.
869         * m4/atan2.m4: New file.
870         * modules/atan2 (Files): Add it.
871         (configure.ac): Just invoke gl_FUNC_ATAN2.
872
873 2011-10-08  Bruno Haible  <bruno@clisp.org>
874
875         Tests for module 'atanf'.
876         * modules/atanf-tests: New file.
877         * tests/test-atanf.c: New file.
878
879         New module 'atanf'.
880         * lib/math.in.h (atanf): New declaration.
881         * lib/atanf.c: New file.
882         * m4/atanf.m4: New file.
883         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
885         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
886         * modules/atanf: New file.
887         * tests/test-math-c++.cc: Check the declaration of atanf.
888         * doc/posix-functions/atanf.texi: Mention the new module.
889
890         atan: Use a .m4 file.
891         * m4/atan.m4: New file.
892         * modules/atan (Files): Add it.
893         (configure.ac): Just invoke gl_FUNC_ATAN.
894
895 2011-10-08  Bruno Haible  <bruno@clisp.org>
896
897         Tests for module 'acosf'.
898         * modules/acosf-tests: New file.
899         * tests/test-acosf.c: New file.
900
901         New module 'acosf'.
902         * lib/math.in.h (acosf): New declaration.
903         * lib/acosf.c: New file.
904         * m4/acosf.m4: New file.
905         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
907         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
908         * modules/acosf: New file.
909         * tests/test-math-c++.cc: Check the declaration of acosf.
910         * doc/posix-functions/acosf.texi: Mention the new module.
911
912         acos: Use a .m4 file.
913         * m4/acos.m4: New file.
914         * modules/acos (Files): Add it.
915         (configure.ac): Just invoke gl_FUNC_ACOS.
916
917 2011-10-08  Bruno Haible  <bruno@clisp.org>
918
919         Tests for module 'asinf'.
920         * modules/asinf-tests: New file.
921         * tests/test-asinf.c: New file.
922
923         New module 'asinf'.
924         * lib/math.in.h (asinf): New declaration.
925         * lib/asinf.c: New file.
926         * m4/asinf.m4: New file.
927         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
929         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
930         * modules/asinf: New file.
931         * tests/test-math-c++.cc: Check the declaration of asinf.
932         * doc/posix-functions/asinf.texi: Mention the new module.
933
934         asin: Use a .m4 file.
935         * m4/asin.m4: New file.
936         * modules/asin (Files): Add it.
937         (configure.ac): Just invoke gl_FUNC_ASIN.
938
939 2011-10-08  Bruno Haible  <bruno@clisp.org>
940
941         Tests for module 'tanf'.
942         * modules/tanf-tests: New file.
943         * tests/test-tanf.c: New file.
944
945         New module 'tanf'.
946         * lib/math.in.h (tanf): New declaration.
947         * lib/tanf.c: New file.
948         * m4/tanf.m4: New file.
949         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
951         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
952         * modules/tanf: New file.
953         * tests/test-math-c++.cc: Check the declaration of tanf.
954         * doc/posix-functions/tanf.texi: Mention the new module.
955
956         tan: Use a .m4 file.
957         * m4/tan.m4: New file.
958         * modules/tan (Files): Add it.
959         (configure.ac): Just invoke gl_FUNC_TAN.
960
961 2011-10-08  Bruno Haible  <bruno@clisp.org>
962
963         Tests for module 'cosf'.
964         * modules/cosf-tests: New file.
965         * tests/test-cosf.c: New file.
966
967         New module 'cosf'.
968         * lib/math.in.h (cosf): New declaration.
969         * lib/cosf.c: New file.
970         * m4/cosf.m4: New file.
971         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
972         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
973         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
974         * modules/cosf: New file.
975         * tests/test-math-c++.cc: Check the declaration of cosf.
976         * doc/posix-functions/cosf.texi: Mention the new module.
977
978         cos: Use a .m4 file.
979         * m4/cos.m4: New file.
980         * modules/cos (Files): Add it.
981         (configure.ac): Just invoke gl_FUNC_COS.
982
983 2011-10-08  Bruno Haible  <bruno@clisp.org>
984
985         Tests for module 'sinf'.
986         * modules/sinf-tests: New file.
987         * tests/test-sinf.c: New file.
988
989         New module 'sinf'.
990         * lib/math.in.h (sinf): New declaration.
991         * lib/sinf.c: New file.
992         * m4/sinf.m4: New file.
993         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
994         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
995         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
996         * modules/sinf: New file.
997         * tests/test-math-c++.cc: Check the declaration of sinf.
998         * doc/posix-functions/sinf.texi: Mention the new module.
999
1000         sin: Use a .m4 file.
1001         * m4/sin.m4: New file.
1002         * modules/sin (Files): Add it.
1003         (configure.ac): Just invoke gl_FUNC_SIN.
1004
1005 2011-10-08  Bruno Haible  <bruno@clisp.org>
1006
1007         Tests for module 'powf'.
1008         * modules/powf-tests: New file.
1009         * tests/test-powf.c: New file.
1010
1011         New module 'powf'.
1012         * lib/math.in.h (powf): New declaration.
1013         * lib/powf.c: New file.
1014         * m4/powf.m4: New file.
1015         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1017         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1018         * modules/powf: New file.
1019         * tests/test-math-c++.cc: Check the declaration of powf.
1020         * doc/posix-functions/powf.texi: Mention the new module.
1021
1022         pow: Use a .m4 file.
1023         * m4/pow.m4: New file.
1024         * modules/pow (Files): Add it.
1025         (configure.ac): Just invoke gl_FUNC_POW.
1026
1027 2011-10-08  Bruno Haible  <bruno@clisp.org>
1028
1029         Tests for module 'log10f'.
1030         * modules/log10f-tests: New file.
1031         * tests/test-log10f.c: New file.
1032
1033         New module 'log10f'.
1034         * lib/math.in.h (log10f): New declaration.
1035         * lib/log10f.c: New file.
1036         * m4/log10f.m4: New file.
1037         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1039         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1040         * modules/log10f: New file.
1041         * tests/test-math-c++.cc: Check the declaration of log10f.
1042         * doc/posix-functions/log10f.texi: Mention the new module.
1043
1044         log10: Use a .m4 file.
1045         * m4/log10.m4: New file.
1046         * modules/log10 (Files): Add it.
1047         (configure.ac): Just invoke gl_FUNC_LOG10.
1048
1049 2011-10-08  Bruno Haible  <bruno@clisp.org>
1050
1051         Tests for module 'logf'.
1052         * modules/logf-tests: New file.
1053         * tests/test-logf.c: New file.
1054
1055         New module 'logf'.
1056         * lib/math.in.h (logf): New declaration.
1057         * lib/logf.c: New file.
1058         * m4/logf.m4: New file.
1059         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1061         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1062         * modules/logf: New file.
1063         * tests/test-math-c++.cc: Check the declaration of logf.
1064         * doc/posix-functions/logf.texi: Mention the new module.
1065
1066         log: Use a .m4 file.
1067         * m4/log.m4: New file.
1068         * modules/log (Files): Add it.
1069         (configure.ac): Just invoke gl_FUNC_LOG.
1070
1071 2011-10-08  Bruno Haible  <bruno@clisp.org>
1072
1073         Tests for module 'expf'.
1074         * modules/expf-tests: New file.
1075         * tests/test-expf.c: New file.
1076
1077         New module 'expf'.
1078         * lib/math.in.h (expf): New declaration.
1079         * lib/expf.c: New file.
1080         * m4/expf.m4: New file.
1081         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1083         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1084         * modules/expf: New file.
1085         * tests/test-math-c++.cc: Check the declaration of expf.
1086         * doc/posix-functions/expf.texi: Mention the new module.
1087
1088         exp: Use a .m4 file.
1089         * m4/exp.m4: New file.
1090         * modules/exp (Files): Add it.
1091         (configure.ac): Just invoke gl_FUNC_EXP.
1092
1093 2011-10-08  Bruno Haible  <bruno@clisp.org>
1094
1095         Tests for module 'sqrtf'.
1096         * modules/sqrtf-tests: New file.
1097         * tests/test-sqrtf.c: New file.
1098
1099         New module 'sqrtf'.
1100         * lib/math.in.h (sqrtf): New declaration.
1101         * lib/sqrtf.c: New file.
1102         * m4/sqrtf.m4: New file.
1103         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1105         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1106         * modules/sqrtf: New file.
1107         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1108         * doc/posix-functions/sqrtf.texi: Mention the new module.
1109
1110 2011-10-08  Bruno Haible  <bruno@clisp.org>
1111
1112         Tests: Avoid link failures w.r.t. libintl.
1113         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1114         $(LIBINTL).
1115         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1116         $(LIBINTL).
1117         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1118         against $(LIBINTL).
1119         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1120         $(LIBINTL).
1121         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1122         $(LIBINTL).
1123         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1124
1125 2011-10-08  Bruno Haible  <bruno@clisp.org>
1126
1127         pow tests: Defeat compiler optimizations.
1128         * tests/test-pow.c (main): Assign arguments to x and y before use.
1129
1130 2011-10-08  Bruno Haible  <bruno@clisp.org>
1131
1132         gnulib-tool: Improve last commit.
1133         * gnulib-tool (func_modules_transitive_closure): Simplify code.
1134         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
1135         ignore dependencies that are not among the modules list.
1136
1137 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
1138
1139         gnulib-tool: don't follow dependencies to avoided modules
1140         This fixes a bug that is related to the previous one.
1141         * gnulib-tool (func_modules_transitive_closure)
1142         (func_emit_autoconf_snippets):
1143         Check whether a dependency is acceptable before using it.
1144         (--extract-dependencies): Report an error if --avoid is also used,
1145         since this combination of options is not yet supported.
1146
1147         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
1148         Problem reported by Peter Dyballa in
1149         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
1150         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
1151         when echoing "$condition".
1152
1153 2011-10-07  Bruno Haible  <bruno@clisp.org>
1154
1155         Fix documentation about math functions on MacOS X.
1156         * doc/posix-functions/exp2.texi: Don't say the function is missing on
1157         MacOS X 10.5.
1158         * doc/posix-functions/fdim.texi: Likewise.
1159         * doc/posix-functions/feclearexcept.texi: Likewise.
1160         * doc/posix-functions/fegetenv.texi: Likewise.
1161         * doc/posix-functions/fegetround.texi: Likewise.
1162         * doc/posix-functions/feholdexcept.texi: Likewise.
1163         * doc/posix-functions/feraiseexcept.texi: Likewise.
1164         * doc/posix-functions/fesetenv.texi: Likewise.
1165         * doc/posix-functions/fesetround.texi: Likewise.
1166         * doc/posix-functions/fetestexcept.texi: Likewise.
1167         * doc/posix-functions/feupdateenv.texi: Likewise.
1168         * doc/posix-functions/fmax.texi: Likewise.
1169         * doc/posix-functions/fmin.texi: Likewise.
1170         * doc/posix-functions/log2.texi: Likewise.
1171         * doc/posix-functions/modff.texi: Likewise.
1172         * doc/posix-functions/nan.texi: Likewise.
1173         * doc/posix-functions/nanf.texi: Likewise.
1174         * doc/posix-functions/nextafterf.texi: Likewise.
1175         * doc/posix-functions/remquo.texi: Likewise.
1176
1177 2011-10-07  Bruno Haible  <bruno@clisp.org>
1178
1179         modff: Drop assumption about library that defines modff.
1180         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1181         AC_CHECK_FUNCS.
1182         * modules/modff (Files): Add m4/mathfunc.m4.
1183
1184 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1185
1186         raise tests: Avoid a GCC warning.
1187         * tests/test-raise.c (handler): Use _Noreturn.
1188
1189 2011-10-07  Bruno Haible  <bruno@clisp.org>
1190
1191         Tests for module 'ldexpf'.
1192         * modules/ldexpf-tests: New file.
1193         * tests/test-ldexpf.c: New file.
1194
1195         New module 'ldexpf'.
1196         * lib/math.in.h (ldexpf): New declaration.
1197         * lib/ldexpf.c: New file.
1198         * m4/ldexpf.m4: New file.
1199         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1201         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1202         * modules/ldexpf: New file.
1203         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1204         * doc/posix-functions/ldexpf.texi: Mention the new module.
1205
1206 2011-10-06  Bruno Haible  <bruno@clisp.org>
1207
1208         frexpf: Work around problems on IRIX and mingw.
1209         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
1210         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
1211         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
1212         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
1213         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
1214         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
1215         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
1216
1217 2011-10-06  Bruno Haible  <bruno@clisp.org>
1218
1219         fabsf: Drop assumption about library that defines fabsf.
1220         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
1221         AC_CHECK_FUNCS.
1222         * modules/fabsf (Files): Add m4/mathfunc.m4.
1223
1224 2011-10-06  Bruno Haible  <bruno@clisp.org>
1225
1226         frexpf: Drop assumption about library that defines frexpf.
1227         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
1228         'int *', 'float *', 'long double *', 'float', 'long double'.
1229         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
1230         AC_CHECK_FUNCS.
1231         * modules/frexpf (Files): Add m4/mathfunc.m4.
1232
1233         Tests for module 'frexpf'.
1234         * modules/frexpf-tests: New file.
1235         * tests/test-frexpf.c: New file.
1236
1237         New module 'frexpf'.
1238         * lib/math.in.h (frexpf): New declaration.
1239         * lib/frexpf.c: New file.
1240         * m4/frexpf.m4: New file.
1241         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
1242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
1243         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
1244         * modules/frexpf: New file.
1245         * tests/test-math-c++.cc: Check the declaration of frexpf.
1246         * doc/posix-functions/frexpf.texi: Mention the new module.
1247
1248 2011-10-06  Bruno Haible  <bruno@clisp.org>
1249
1250         math: Sort function declarations of math.in.h.
1251         * lib/math.in.h (frexp, logb): Move declarations.
1252
1253 2011-10-05  Bruno Haible  <bruno@clisp.org>
1254
1255         Tests for module 'modff'.
1256         * modules/modff-tests: New file.
1257         * tests/test-modff.c: New file.
1258
1259         New module 'modff'.
1260         * lib/math.in.h (modff): New declaration.
1261         * lib/modff.c: New file.
1262         * m4/modff.m4: New file.
1263         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
1264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
1265         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
1266         * modules/modff: New file.
1267         * tests/test-math-c++.cc: Check the declaration of modff.
1268         * doc/posix-functions/modff.texi: Mention the new module.
1269
1270         modf tests: Make test sharper.
1271         * tests/test-modf.c (main): Strengthen upper bound.
1272
1273         modf: Use a .m4 file.
1274         * m4/modf.m4: New file.
1275         * modules/modf (Files): Add it.
1276         (configure.ac): Just invoke gl_FUNC_MODF.
1277
1278 2011-10-05  Bruno Haible  <bruno@clisp.org>
1279
1280         Tests for module 'fmodf'.
1281         * modules/fmodf-tests: New file.
1282         * tests/test-fmodf.c: New file.
1283
1284         New module 'fmodf'.
1285         * lib/math.in.h (fmodf): New declaration.
1286         * lib/fmodf.c: New file.
1287         * m4/fmodf.m4: New file.
1288         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
1289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
1290         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
1291         * modules/fmodf: New file.
1292         * tests/test-math-c++.cc: Check the declaration of fmodf.
1293         * doc/posix-functions/fmodf.texi: Mention the new module.
1294
1295         fmod: Use a .m4 file.
1296         * m4/fmod.m4: New file.
1297         * modules/fmod (Files): Add it.
1298         (configure.ac): Just invoke gl_FUNC_FMOD.
1299
1300 2011-10-05  Bruno Haible  <bruno@clisp.org>
1301
1302         Tests for module 'fabsf'.
1303         * modules/fabsf-tests: New file.
1304         * tests/test-fabsf.c: New file.
1305
1306         New module 'fabsf'.
1307         * lib/math.in.h (fabsf): New declaration.
1308         * lib/fabsf.c: New file.
1309         * m4/fabsf.m4: New file.
1310         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
1311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
1312         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
1313         * modules/fabsf: New file.
1314         * tests/test-math-c++.cc: Check the declaration of fabsf.
1315         * doc/posix-functions/fabsf.texi: Mention the new module.
1316
1317         fabs: Use a .m4 file.
1318         * m4/fabs.m4: New file.
1319         * modules/fabs (Files): Add it.
1320         (configure.ac): Just invoke gl_FUNC_FABS.
1321
1322 2011-10-05  Jim Meyering  <meyering@redhat.com>
1323
1324         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
1325         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
1326         ls -lL regression introduced in coreutils-8.12, it does so at the
1327         cost of an additional stat call in the common case.  Besides, now
1328         that the kernel change that prompted commit 95f7c57f has been reverted
1329         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
1330         we have no use for commit 95f7c57f, "file-has-acl: use
1331         acl_extended_file_nofollow if available".
1332
1333 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
1334
1335         file-has-acl: revert unintended change in behavior of ls -L
1336         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
1337         derived from...
1338         (file_has_acl): ...code here.  Call it.
1339         This problem was introduced with 2011-07-22 commit 95f7c57f,
1340         "file-has-acl: use acl_extended_file_nofollow if available".
1341         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
1342
1343 2011-10-03  Bruno Haible  <bruno@clisp.org>
1344
1345         poll: Avoid link errors on MSVC.
1346         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
1347         * modules/poll (Depends-on): Add sockets.
1348         (Link): New section.
1349         * NEWS: Mention the change.
1350         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
1351         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
1352         $(LIB_POLL) instead of $(LIBSOCKET).
1353
1354 2011-10-03  Bruno Haible  <bruno@clisp.org>
1355
1356         sys_select tests: Fix link error on MSVC 9.
1357         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
1358         with $(LIB_SELECT) instead of $(LIBSOCKET).
1359
1360 2011-10-03  Bruno Haible  <bruno@clisp.org>
1361
1362         sys_select: Fix compilation error on mingw.
1363         * lib/sys_select.in.h: On native Windows, include <io.h>.
1364
1365 2011-10-03  Bruno Haible  <bruno@clisp.org>
1366
1367         wmemset: Support for MSVC.
1368         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
1369         whether wmemset() exists.
1370
1371 2011-10-03  Bruno Haible  <bruno@clisp.org>
1372
1373         wmemmove: Support for MSVC.
1374         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
1375         whether wmemmove() exists.
1376
1377 2011-10-03  Bruno Haible  <bruno@clisp.org>
1378
1379         wmemcpy: Support for MSVC.
1380         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
1381         whether wmemcpy() exists.
1382
1383 2011-10-03  Bruno Haible  <bruno@clisp.org>
1384
1385         wmemcmp: Support for MSVC.
1386         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
1387         whether wmemcmp() exists.
1388
1389 2011-10-03  Bruno Haible  <bruno@clisp.org>
1390
1391         wmemchr: Support for MSVC.
1392         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
1393         whether wmemchr() exists.
1394
1395 2011-10-03  Bruno Haible  <bruno@clisp.org>
1396
1397         glthread/*, strsignal: Support for MSVC.
1398         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
1399         including <winsock.h> on MSVC 9.
1400         * lib/glthread/lock.h: Likewise.
1401         * lib/glthread/thread.h: Likewise.
1402         * lib/glthread/tls.h: Likewise.
1403         * lib/glthread/yield.h: Likewise.
1404         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
1405         if HAVE_UNISTD_H is false.
1406         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
1407
1408 2011-10-03  Bruno Haible  <bruno@clisp.org>
1409
1410         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
1411         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
1412         Set to 100000.
1413
1414 2011-10-03  Bruno Haible  <bruno@clisp.org>
1415
1416         acl: Fix specification.
1417         * lib/file-has-acl.c (file_has_acl): Fix specification.
1418
1419 2011-10-03  Bruno Haible  <bruno@clisp.org>
1420
1421         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
1422         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
1423         (compute_curr_prefix, shared_library_fullname,
1424         find_shared_library_fullname, get_shared_library_fullname, relocate):
1425         Use it together with PIC && INSTALLDIR.
1426         Reported by <jojelino@gmail.com>
1427         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
1428
1429 2011-10-01  Jim Meyering  <meyering@redhat.com>
1430
1431         maint.mk: adjust a release-related rule not to require use of gzip
1432         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
1433         Instead, check each file in $(DIST_ARCHIVES).  This is better for
1434         projects that build only .tar.xz files.  Also fix an erroneous test.
1435
1436         test-linkat: don't leave behind a temporary file
1437         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
1438         Otherwise, coreutils' "make distcheck" would fail with this:
1439           Only in /c/cu/tests/torture/coreutils/test/\
1440             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
1441           make[2]: *** [my-distcheck] Error 1
1442
1443         float, math: add omitted file
1444         * lib/itold.c: Add file, required for yesterday's float change.
1445
1446 2011-10-01  Bruno Haible  <bruno@clisp.org>
1447
1448         isinf: Fix for OpenBSD/x86.
1449         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
1450         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
1451         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
1452
1453 2011-10-01  Bruno Haible  <bruno@clisp.org>
1454
1455         isfinite: Fix syntax error in configure test.
1456         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
1457
1458         isfinite: Fix typo.
1459         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
1460         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
1461
1462 2011-10-01  Bruno Haible  <bruno@clisp.org>
1463
1464         nonblocking tests: Fix test failure on Linux/IA-64.
1465         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
1466         Set to 270000.
1467
1468 2011-10-01  Bruno Haible  <bruno@clisp.org>
1469
1470         mkfifoat tests: Fix a test failure on mingw.
1471         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
1472         with error ENOSYS.
1473
1474 2011-09-30  Bruno Haible  <bruno@clisp.org>
1475
1476         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
1477         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
1478         'long double'. Set REPLACE_ITOLD.
1479         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
1480         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
1481         * lib/itold.c: New file.
1482         * modules/float (Files): Add lib/itold.c.
1483         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
1484         (Makefile.am): Substitute REPLACE_ITOLD.
1485         * modules/math (Depends-on): Add float.
1486         (Makefile.am): Substitute REPLACE_ITOLD.
1487         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
1488         * doc/posix-headers/math.texi: Likewise.
1489         * doc/posix-functions/logl.texi: Likewise.
1490
1491 2011-09-30  Bruno Haible  <bruno@clisp.org>
1492
1493         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
1494         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
1495         Set to 140000.
1496
1497 2011-09-30  Bruno Haible  <bruno@clisp.org>
1498
1499         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
1500         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
1501         invocation, say "right after AC_PROG_CC_STDC", not "right after
1502         AC_PROG_CC".
1503         Reported by Gary V. Vaughan <gary@gnu.org>.
1504
1505 2011-09-30  Bruno Haible  <bruno@clisp.org>
1506
1507         Centralize C99 requirement.
1508         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
1509         * modules/stdarg (configure.ac-early): Invoke it instead of
1510         AC_PROG_CC_STDC.
1511         Reported by Gary V. Vaughan and Paul Eggert.
1512
1513 2011-09-29  Bruno Haible  <bruno@clisp.org>
1514
1515         float: Fix LDBL_MAX value on Linux/PowerPC.
1516         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
1517         on Linux/PowerPC.
1518         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
1519         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
1520         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
1521         platform.
1522         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
1523
1524 2011-09-29  Bruno Haible  <bruno@clisp.org>
1525
1526         doc: Improve doc about gl_EARLY.
1527         * doc/gnulib-tool.texi (Initial import): Mention where to place an
1528         AC_PROG_CC_STDC invocation.
1529         Reported by Gary V. Vaughan <gary@gnu.org>.
1530
1531 2011-09-28  Bruno Haible  <bruno@clisp.org>
1532
1533         fgetc, fputc, fread, fwrite tests: Fix link error.
1534         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
1535         on non-MSVC platforms.
1536         * tests/test-fputc.c (main): Likewise.
1537         * tests/test-fread.c (main): Likewise.
1538         * tests/test-fwrite.c (main): Likewise.
1539         Reported by Jim Meyering.
1540
1541 2011-09-27  Bruno Haible  <bruno@clisp.org>
1542
1543         fputc, fwrite tests: Avoid test failure on MSVC.
1544         * tests/test-fgetc.c: Include msvc-inval.h.
1545         (main): Invoke gl_msvc_inval_ensure_handler.
1546         * tests/test-fputc.c: Include msvc-inval.h.
1547         (main): Invoke gl_msvc_inval_ensure_handler.
1548         * tests/test-fread.c: Include msvc-inval.h.
1549         (main): Invoke gl_msvc_inval_ensure_handler.
1550         * tests/test-fwrite.c: Include msvc-inval.h.
1551         (main): Invoke gl_msvc_inval_ensure_handler.
1552         * modules/fgetc-tests (Depends-on): Add msvc-inval.
1553         * modules/fputc-tests (Depends-on): Likewise.
1554         * modules/fread-tests (Depends-on): Likewise.
1555         * modules/fwrite-tests (Depends-on): Likewise.
1556
1557 2011-09-27  Bruno Haible  <bruno@clisp.org>
1558
1559         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
1560         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
1561         (raise): Remove older, duplicated declaration.
1562         (_gl_raise_SIGPIPE): New declaration.
1563         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
1564         (rpl_raise): Remove function.
1565         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
1566         a gnulib-defined SIGPIPE here.
1567         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
1568         'sigprocmask' has detected missing signal-blocking and the module
1569         'sigpipe' is enabled.
1570         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1571
1572 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
1573
1574         base64-tests: avoid memory leak
1575         * tests/test-base64.c (main): Plug memory leak.
1576
1577         base32: new module
1578         * modules/base32: New module.
1579         * lib/base32.c: New file.
1580         * lib/base32.h: Likewise.
1581         * m4/base32.m4: Likewise.
1582         * modules/base32-tests: New test.
1583         * tests/test-base32.c: Likewise.
1584         * MODULES.html.sh (Misc): Mention it.
1585
1586 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1587
1588         gnulib: use more-standard license notice wording
1589         * gnulib-tool (func_emit_copyright_notice): When emitting a
1590         license notice into a file, use the standard wording as suggested
1591         by the current information for GNU maintainers, except say "file"
1592         rather than "program".  The new wording gives a license version
1593         number, which addresses an issue raised by Glenn Morris in
1594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
1595         * m4/onceonly.m4: Use that same wording here, too.
1596
1597         dup2: minor simplification
1598         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
1599         as lib/dup2.c no longer uses 'inline'.
1600
1601 2011-09-25  Bruno Haible  <bruno@clisp.org>
1602
1603         strings: Fix compilation error on MSVC.
1604         * lib/strings.in.h: Include <stddef.h> for size_t.
1605
1606 2011-09-25  Bruno Haible  <bruno@clisp.org>
1607
1608         fflush et al.: Document limitation on MSVC.
1609         * doc/posix-functions/fflush.texi: Document possible crash in handling
1610         mode other than DEFAULT_HANDLING.
1611         * doc/posix-functions/fgetc.texi: Likewise.
1612         * doc/posix-functions/fputc.texi: Likewise.
1613         * doc/posix-functions/fread.texi: Likewise.
1614         * doc/posix-functions/fwrite.texi: Likewise.
1615
1616 2011-09-25  Bruno Haible  <bruno@clisp.org>
1617
1618         msvc-inval: Allow three invalid parameter handling modes.
1619         * lib/msvc-inval.h: Don't include <stdlib.h> here.
1620         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
1621         macros.
1622         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
1623         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
1624         SANE_LIBRARY_HANDLING as a no-op.
1625         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
1626         <stdlib.h>.
1627         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
1628
1629 2011-09-25  Bruno Haible  <bruno@clisp.org>
1630
1631         msvc-inval: Make handler multithread-safe.
1632         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
1633         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
1634         declarations.
1635         (gl_msvc_inval_current): New declaration.
1636         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1637         Operate on the structure returned by gl_msvc_inval_current().
1638         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
1639         Remove varaiables.
1640         (tls_index, tls_initialized): New variables.
1641         (not_per_thread): New variable.
1642         (gl_msvc_inval_current): New function.
1643         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
1644         returned by gl_msvc_inval_current().
1645
1646 2011-09-25  Bruno Haible  <bruno@clisp.org>
1647
1648         msvc-inval: Install handler globally.
1649         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
1650         !_MSC_VER.
1651         (gl_msvc_invalid_parameter_handler): Remove declaration.
1652         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
1653         declarations.
1654         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1655         Install the handler globally, don't uninstall it.
1656         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
1657         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
1658         currently valid, call RaiseException instead.
1659         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
1660         for !_MSC_VER.
1661
1662 2011-09-25  Bruno Haible  <bruno@clisp.org>
1663
1664         strerror_r-posix: Fix for MSVC 9.
1665         * lib/strerror_r.c (local_snprintf): New function.
1666         (snprintf): Define to local_snprintf, not to _snprintf.
1667
1668 2011-09-25  Bruno Haible  <bruno@clisp.org>
1669
1670         ftruncate: Support for MSVC 9.
1671         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
1672         (chsize_nothrow): New function.
1673         (chsize): Redefine as a macro.
1674         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
1675         * modules/ftruncate (Depends-on): Add msvc-inval.
1676
1677 2011-09-25  Bruno Haible  <bruno@clisp.org>
1678
1679         New module 'fstat'.
1680         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
1681         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
1682         * lib/fchdir.c (rpl_fstat): Remove function.
1683         * m4/fstat.m4: New file.
1684         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
1685         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
1686         declared.
1687         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
1688         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
1689         * modules/fstat: New file.
1690         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
1691         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
1692         is set.
1693         * doc/posix-functions/fstat.texi: Mention the new module and the
1694         problem on MSVC.
1695         * NEWS: Mention the change.
1696         * modules/acl (Depends-on): Add fstat.
1697         * modules/chdir-safer (Depends-on): Likewise.
1698         * modules/chown (Depends-on): Likewise.
1699         * modules/copy-file (Depends-on): Likewise.
1700         * modules/fchdir (Depends-on): Likewise.
1701         * modules/fdopendir (Depends-on): Likewise.
1702         * modules/fopen (Depends-on): Likewise.
1703         * modules/fts (Depends-on): Likewise.
1704         * modules/getcwd (Depends-on): Likewise.
1705         * modules/isapipe (Depends-on): Likewise.
1706         * modules/linkat (Depends-on): Likewise.
1707         * modules/lseek (Depends-on): Likewise.
1708         * modules/mkdir-p (Depends-on): Likewise.
1709         * modules/open (Depends-on): Likewise.
1710         * modules/openat (Depends-on): Likewise.
1711         * modules/read-file (Depends-on): Likewise.
1712         * modules/renameat (Depends-on): Likewise.
1713         * modules/utimens (Depends-on): Likewise.
1714
1715 2011-09-25  Bruno Haible  <bruno@clisp.org>
1716
1717         linkat: Fix compilation on MSVC 9.
1718         * lib/linkat.c: Don't include <stdint.h>.
1719
1720 2011-09-25  Bruno Haible  <bruno@clisp.org>
1721
1722         fclose: Support for MSVC 9.
1723         * lib/fclose.c: Include msvc-inval.h.
1724         (fclose_nothrow): New function.
1725         (rpl_fclose): Use it.
1726         * modules/fclose (Depends-on): Add msvc-inval.
1727         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
1728
1729 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1730
1731         dup2: minor simplifications
1732         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
1733         that it's a performance win.
1734         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
1735         ! defined __CYGWIN__)" to "ifdef F_GETFL".
1736
1737 2011-09-24  Jim Meyering  <meyering@redhat.com>
1738
1739         test-futimens: avoid a warning from gcc -Wshadow
1740         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
1741         to avoid a shadowing warning.
1742
1743 2011-09-24  Bruno Haible  <bruno@clisp.org>
1744
1745         fdopen: Support for MSVC 9.
1746         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
1747         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
1748         * lib/fdopen.c: Include msvc-inval.h.
1749         (fdopen_nothrow): New function.
1750         (rpl_fdopen): Use it.
1751         * modules/fdopen (Depends-on): Add msvc-inval.
1752         * modules/fclose-tests (Depends-on): Add fdopen.
1753         * modules/fflush-tests (Depends-on): Likewise.
1754         * modules/fgetc-tests (Depends-on): Likewise.
1755         * modules/fputc-tests (Depends-on): Likewise.
1756         * modules/fread-tests (Depends-on): Likewise.
1757         * modules/freopen-tests (Depends-on): Likewise.
1758         * modules/fseeko-tests (Depends-on): Likewise.
1759         * modules/ftello-tests (Depends-on): Likewise.
1760         * modules/fwrite-tests  (Depends-on): Likewise.
1761         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
1762
1763 2011-09-24  Bruno Haible  <bruno@clisp.org>
1764
1765         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
1766         * modules/fgetc-tests (Depends-on): Add unistd.
1767         * modules/fputc-tests (Depends-on): Likewise.
1768         * modules/fread-tests (Depends-on): Likewise.
1769         * modules/fwrite-tests (Depends-on): Likewise.
1770
1771 2011-09-24  Bruno Haible  <bruno@clisp.org>
1772
1773         dup: Simplify autoconf test.
1774         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
1775         on gl_MSVC_INVAL's result.
1776
1777 2011-09-24  Bruno Haible  <bruno@clisp.org>
1778
1779         Tests for function fwrite().
1780         * modules/fwrite-tests: New file.
1781         * tests/test-fwrite.c: New file.
1782         * modules/stdio-tests (Depends-on): Add fwrite-tests.
1783
1784         Tests for function fread().
1785         * modules/fread-tests: New file.
1786         * tests/test-fread.c: New file.
1787         * modules/stdio-tests (Depends-on): Add fread-tests.
1788
1789         Activate fputc tests.
1790         * modules/stdio-tests (Depends-on): Add fputc-tests.
1791
1792         Enhance fgetc, fputc tests.
1793         * tests/test-fgetc.c (main): Also test the stream's error indicator.
1794         * tests/test-fputc.c (main): Likewise.
1795
1796 2011-09-24  Bruno Haible  <bruno@clisp.org>
1797
1798         write: Support for MSVC 9.
1799         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1800         is not 1.
1801         * lib/write.c (write_nothrow): New function.
1802         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
1803         not 1. Use write_nothrow.
1804         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
1805         invalid parameter handler.
1806         (gl_PREREQ_WRITE): New macro.
1807         * modules/write (Depends-on): Add msvc-inval.
1808         (configure.ac): Invoke gl_PREREQ_WRITE.
1809         * doc/posix-functions/write.texi: Mention the problem on MSVC.
1810
1811 2011-09-24  Bruno Haible  <bruno@clisp.org>
1812
1813         read: Fix last commit.
1814         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
1815
1816 2011-09-24  Bruno Haible  <bruno@clisp.org>
1817
1818         dup2: Fix last commit.
1819         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
1820         (rpl_dup2): Disable fcntl workaround on native Windows.
1821
1822         sigprocmask: Make code safer.
1823         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
1824         section that changes macro definitions for this compilation unit.
1825
1826 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1827
1828         dup2: clarify by coalescing Windows-specific material
1829         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
1830         "msvc-nothrow.h"' to the Windows-specific section, so that the
1831         Emacs source need not contain these include files.
1832         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
1833         Windows-specific fixes into this function rather than just the
1834         nothrow fix, as this shortens and clarifies the code.  Always
1835         define as a function, as that's a bit cleaner than having it be
1836         sometimes a function and sometimes a macro.
1837         (rpl_dup2): Move the Windows-specific stuff out of here and into
1838         ms_windows_dup2.  Don't protect the Haiku-related fix with
1839         "#if !defined __linux__", as the same code also works around
1840         a Linux kernel bug, and it doesn't add any system calls on any
1841         platform.  Add comment about FreeBSD 6.1.
1842
1843         sigprocmask: move #include directive
1844         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
1845         Windows-specific section, so that the Emacs source need not
1846         contain msvc-inval.h.
1847
1848 2011-09-23  Bruno Haible  <bruno@clisp.org>
1849
1850         read: Support for MSVC 9.
1851         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1852         is not 1.
1853         * lib/read.c (read_nothrow): New function.
1854         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
1855         read_nothrow.
1856         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
1857         invalid parameter handler.
1858         (gl_PREREQ_READ): New macro.
1859         * modules/read (Depends-on): Add msvc-inval.
1860         (configure.ac): Invoke gl_PREREQ_READ.
1861         * doc/posix-functions/read.texi: Mention the problem on MSVC.
1862
1863 2011-09-23  Bruno Haible  <bruno@clisp.org>
1864
1865         close: Support for MSVC 9.
1866         * lib/close.c: Include <errno.h>, msvc-inval.h.
1867         (close_nothrow): New function.
1868         (rpl_close): Use it.
1869         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
1870         invalid parameter handler.
1871         * modules/close (Depends-on): Add msvc-inval.
1872         * modules/dup2-tests (Depends-on): Add close.
1873         * modules/dup3-tests (Depends-on): Likewise.
1874         * modules/fcntl-tests (Depends-on): Likewise.
1875         * modules/spawn-pipe-tests (Depends-on): Likewise.
1876         * modules/unistd-safer-tests (Depends-on): Likewise.
1877         * doc/posix-functions/close.texi: Mention the problem on MSVC.
1878
1879 2011-09-23  Bruno Haible  <bruno@clisp.org>
1880
1881         New module 'dup'.
1882         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
1883         Allow replacement.
1884         * lib/dup.c: New file.
1885         * lib/fchdir.c (rpl_dup): Remove function.
1886         * m4/dup.m4: New file.
1887         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
1888         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
1889         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
1890         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
1891         * modules/dup: New file.
1892         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
1893         'dup' module is in use.
1894         * modules/fdopendir (Depends-on): Add dup.
1895         * modules/fdutimensat-tests (Depends-on): Likewise.
1896         * modules/fts (Depends-on): Likewise.
1897         * modules/futimens-tests (Depends-on): Likewise.
1898         * modules/posix_spawnp-tests (Depends-on): Likewise.
1899         * modules/unistd-safer-tests (Depends-on): Likewise.
1900         * modules/utimens-tests (Depends-on): Likewise.
1901         * doc/posix-functions/dup.texi: Mention the new module and the problem
1902         on MSVC.
1903
1904 2011-09-23  Bruno Haible  <bruno@clisp.org>
1905
1906         getdtablesize: Support for MSVC 9.
1907         * lib/getdtablesize.c: Include msvc-inval.h.
1908         (_setmaxstdio_nothrow): New function.
1909         (_setmaxstdio): Redefine it.
1910         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
1911         * modules/getdtablesize (Depends-on): Add msvc-inval.
1912         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
1913
1914 2011-09-23  Bruno Haible  <bruno@clisp.org>
1915
1916         signal-h: Rename from signal.
1917         * modules/signal-h: Renamed from modules/signal.
1918         * modules/pthread_sigmask (Depends-on): Update.
1919         * modules/raise (Depends-on): Likewise.
1920         * modules/sigaction (Depends-on): Likewise.
1921         * modules/sigpipe (Depends-on): Likewise.
1922         * modules/sigprocmask (Depends-on): Likewise.
1923         * modules/sys_select (Depends-on): Likewise.
1924         * modules/signal-h-tests: Renamed from modules/signal-tests.
1925         (Files, Depends-on, Makefile.am): Update.
1926         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
1927         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
1928         (Files, Makefile.am): Update.
1929         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
1930         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
1931         * modules/signal: New placeholder file.
1932         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
1933         * doc/posix-headers/signal.texi: Update.
1934         * NEWS: Mention the change.
1935
1936 2011-09-23  Bruno Haible  <bruno@clisp.org>
1937
1938         sigprocmask: Avoid crashes through signal() on MSVC 9.
1939         * lib/sigprocmask.c: Include msvc-inval.h.
1940         (signal_nothrow): New function.
1941         (signal): Redefine it.
1942         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
1943         * modules/sigprocmask (Depends-on): Add msvc-inval.
1944         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
1945
1946 2011-09-23  Bruno Haible  <bruno@clisp.org>
1947
1948         Tests for module 'raise'.
1949         * modules/raise-tests: New file.
1950         * tests/test-raise.c: New file.
1951
1952         raise: Support for MSVC.
1953         * lib/signal.in.h (raise): New declaration.
1954         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
1955         for native Windows platforms.
1956         * m4/raise.m4: New file.
1957         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
1958         HAVE_RAISE, REPLACE_RAISE.
1959         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
1960         REPLACE_RAISE.
1961         * modules/raise (Status, Notice): Remove fields.
1962         (Files): Add m4/raise.m4.
1963         (Depends-on): Add signal, msvc-inval.
1964         (configure.ac): Use the common idioms.
1965         (Maintainer): Add me.
1966         * tests/test-signal-c++.cc: Check the signature of raise.
1967         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
1968
1969 2011-09-23  Bruno Haible  <bruno@clisp.org>
1970
1971         pipe2: Fix compilation on pre-C99 compilers.
1972         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
1973
1974 2011-09-23  Bruno Haible  <bruno@clisp.org>
1975
1976         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
1977         * lib/msvc-nothrow.h: New file.
1978         * lib/msvc-nothrow.c: New file.
1979         * m4/msvc-nothrow.m4: New file.
1980         * modules/msvc-nothrow: New file.
1981         * lib/dup2.c: Include msvc-nothrow.h.
1982         (rpl_dup2): No need to protect _get_osfhandle call here.
1983         * lib/accept4.c: Include msvc-nothrow.h.
1984         * lib/error.c: Likewise.
1985         * lib/fcntl.c: Likewise.
1986         * lib/lseek.c: Likewise.
1987         * lib/nonblocking.c: Likewise.
1988         * lib/poll.c: Likewise.
1989         * lib/read.c: Likewise.
1990         * lib/select.c: Likewise.
1991         * lib/sockets.h: Likewise.
1992         * lib/sockets.c: Likewise.
1993         * lib/stdio-read.c: Likewise.
1994         * lib/stdio-write.c: Likewise.
1995         * lib/write.c: Likewise.
1996         * lib/w32sock.h: Likewise.
1997         * lib/w32spawn.h: Likewise.
1998         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
1999         * lib/fsync.c: Likewise.
2000         * lib/isapipe.c: Likewise.
2001         * modules/dup2 (Depends-on): Add msvc-nothrow.
2002         * modules/accept4 (Depends-on): Likewise.
2003         * modules/error (Depends-on): Likewise.
2004         * modules/fcntl (Depends-on): Likewise.
2005         * modules/lseek (Depends-on): Likewise.
2006         * modules/nonblocking (Depends-on): Likewise.
2007         * modules/poll (Depends-on): Likewise.
2008         * modules/read (Depends-on): Likewise.
2009         * modules/select (Depends-on): Likewise.
2010         * modules/sockets (Depends-on): Likewise.
2011         * modules/sigpipe (Depends-on): Likewise.
2012         * modules/write (Depends-on): Likewise.
2013         * modules/accept (Depends-on): Likewise.
2014         * modules/bind (Depends-on): Likewise.
2015         * modules/connect (Depends-on): Likewise.
2016         * modules/gethostname (Depends-on): Likewise.
2017         * modules/getpeername (Depends-on): Likewise.
2018         * modules/getsockname (Depends-on): Likewise.
2019         * modules/getsockopt (Depends-on): Likewise.
2020         * modules/ioctl (Depends-on): Likewise.
2021         * modules/listen (Depends-on): Likewise.
2022         * modules/recv (Depends-on): Likewise.
2023         * modules/recvfrom (Depends-on): Likewise.
2024         * modules/send (Depends-on): Likewise.
2025         * modules/sendto (Depends-on): Likewise.
2026         * modules/setsockopt (Depends-on): Likewise.
2027         * modules/shutdown (Depends-on): Likewise.
2028         * modules/socket (Depends-on): Likewise.
2029         * modules/execute (Depends-on): Likewise.
2030         * modules/spawn-pipe (Depends-on): Likewise.
2031         * modules/flock (Depends-on): Likewise.
2032         * modules/fsync (Depends-on): Likewise.
2033         * modules/isapipe (Depends-on): Likewise.
2034         * tests/test-cloexec.c: Include msvc-nothrow.h.
2035         * tests/test-dup-safer.c: Likewise.
2036         * tests/test-dup2.c: Likewise.
2037         * tests/test-dup3.c: Likewise.
2038         * tests/test-fcntl.c: Likewise.
2039         * tests/test-pipe.c: Likewise.
2040         * tests/test-pipe2.c: Likewise.
2041         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2042         * modules/unistd-safer-tests (Depends-on): Likewise.
2043         * modules/dup2-tests (Depends-on): Likewise.
2044         * modules/dup3-tests (Depends-on): Likewise.
2045         * modules/fcntl-tests (Depends-on): Likewise.
2046         * modules/pipe-posix-tests (Depends-on): Likewise.
2047         * modules/pipe2-tests (Depends-on): Likewise.
2048
2049 2011-09-23  Bruno Haible  <bruno@clisp.org>
2050
2051         dup2: Make code more maintainable.
2052         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2053         (rpl_dup2): Use it.
2054         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2055         * modules/dup2 (configure.ac): Invoke it.
2056         Reported by Paul Eggert.
2057
2058 2011-09-23  Bruno Haible  <bruno@clisp.org>
2059
2060         msvc-inval: Fix compilation error.
2061         * lib/msvc-inval.h: Include <excpt.h>.
2062
2063 2011-09-23  Bruno Haible  <bruno@clisp.org>
2064
2065         mkdir: Tweak for MSVC 9.
2066         * lib/sys_stat.in.h: Update comments.
2067         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2068
2069         Tests for module 'chdir'.
2070         * modules/chdir-tests: New file.
2071         * tests/test-chdir.c: New file.
2072
2073         New module 'chdir'.
2074         * modules/chdir: New file.
2075         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2076         (chdir): New declaration.
2077         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2078         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2079         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2080         * tests/test-unistd-c++.cc: Check signature of chdir.
2081         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2082         * modules/chdir-long (Depends-on): Add chdir.
2083         * modules/fchdir (Depends-on): Likewise.
2084         * modules/rename (Depends-on): Likewise.
2085         * modules/savewd (Depends-on): Likewise.
2086
2087         rmdir: Support for mingw, MSVC 9.
2088         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2089         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2090
2091         getcwd: Tweak for MSVC 9.
2092         * lib/unistd.in.h: Update comments.
2093         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2094
2095 2011-09-22  Bruno Haible  <bruno@clisp.org>
2096
2097         strerror_r-posix: Avoid a link error on MSVC.
2098         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2099         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2100
2101 2011-09-22  Bruno Haible  <bruno@clisp.org>
2102
2103         select: Avoid link errors on MSVC.
2104         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2105         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2106         * modules/pselect (Link): Likewise.
2107         * NEWS: Mention the change.
2108         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2109         test-select-stdin against $(LIB_SELECT).
2110         * modules/pselect-tests (Makefile.am): Link test-pselect against
2111         $(LIB_SELECT).
2112
2113 2011-09-22  Bruno Haible  <bruno@clisp.org>
2114
2115         select: Avoid compilation error on MSVC.
2116         * lib/select.c: Don't include <stdbool.h>.
2117
2118 2011-09-21  Bruno Haible  <bruno@clisp.org>
2119
2120         Consolidate all uses of PATH_MAX in *.m4 files.
2121         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2122         macros.
2123         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2124         and gl_PATHMAX_SNIPPET.
2125         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2126         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2127         * modules/chdir-long (Files): Add m4/pathmax.m4.
2128         * modules/getcwd (Files): Likewise.
2129
2130 2011-09-21  Bruno Haible  <bruno@clisp.org>
2131
2132         ftruncate: Un-deprecate, concentrate on Win32 support.
2133         * modules/ftruncate (Status, Notice): Remove sections.
2134         (Depends-on): Add largefile.
2135         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
2136         non-mingw platforms.
2137         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
2138         include <io.h>.
2139         * modules/perror-tests (Depends-on): Add ftruncate.
2140         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
2141         'ftruncate' module.
2142
2143 2011-09-21  Bruno Haible  <bruno@clisp.org>
2144
2145         Add dependencies to new dirent related modules.
2146         * modules/opendir (Depends-on): Add closedir.
2147         * modules/getcwd (Depends-on): Add opendir, closedir.
2148         * modules/dirent-safer-tests (Depends-on): Likewise.
2149         * modules/fdopendir-tests (Depends-on): Likewise.
2150         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
2151         * modules/renameat-tests (Depends-on): Likewise.
2152
2153 2011-09-21  Bruno Haible  <bruno@clisp.org>
2154
2155         opendir: Avoid compilation error on mingw.
2156         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
2157         * modules/opendir (Depends-on): Add unistd.
2158
2159 2011-09-21  Bruno Haible  <bruno@clisp.org>
2160
2161         ftruncate tests: Avoid a test failure on mingw.
2162         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
2163
2164 2011-09-21  Bruno Haible  <bruno@clisp.org>
2165
2166         select tests: Avoid test failures on OSF/1 5.1 and mingw.
2167         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
2168         native Windows.
2169
2170 2011-09-21  Bruno Haible  <bruno@clisp.org>
2171
2172         New module 'fdopen'.
2173         * lib/stdio.in.h (fdopen): New declaration.
2174         * lib/fdopen.c: New file.
2175         * m4/fdopen.m4: New file.
2176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2177         REPLACE_FDOPEN.
2178         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2179         REPLACE_FDOPEN.
2180         * modules/fdopen: New file.
2181         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2182         * tests/test-stdio-c++.cc: Check signature of fdopen.
2183         * doc/posix-functions/fdopen.texi: Mention the new module.
2184
2185 2011-09-21  Bruno Haible  <bruno@clisp.org>
2186
2187         unlockpt tests: Avoid test failure on NetBSD 5.1.
2188         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2189         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2190
2191 2011-09-21  Bruno Haible  <bruno@clisp.org>
2192
2193         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2194         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2195         * tests/test-getlogin_r.c (main): Likewise.
2196
2197 2011-09-20  Bruno Haible  <bruno@clisp.org>
2198
2199         time tests: Don't require pid_t.
2200         * doc/posix-headers/time.texi: Revert last change.
2201         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2202         * tests/test-time.c: Comment out the check for pid_t.
2203
2204 2011-09-20  Bruno Haible  <bruno@clisp.org>
2205
2206         fsync tests: Avoid a test failure on mingw.
2207         * tests/test-fsync.c (main): Allow a failure with EIO.
2208
2209 2011-09-20  Bruno Haible  <bruno@clisp.org>
2210
2211         euidaccess: Update comments.
2212         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
2213
2214 2011-09-20  Bruno Haible  <bruno@clisp.org>
2215
2216         Ensure EBADF returns for socket functions on mingw.
2217         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
2218         descriptor is invalid.
2219         * lib/bind.c (rpl_bind): Likewise.
2220         * lib/connect.c (rpl_connect): Likewise.
2221         * lib/getpeername.c (rpl_getpeername): Likewise.
2222         * lib/getsockname.c (rpl_getsockname): Likewise.
2223         * lib/getsockopt.c (rpl_getsockopt): Likewise.
2224         * lib/listen.c (rpl_listen): Likewise.
2225         * lib/recv.c (rpl_recv): Likewise.
2226         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2227         * lib/send.c (rpl_send): Likewise.
2228         * lib/sendto.c (rpl_sendto): Likewise.
2229         * lib/setsockopt.c (rpl_setsockopt): Likewise.
2230         * lib/shutdown.c (rpl_shutdown): Likewise.
2231
2232 2011-09-20  Bruno Haible  <bruno@clisp.org>
2233
2234         select tests: EBADF tests.
2235         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
2236         test_bad_fd): New functions.
2237         (test_function): Invoke also test_bad_fd.
2238
2239 2011-09-20  Bruno Haible  <bruno@clisp.org>
2240
2241         Tests for module 'posix_spawn_file_actions_addopen.
2242         * modules/posix_spawn_file_actions_addopen-tests: New file.
2243         * tests/test-posix_spawn_file_actions_addopen.c: New file.
2244
2245         Tests for module 'posix_spawn_file_actions_adddup2'.
2246         * modules/posix_spawn_file_actions_adddup2-tests: New file.
2247         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
2248
2249         Tests for module 'posix_spawn_file_actions_addclose'.
2250         * modules/posix_spawn_file_actions_addclose-tests: New file.
2251         * tests/test-posix_spawn_file_actions_addclose.c: New file.
2252
2253 2011-09-20  Bruno Haible  <bruno@clisp.org>
2254
2255         Tests for module 'unlockpt'.
2256         * modules/unlockpt-tests: New file.
2257         * tests/test-unlockpt.c: New file.
2258         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
2259
2260         Tests for module 'grantpt'.
2261         * modules/grantpt-tests: New file.
2262         * tests/test-grantpt.c: New file.
2263         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
2264
2265 2011-09-20  Bruno Haible  <bruno@clisp.org>
2266
2267         freopen tests: EBADF tests.
2268         * tests/test-freopen.c: Include errno.h, unistd.h.
2269         (main): Add tests for EBADF, commented out for the moment.
2270
2271         fclose tests: EBADF tests.
2272         * tests/test-fclose.c (main): Add tests for EBADF.
2273
2274         fflush tests: EBADF tests.
2275         * tests/test-fflush.c: Include errno.h, macros.h.
2276         (main): Add tests for EBADF.
2277
2278         ftello tests: EBADF tests.
2279         * tests/test-ftello4.sh: New file.
2280         * tests/test-ftello4.c: New file.
2281         * modules/ftello-tests (Files): Add them.
2282         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
2283
2284         fseeko tests: EBADF tests.
2285         * tests/test-fseeko4.sh: New file.
2286         * tests/test-fseeko4.c: New file.
2287         * modules/fseeko-tests (Files): Add them.
2288         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
2289
2290         Tests for function fputc().
2291         * modules/fputc-tests: New file.
2292         * tests/test-fputc.c: New file.
2293         * modules/stdio-tests (Depends-on): Add fputc-tests.
2294
2295         Tests for function fgetc().
2296         * modules/fgetc-tests: New file.
2297         * tests/test-fgetc.c: New file.
2298         * modules/stdio-tests (Depends-on): Add fgetc-tests.
2299
2300         Tests for function fdopen().
2301         * modules/fdopen-tests: New file.
2302         * tests/test-fdopen.c: New file.
2303         * modules/stdio-tests (Depends-on): Add fdopen-tests.
2304
2305         Tests for module 'vdprintf'.
2306         * modules/vdprintf-tests: New file.
2307         * tests/test-vdprintf.c: New file.
2308
2309         Tests for module 'dprintf'.
2310         * modules/dprintf-tests: New file.
2311         * tests/test-dprintf.c: New file.
2312
2313 2011-09-20  Bruno Haible  <bruno@clisp.org>
2314
2315         Tests for module 'ioctl'.
2316         * modules/ioctl-tests: New file.
2317         * tests/test-ioctl.c: New file.
2318
2319 2011-09-20  Bruno Haible  <bruno@clisp.org>
2320
2321         fcntl tests: EBADF tests.
2322         * tests/test-fcntl.c (main): Add more tests for EBADF.
2323
2324 2011-09-20  Bruno Haible  <bruno@clisp.org>
2325
2326         utimensat tests: EBADF tests.
2327         * tests/test-utimensat.c (main): Add tests for EBADF.
2328
2329         renameat tests: EBADF tests.
2330         * tests/test-renameat.c (main): Add tests for EBADF.
2331
2332         mkfifoat tests: EBADF tests.
2333         * tests/test-mkfifoat.c (main): Add tests for EBADF.
2334
2335         readlinkat tests: EBADF tests.
2336         * tests/test-readlinkat.c (main): Add tests for EBADF.
2337
2338         symlinkat tests: EBADF tests.
2339         * tests/test-symlinkat.c (main): Add tests for EBADF.
2340
2341         linkat tests: EBADF tests.
2342         * tests/test-linkat.c (main): Add tests for EBADF.
2343
2344         Tests for module 'faccessat'.
2345         * modules/faccessat-tests: New file.
2346         * tests/test-faccessat.c: New file.
2347
2348         fdopendir tests: EBADF tests.
2349         * tests/test-fdopendir.c (main): Add more tests for EBADF.
2350
2351         openat tests: EBADF tests.
2352         * tests/test-fchownat.c (main): Add tests for EBADF.
2353         * tests/test-fstatat.c (main): Likewise.
2354         * tests/test-mkdirat.c (main): Likewise.
2355         * tests/test-openat.c (main): Likewise.
2356         * tests/test-unlinkat.c (main): Likewise.
2357         * tests/test-fchmodat.c: New file.
2358         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
2359         (Makefile.am): Also run 'test-fchmodat'.
2360
2361 2011-09-20  Bruno Haible  <bruno@clisp.org>
2362
2363         utimens, futimens, fdutimensat tests: EBADF tests.
2364         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
2365
2366         Tests for function fstat().
2367         * modules/fstat-tests: New file.
2368         * tests/test-fstat.c: New file.
2369         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
2370
2371 2011-09-20  Bruno Haible  <bruno@clisp.org>
2372
2373         test-ttyname_r tests: EBADF tests.
2374         * tests/test-ttyname_r.c (main): Add tests for EBADF.
2375
2376         Tests for module 'isatty'.
2377         * modules/isatty-tests: New file.
2378         * tests/test-isatty.c: New file.
2379
2380         Tests for module 'write'.
2381         * modules/write-tests: New file.
2382         * tests/test-write.c: New file.
2383
2384         Tests for module 'read'.
2385         * modules/read-tests: New file.
2386         * tests/test-read.c: New file.
2387
2388         pwrite tests: EBADF tests.
2389         * tests/test-pwrite.c (main): Add tests for EBADF.
2390
2391         pread tests: EBADF tests.
2392         * tests/test-pread.c (main): Add tests for EBADF.
2393
2394         lseek tests: EBADF tests.
2395         * tests/test-lseek.c (main): Add more tests for EBADF.
2396
2397         Tests for module 'ftruncate'.
2398         * modules/ftruncate-tests: New file.
2399         * tests/test-ftruncate.sh: New file.
2400         * tests/test-ftruncate.c: New file.
2401
2402         fsync tests: EBADF tests.
2403         * tests/test-fsync.c (main): Add more tests for EBADF.
2404
2405         fdatasync tests: EBADF tests.
2406         * tests/test-fdatasync.c (main): Add more tests for EBADF.
2407
2408         Tests for module 'fchown'.
2409         * modules/fchown-tests: New file.
2410         * tests/test-fchown.c: New file.
2411
2412         Tests for module 'fchmod'.
2413         * modules/fchmod-tests: New file.
2414         * tests/test-fchmod.c: New file.
2415
2416         fchdir tests: EBADF tests.
2417         * tests/test-fchdir.c (main): Add more tests for EBADF.
2418
2419         dup2 tests: EBADF tests.
2420         * tests/test-dup2.c (main): Add more tests for EBADF.
2421
2422         Tests for module 'dup'.
2423         * modules/dup-tests: New file.
2424         * tests/test-dup.c: New file.
2425
2426         Tests for module 'close'.
2427         * modules/close-tests: New file.
2428         * tests/test-close.c: New file.
2429
2430 2011-09-20  Bruno Haible  <bruno@clisp.org>
2431
2432         Tests for module 'shutdown'.
2433         * modules/shutdown-tests: New file.
2434         * tests/test-shutdown.c: New file.
2435
2436         Tests for module 'setsockopt'.
2437         * modules/setsockopt-tests: New file.
2438         * tests/test-setsockopt.c: New file.
2439
2440         Tests for module 'sendto'.
2441         * modules/sendto-tests: New file.
2442         * tests/test-sendto.c: New file.
2443
2444         Tests for module 'send'.
2445         * modules/send-tests: New file.
2446         * tests/test-send.c: New file.
2447
2448         Tests for module 'recvfrom'.
2449         * modules/recvfrom-tests: New file.
2450         * tests/test-recvfrom.c: New file.
2451
2452         Tests for module 'recv'.
2453         * modules/recv-tests: New file.
2454         * tests/test-recv.c: New file.
2455
2456         Tests for module 'listen'.
2457         * modules/listen-tests: New file.
2458         * tests/test-listen.c: New file.
2459
2460         Tests for module 'getsockopt'.
2461         * modules/getsockopt-tests: New file.
2462         * tests/test-getsockopt.c: New file.
2463
2464         Tests for module 'getsockname'.
2465         * modules/getsockname-tests: New file.
2466         * tests/test-getsockname.c: New file.
2467
2468         Tests for module 'getpeername'.
2469         * modules/getpeername-tests: New file.
2470         * tests/test-getpeername.c: New file.
2471
2472         Tests for module 'connect'.
2473         * modules/connect-tests: New file.
2474         * tests/test-connect.c: New file.
2475
2476         Tests for module 'bind'.
2477         * modules/bind-tests: New file.
2478         * tests/test-bind.c: New file.
2479
2480         accept4 tests: Fix for native Windows.
2481         * tests/test-accept4.c: Include sockets.h.
2482         (main): Invoke gl_sockets_startup.
2483         * modules/accept4-tests (Depends-on): Add sockets.
2484
2485         accept tests: Fix for native Windows.
2486         * tests/test-accept.c: Include sockets.h.
2487         (main): Invoke gl_sockets_startup.
2488         * modules/accept-tests (Depends-on): Add sockets.
2489
2490 2011-09-19  Bruno Haible  <bruno@clisp.org>
2491
2492         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
2493         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
2494         do...while(0).
2495         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
2496         Suggested by Paul Eggert.
2497
2498 2011-09-19  Bruno Haible  <bruno@clisp.org>
2499
2500         sched: Ensure pid_t is defined.
2501         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
2502         not define pid_t.
2503         * lib/sched.in.h: Include <sys/types.h>.
2504         * doc/posix-headers/sched.texi: Mention the pid_t problem.
2505         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2506
2507 2011-09-19  Bruno Haible  <bruno@clisp.org>
2508
2509         msvc-inval: Ensure the entire expansion is a single statement.
2510         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
2511         of braces.
2512
2513 2011-09-19  Jim Meyering  <meyering@redhat.com>
2514
2515         tests: use printf, not echo in init.sh's warn_ function
2516         * tests/init.sh (warn_): Use printf, not echo.  The latter would
2517         misbehave when given strings containing a backslash or starting
2518         with e.g., -n.  James Youngman suggested setting IFS.
2519
2520 2011-09-19  Eric Blake  <eblake@redhat.com>
2521
2522         futimens: enhance test
2523         * tests/test-futimens.h (test_futimens): Also check for EBADF on
2524         closed non-negative fd.
2525
2526         date: accept 'hence' as opposite of 'ago'
2527         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
2528         * tests/test-parse-datetime.c (main): Enhance test.
2529         Suggested by Jesse Wilson.
2530
2531 2011-09-19  Jim Meyering  <meyering@redhat.com>
2532
2533         getcwd: don't fail in a deep directory on a system without openat
2534         Before this change, getcwd would fail when called from a directory
2535         of depth PATH_MAX / 3 or greater.  That was due to the fact that
2536         the non-openat implementation used "..", "../..", "../../..", etc.
2537         to access ancestor directories.  With too many, that string would
2538         be longer than PATH_MAX.
2539         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
2540         using gnulib's openat replacement.
2541         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
2542         we're using the replacement function.
2543
2544 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
2545
2546         maint.mk: avoid warnings from perl about missing files
2547         * top/maint.mk (def_sym_regex): Ignore files listed in
2548         $(gl_other_headers_) that do not exist, say because a project
2549         does not use a corresponding module.
2550
2551 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2552
2553         stat: use pathmax.h only if needed
2554         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
2555         This is better for Emacs, which does not have a mingw port and
2556         therefore can avoid the pathmax module.
2557
2558         utimens: remove dependency on dup2
2559         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
2560         to work around the Linux kernel bug.
2561         * modules/utimens (Depends-on): Remove dup2.
2562
2563 2011-09-18  Bruno Haible  <bruno@clisp.org>
2564
2565         inet_ntop, inet_pton: Look for it also in libresolv.
2566         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
2567         libnsl, search for it in libresolv.
2568         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2569         Needed on Solaris 7.
2570
2571 2011-09-18  Bruno Haible  <bruno@clisp.org>
2572
2573         accept, accept4 tests: Avoid link error on Solaris.
2574         * modules/accept-tests (Makefile.am): Link test-accept against
2575         $(LIBSOCKET).
2576         * modules/accept4-tests (Makefile.am): Link test-accept4 against
2577         $(LIBSOCKET).
2578
2579         accept4: Avoid link error on Solaris.
2580         * modules/accept4 (Link): New section.
2581
2582         socket functions: Avoid link errors on Solaris.
2583         * modules/accept (Depends-on): Add socketlib.
2584         (Link): New section.
2585         * modules/bind (Depends-on): Add socketlib.
2586         (Link): New section.
2587         * modules/connect (Depends-on): Add socketlib.
2588         (Link): New section.
2589         * modules/getpeername (Depends-on): Add socketlib.
2590         (Link): New section.
2591         * modules/getsockname (Depends-on): Add socketlib.
2592         (Link): New section.
2593         * modules/getsockopt (Depends-on): Add socketlib.
2594         (Link): New section.
2595         * modules/listen (Depends-on): Add socketlib.
2596         (Link): New section.
2597         * modules/recv (Depends-on): Add socketlib.
2598         (Link): New section.
2599         * modules/recvfrom (Depends-on): Add socketlib.
2600         (Link): New section.
2601         * modules/send (Depends-on): Add socketlib.
2602         (Link): New section.
2603         * modules/sendto (Depends-on): Add socketlib.
2604         (Link): New section.
2605         * modules/setsockopt (Depends-on): Add socketlib.
2606         (Link): New section.
2607         * modules/shutdown (Depends-on): Add socketlib.
2608         (Link): New section.
2609         * modules/socket (Depends-on): Add socketlib.
2610         (Link): New section.
2611
2612 2011-09-18  Bruno Haible  <bruno@clisp.org>
2613
2614         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
2615         * tests/test-ptsname.c (main): Terminate the test if it takes longer
2616         than 5 seconds.
2617         * modules/ptsname-tests (configure.ac): Test for alarm.
2618
2619 2011-09-18  Bruno Haible  <bruno@clisp.org>
2620
2621         posix_spawn_file_actions_add*: Fix module dependencies.
2622         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
2623         posix_spawn_file_actions_init.
2624         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
2625         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
2626
2627 2011-09-18  Bruno Haible  <bruno@clisp.org>
2628
2629         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
2630         * tests/test-rename.h (test_rename): Allow error code EEXIST.
2631         * tests/test-renameat.c (main): Likewise.
2632
2633 2011-09-18  Bruno Haible  <bruno@clisp.org>
2634
2635         Tests for module 'accept4'.
2636         * modules/accept4-tests: New file.
2637         * tests/test-accept4.c: New file.
2638
2639 2011-09-18  Bruno Haible  <bruno@clisp.org>
2640
2641         Tests for module 'accept'.
2642         * modules/accept-tests: New file.
2643         * tests/test-accept.c: New file.
2644
2645 2011-09-18  Bruno Haible  <bruno@clisp.org>
2646
2647         dup2: Support for MSVC.
2648         * lib/dup2.c: Include msvc-inval.h.
2649         (rpl_dup2): Handle invalid parameter notifications during dup2 and
2650         _get_osfhandle calls.
2651         * modules/dup2 (Depends-on): Add msvc-inval.
2652         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
2653
2654         New module 'msvc-inval'.
2655         * lib/msvc-inval.h: New file.
2656         * lib/msvc-inval.c: New file.
2657         * m4/msvc-inval.m4: New file.
2658         * modules/msvc-inval: New file.
2659
2660 2011-09-17  Bruno Haible  <bruno@clisp.org>
2661
2662         Tests for module 'pclose'.
2663         * modules/pclose-tests: New file.
2664
2665         New module 'pclose'.
2666         * lib/stdio.in.h (pclose): New declaration.
2667         * lib/pclose.c: New file.
2668         * m4/pclose.m4: New file.
2669         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
2670         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
2671         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
2672         * modules/pclose: New file.
2673         * modules/popen-tests (Depends-on): Add pclose.
2674         * modules/popen-safer-tests (Depends-on): Likewise.
2675         * doc/posix-functions/pclose.texi: Mention the new module.
2676
2677 2011-09-17  Bruno Haible  <bruno@clisp.org>
2678
2679         popen: Support for MSVC.
2680         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
2681         * lib/popen.c (popen): Provide alternate definition for native Windows.
2682         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
2683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
2684         * modules/popen (Depends-on, configure.ac): Update condition.
2685         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
2686         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
2687         fixed.
2688
2689 2011-09-17  Bruno Haible  <bruno@clisp.org>
2690
2691         isnanl, isnand, isnanf: Work around MSVC bug.
2692         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
2693
2694 2011-09-17  Bruno Haible  <bruno@clisp.org>
2695
2696         sys_socket tests: Fix recent mistake.
2697         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
2698
2699 2011-09-17  Bruno Haible  <bruno@clisp.org>
2700
2701         putenv: Support for MSVC.
2702         * modules/putenv (Depends-on): Add environ.
2703         * lib/putenv.c (environ): Disable declaration.
2704         * lib/unistd.in.h: Update comment.
2705
2706 2011-09-17  Bruno Haible  <bruno@clisp.org>
2707
2708         math: Avoid macro redefinition warnings on MSVC.
2709         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
2710         Undefine before redefining.
2711
2712 2011-09-17  Bruno Haible  <bruno@clisp.org>
2713
2714         doc: Mention functions which are declared as macros.
2715         * doc/posix-functions/*[fl].texi: Mention that some functions are
2716         defined as macros with arguments only.
2717
2718 2011-09-17  Bruno Haible  <bruno@clisp.org>
2719
2720         Add dependencies to new dirent related modules.
2721         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
2722         * modules/fts (Depends-on): Likewise.
2723         * modules/glob (Depends-on): Likewise.
2724         * modules/savedir (Depends-on): Likewise.
2725         * modules/scandir (Depends-on): Likewise.
2726         * modules/dirent-safer (Depends-on): Add opendir, closedir.
2727         * modules/fdopendir (Depends-on): Add opendir.
2728
2729 2011-09-17  Bruno Haible  <bruno@clisp.org>
2730
2731         inet_pton: Support for MSVC on Windows Vista or newer.
2732         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
2733         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
2734         HAVE_DECL_INET_PTON is defined.
2735         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2736         On platforms with <winsock2.h>, test whether inet_pton is declared in
2737         <ws2tcpip.h>. If so, arrange to replace it.
2738         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2739         REPLACE_INET_PTON.
2740         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
2741         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
2742         (Depends-on, configure.ac): Update condition.
2743         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
2744
2745 2011-09-17  Bruno Haible  <bruno@clisp.org>
2746
2747         inet_ntop: Support for MSVC on Windows Vista or newer.
2748         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
2749         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
2750         HAVE_DECL_INET_NTOP is defined.
2751         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2752         On platforms with <winsock2.h>, test whether inet_ntop is declared in
2753         <ws2tcpip.h>. If so, arrange to replace it.
2754         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2755         REPLACE_INET_NTOP.
2756         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
2757         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
2758         (Depends-on, configure.ac): Update condition.
2759         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
2760
2761 2011-09-16  Eric Blake  <eblake@redhat.com>
2762
2763         test-fsync: yet another enhancement
2764         * tests/test-fsync.c (main): Also test behavior on read-only text
2765         file.
2766
2767 2011-09-16  Bruno Haible  <bruno@clisp.org>
2768
2769         Enhance fsync, fdatasync tests.
2770         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
2771         * tests/test-fdatasync.c (main): Likewise.
2772
2773 2011-09-16  Bruno Haible  <bruno@clisp.org>
2774
2775         Support for MSVC compiler: Ensure mode_t gets defined.
2776         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
2777         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2778         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2779         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
2780         * tests/test-fcntl-h.c: Check that mode_t is defined.
2781         * tests/test-sys_stat.c: Likewise.
2782         * tests/test-sys_types.c: Likewise.
2783         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
2784         * doc/posix-headers/sys_stat.texi: Likewise.
2785         * doc/posix-headers/sys_types.texi: Likewise.
2786
2787 2011-09-16  Bruno Haible  <bruno@clisp.org>
2788
2789         sys_stat: Support for MSVC.
2790         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
2791         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
2792         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
2793         MSVC.
2794
2795 2011-09-16  Bruno Haible  <bruno@clisp.org>
2796
2797         Support for MSVC compiler: Ensure off_t gets defined.
2798         * lib/unistd.in.h: Include <sys/types.h>.
2799         * tests/test-fcntl-h.c: Check that off_t is defined.
2800         * tests/test-sys_stat.c: Likewise.
2801         * tests/test-sys_types.c: Likewise.
2802
2803 2011-09-16  Eric Blake  <eblake@redhat.com>
2804
2805         fdatasync: port to Solaris
2806         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
2807         * modules/fdatasync (Link): Document it.
2808         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
2809
2810         fdatasync: port to MacOS X 10.7
2811         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
2812         declared.
2813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
2814         * modules/unistd (Makefile.am): Substitute it.
2815         * lib/unistd.in.h (fdatasync): Declare on MacOS.
2816         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
2817
2818         fdatasync: minor improvements
2819         * modules/fdatasync (Depends-on): Add condition for fsync.
2820         * lib/fdatasync.c (fdatasync): Add comment.
2821         * tests/test-unistd-c++.cc: Test fdatasync.
2822
2823         unistd: update refs to newer POSIX
2824         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
2825         Suggested by Bruno Haible.
2826
2827         fdatasync: new module
2828         * modules/fsync (Description): Document difference to fdatasync.
2829         * modules/fdatasync: New module.
2830         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
2831         * lib/fdatasync.c (fdatasync): Likewise.
2832         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
2833         defaults.
2834         * modules/unistd (Makefile.am): Set witnesses.
2835         * lib/unistd.in.h (fdatasync): Declare.
2836         * MODULES.html.sh: Document it.
2837         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
2838         * modules/fdatasync-tests: New test.
2839         * tests/test-fdatasync.c: Likewise.
2840
2841 2011-09-16  Eric Blake  <eblake@redhat.com>
2842
2843         test-fsync: enhance tests
2844         * modules/fsync-tests (Depends-on): Add errno, for mingw.
2845         * tests/test-fsync.c (main): Enhance test.
2846
2847 2011-09-15  Bruno Haible  <bruno@clisp.org>
2848
2849         Support for MSVC compiler: Ensure ssize_t gets defined.
2850         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
2851         * doc/posix-headers/stdio.texi: Likewise.
2852         * modules/stdio (Depends-on): Add ssize_t.
2853         * modules/sys_socket (Depends-on): Likewise.
2854         * modules/sys_types (Depends-on): Likewise.
2855         * modules/sys_uio (Depends-on): Likewise.
2856         * modules/unistd (Depends-on): Likewise.
2857         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
2858         * tests/test-sys_types.c: Check that ssize_t is defined.
2859
2860 2011-09-14  Bruno Haible  <bruno@clisp.org>
2861
2862         Avoid using #, the m4 comment starter character, near brackets.
2863         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
2864         delimiter character in sed expressions.
2865         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2866         Suggested by Eric Blake.
2867
2868         Properly quote AC_CHECK_DECLS' 4th argument.
2869         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
2870         argument.
2871         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2872         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2873         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2874         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2875         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2876         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
2877         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
2878         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
2879         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
2880         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
2881         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
2882         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2883         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2884         * m4/isinf.m4 (gl_ISINF): Likewise.
2885         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2886         * m4/readutmp.m4 (gl_READUTMP): Likewise.
2887         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2888         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2889         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2890         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2891         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2892         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2893         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
2894         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2895         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2896         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2897         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
2898         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2899         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2900         Reported by Eric Blake.
2901
2902         Properly quote AC_CHECK_DECL's 4th argument.
2903         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
2904         argument.
2905         * m4/argp.m4 (gl_ARGP): Likewise.
2906         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2907         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2908         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2909         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2910         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
2911         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2912         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2913         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2914         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2915         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2916         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2917         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2918         Reported by Eric Blake.
2919
2920 2011-09-14  Eric Blake  <eblake@redhat.com>
2921
2922         opendir: avoid compile warning
2923         * lib/opendir.c (includes): Always include errno.h.
2924         Reported by Tatsuro MATSUOKA.
2925
2926 2011-09-14  Jim Meyering  <meyering@redhat.com>
2927
2928         maint.mk: sc_tight_scope: propagate failure from sub-make
2929         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
2930         Reported by Martin von Gagern.
2931
2932 2011-09-13  Bruno Haible  <bruno@clisp.org>
2933
2934         tempname: Support for MSVC.
2935         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
2936         MSVC.
2937         * modules/tempname (Depends-on): Add fcntl-h.
2938
2939 2011-09-13  Bruno Haible  <bruno@clisp.org>
2940
2941         sys_time: Support for MSVC.
2942         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
2943         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
2944         include <winsock2.h>.
2945         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
2946         function declarations that collide with POSIX.
2947         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
2948         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2949
2950 2011-09-13  Bruno Haible  <bruno@clisp.org>
2951
2952         stat: Support for MSVC.
2953         * lib/stat.c: Include pathmax.h.
2954         * modules/stat (Depends-on): Add pathmax.
2955
2956         pathmax: Support for native Windows.
2957         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
2958
2959 2011-09-12  Bruno Haible  <bruno@clisp.org>
2960
2961         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
2962         * lib/dirent.in.h (struct dirent): New type.
2963         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
2964         DT_WHT): New macros.
2965         (DIR): New type.
2966         (opendir, closedir): Declare only if the module 'opendir' is enabled.
2967         (readdir, rewinddir): New declarations.
2968         * lib/dirent-private.h: New file.
2969         * lib/opendir.c: New file.
2970         * lib/readdir.c: New file.
2971         * lib/rewinddir.c: New file.
2972         * lib/closedir.c: New file.
2973         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
2974         * m4/opendir.m4: New file.
2975         * m4/readdir.m4: New file.
2976         * m4/rewinddir.m4: New file.
2977         * m4/closedir.m4: New file.
2978         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
2979         REPLACE_CLOSEDIR here.
2980         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
2981         readdir, rewinddir are declared.
2982         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
2983         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
2984         HAVE_REWINDDIR, HAVE_CLOSEDIR.
2985         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
2986         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
2987         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
2988         * modules/opendir: New file.
2989         * modules/readdir: New file.
2990         * modules/rewinddir: New file.
2991         * modules/closedir: New file.
2992         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
2993         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
2994         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
2995         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
2996         * NEWS: Mention the 'fchdir' change.
2997
2998 2011-09-11  Bruno Haible  <bruno@clisp.org>
2999
3000         asm-underscore.m4: Support for MSVC.
3001         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3002         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3003
3004 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3005
3006         Doc about crypt functions.
3007         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3008         needing for _GNU_SOURCE to get crypt.
3009         * doc/posix-functions/encrypt.texi: Likewise.
3010         * doc/posix-functions/setkey.texi: Likewise.
3011
3012 2011-09-11  Bruno Haible  <bruno@clisp.org>
3013
3014         doc: Update regarding MSVC 9.
3015         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3016         tested".
3017         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3018         * doc/posix-headers/*.texi: Likewise.
3019         * doc/pastposix-functions/*.texi: Likewise.
3020         * doc/glibc-functions/*.texi: Likewise.
3021         * doc/glibc-headers/*.texi: Likewise.
3022
3023 2011-09-11  Bruno Haible  <bruno@clisp.org>
3024
3025         unistd et al.: Don't assume <unistd.h> exists.
3026         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3027         does not exist.
3028         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3029         exist. But include <stdlib.h>.
3030         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3031         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3032         symlink() does not exist.
3033         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3034         include <io.h> instead.
3035         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3036         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3037         include <direct.h> instead.
3038         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3039         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3040         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3041         <io.h> instead.
3042         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3043         correctly if the system does not have hard links.
3044         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3045         <direct.h> instead.
3046         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3047         it when looking for function declarations.
3048         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3049         <direct.h> and <io.h> instead.
3050         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3051
3052 2011-09-11  Bruno Haible  <bruno@clisp.org>
3053
3054         strcase: Support for MSVC.
3055         * modules/strcase (Status, Notice): Remove obsoletion mark.
3056         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3057         * doc/posix-functions/strncasecmp.texi: Likewise.
3058
3059         strings: Don't assume <strings.h> exists.
3060         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3061         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3062         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3063         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3064
3065 2011-09-11  Bruno Haible  <bruno@clisp.org>
3066
3067         dirent: Don't assume <dirent.h> exists.
3068         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3069         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3070         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3071         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3072
3073 2011-09-11  Bruno Haible  <bruno@clisp.org>
3074
3075         Fix wint_t on MSVC.
3076         * lib/wchar.in.h (wint_t): On MSVC, override it.
3077         * lib/wctype.in.h (wint_t): Likewise.
3078         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3079         MSVC.
3080         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3081         * doc/posix-headers/wctype.texi: Likewise.
3082
3083 2011-09-11  Bruno Haible  <bruno@clisp.org>
3084
3085         sys_types: Fix typo.
3086         * lib/sys_types.in.h: Fix typo in comment.
3087         Reported by Paul Eggert.
3088
3089         Support for MSVC compiler: Ensure size_t gets defined.
3090         * modules/strings (Depends-on): Add 'sys_types'.
3091         * modules/sys_uio (Depends-on): Likewise.
3092         * lib/sys_uio.in.h: Update comment.
3093
3094         C++ tests for module 'sys_types'.
3095         * modules/sys_types-c++-tests: New file.
3096         * tests/test-sys_types-c++.cc: New file.
3097
3098         Tests for module 'sys_types'.
3099         * modules/sys_types-tests: New file.
3100         * tests/test-sys_types.c: New file.
3101
3102         New module 'sys_types'.
3103         * lib/sys_types.in.h: New file.
3104         * m4/sys_types_h.m4: New file.
3105         * modules/sys_types: New file.
3106         * doc/posix-headers/sys_types.texi: Mention the new module and the
3107         size_t problem on MSVC 9.
3108
3109 2011-09-11  Bruno Haible  <bruno@clisp.org>
3110
3111         Support for MSVC compiler: Avoid division by a literal 0.
3112         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3113         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3114         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3115         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3116         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3117         * tests/infinity.h: New file.
3118         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3119         on MSVC.
3120         * tests/test-ceilf1.c: Include infinity.h.
3121         (main): Use Infinityf.
3122         * tests/test-ceil1.c: Include infinity.h.
3123         (main): Use Infinityd.
3124         * tests/test-ceill.c: Include infinity.h.
3125         (main): Use Infinityl.
3126         * tests/test-dprintf-posix.c: Include infinity.h.
3127         (test_function): Use Infinityd.
3128         * tests/test-floorf1.c: Include infinity.h.
3129         (main): Use Infinityf.
3130         * tests/test-floor1.c: Include infinity.h.
3131         (main): Use Infinityd.
3132         * tests/test-floorl.c: Include infinity.h.
3133         (main): Use Infinityl.
3134         * tests/test-fprintf-posix.c: Include infinity.h.
3135         (test_function): Use Infinityd.
3136         * tests/test-frexp.c: Include infinity.h.
3137         (main): Use Infinityd.
3138         * tests/test-frexpl.c: Include infinity.h.
3139         (main): Use Infinityl.
3140         * tests/test-isfinite.c: Include infinity.h.
3141         (test_isfinitef): Use Infinityf.
3142         (test_isfinited): Use Infinityd.
3143         (test_isfinitel): Use Infinityl.
3144         * tests/test-isinf.c: Include infinity.h.
3145         (test_isinff): Use Infinityf.
3146         (test_isinfd): Use Infinityd.
3147         (test_isinfl): Use Infinityl.
3148         * tests/test-isnan.c: Include infinity.h.
3149         (test_float): Use Infinityf.
3150         (test_double): Use Infinityd.
3151         (test_long_double): Use Infinityl.
3152         * tests/test-isnanf.h: Include infinity.h.
3153         (main): Use Infinityf.
3154         * tests/test-isnand.h: Include infinity.h.
3155         (main): Use Infinityd.
3156         * tests/test-isnanl.h: Include infinity.h.
3157         (main): Use Infinityl.
3158         * tests/test-ldexpl.c: Include infinity.h.
3159         (main): Use Infinityl.
3160         * tests/test-printf-posix.h: Include infinity.h.
3161         (test_function): Use Infinityd.
3162         * tests/test-roundf1.c: Include infinity.h.
3163         (main): Use Infinityf.
3164         * tests/test-round1.c: Include infinity.h.
3165         (main): Use Infinityd.
3166         * tests/test-roundl.c: Include infinity.h.
3167         (main): Use Infinityl.
3168         * tests/test-signbit.c: Include infinity.h.
3169         (test_signbitf): Use Infinityf.
3170         (test_signbitd): Use Infinityd.
3171         (test_signbitl): Use Infinityl.
3172         * tests/test-snprintf-posix.h: Include infinity.h.
3173         (test_function): Use Infinityd, Infinityl.
3174         * tests/test-sprintf-posix.h: Include infinity.h.
3175         (test_function): Use Infinityd, Infinityl.
3176         * tests/test-truncf1.c: Include infinity.h.
3177         (main): Use Infinityf.
3178         * tests/test-trunc1.c: Include infinity.h.
3179         (main): Use Infinityd.
3180         * tests/test-truncl.c: Include infinity.h.
3181         (main): Use Infinityl.
3182         * tests/test-vasnprintf-posix.c: Include infinity.h.
3183         (test_function): Use Infinityd, Infinityl.
3184         * tests/test-vasprintf-posix.c: Include infinity.h.
3185         (test_function): Use Infinityd, Infinityl.
3186         * modules/ceilf-tests (Files): Add tests/infinity.h.
3187         * modules/ceil-tests (Files): Likewise.
3188         * modules/ceill-tests (Files): Likewise.
3189         * modules/dprintf-posix-tests (Files): Likewise.
3190         * modules/floorf-tests (Files): Likewise.
3191         * modules/floor-tests (Files): Likewise.
3192         * modules/floorl-tests (Files): Likewise.
3193         * modules/fprintf-posix-tests (Files): Likewise.
3194         * modules/frexp-tests (Files): Likewise.
3195         * modules/frexp-nolibm-tests (Files): Likewise.
3196         * modules/frexpl-tests (Files): Likewise.
3197         * modules/frexpl-nolibm-tests (Files): Likewise.
3198         * modules/isfinite-tests (Files): Likewise.
3199         * modules/isinf-tests (Files): Likewise.
3200         * modules/isnan-tests (Files): Likewise.
3201         * modules/isnanf-tests (Files): Likewise.
3202         * modules/isnanf-nolibm-tests (Files): Likewise.
3203         * modules/isnand-tests (Files): Likewise.
3204         * modules/isnand-nolibm-tests (Files): Likewise.
3205         * modules/isnanl-tests (Files): Likewise.
3206         * modules/isnanl-nolibm-tests (Files): Likewise.
3207         * modules/ldexpl-tests (Files): Likewise.
3208         * modules/printf-posix-tests (Files): Likewise.
3209         * modules/roundf-tests (Files): Likewise.
3210         * modules/round-tests (Files): Likewise.
3211         * modules/roundl-tests (Files): Likewise.
3212         * modules/signbit-tests (Files): Likewise.
3213         * modules/snprintf-posix-tests (Files): Likewise.
3214         * modules/sprintf-posix-tests (Files): Likewise.
3215         * modules/truncf-tests (Files): Likewise.
3216         * modules/trunc-tests (Files): Likewise.
3217         * modules/truncl-tests (Files): Likewise.
3218         * modules/vasnprintf-posix-tests (Files): Likewise.
3219         * modules/vasprintf-posix-tests (Files): Likewise.
3220         * modules/vdprintf-posix-tests (Files): Likewise.
3221         * modules/vfprintf-posix-tests (Files): Likewise.
3222         * modules/vprintf-posix-tests (Files): Likewise.
3223         * modules/vsnprintf-posix-tests (Files): Likewise.
3224         * modules/vsprintf-posix-tests (Files): Likewise.
3225         * modules/xprintf-posix-tests (Files): Likewise.
3226
3227 2011-09-11  Bruno Haible  <bruno@clisp.org>
3228
3229         Ensure pid_t gets defined.
3230         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
3231         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3232         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3233         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3234         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
3235         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3236         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3237         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3238         * tests/test-fcntl-h.c: Check that pid_t is defined.
3239         * tests/test-sched.c: Likewise.
3240         * tests/test-termios.c: Likewise.
3241         * tests/test-time.c: Likewise.
3242         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
3243         * doc/posix-headers/signal.texi: Likewise.
3244         * doc/posix-headers/sys_types.texi: Likewise.
3245         * doc/posix-headers/time.texi: Likewise.
3246
3247 2011-09-11  Bruno Haible  <bruno@clisp.org>
3248
3249         acl: Fix compilation on Solaris 10 (older version).
3250         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
3251         of ACE_EVERYONE.
3252         * lib/set-mode-acl.c (qset_acl): Likewise.
3253         Reported by Christian Jullien <eligis@orange.fr>.
3254
3255 2011-09-10  Bruno Haible  <bruno@clisp.org>
3256
3257         iconv, unsetenv: Add support for MSVC compiler.
3258         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
3259         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
3260
3261 2011-09-10  Bruno Haible  <bruno@clisp.org>
3262
3263         *printf: Add support for MSVC compiler.
3264         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
3265         handles the exception caused by the %n directive. When cross-compiling,
3266         guess no on native Windows.
3267         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3268         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
3269         emulate it through vsnprintf.
3270         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
3271         * doc/posix-functions/dprintf.texi: Update documentation regarding
3272         MSVC 9.
3273         * doc/posix-functions/fprintf.texi: Likewise.
3274         * doc/posix-functions/printf.texi: Likewise.
3275         * doc/posix-functions/snprintf.texi: Likewise.
3276         * doc/posix-functions/sprintf.texi: Likewise.
3277         * doc/posix-functions/swprintf.texi: Likewise.
3278         * doc/posix-functions/vdprintf.texi: Likewise.
3279         * doc/posix-functions/vfprintf.texi: Likewise.
3280         * doc/posix-functions/vprintf.texi: Likewise.
3281         * doc/posix-functions/vsnprintf.texi: Likewise.
3282         * doc/posix-functions/vsprintf.texi: Likewise.
3283         * doc/glibc-functions/asprintf.texi: Likewise.
3284         * doc/glibc-functions/obstack_printf.texi: Likewise.
3285         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3286         * doc/glibc-functions/vasprintf.texi: Likewise.
3287
3288 2011-09-10  Bruno Haible  <bruno@clisp.org>
3289
3290         nocrash: Add support for native Windows.
3291         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
3292
3293 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
3294             Bruno Haible  <bruno@clisp.org>
3295
3296         absolute-header, include-next: Add support for MSVC compiler.
3297         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
3298         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
3299         directory separator in #line directives.
3300         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
3301         recognize also backslash as directory separator in #line directives.
3302
3303 2011-09-08  Jim Meyering  <meyering@redhat.com>
3304
3305         maint.mk: mark the post-release commit log with "maint: " prefix
3306         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
3307         one-line commit-log summary.
3308
3309 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
3310             Bruno Haible  <bruno@clisp.org>
3311
3312         Doc about crypt functions.
3313         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
3314         systems.
3315         * doc/posix-functions/encrypt.texi: Likewise.
3316         * doc/posix-functions/setkey.texi: Likewise.
3317
3318 2011-09-08  Simon Josefsson  <simon@josefsson.org>
3319
3320         * lib/gc.h: Fix copyright header.
3321
3322 2011-09-07  Bruno Haible  <bruno@clisp.org>
3323
3324         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
3325         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
3326         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
3327
3328 2011-09-07  Bruno Haible  <bruno@clisp.org>
3329
3330         openat: Work around compilation error with OSF/1 5.1 DTK cc.
3331         * lib/fopen.c: Use different syntax for include of <stdio.h>.
3332         * lib/freopen.c: Likewise.
3333         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
3334         * lib/lstat.c: Likewise.
3335         * lib/stat.c: Likewise.
3336         * lib/open.c: Use different syntax for include of <fcntl.h>.
3337         * lib/openat.c: Include fcntl.h again, explicitly.
3338
3339 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
3340
3341         parse-datetime: document the newly accepted format
3342         * doc/parse-datetime.texi (Combined date and time of day items):
3343         New section.
3344
3345 2011-09-06  Bruno Haible  <bruno@clisp.org>
3346
3347         acl: Fix a test failure on newer Solaris 10 with ZFS.
3348         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
3349         ENOSYS as no ACL.
3350         Reported by Jim Meyering.
3351
3352 2011-09-06  Bruno Haible  <bruno@clisp.org>
3353
3354         acl: Update for AIX >= 5.3 with NFS.
3355         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
3356         ENOSYS as no ACL.
3357
3358         acl: Fix a test failure on AIX >= 5.3 with NFS.
3359         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
3360         as no ACL.
3361
3362 2011-09-06  Bruno Haible  <bruno@clisp.org>
3363
3364         acl: Fix a test failure on IRIX 6.5 with NFS.
3365         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
3366         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
3367         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
3368         * lib/copy-acl.c (qcopy_acl): Likewise.
3369
3370 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3371
3372         openat: port to AIX 7.1 with large files
3373         AIX 7.1 does a "#define openat open64at" if large files are in use,
3374         so we can't simply #undef openat.  Use the orig_openat trick (similar
3375         to orig_open in lib/open.c) to work around the problem.  Problem
3376         reported by Kevin Brott for GNU tar, in the thread containing
3377         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
3378         * lib/openat.c (__need_system_fcntl_h): Define first.
3379         Include <fcntl.h> and <sys/types.h> before undefining.
3380         (orig_openat) [HAVE_OPENAT]: New inline function.
3381         (openat) [HAVE_OPENAT]: Do not undef.
3382         (rpl_openat): Use orig_openat, not openat.
3383
3384 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3385             Bruno Haible  <bruno@clisp.org>
3386
3387         acl: Avoid errors on NonStop Kernel.
3388         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
3389         ENOTSUP errors.
3390
3391 2011-09-05  Bruno Haible  <bruno@clisp.org>
3392
3393         acl: Clean up Solaris code.
3394         * lib/acl-internal.h: Remove no-op #if.
3395         * lib/file-has-acl.c: Likewise.
3396         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
3397         * lib/copy-acl.c (qcopy_acl): Likewise.
3398
3399 2011-09-05  Bruno Haible  <bruno@clisp.org>
3400
3401         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
3402         binaries built on the original Solaris 10.
3403         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
3404         trivial.
3405
3406 2011-09-05  Bruno Haible  <bruno@clisp.org>
3407
3408         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3409         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
3410         10.
3411         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
3412         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
3413         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
3414         instead of acl_get, facl_get, acl_set, facl_set.
3415
3416 2011-09-05  Bruno Haible  <bruno@clisp.org>
3417
3418         copy-file: Try unit tests on more file systems.
3419         * tests/test-copy-file-1.sh: New file.
3420         * tests/test-copy-file-2.sh: New file.
3421         * modules/copy-file-tests (Files): Add them.
3422         (Makefile.am): Add them to TESTS.
3423
3424         acl: Try unit tests on more file systems.
3425         * tests/test-file-has-acl-1.sh: New file.
3426         * tests/test-file-has-acl-2.sh: New file.
3427         * tests/test-set-mode-acl-1.sh: New file.
3428         * tests/test-set-mode-acl-2.sh: New file.
3429         * tests/test-copy-acl-1.sh: New file.
3430         * tests/test-copy-acl-2.sh: New file.
3431         * modules/acl-tests (Files): Add them.
3432         (Makefile.am): Add them to TESTS.
3433
3434 2011-09-04  Bruno Haible  <bruno@clisp.org>
3435
3436         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3437         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
3438         10.
3439         (OLD_ALLOW, OLD_DENY): New macros.
3440         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
3441         ACE_ACCESS_ALLOWED_ACE_TYPE.
3442         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
3443         ACE_ACCESS_DENIED_ACE_TYPE.
3444         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
3445         (NEW_ACE_EXECUTE): Fix value.
3446         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
3447         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
3448         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
3449         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
3450         NEW_ACE_SYNCHRONIZE): New macros.
3451         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
3452         instead of acl_fromtext, acl_set, facl_set.
3453         Fixes a coreutils/tests/cp/perm failure.
3454
3455 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3456
3457         openat: test for fstatat (..., 0) bug
3458         Further testing with tar suggests that fstatat (..., 0)
3459         does not work in general, on AIX 7.1; see
3460         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
3461         So, give up entirely on AIX 7.1's fstatat, and fall back on our
3462         replacement fstatat (which is what older AIX releases were using
3463         anyway).
3464         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
3465         use is now changed to orig_fstatat.  This was probably the right
3466         thing to do anyway.
3467         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
3468         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
3469         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
3470         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
3471         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
3472         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
3473         if the bug is found.
3474
3475         openat: test for fstatat (AT_FDCWD, ..., 0) bug
3476         This tests for another fstatat bug on AIX 7.1:
3477         fstatat (AT_FDCWD, ..., 0) does not work.  See
3478         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
3479         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
3480         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
3481         (rpl_fstatat): Adjust so that it works around either (or both)
3482         bugs if present.
3483         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
3484
3485 2011-09-03  Karl Berry  <karl@gnu.org>
3486
3487         * doc/regex.texi (Character Class Operators): Avoid literal ":"
3488         in index entries.
3489
3490 2011-09-02  Bruno Haible  <bruno@clisp.org>
3491
3492         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
3493         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
3494         values of AR, ARFLAGS, RANLIB.
3495         Reported by John W. Eaton <jwe@gnu.org> for Octave.
3496
3497 2011-09-02  Bruno Haible  <bruno@clisp.org>
3498
3499         Find 'ar' program that fits with --host argument.
3500         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
3501
3502 2011-09-02  Bruno Haible  <bruno@clisp.org>
3503
3504         tests: init.sh: Support any non-GNU diff.
3505         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
3506         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
3507         Solaris 8.
3508
3509 2011-09-02  Bruno Haible  <bruno@clisp.org>
3510
3511         tests: init.sh: work also with any non-GNU diff that supports -u
3512         * tests/init.sh: Relax check for diff -u support.
3513         Rather than checking for GNU diff via --version, simply check
3514         for support for -u itself.  Useful at least on OpenBSD 4.9,
3515         AIX 7.1, IRIX 6.5, and Solaris 10.
3516
3517 2011-09-01  Bruno Haible  <bruno@clisp.org>
3518
3519         strtoimax, strtoumax: Document problem on HP-UX 11.
3520         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
3521         * doc/posix-functions/strtoumax.texi: Likewise.
3522
3523 2011-09-01  Bruno Haible  <bruno@clisp.org>
3524
3525         strtoumax: Avoid link error on OSF/1 with DTK cc.
3526         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
3527         defined as a function.
3528         * modules/strtoumax (Depends-on, configure.ac): Test only whether
3529         strtoumax is defined, not whether it is declared.
3530
3531 2011-09-01  Bruno Haible  <bruno@clisp.org>
3532
3533         strtoimax: Avoid link error on OSF/1 with DTK cc.
3534         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
3535         defined as a function.
3536         * modules/strtoimax (Depends-on, configure.ac): Test only whether
3537         strtoimax is defined, not whether it is declared.
3538
3539 2011-09-01  Bruno Haible  <bruno@clisp.org>
3540
3541         imaxdiv: Avoid link error on OSF/1 with DTK cc.
3542         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
3543         as a function.
3544         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
3545         whether it is declared.
3546
3547 2011-09-01  Bruno Haible  <bruno@clisp.org>
3548
3549         imaxabs: Avoid link error on OSF/1 with DTK cc.
3550         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
3551         as a function.
3552         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
3553         whether it is declared.
3554
3555 2011-09-01  Bruno Haible  <bruno@clisp.org>
3556
3557         Tests for module 'strtoumax'.
3558         * modules/strtoumax-tests: New file.
3559         * tests/test-strtoumax.c: New file.
3560
3561         Tests for module 'strtoimax'.
3562         * modules/strtoimax-tests: New file.
3563         * tests/test-strtoimax.c: New file.
3564
3565         Tests for module 'imaxdiv'.
3566         * modules/imaxdiv-tests: New file.
3567         * tests/test-imaxdiv.c: New file.
3568
3569         Tests for module 'imaxabs'.
3570         * modules/imaxabs-tests: New file.
3571         * tests/test-imaxabs.c: New file.
3572
3573 2011-09-01  Bruno Haible  <bruno@clisp.org>
3574
3575         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
3576         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
3577         pthread_create.
3578
3579 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3580
3581         openat: work around AIX 7.1 fstatat issue
3582         This should fix the problem that was not properly fixed
3583         in the previous change, dated 2011-08-30.
3584         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
3585         __need_system_stat_h defined.
3586         (orig_fstatat) [HAVE_FSTATAT]: New function.
3587         (rpl_fstatat): Go back to the old way of doing things,
3588         except call orig_fstatat instead of fstatat.
3589         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
3590         Remove unnecessary check whether fstatat fills in st_size etc.
3591
3592 2011-09-01  Bruno Haible  <bruno@clisp.org>
3593
3594         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
3595         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
3596         just include the system's header.
3597
3598 2011-08-31  Jim Meyering  <meyering@redhat.com>
3599
3600         tests: avoid spurious assertion failure in test-float.c on ppc64
3601         * tests/test-float.c (test_long_double): Comment out an assertion,
3602         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
3603         with gcc-4.4.4.
3604
3605         maint: indent with spaces, not TABs
3606         I need to get in the habit of running gnulib's "make check".
3607         Both of these would have been caught.
3608         * m4/largefile.m4: Indent with spaces, not TABs.
3609         * lib/parse-datetime.y (iso_8601_time): Likewise.
3610         Spotted by Pádraig Brady.
3611
3612         test-parse-datetime.c: accommodate a relatively strict gcc warning
3613         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
3614         to avoid a warning from gcc's -Werror=missing-declarations.
3615         Insert a few spaces-before-funcall-parenthesis.
3616
3617 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
3618
3619         parse-datetime: accept ISO 8601 date and time rep with "T" separator
3620         The parser now accepts ISO 8601 date-time strings with "T" as the
3621         separator.  It has long parsed dates like "2004-02-29 16:21:42"
3622         with a space between the date and time strings.  Now it also parses
3623         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
3624         variants like "2004-02-29T16:21:42.333-07:00"
3625         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
3626         of day representation using the 'T' separator character.
3627         * doc/parse-datetime.texi (General date syntax): replace use of
3628         deprecated --iso-8601 option with --rfc-3339 in example of date
3629         command output formats that can be parsed.
3630         * tests/test-parse-datetime.c (tm_diff): New function, taken from
3631         lib/parse-datetime.y.
3632         (gmt_offset): New function.
3633         (main): Add additional test cases to validate ISO8601 extended
3634         date and time of day parsing.
3635
3636 2011-08-31  Bruno Haible  <bruno@clisp.org>
3637
3638         freopen: Documentation.
3639         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
3640         name.
3641         Reported by Claudio Bley <claudio.bley@gmail.com>.
3642
3643 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
3644
3645         freopen: Don't crash if the filename argument is NULL.
3646         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
3647         NULL.
3648
3649 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3650
3651         openat: work around AIX 7.1 fstatat bug
3652         Problem reported by Kevin Brott for GNU tar, in the thread containing
3653         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
3654         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
3655         FSTATAT_ST_SIZE_ETC_BROKEN.
3656         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
3657         rpl_fstatat.
3658         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
3659         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
3660         AC_CHECK_FUNCS_ONCE for fstatat.
3661         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
3662         fchmodat, mkdirat, openat and unlinkat.
3663
3664 2011-08-30  Bruno Haible  <bruno@clisp.org>
3665
3666         Avoid endless recursions if config.h includes some header files.
3667         * lib/fopen.c (__need_FILE): Define already before including config.h.
3668         * lib/freopen.c (__need_FILE): Likewise.
3669         * lib/open.c (__need_system_fcntl_h): Likewise.
3670         * lib/stat.c (__need_system_sys_stat_h): Likewise.
3671         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
3672         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3673
3674 2011-08-25  Karl Berry  <karl@gnu.org>
3675
3676         * config/srclist.txt (ylwrap): new try.
3677         * build-aux/ylwrap: new file.
3678
3679 2011-08-23  Bruno Haible  <bruno@clisp.org>
3680
3681         tmpdir: Use a good default directory on native Windows.
3682         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
3683         (P_tmpdir): Default to _P_tmpdir on native Windows.
3684         (path_search): On native Windows, try the value returned by GetTempPath
3685         before trying P_tmpdir.
3686         * modules/tmpdir (Depends-on): Add pathmax.
3687         Suggested by John Darrington <john@darrington.wattle.id.au>.
3688
3689 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
3690
3691         doc: fix typo in README-release
3692         * top/README-release: Capitalize first word of a sentence.
3693
3694 2011-08-19  Jim Meyering  <meyering@redhat.com>
3695
3696         fts: do not exhaust memory when processing million-entry directories
3697         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
3698         directory would require about 256*N bytes of memory.  Thus, it was
3699         easy to construct a directory too large to be processed by any of
3700         those tools.  With this change, fts' maximum memory utilization is
3701         now limited to around 30MB.
3702         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
3703         (fts_read): When we've processed the final entry (i.e., when
3704         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
3705         using the parent entry to read any remaining entries.  Dispatch
3706         depending on what fts_build returns:
3707         - NULL+stop, aka failure: stop
3708         - NULL otherwise: move up in the dir hierarchy
3709         - non-NULL: handle this new entry
3710         (fts_build): Declare and use new local, continue_readdir.
3711         Prepare to be called from fts_read, when the entries
3712         from a partially-read directory have just been exhausted.
3713         In that case, we'll skip the opendir and instead use the parent's
3714         fts_dirp and derive dir_fd from that.
3715         Finally, in the readdir loop, if we read max_entries entries,
3716         exit the loop ensuring *not* to call closedir.  This is required
3717         so that fts_dirp can be reused on a subsequent call.
3718         Prompted by Ben England's report of memory exhaustion in find
3719         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
3720
3721         maint: fts: move decl of `dp' down into while loop; split a long line
3722         * lib/fts.c (fts_build): No semantic change.
3723
3724         fts: add/use new struct member, fts_dirp
3725         We are about to use this to manage any directory with
3726         too many entries to read all of them into memory at once.
3727         To do that, we'll need to save the DIR* pointer in each
3728         affected FTSENT struct.
3729         * lib/fts_.h: Include <dirent.h>.
3730         (struct FTSENT) [fts_dirp]: New member.
3731         * lib/fts.c (closedir_and_clear): Define.
3732         Use it in place of closedir so that we are sure to
3733         clear the new fts_dirp member when done with it.
3734         (fts_alloc): Initialize the new member.
3735         (fts_lfree): Free, if needed.
3736
3737         maint: fts: give __opendir2 a new parameter and rename
3738         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
3739         than surreptitiously using sole caller's "dir_fd".
3740         (fts_opendir): Rename from __opendir2.
3741
3742         maint: fts.c: remove __opendir2's now-unused parameter, oflag
3743         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
3744
3745         maint: fts.c: correct off-by-one indentation
3746         * lib/fts.c (fts_build): Correct indentation, change style
3747         of a couple of block comments, and bracing style.
3748
3749         maint: fts.c: move __opendir2 #define "up" out of function body
3750         * lib/fts.c (__opendir2): Move "up".  No semantic change.
3751
3752         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
3753         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
3754         out for a long time and besides was useful only on BSD systems.
3755
3756 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3757
3758         regex: port to Stratus OpenVOS
3759         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
3760         define to empty, rather than attempting nonportable optimizations.
3761         Problem reported by Paul Green in:
3762         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
3763         and fix suggested by Eric Blake in:
3764         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
3765
3766 2011-08-17  Eric Blake  <eblake@redhat.com>
3767
3768         getcwd: fix test failures on mingw
3769         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
3770         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
3771         test if long directory cannot be created, and allow mingw errno.
3772
3773         getcwd-lgpl: fix m4 to match relaxed test for BSD
3774         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
3775         (gl_FUNC_GETCWD_SIGNATURE): New macro.
3776         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
3777         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
3778         signature problem.
3779
3780         getcwd: fix compilation on mingw64
3781         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
3782         getcwd.
3783         Reported by Marc-André Lureau.
3784
3785         pipe2: silence compiler warning
3786         * lib/pipe2.c (pipe2): Hide label if it is not used.
3787
3788 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
3789
3790         relocatable-prog: fix link error
3791         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
3792         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
3793         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
3794         into modules/relocatable-lib without noticing that
3795         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
3796         also needs to build relocatable.c.
3797
3798 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3799
3800         getaddrinfo: fix sh typo in gai_strerrorA decl checking
3801         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
3802         shell code: it contained a 'break' that was not in a loop.
3803         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
3804         via a shell-language loop; this may have been true in old Autoconf
3805         versions, but it's not true in Autoconf 2.68.  I found this bug
3806         when testing coreutils git on Solaris 8, whose shell complains
3807         about the syntax error.
3808
3809 2011-08-12  Simon Josefsson  <simon@josefsson.org>
3810
3811         * lib/base64.c: Fix comment to reference RFC 4648.
3812         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
3813         <gvtulder@gmail.com>.
3814
3815 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
3816
3817         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
3818
3819         po/Makefile.in.in: fix make -q problem
3820         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
3821         rule, since there's no file named 'check-macro-version' and its
3822         use as a file breaks make -q.
3823         (all): Don't depend on check-macro-version.
3824         (CHECK_MACRO_VERSION): New macro.
3825         (stamp-po): Use it.
3826
3827         configmake: fix make -q problem
3828         * modules/configmake (configmake.h): Update configmake.h's time stamp
3829         even if the file does not change.  Otherwise, 'make -q' fails.
3830         Problem reported by Simon Josefsson in
3831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
3832
3833 2011-08-11  Jim Meyering  <meyering@redhat.com>
3834
3835         git-version-gen: correct the advice in a comment
3836         * build-aux/git-version-gen: Correct comment.
3837         Don't recommend to list .tarball-version in .gitignore.
3838
3839 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3840
3841         base64: fix off-by-one buffer size bug
3842         Problem and (trivial) fix reported by Gijs van Tulder in
3843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
3844         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
3845         * tests/test-base64.c (main): Catch the bug.
3846
3847 2011-08-10  Eric Blake  <eblake@redhat.com>
3848
3849         closein: correct comments
3850         * lib/closein.c (close_stdin): Improve comments.
3851
3852 2011-08-09  Bruno Haible  <bruno@clisp.org>
3853
3854         More tests for 'fseeko'.
3855         * tests/test-fseeko3.c: New file, from Eric Blake.
3856         * tests/test-fseeko3.sh: New file.
3857         * modules/fseeko-tests (Files): Add them.
3858         (TESTS): Add test-fseeko3.sh.
3859         (check_PROGRAMS): Add test-fseeko3.
3860
3861 2011-08-09  Eric Blake  <eblake@redhat.com>
3862
3863         fseeko: remove unneeded hack
3864         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
3865
3866         fseeko: fix bug on glibc
3867         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
3868         Reported by John W. Eaton.
3869
3870 2011-08-08  Bruno Haible  <bruno@clisp.org>
3871
3872         unictype/base: Fix interoperability with preinstalled libunistring.
3873         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
3874         Reported by Simon Josefsson.
3875
3876 2011-08-08  Bruno Haible  <bruno@clisp.org>
3877
3878         iswblank: Detect declaration correctly.
3879         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
3880         AC_CHECK_DECLS invocation.
3881
3882 2011-08-08  Bruno Haible  <bruno@clisp.org>
3883
3884         tcgetsid: Detect declaration correctly.
3885         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
3886         AC_CHECK_DECLS invocation.
3887         Reported by Simon Josefsson.
3888
3889 2011-08-08  Eric Blake  <eblake@redhat.com>
3890
3891         largefile: fix typo that regressed large file support
3892         * modules/largefile (configure.ac-early): Fix section name.
3893
3894 2011-08-06  Karl Berry  <karl@gnu.org>
3895
3896         * MODULES.html.sh (func_all_files): _Noreturn is no longer
3897         a separate module.
3898
3899 2011-08-05  Simon Josefsson  <simon@josefsson.org>
3900
3901         openat: Fix warnings and commens when building unlinkat.c on Hurd.
3902         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
3903         get prototype for free.
3904
3905 2011-08-04  Bruno Haible  <bruno@clisp.org>
3906
3907         Tests for module 'pathmax'.
3908         * modules/pathmax-tests: New file.
3909         * tests/test-pathmax.c: New file.
3910
3911         canonicalize-lgpl: Support larger filenames on the Hurd.
3912         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
3913         Reported by Paul Eggert.
3914
3915         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
3916         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
3917         * lib/chdir-long.h: Include pathmax.h.
3918         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
3919         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
3920         (PATH_MAX): Remove code that is done by pathmax.h.
3921         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
3922         * lib/tmpfile.c: Add a comment.
3923         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
3924         * modules/chdir-long (Depends-on): Add pathmax.
3925         * modules/getcwd (Depends-on): Add pathmax.
3926         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
3927         is not defined.
3928         * doc/posix-headers/limits.texi: Mention the pathmax module.
3929         * NEWS: Mention the change.
3930
3931 2011-08-02  Bruno Haible  <bruno@clisp.org>
3932
3933         pthread_sigmask: Actually use results of gl_THREADLIB.
3934         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
3935         gl_THREADLIB, not gl_[]THREADLIB.
3936         Reported by Eric Blake.
3937
3938 2011-08-02  Jim Meyering  <meyering@redhat.com>
3939
3940         maint.mk: relax the default _gl_TS_function_match regexp
3941         * top/maint.mk (_gl_TS_function_match): Don't require at least one
3942         space between function name and "(" in an "extern" declaration.
3943         That would fail to match a decl with no space there: extern void foo();
3944
3945 2011-07-31  Iain Nicol  <iain@thenicols.net>
3946
3947         git-version-gen: document that EXTRA_DIST must include .version
3948         * build-aux/git-version-gen: In the how-to-use comment, document
3949         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
3950         will fail when run from an unpacked distribution tarball.
3951
3952 2011-08-01  Bruno Haible  <bruno@clisp.org>
3953
3954         wctype-h: Fix last change.
3955         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
3956         REPLACE_TOWLOWER to 0.
3957         Reported by Sam Steingold <sds@gnu.org>.
3958
3959 2011-07-31  Bruno Haible  <bruno@clisp.org>
3960
3961         frexpl: Update autoconf test.
3962         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
3963         according to changes of 2011-06-20.
3964
3965 2011-07-31  Bruno Haible  <bruno@clisp.org>
3966
3967         sys_utsname: Add support for Minix.
3968         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
3969         <sys/utsname.h>.
3970         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3971         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
3972
3973 2011-07-31  Bruno Haible  <bruno@clisp.org>
3974
3975         strings: Add support for Minix.
3976         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
3977         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3978         * doc/posix-headers/strings.texi: Document the Minix problem.
3979
3980 2011-07-31  Bruno Haible  <bruno@clisp.org>
3981
3982         wctype-h: Add support for Minix.
3983         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
3984         REPLACE_TOWLOWER.
3985         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
3986         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
3987         REPLACE_ISWCNTRL.
3988
3989 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
3990
3991         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
3992         This is a performance improvement for 64-bit hosts: it causes the
3993         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
3994
3995 2011-07-31  Bruno Haible  <bruno@clisp.org>
3996
3997         stdioext: Add support for Minix.
3998         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
3999         * lib/fpurge.c (fpurge): Likewise.
4000         * lib/freadahead.c (freadahead): Likewise.
4001         * lib/freadable.c (freadable): Likewise.
4002         * lib/freading.c (freading): Likewise.
4003         * lib/freadptr.c (freadptr): Likewise.
4004         * lib/freadseek.c (freadptrinc): Likewise.
4005         * lib/fseeko.c (rpl_fseeko): Likewise.
4006         * lib/fseterr.c (fseterr): Likewise.
4007         * lib/fwritable.c (fwritable): Likewise.
4008         * lib/fwriting.c (fwriting): Likewise.
4009         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4010         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4011
4012 2011-07-31  Bruno Haible  <bruno@clisp.org>
4013
4014         errno: Port to Minix.
4015         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4016         ECONNABORTED are defined.
4017         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4018         GNULIB_defined_ECONNABORTED): New macros.
4019         * lib/strerror-override.h (strerror_override): Test also
4020         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4021         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4022         ECONNABORTED.
4023         * doc/posix-headers/errno.texi: Mention the Minix problem.
4024
4025 2011-07-31  Bruno Haible  <bruno@clisp.org>
4026
4027         Work around declaration collisions on Minix.
4028         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4029         defined, set REPLACE_MBSINIT.
4030         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4031         defined, set REPLACE_MBRTOWC.
4032         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4033         set REPLACE_MBRLEN.
4034         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4035         defined, set REPLACE_MBSRTOWCS.
4036         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4037         defined, set REPLACE_WCRTOMB.
4038         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4039         defined, set REPLACE_WCSRTOMBS.
4040
4041 2011-07-31  Bruno Haible  <bruno@clisp.org>
4042
4043         Add support for Minix with ACK compiler.
4044         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4045         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4046         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4047
4048 2011-07-31  Bruno Haible  <bruno@clisp.org>
4049
4050         Documentation about Minix.
4051         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4052         * doc/glibc-headers/*.texi: Likewise.
4053         * doc/posix-functions/*.texi: Likewise.
4054         * doc/glibc-functions/*.texi: Likewise.
4055
4056 2011-07-31  Bruno Haible  <bruno@clisp.org>
4057
4058         snippet/warn-on-use: Fix indentation.
4059         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4060
4061 2011-07-25  Jim Meyering  <meyering@redhat.com>
4062
4063         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4064         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4065         commands.
4066
4067 2011-07-27  Jim Meyering  <meyering@redhat.com>
4068
4069         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4070         * top/maint.mk (gl_extract_significant_defines_): Now that
4071         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4072         gnulib/lib/signal.in.h, and now that we recommend to
4073         define-if-undefined those two symbols in application code,
4074         we must filter them out of the "significant" list.
4075         This avoids a "make syntax-check" failure in coreutils.
4076
4077 2011-07-26  Eric Blake  <eblake@redhat.com>
4078
4079         warnings: add comments about previous patch
4080         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4081         * m4/include_next.m4: Likewise.
4082         * m4/warn-on-use.m4: Likewise.
4083         * m4/warnings.m4: Likewise, and simplify use.
4084         Suggested by Stefano Lattarini.
4085
4086         include-next, warnings: support older autoconf
4087         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4088         AS_VAR_PUSHDEF in a way that works with older autoconf.
4089         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4090         Reported by Daniel P. Berrange.
4091
4092 2011-07-25  Bruno Haible  <bruno@clisp.org>
4093
4094         fseek, ftell: Fix doc.
4095         * doc/posix-functions/fseek.texi: Reword statement about
4096         AC_SYS_LARGEFILE.
4097         * doc/posix-functions/ftell.texi: Likewise.
4098
4099 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4100             Bruno Haible  <bruno@clisp.org>
4101
4102         Add dependencies to the 'largefile' module.
4103         * modules/fopen (Depends-on): Add 'largefile'.
4104         * modules/freopen (Depends-on): Likewise.
4105         * modules/fseeko (Depends-on): Likewise.
4106         * modules/ftello (Depends-on): Likewise.
4107         * modules/glob (Depends-on): Likewise.
4108         * modules/lseek (Depends-on): Likewise.
4109         * modules/lstat (Depends-on): Likewise.
4110         * modules/mkostemp (Depends-on): Likewise.
4111         * modules/mkostemps (Depends-on): Likewise.
4112         * modules/mkstemp (Depends-on): Likewise.
4113         * modules/mkstemps (Depends-on): Likewise.
4114         * modules/open (Depends-on): Likewise.
4115         * modules/openat (Depends-on): Likewise.
4116         * modules/pread (Depends-on): Likewise.
4117         * modules/pwrite (Depends-on): Likewise.
4118         * modules/scandir (Depends-on): Likewise.
4119         * modules/stat (Depends-on): Likewise.
4120         * modules/tmpfile (Depends-on): Likewise.
4121         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4122         since the containing module now depends on the largefile module.
4123         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4124         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
4125         off_t is fixed by gnulib.
4126         * doc/posix-functions/freopen.texi: Likewise.
4127         * doc/posix-functions/fseeko.texi: Likewise.
4128         * doc/posix-functions/fstatat.texi: Likewise.
4129         * doc/posix-functions/ftello.texi: Likewise.
4130         * doc/posix-functions/glob.texi: Likewise.
4131         * doc/posix-functions/lseek.texi: Likewise.
4132         * doc/posix-functions/lstat.texi: Likewise.
4133         * doc/posix-functions/mkstemp.texi: Likewise.
4134         * doc/posix-functions/open.texi: Likewise.
4135         * doc/posix-functions/openat.texi: Likewise.
4136         * doc/posix-functions/pread.texi: Likewise.
4137         * doc/posix-functions/pwrite.texi: Likewise.
4138         * doc/posix-functions/scandir.texi: Likewise.
4139         * doc/posix-functions/stat.texi: Likewise.
4140         * doc/posix-functions/tmpfile.texi: Likewise.
4141         * doc/glibc-functions/mkostemp.texi: Likewise.
4142         * doc/glibc-functions/mkostemps.texi: Likewise.
4143         * doc/glibc-functions/mkstemps.texi: Likewise.
4144
4145 2011-07-25  Bruno Haible  <bruno@clisp.org>
4146
4147         fcntl: Move AC_LIBOBJ invocation to module description.
4148         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
4149         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
4150
4151         fcntl: Remove call-in from fchdir.m4.
4152         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
4153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
4154
4155         dup3: Remove potential call-in from fchdir.m4.
4156         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
4157         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
4158
4159         dup2: Move AC_LIBOBJ invocation to module description.
4160         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
4161         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
4162         Don't invoke AC_LIBOBJ.
4163         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
4164
4165         dup2: Remove call-in from fchdir.m4.
4166         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
4167         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
4168
4169         fclose: Move AC_LIBOBJ invocation to module description.
4170         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
4171         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
4172         to 1.
4173         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
4174
4175         fclose: Remove call-in from close.m4.
4176         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4177         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4178
4179         close: Move AC_LIBOBJ invocation to module description.
4180         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4181         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4182         1.
4183         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4184
4185         close: Remove call-in from fchdir.m4.
4186         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4187         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4188
4189         open: Move AC_LIBOBJ invocation to module description.
4190         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4191         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4192         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4193
4194         open: Remove call-in from fchdir.m4.
4195         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4196         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4197
4198         fchdir: Start to remove gl_REPLACE_* idiom.
4199         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4200         (gl_FUNC_FCHDIR): Invoke it.
4201
4202 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4203
4204         * lib/ftell.c (ftell): Comment out cast.
4205
4206         close: use gl_REPLACE_FCLOSE only if defined
4207         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
4208         is defined.  The close module doesn't depend on the fclose module
4209         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
4210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
4211         I reproduced the problem with "./gnulib-tool --test close sys_socket".
4212
4213 2011-07-24  Jim Meyering  <meyering@redhat.com>
4214
4215         test-select.h: avoid warning when using gcc's -Wmissing-declarations
4216         * tests/test-select.h (test_function): Declare as "static".
4217
4218 2011-07-24  Bruno Haible  <bruno@clisp.org>
4219
4220         doc: Mention the effects of AC_SYS_LARGEFILE.
4221         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
4222         on this function.
4223         * doc/posix-functions/aio_error.texi: Likewise.
4224         * doc/posix-functions/aio_fsync.texi: Likewise.
4225         * doc/posix-functions/aio_read.texi: Likewise.
4226         * doc/posix-functions/aio_return.texi: Likewise.
4227         * doc/posix-functions/aio_suspend.texi: Likewise.
4228         * doc/posix-functions/aio_write.texi: Likewise.
4229         * doc/posix-functions/fgetpos.texi: Likewise.
4230         * doc/posix-functions/fopen.texi: Likewise.
4231         * doc/posix-functions/freopen.texi: Likewise.
4232         * doc/posix-functions/fsetpos.texi: Likewise.
4233         * doc/posix-functions/fstatvfs.texi: Likewise.
4234         * doc/posix-functions/ftruncate.texi: Likewise.
4235         * doc/posix-functions/ftw.texi: Likewise.
4236         * doc/posix-functions/getrlimit.texi: Likewise.
4237         * doc/posix-functions/glob.texi: Likewise.
4238         * doc/posix-functions/lio_listio.texi: Likewise.
4239         * doc/posix-functions/lockf.texi: Likewise.
4240         * doc/posix-functions/mkstemp.texi: Likewise.
4241         * doc/posix-functions/mmap.texi: Likewise.
4242         * doc/posix-functions/nftw.texi: Likewise.
4243         * doc/posix-functions/openat.texi: Likewise.
4244         * doc/posix-functions/opendir.texi: Likewise.
4245         * doc/posix-functions/posix_fadvise.texi: Likewise.
4246         * doc/posix-functions/posix_fallocate.texi: Likewise.
4247         * doc/posix-functions/pread.texi: Likewise.
4248         * doc/posix-functions/pwrite.texi: Likewise.
4249         * doc/posix-functions/readdir.texi: Likewise.
4250         * doc/posix-functions/readdir_r.texi: Likewise.
4251         * doc/posix-functions/rewinddir.texi: Likewise.
4252         * doc/posix-functions/scandir.texi: Likewise.
4253         * doc/posix-functions/seekdir.texi: Likewise.
4254         * doc/posix-functions/setrlimit.texi: Likewise.
4255         * doc/posix-functions/statvfs.texi: Likewise.
4256         * doc/posix-functions/telldir.texi: Likewise.
4257         * doc/posix-functions/tmpfile.texi: Likewise.
4258         * doc/posix-functions/truncate.texi: Likewise.
4259         * doc/glibc-functions/fallocate.texi: Likewise.
4260         * doc/glibc-functions/fstatfs.texi: Likewise.
4261         * doc/glibc-functions/fts_children.texi: Likewise.
4262         * doc/glibc-functions/fts_read.texi: Likewise.
4263         * doc/glibc-functions/getdirentries.texi: Likewise.
4264         * doc/glibc-functions/mkostemp.texi: Likewise.
4265         * doc/glibc-functions/mkostemps.texi: Likewise.
4266         * doc/glibc-functions/mkstemps.texi: Likewise.
4267         * doc/glibc-functions/preadv.texi: Likewise.
4268         * doc/glibc-functions/pwritev.texi: Likewise.
4269         * doc/glibc-functions/sendfile.texi: Likewise.
4270         * doc/glibc-functions/statfs.texi: Likewise.
4271
4272 2011-07-24  Bruno Haible  <bruno@clisp.org>
4273
4274         doc: Fix typo.
4275         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
4276
4277 2011-07-24  Bruno Haible  <bruno@clisp.org>
4278
4279         doc: Mention fsusage.
4280         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
4281
4282 2011-07-24  Bruno Haible  <bruno@clisp.org>
4283
4284         doc: Mention new glibc headers and functions.
4285         * doc/glibc-headers/gshadow.texi: New file.
4286         * doc/glibc-functions/endsgent.texi: New file.
4287         * doc/glibc-functions/fgetsgent.texi: New file.
4288         * doc/glibc-functions/fgetsgent_r.texi: New file.
4289         * doc/glibc-functions/getsgent.texi: New file.
4290         * doc/glibc-functions/getsgent_r.texi: New file.
4291         * doc/glibc-functions/getsgnam.texi: New file.
4292         * doc/glibc-functions/getsgnam_r.texi: New file.
4293         * doc/glibc-functions/putsgent.texi: New file.
4294         * doc/glibc-functions/setsgent.texi: New file.
4295         * doc/glibc-functions/sgetsgent.texi: New file.
4296         * doc/glibc-functions/sgetsgent_r.texi: New file.
4297         * doc/glibc-functions/malloc_info.texi: New file.
4298         * doc/glibc-functions/preadv.texi: New file.
4299         * doc/glibc-functions/pwritev.texi: New file.
4300         * doc/glibc-functions/register_printf_modifier.texi: New file.
4301         * doc/glibc-functions/register_printf_specifier.texi: New file.
4302         * doc/glibc-functions/register_printf_type.texi: New file.
4303         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
4304         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
4305         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
4306         * doc/glibc-functions/pthread_getname_np.texi: New file.
4307         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
4308         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
4309         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
4310         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
4311         * doc/glibc-functions/pthread_setname_np.texi: New file.
4312         * doc/glibc-functions/pthread_sigqueue.texi: New file.
4313         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
4314         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
4315         * doc/glibc-functions/qsort_r.texi: New file.
4316         * doc/glibc-functions/quick_exit.texi: New file.
4317         * doc/glibc-functions/syncfs.texi: New file.
4318         * doc/gnulib.texi: Include them.
4319         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
4320         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
4321         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
4322         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4323         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4324         * doc/glibc-functions/execvpe.texi: Likewise.
4325
4326 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4327
4328         ftell: don't include <unistd.h>
4329         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
4330         guaranteed to define off_t, and the ftell module depends on the
4331         stdio module.
4332
4333         ftell: do not assume wraparound signed arithmetic
4334         * lib/ftell.c: Include <limits.h>.
4335         (ftell): Don't assume wraparound signed arithmetic.
4336
4337 2011-07-24  Bruno Haible  <bruno@clisp.org>
4338
4339         close: No longer depend on module 'fclose'.
4340         * modules/close (Depends-on): Remove fclose.
4341         * NEWS: Mention the change.
4342         Suggested by Sam Steingold <sds@gnu.org>.
4343
4344 2011-07-24  Bruno Haible  <bruno@clisp.org>
4345
4346         fsusage: Enable large volume support on AIX >= 5.2.
4347         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
4348         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
4349         instead of STAT_STATVFS.
4350         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
4351
4352         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
4353         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
4354         f_blocks field only on MacOS X.
4355
4356         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
4357         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
4358         * modules/fsusage (Depends-on): Add largefile.
4359
4360 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4361
4362         * README: Modernize discussion of signed integers.
4363         Assuming overflow wraparound is no longer safe.
4364         Mention ones' complement and signed magnitude.
4365
4366 2011-07-22  Bruno Haible  <bruno@clisp.org>
4367
4368         select tests, pselect tests: Refactor.
4369         * tests/test-select.h: New file, extracted from tests/test-select.c.
4370         (select_fn): New type.
4371         (test, do_select, do_select_nowait, do_select_wait, test_tty,
4372         test_connect_first, test_accept_first, test_pair, test_socket_pair,
4373         test_pipe): Add my_select argument.
4374         (test_function): Renamed from main. Add my_select argument.
4375         * tests/test-select.c: Move most code to tests/test-select.h. Include
4376         test-select.h.
4377         * modules/select-tests (Files): Add tests/test-select.h.
4378         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
4379         (my_select, main): New functions.
4380         * modules/pselect-tests (Files): Add tests/test-select.h,
4381         tests/macros.h, tests/signature.h.
4382         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
4383         (configure.ac): Check for <sys/wait.h>.
4384
4385 2011-07-22  Bruno Haible  <bruno@clisp.org>
4386
4387         sys_select tests: Check the signature of FD_*.
4388         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
4389         signature tests from here...
4390         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
4391         here.
4392         * modules/sys_select-tests (Files): Add tests/signature.h.
4393
4394 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4395
4396         largefile: new module, replacing large-inode
4397         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
4398         * MODULES.html.sh: Add largefile, remove large-inode.
4399         * modules/largefile, m4/largefile.m4: New files.
4400         * modules/large-inode, m4/large-inode.m4: Remove.
4401
4402         fsusage: port to MacOS X 10.7 with 4 TiB file systems
4403         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
4404         implementations that use only 32 bits to count blocks.
4405         On typical hosts with 1024-byte blocks, this fails with file
4406         systems as small as 4 TiB.  Problem reported by Herb Wartens
4407         <http://debbugs.gnu.org/9140> and this should also fix a similar
4408         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
4409
4410         large-inode: New module
4411         * MODULES.html.sh: Add it.
4412         * modules/large-inode, m4/large-inode.m4: New files.
4413
4414         extensions: Enable extensions on MacOS X 10.5 and later.
4415         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
4416
4417 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
4418
4419         file-has-acl: use acl_extended_file_nofollow if available
4420         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
4421         (acl_extended_file): New macro.
4422         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
4423         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
4424
4425 2011-07-21  Bruno Haible  <bruno@clisp.org>
4426
4427         Declare system functions in a way that works with C++.
4428         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
4429         declare fdopendir as extern "C".
4430         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
4431         declare frexpl as extern "C".
4432         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
4433         declare gai_strerror as extern "C".
4434         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
4435         programs, declare gai_strerror as extern "C".
4436         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
4437         declare getlogin_r as extern "C".
4438         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
4439         as extern "C".
4440         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
4441         declare ldexpl as extern "C".
4442         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
4443         as extern "C".
4444         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
4445         program, declare getmntinfo as extern "C".
4446         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
4447         stpncpy as extern "C".
4448         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
4449         program, declare __xpg_strerror_r as extern "C".
4450         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
4451         strndup as extern "C".
4452         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
4453         declare memset and bzero as extern "C".
4454         Reported by Sam Steingold <sds@gnu.org>.
4455
4456 2011-07-12  Jim Meyering  <meyering@redhat.com>
4457
4458         maint.mk: prohibit inclusion of "verify.h" without use
4459         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
4460
4461 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4462
4463         timer-time: A new module to check for timer_settime()
4464         * m4/timer_time.m4: Check for the posix function.
4465         * modules/timer-time: Add the new module.
4466         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
4467         Mention it.
4468
4469 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
4470             Bruno Haible  <bruno@clisp.org>
4471
4472         pthread_sigmask: assume POSIX threads if --avoid=threadlib
4473         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
4474         not defined, assume POSIX threads and look for pthread_sigmask in
4475         $LIBS, without changing $CPPFLAGS.
4476
4477 2011-07-19  Bruno Haible  <bruno@clisp.org>
4478
4479         strstr: Update cross-compilation guess.
4480         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
4481         CPUs, guess no, in view of glibc
4482         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
4483         Suggested by Eric Blake. Reported by Reuben Thomas.
4484
4485 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4486
4487         getopt-gnu: suppress core dumps from detection code
4488         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
4489         to suppress core dumps that may well occur on glibc systems.
4490         * modules/getopt-gnu: Depend on nocrash.
4491
4492 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4493
4494         pthread_sigmask: ensure usleep is declared
4495         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
4496         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
4497
4498 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4499
4500         doc: Document NonStop portability issues.
4501         * doc/posix-functions/sigaction.texi (sigaction):
4502         * doc/posix-headers/signal.texi (signal.h):
4503         Document NonStop.  See Joachim Schmitz in
4504         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
4505
4506 2011-07-15  Bruno Haible  <bruno@clisp.org>
4507
4508         ffsl, ffsll: Avoid unportable behaviour.
4509         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
4510
4511 2011-07-15  Bruno Haible  <bruno@clisp.org>
4512
4513         ffs: More tests.
4514         * tests/test-ffs.c (NBITS): New macro.
4515         (main): Add more tests.
4516         * tests/test-ffsl.c (NBITS): New macro.
4517         (main): Add more tests.
4518         * tests/test-ffsll.c (NBITS): New macro.
4519         (main): Add more tests.
4520
4521 2011-07-15  Eric Blake  <eblake@redhat.com>
4522
4523         ffsl, ffsll: new modules
4524         * modules/ffsl: New file.
4525         * modules/ffsll: Likewise.
4526         * m4/ffsl.m4: Likewise.
4527         * m4/ffsll.m4: Likewise.
4528         * lib/ffsl.c: Likewise.
4529         * lib/ffsl.h: Likewise.
4530         * lib/ffsll.c: Likewise.
4531         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
4532         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
4533         * modules/string (Makefile.am): Substitute witnesses.
4534         * lib/strings.in.h (ffsl, ffsll): Declare.
4535         * modules/ffsl-tests: New test file.
4536         * modules/ffsll-tests: Likewise.
4537         * tests/test-ffsl.c: Likewise.
4538         * tests/test-ffsll.c: Likewise.
4539         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4540         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
4541         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
4542
4543         ffs: fix m4 prerequisite
4544         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
4545
4546         ffs: avoid undefined behavior
4547         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
4548         * tests/test-ffs.c (naive, main): Avoid signed shifts.
4549         Reported by Bruno Haible.
4550
4551 2011-07-12  Bruno Haible  <bruno@clisp.org>
4552
4553         pthread_sigmask: Rely on module 'threadlib'.
4554         * modules/pthread_sigmask (Depends-on): Add threadlib.
4555         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
4556         is defined.
4557
4558 2011-07-12  Bruno Haible  <bruno@clisp.org>
4559
4560         regex: Depend on module 'strcase'.
4561         * modules/regex (Depends-on): Add strcase, for strcasecmp().
4562
4563 2011-07-12  Jim Meyering  <meyering@redhat.com>
4564
4565         warn-on-use: fix typo in file name
4566         * modules/snippet/warn-on-use (Files): Correct file name:
4567         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
4568
4569 2011-07-12  Bruno Haible  <bruno@clisp.org>
4570
4571         strings: Document module.
4572         * doc/posix-headers/strings.texi: Mention module 'strings'.
4573
4574 2011-07-12  Bruno Haible  <bruno@clisp.org>
4575
4576         Rename module '_Noreturn' to 'snippet/_Noreturn'.
4577         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
4578         (Files, Makefile.am): Update.
4579         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
4580         * modules/stdlib (Depends-on): Update.
4581
4582 2011-07-12  Bruno Haible  <bruno@clisp.org>
4583
4584         * NEWS: Mention the changes.
4585
4586         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
4587         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
4588         (Files, Makefile.am): Update.
4589         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
4590         * modules/arpa_inet (Depends-on): Update.
4591         * modules/ctype (Depends-on): Update.
4592         * modules/dirent (Depends-on): Update.
4593         * modules/fcntl-h (Depends-on): Update.
4594         * modules/glob (Depends-on): Update.
4595         * modules/iconv-h (Depends-on): Update.
4596         * modules/inttypes-incomplete (Depends-on): Update.
4597         * modules/langinfo (Depends-on): Update.
4598         * modules/locale (Depends-on): Update.
4599         * modules/math (Depends-on): Update.
4600         * modules/netdb (Depends-on): Update.
4601         * modules/poll-h (Depends-on): Update.
4602         * modules/pty (Depends-on): Update.
4603         * modules/search (Depends-on): Update.
4604         * modules/signal (Depends-on): Update.
4605         * modules/spawn (Depends-on): Update.
4606         * modules/stdio (Depends-on): Update.
4607         * modules/stdlib (Depends-on): Update.
4608         * modules/string (Depends-on): Update.
4609         * modules/strings (Depends-on): Update.
4610         * modules/sys_file (Depends-on): Update.
4611         * modules/sys_ioctl (Depends-on): Update.
4612         * modules/sys_select (Depends-on): Update.
4613         * modules/sys_socket (Depends-on): Update.
4614         * modules/sys_stat (Depends-on): Update.
4615         * modules/sys_time (Depends-on): Update.
4616         * modules/sys_times (Depends-on): Update.
4617         * modules/sys_utsname (Depends-on): Update.
4618         * modules/sys_wait (Depends-on): Update.
4619         * modules/termios (Depends-on): Update.
4620         * modules/time (Depends-on): Update.
4621         * modules/unistd (Depends-on): Update.
4622         * modules/wchar (Depends-on): Update.
4623         * modules/wctype-h (Depends-on): Update.
4624         * MODULES.html.sh (Support for building libraries and executables):
4625         Update.
4626
4627         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
4628         * modules/snippet/unused-parameter: Renamed from
4629         modules/unused-parameter.
4630         (Files, Makefile.am): Update.
4631         * build-aux/snippet/unused-parameter.h: Renamed from
4632         build-aux/unused-parameter.h.
4633         * modules/selinux-h (Depends-on): Update.
4634         * modules/unistr/base (Depends-on): Update.
4635         * MODULES.html.sh (Core language properties): Update.
4636
4637         Rename module 'link-warning' to 'snippet/link-warning'.
4638         * modules/snippet/link-warning: Renamed from modules/link-warning.
4639         (Files, Makefile.am): Update.
4640         * build-aux/snippet/link-warning.h: Renamed from
4641         build-aux/link-warning.h.
4642         * MODULES.html.sh (Support for building libraries and executables):
4643         Update.
4644
4645         Rename module 'c++defs' to 'snippet/c++defs'.
4646         * modules/snippet/c++defs: Renamed from modules/c++defs.
4647         (Files, Makefile.am): Update.
4648         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
4649         * modules/arpa_inet (Depends-on): Update.
4650         * modules/ctype (Depends-on): Update.
4651         * modules/dirent (Depends-on): Update.
4652         * modules/fcntl-h (Depends-on): Update.
4653         * modules/glob (Depends-on): Update.
4654         * modules/iconv-h (Depends-on): Update.
4655         * modules/langinfo (Depends-on): Update.
4656         * modules/locale (Depends-on): Update.
4657         * modules/math (Depends-on): Update.
4658         * modules/netdb (Depends-on): Update.
4659         * modules/poll-h (Depends-on): Update.
4660         * modules/pty (Depends-on): Update.
4661         * modules/search (Depends-on): Update.
4662         * modules/signal (Depends-on): Update.
4663         * modules/spawn (Depends-on): Update.
4664         * modules/stdio (Depends-on): Update.
4665         * modules/stdlib (Depends-on): Update.
4666         * modules/string (Depends-on): Update.
4667         * modules/strings (Depends-on): Update.
4668         * modules/sys_ioctl (Depends-on): Update.
4669         * modules/sys_select (Depends-on): Update.
4670         * modules/sys_socket (Depends-on): Update.
4671         * modules/sys_stat (Depends-on): Update.
4672         * modules/sys_time (Depends-on): Update.
4673         * modules/sys_wait (Depends-on): Update.
4674         * modules/termios (Depends-on): Update.
4675         * modules/time (Depends-on): Update.
4676         * modules/unistd (Depends-on): Update.
4677         * modules/wchar (Depends-on): Update.
4678         * modules/wctype-h (Depends-on): Update.
4679
4680         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
4681         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
4682         (Files, Makefile.am): Update.
4683         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
4684         * modules/argv-iter (Depends-on): Update.
4685         * modules/arpa_inet (Depends-on): Update.
4686         * modules/dirent (Depends-on): Update.
4687         * modules/fcntl-h (Depends-on): Update.
4688         * modules/fnmatch (Depends-on): Update.
4689         * modules/getopt-posix (Depends-on): Update.
4690         * modules/glob (Depends-on): Update.
4691         * modules/iconv-h (Depends-on): Update.
4692         * modules/inttypes-incomplete (Depends-on): Update.
4693         * modules/locale (Depends-on): Update.
4694         * modules/math (Depends-on): Update.
4695         * modules/netdb (Depends-on): Update.
4696         * modules/search (Depends-on): Update.
4697         * modules/signal (Depends-on): Update.
4698         * modules/spawn (Depends-on): Update.
4699         * modules/stdio (Depends-on): Update.
4700         * modules/stdlib (Depends-on): Update.
4701         * modules/string (Depends-on): Update.
4702         * modules/strings (Depends-on): Update.
4703         * modules/sys_socket (Depends-on): Update.
4704         * modules/sys_stat (Depends-on): Update.
4705         * modules/sys_time (Depends-on): Update.
4706         * modules/sys_times (Depends-on): Update.
4707         * modules/sys_utsname (Depends-on): Update.
4708         * modules/time (Depends-on): Update.
4709         * modules/unistd (Depends-on): Update.
4710         * modules/wchar (Depends-on): Update.
4711         * MODULES.html.sh (Support for building libraries and executables):
4712         Update.
4713
4714 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4715
4716         Improvements on _Noreturn and related modules.
4717
4718         modules/_Exit-tests: test _Noreturn too
4719         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
4720         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
4721         (main): Use them.
4722
4723         stdnoreturn, stdnoreturn-tests: remove modules
4724         They're not needed here and a bit premature for use elsewhere.  See
4725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
4726         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4727         * tests/test-stdnoreturn.c: Remove files.
4728         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
4729         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
4730         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
4731         and using noreturn.
4732         * modules/openat, modules/sigpipe-die, modules/xalloc:
4733         * modules/xmemdup0, modules/xstrtol:
4734         Remove dependency on stdnoreturn.
4735
4736         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
4737         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
4738         Reparenthesize to avoid GCC warning.
4739         Support Microsoft's syntax.
4740         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
4741
4742         _Noreturn-tests: remove module
4743         * modules/_Noreturn-tests: Remove.
4744         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
4745         * tests/test-_Noreturn.c: Remove.
4746         * tests/test-stdnoreturn.c: Merge from the old
4747         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
4748
4749 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4750
4751         _Noreturn, stdnoreturn, and related modules.
4752
4753         * top/maint.mk: Adjust to new noreturn support.
4754         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
4755         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
4756
4757         xalloc: use stdnoreturn.h
4758         * lib/xalloc.h: Include <stdnoreturn.h>.
4759         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4760         * modules/xalloc (Depends-on): Add stdnoreturn.
4761
4762         xstrtol: use stdnoreturn.h
4763         * lib/xstrtol.h: Include <stdnoreturn.h>.
4764         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4765         * modules/xstrtol (Depends-on): Add stdnoreturn.
4766
4767         xmemdup0: use stdnoreturn.h
4768         * lib/xmemdup0.h: Include <stdnoreturn.h>.
4769         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4770         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
4771
4772         sigpipe-die: use stdnoreturn.h
4773         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
4774         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4775         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
4776
4777         openat: use stdnoreturn.h
4778         * lib/openat.h: Include <stdnoreturn.h>.
4779         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4780         * modules/openat (Depends-on): Add stdnoreturn.
4781
4782         * lib/openat-die.c (openat_save_fail): Modernize comment.
4783
4784         * lib/xalloc-die.c (xalloc_die): Modernize comment.
4785
4786         * lib/glthread/thread.h: Modernize comment.
4787
4788         obstack: use _Noreturn
4789         * lib/obstack.c (__attribute__): Remove macro.
4790         (print_and_abort): Use _Noreturn.
4791
4792         c-stack: use _Noreturn
4793         * lib/c-stack.c (die, overflow_handler, segv_handler):
4794         Use _Noreturn rather than __attribute__((noreturn)).
4795
4796         argmatch-tests, exclude_tests: use _Noreturn
4797         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
4798         Remove.
4799         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
4800
4801         stdlib: use _Noreturn
4802         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
4803         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
4804         * modules/stdlib (Depends-on): Add _Noreturn.
4805         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
4806
4807         stdnoreturn-tests: new module
4808         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
4809
4810         stdnoreturn: new module
4811         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
4812         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
4813
4814         _Noreturn-tests: new module
4815         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
4816
4817         _Noreturn: new module
4818         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
4819         New section, mentioning it.
4820         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
4821
4822         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
4823
4824 2011-07-11  Eric Blake  <eblake@redhat.com>
4825
4826         ffs: new module
4827         * modules/ffs: New file.
4828         * m4/ffs.m4: Likewise.
4829         * lib/ffs.c: Likewise.
4830         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
4831         * modules/strings (Makefile.am): Substitute witness.
4832         (Depends-on): Add c++defs.
4833         * lib/strings.in.h (ffs): Declare.
4834         * modules/ffs-tests: New test file.
4835         * tests/test-ffs.c: Test new module.
4836         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4837         * doc/posix-functions/ffs.texi (ffs): Likewise.
4838
4839         regex: avoid compiler warning
4840         * lib/regex.c (includes): Include <strings.h>, for use of
4841         strcasecmp in regcomp.c.
4842         Reported by Joachim Schmitz.
4843
4844 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4845
4846         stdint: respect system's intmax_t if INTMAX_MAX
4847         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
4848         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
4849         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
4850         long but int64_t is long long, and where we will clash with the
4851         system intmax_t if we override it.  See
4852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
4853         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
4854         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
4855         similarly for UINTMAX_C.
4856
4857 2011-07-08  Bruno Haible  <bruno@clisp.org>
4858
4859         pthread_sigmask tests: Avoid a compiler warning.
4860         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
4861         non-zero.
4862
4863         sigprocmask tests: A better way to avoid a compiler warning.
4864         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
4865         (main): Complain if system() returns non-zero.
4866         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
4867
4868 2011-07-08  Bruno Haible  <bruno@clisp.org>
4869
4870         pthread_sigmask: Work around IRIX bug.
4871         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
4872         bug.
4873         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
4874         there may be unblocked pending signals.
4875         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
4876
4877 2011-07-08  Bruno Haible  <bruno@clisp.org>
4878
4879         pthread_sigmask: Work around Cygwin bug.
4880         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
4881         bug.
4882         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
4883         the system's pthread_sigmask function.
4884         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
4885
4886 2011-07-08  Bruno Haible  <bruno@clisp.org>
4887
4888         pthread_sigmask: Work around bug in single-threaded implementation.
4889         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
4890         FreeBSD, HP-UX, Solaris bug.
4891         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
4892         * lib/pthread_sigmask.c: Include <stddef.h>.
4893         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
4894         the system's pthread_sigmask function.
4895         * modules/pthread_sigmask (configure.ac): Invoke
4896         gl_PREREQ_PTHREAD_SIGMASK.
4897         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
4898         HP-UX, Solaris.
4899
4900 2011-07-08  Eric Blake  <eblake@redhat.com>
4901
4902         test-sigprocmask: avoid compiler warning
4903         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
4904         * tests/test-sigprocmask.c (main): Use it to silence warning.
4905         Reported by Jim Meyering.
4906
4907         test-snprintf: avoid compiler warning
4908         * tests/test-snprintf.c (main): Avoid shadowed declaration.
4909         * tests/test-vsnprintf.c (main): Likewise.
4910         Reported by Jim Meyering.
4911
4912 2011-07-08  Bruno Haible  <bruno@clisp.org>
4913
4914         Tests for module 'pthread_sigmask'.
4915         * modules/pthread_sigmask-tests: New file.
4916         * tests/test-pthread_sigmask1.c: New file, based on
4917         tests/test-sigprocmask.c.
4918         * tests/test-pthread_sigmask2.c: New file.
4919
4920 2011-07-08  Jim Meyering  <meyering@redhat.com>
4921
4922         test-getopt.h: avoid warning about an unused variable
4923         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
4924
4925 2011-07-07  Jim Meyering  <meyering@redhat.com>
4926
4927         maint: reduce list of files exempt from sc_prohibit_leading_TABs
4928         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
4929         now that it no longer contains leading TABs.
4930         Remove unused "url=FIXME" statement.
4931
4932 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4933
4934         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
4935         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4936         When gl_THREADLIB is not in use, assume that the POSIX sematics
4937         are desired.  This is better for Emacs, which uses POSIX semantics
4938         on GNUish and/or POSIXish platforms, and does not use threads at
4939         all otherwise.
4940
4941         pthread_sigmask: fix typo when testing for libraries
4942         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4943         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
4944
4945 2011-07-08  Eric Blake  <eblake@redhat.com>
4946
4947         fts: introduce FTS_NOATIME
4948         * lib/fts_.h (FTS_NOATIME): New bit flag.
4949         (FTS_OPTIONMASK): Adjust.
4950         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
4951         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
4952
4953 2011-07-08  Bruno Haible  <bruno@clisp.org>
4954
4955         Tests for module 'thread'.
4956         * modules/thread-tests: New file.
4957         * tests/test-thread_self.c: New file.
4958         * tests/test-thread_create.cc: New file.
4959
4960 2011-07-08  Bruno Haible  <bruno@clisp.org>
4961
4962         thread: Avoid gcc warnings when using gl_thread_self().
4963         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
4964         'void *'.
4965         (gl_thread_self_pointer): Update.
4966
4967 2011-07-07  Bruno Haible  <bruno@clisp.org>
4968
4969         signal-c++-tests: Check declaration of pthread_sigmask.
4970         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
4971         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
4972         $(LIB_PTHREAD_SIGMASK).
4973
4974 2011-07-07  Bruno Haible  <bruno@clisp.org>
4975
4976         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
4977         * lib/signal.in.h (pthread_sigmask): Override if
4978         REPLACE_PTHREAD_SIGMASK is 1.
4979         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4980         REPLACE_PTHREAD_SIGMASK.
4981         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
4982         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
4983         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
4984         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4985         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
4986
4987 2011-07-07  Bruno Haible  <bruno@clisp.org>
4988
4989         pthread_sigmask: Ensure declaration in <signal.h>.
4990         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
4991         include <pthread.h>.
4992         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
4993         problem.
4994
4995 2011-07-07  Bruno Haible  <bruno@clisp.org>
4996
4997         pthread_sigmask: Document the module.
4998         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
4999
5000 2011-07-07  Bruno Haible  <bruno@clisp.org>
5001
5002         pthread_sigmask: Follow gnulib conventions.
5003         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5004         gl_PTHREAD_SIGMASK.
5005         * modules/pthread_sigmask (configure.ac): Update.
5006
5007 2011-07-07  Bruno Haible  <bruno@clisp.org>
5008
5009         pthread_sigmask: Make declaration C++ safe.
5010         * lib/signal.in.h: In two special conditions, just do an #include_next.
5011         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5012         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5013         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5014         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5015         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5016         not REPLACE_PTHREAD_MASK.
5017         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5018         not REPLACE_PTHREAD_MASK.
5019         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5020
5021 2011-07-07  Bruno Haible  <bruno@clisp.org>
5022
5023         pthread_sigmask: Fix return value.
5024         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5025         * lib/pthread_sigmask.c: New file.
5026         * modules/pthread_sigmask (Files): Add it.
5027         (configure.ac): Invoke AC_LIBOBJ.
5028
5029 2011-07-07  Eric Blake  <eblake@redhat.com>
5030
5031         getopt: more portable argv creation
5032         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5033         const, use char arrays rather than strings.
5034         Suggested by Paul Eggert.
5035
5036 2011-07-07  Bruno Haible  <bruno@clisp.org>
5037
5038         Tests for module 'sigprocmask'.
5039         * modules/sigprocmask-tests: New file.
5040         * tests/test-sigprocmask.c: New file.
5041
5042 2011-07-07  Bruno Haible  <bruno@clisp.org>
5043
5044         float tests: Tweak.
5045         * tests/test-float.c (main): Tweak skip message.
5046
5047 2011-07-07  Eric Blake  <eblake@redhat.com>
5048
5049         getopt: avoid compiler warning during configure
5050         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5051         assigning string literals to non-const pointer.
5052
5053         getopt-gnu: avoid crash in glibc getopt
5054         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5055         * tests/test-getopt.h (test_getopt): Enhance test.
5056         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5057         * doc/posix-functions/getopt.texi (getopt): Document it.
5058         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5059         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5060         Likewise.
5061
5062 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5063
5064         getopt: handle W; without long options in getopt [BZ #12922]
5065         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5066         but no long options are defined, just return 'W'.
5067
5068 2011-07-07  Bruno Haible  <bruno@clisp.org>
5069
5070         Avoid literal tabs.
5071         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5072         variable containing a tab instead of a literal tab.
5073         Reported by Jim Meyering.
5074
5075 2011-07-07  Bruno Haible  <bruno@clisp.org>
5076
5077         Comments.
5078         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5079
5080 2011-07-06  Bruno Haible  <bruno@clisp.org>
5081
5082         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5083         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5084         <winsock2.h>.
5085         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5086         lib/sys_socket.in.h.
5087         (close, gethostname): Hide declarations from <winsock2.h>.
5088         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5089         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5090         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5091         (select): Don't override if gnulib's <sys/select.h> was already
5092         included.
5093         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5094         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5095         setsockopt, shutdown, select): Tweak indentation.
5096
5097 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5098
5099         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5100         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5101         in an application that does not use the sys_select module.
5102
5103 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5104
5105         poll: do not return 0 on timeout=-1
5106         * lib/poll.c: Loop with yield if no events occured
5107
5108 2011-07-06  Eric Blake  <eblake@redhat.com>
5109
5110         pthread_sigmask: always replace when not using pthread
5111         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5112         replacement when using some threading other than pthread.  Fix
5113         logic bug.
5114
5115 2011-07-06  Bruno Haible  <bruno@clisp.org>
5116
5117         Comments.
5118         * m4/printf.m4: Update comments about mingw.
5119
5120 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5121
5122         sys_select: define sigset_t more portably
5123         * lib/sys_select.in.h: Always include <sys/types.h>, since
5124         we now need sigset_t and mingw defines it there.
5125         Include <signal.h> before split inclusion guard, to avoid
5126         mishaps on Solaris, whose <signal.h> eventually includes us.
5127         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
5128         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
5129         which come from ...
5130         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5131         gl_CHECK_TYPE_SIGSET_T.
5132         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
5133         does the real work.
5134         * modules/sys_select (Depends-on): Add 'signal'.
5135
5136         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
5137         Suggested by Bruno Haible.
5138
5139         pselect: Use pthread_sigmask, not sigprocmask.
5140         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
5141         multithreaded apps better than sigprocmask does.
5142         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
5143         sigprocmask directly.
5144
5145 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5146
5147         * lib/pselect.c (pselect): Use plain name, without "rpl_".
5148         Don't #undef,  since we don't need any underlying pselect.
5149         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
5150         (Depends-on): Add select.
5151         (Link): Add $(LIBSOCKET).
5152         These changes suggested by Bruno Haible.
5153
5154         pselect: document better
5155         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5156         * doc/posix-functions/pselect.texi (pselect): Document new module.
5157
5158         pthread_sigmask: new module
5159         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5160         * doc/posix-functions/pthread_sigmask.texi: Document new module.
5161         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
5162         This is done only as a macro; I don't know how well that'll
5163         work for C++.  Move <sys/types.h> include before the include_next,
5164         to avoid mishap on Solaris.
5165         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
5166         * modules/signal (Makefile.am): Substitute the check's results.
5167         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
5168
5169         test-pselect: new module
5170         * modules/pselect-tests, tests/test-pselect.c: New files.
5171         * tests/test-select.c, tests/test-sys_select-c++.cc:
5172         If TEST_PSELECT is defined, test pselect instead of testing select.
5173
5174         * tests/test-sys_select.c (sigset_t): Test for it, too.
5175         Suggested by Bruno Haible.
5176
5177 2011-07-05  Eric Blake  <eblake@redhat.com>
5178
5179         snprintf: guarantee %1$d, for libintl
5180         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5181         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5182         * doc/posix-functions/snprintf.texi (snprintf): Update.
5183         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5184         * tests/test-snprintf.c (main): Enhance test.
5185         * tests/test-vsnprintf.c (main): Likewise.
5186
5187 2011-07-05  Jim Meyering  <meyering@redhat.com>
5188
5189         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5190         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5191         per Bruno's request, to accommodate this idiom (no space after "#")
5192         even when the function is inside an #if block:
5193         char *
5194         gets (char *s)
5195         #undef gets
5196         {
5197           ...
5198         }
5199
5200 2011-07-04  Jim Meyering  <meyering@redhat.com>
5201
5202         maint: indent with spaces, not TABs, and add a rule to check this
5203         * tests/test-userspec.c: Indent with spaces, not TABs.
5204         * tests/test-argp.c: Likewise.
5205         * tests/test-c-stack2.sh: Likewise.
5206         * tests/test-parse-duration.sh: Likewise
5207         * m4/strtod.m4: Likewise.
5208         * m4/alloca.m4: Likewise.
5209         * m4/pselect.m4: Likewise.
5210         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
5211
5212 2011-07-03  Jim Meyering  <meyering@redhat.com>
5213
5214         maint.mk: correct omissions in prohibit_argmatch_without_use check
5215         This rule would mistakenly report that argmatch.h is included without
5216         use even when both the argmatch and invalid_arg macro were used.
5217         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
5218         of argmatch and invalid_arg.
5219
5220 2011-07-03  Bruno Haible  <bruno@clisp.org>
5221
5222         Comments about EINTR.
5223         * lib/safe-read.h: Explain the purpose of this module.
5224         * lib/safe-write.h: Likewise.
5225         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
5226         module.
5227         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
5228         module.
5229         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5230
5231 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5232
5233         xnanosleep: Rewrite to use new dtotimespec module.
5234         It has the conversion code that used to be in xnanosleep.
5235         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
5236         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
5237         (TIME_T_MAX): Remove.
5238         (xnanosleep): Rewrite in terms of dtotimespec.
5239         * modules/xnanosleep (Depends-on): Add dtotimespec.
5240         Remove intprops, stdbool.
5241
5242         timespec-add, timespec-sub: new modules
5243         * lib/timespec.h (timespec_add, timespec_sub): New decls.
5244         * lib/timespec-add.c, lib/timespec-sub.c:
5245         * modules/timespec-add, modules/timespec-sub: New files.
5246
5247         dtotimespec: new module
5248         * lib/timespec.h (dtotimespec): New decl.
5249         * lib/dtotimespec.c, modules/dtotimespec: New files.
5250
5251         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
5252
5253         pselect: new module
5254         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
5255         (pselect): New decls.
5256         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
5257         since the standard pselect decl uses 'restrict'.
5258         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
5259         HAVE_PSELECT, REPLACE_PSELECT.
5260         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
5261         HAVE_PSELECT, REPLACE_PSELECT.
5262         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
5263
5264         sys_select: don't depend on sys_socket
5265         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
5266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
5267         This fix works on GNU and GNU-like platforms, but has not been tested
5268         on native Windows.
5269         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
5270         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
5271         gl_HEADER_SYS_SOCKET.
5272         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
5273         gl_PREREQ_SYS_H_WINSOCK2.
5274
5275 2011-06-29  Eric Blake  <eblake@redhat.com>
5276
5277         pipe2: fix C89 compile problem
5278         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
5279         Reported by Bruno Haible.
5280
5281         pipe, pipe2: don't corrupt fd on error
5282         * lib/pipe.c (pipe): Leave fd unchanged on error.
5283         * lib/pipe2.c (pipe2): Likewise.
5284         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
5285         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5286
5287 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
5288
5289         mmap-anon: do not use regular expressions inadvertently
5290         * m4/mmap-anon.m4: Remove trailing period from strings sought
5291         in the output.
5292
5293 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
5294
5295         nanosleep: fix integer overflow problem
5296         * lib/nanosleep.c (my_usleep): Don't assume signed integer
5297         arithmetic wraps around on overflow.
5298
5299         nanosleep: simplify carrying
5300         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
5301         first call to the underyling nanosleep, not for the last one.
5302         This doesn't fix any bugs, but it simplifies the computation of
5303         the remaining delay.  Found while auditing integer overflow issues.
5304
5305         dup2: remove test for existence of fcntl
5306         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
5307         "#if HAVE_FCNTL", in the configure-time test program.
5308         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
5309         and therefore speeds up "configure" a bit.  Found while
5310         adding the dup2 module to Emacs.
5311
5312 2011-06-24  Eric Blake  <eblake@redhat.com>
5313
5314         maint.mk: enhance useless header checks
5315         * top/maint.mk (_sc_header_without_use): Check both include
5316         styles.
5317         (sc_prohibit_assert_without_use)
5318         (sc_prohibit_close_stream_without_use)
5319         (sc_prohibit_getopt_without_use)
5320         (sc_prohibit_quotearg_without_use)
5321         (sc_prohibit_quote_without_use)
5322         (sc_prohibit_long_options_without_use)
5323         (sc_prohibit_inttostr_without_use)
5324         (sc_prohibit_ignore_value_without_use)
5325         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
5326         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
5327         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
5328         (sc_prohibit_hash_pjw_without_use)
5329         (sc_prohibit_safe_read_without_use)
5330         (sc_prohibit_argmatch_without_use)
5331         (sc_prohibit_canonicalize_without_use)
5332         (sc_prohibit_root_dev_ino_without_use)
5333         (sc_prohibit_openat_without_use)
5334         (sc_prohibit_c_ctype_without_use)
5335         (sc_prohibit_signal_without_use)
5336         (sc_prohibit_stdio--_without_use)
5337         (sc_prohibit_stdio-safer_without_use)
5338         (sc_prohibit_strings_without_use)
5339         (sc_prohibit_intprops_without_use)
5340         (sc_prohibit_stddef_without_use)
5341         (sc_prohibit_xfreopen_without_use): Update clients.
5342
5343 2011-06-24  Jim Meyering  <meyering@redhat.com>
5344
5345         syntax-check: keep one maint.mk rule in sync with its header
5346         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
5347         of the bug Eric has just fixed, with today's commit 25e4c2ec.
5348         I prefer to avoid temporary files here, so use <(...), but that
5349         is not supported by /bin/sh, so...
5350         (SHELL): Define to /bin/bash.
5351
5352 2011-06-24  Eric Blake  <eblake@redhat.com>
5353
5354         maint.mk: update sc_prohibit_intprops_without_use
5355         * top/maint.mk (_intprops_names): Match recent changes.
5356
5357 2011-06-24  Bruno Haible  <bruno@clisp.org>
5358
5359         strerror-override: No-op tweak.
5360         * lib/strerror-override.h (strerror_override): Reorder conditions,
5361         for consistency with lib/strerror-override.c.
5362
5363 2011-06-23  Eric Blake  <eblake@redhat.com>
5364
5365         maint.mk: test further PATH_MAX issues
5366         * top/maint.mk (sc_prohibit_path_max_array): Rename...
5367         (sc_prohibit_path_max_allocation): ...and also test alloca.
5368         Suggested by Jim Meyering.
5369
5370 2011-06-22  Eric Blake  <eblake@redhat.com>
5371
5372         maint.mk: add syntax-check to avoid char[PATH_MAX]
5373         * top/maint.mk (sc_prohibit_path_max_array): New rule.
5374
5375         stat: be robust to PATH_MAX definition
5376         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
5377         * modules/stat (Depends-on): Add verify.
5378
5379         link: work around IRIX bug
5380         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
5381         * lib/link.c (rpl_link): Work around it.
5382         * tests/test-link.h (test_link): Enhance test.
5383         * doc/posix-functions/link.texi (link): Document the bug.
5384
5385         getopt: silence clang warning
5386         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
5387         dereference.
5388         Reported by Gustavo Martin Domato.
5389
5390 2011-06-22  Jim Meyering  <meyering@redhat.com>
5391
5392         bootstrap: do not insert a blank line into each .gitignore file
5393         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
5394
5395 2011-06-21  Eric Blake  <eblake@redhat.com>
5396
5397         perror: test for output mismatch
5398         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
5399         perror on IRIX.
5400
5401         strerror_r: fix OpenBSD behavior on out-of-range
5402         * lib/strerror_r.c (strerror_r): Always use maximal string.
5403         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5404
5405         strerror_r: fix OpenBSD behavior on 0
5406         * lib/strerror-override.c (strerror_override): Also override 0
5407         when needed.
5408         * lib/strerror-override.h (strerror_override): Likewise.
5409         * lib/strerror.c (strerror): Simplify, now that 0 override is done
5410         earlier.
5411         * lib/strerror_r.c (strerror_r): Likewise.
5412         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
5413         behavior...
5414         (gl_FUNC_STRERROR_0): ...into new macro.
5415         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
5416         is overridden.
5417         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
5418         * modules/strerror-override (Files): Add strerror.m4.
5419         (configure.ac): Also provide override for 0 when needed.
5420         * doc/posix-functions/strerror.texi (strerror): Document this.
5421         * doc/posix-functions/perror.texi (perror): Likewise.
5422
5423         perror: adjust array size
5424         * modules/perror (Depends-on): Add strerror-override.
5425         * lib/perror.c (perror): Use it to avoid magic number.
5426
5427         strerror-override: reduce size
5428         * lib/strerror-override.c (strerror_override): Use fewer lines.
5429
5430 2011-06-20  Bruno Haible  <bruno@clisp.org>
5431
5432         pathmax: Ensure correct value for PATH_MAX on HP-UX.
5433         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
5434
5435 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5436
5437         alloca: port to compilers that can optimize like GCC 4.6.0
5438         * lib/alloca.c (find_stack_direction): New signature, taken from
5439         Autoconf git.  This works with GCC 4.6.0.  This code should never
5440         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
5441         be used with other compilers that optimize as well as GCC 4.6.0 does.
5442         (alloca): Adjust to new signature.
5443         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
5444         New macro, which patches Autoconf in a similar way.
5445
5446         c-stack: stop worrying about stack direction
5447         * lib/c-stack.c (find_stack_direction): Remove.
5448         (segv_handler): Don't worry about stack direction growth, as it's
5449         too much of a pain to configure this correctly, given how compilers
5450         are optimizing-away our stack-growth detection code.  Instead, assume
5451         that any access to just before or just after the stack is OK.
5452         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5453         Don't require AC_FUNC_ALLOCA; no longer needed.
5454
5455 2011-06-20  Eric Blake  <eblake@redhat.com>
5456
5457         test-stat: don't allocate PATH_MAX bytes
5458         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
5459         PATH_MAX-sized buffer.
5460         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
5461         * modules/stat-tests (Depends-on): Likewise.
5462         * tests/test-fstatat.c (includes): Drop pathmax.h.
5463         * tests/test-stat.c (includes): Likewise.
5464         Reported by Bruno Haible.
5465
5466 2011-06-20  Bruno Haible  <bruno@clisp.org>
5467
5468         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
5469         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
5470         * lib/float.c: New file.
5471         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
5472         REPLACE_FLOAT_LDBL.
5473         * modules/float (Files): Add lib/float.c.
5474         (configure.ac): Invoke AC_LIBOBJ.
5475         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
5476
5477 2011-06-20  Bruno Haible  <bruno@clisp.org>
5478
5479         Tests for module 'float'.
5480         * modules/float-tests: New file.
5481         * tests/test-float.c: New file.
5482
5483 2011-06-19  Bruno Haible  <bruno@clisp.org>
5484
5485         isinf: Coding style.
5486         * lib/isinf.c: Use GNU coding style.
5487
5488 2011-06-19  Bruno Haible  <bruno@clisp.org>
5489
5490         linkat test: Avoid test failure on AIX 7.1.
5491         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
5492         * tests/test-link.h (test_link): Likewise.
5493
5494 2011-06-19  Bruno Haible  <bruno@clisp.org>
5495
5496         pread test: Avoid test failure on OpenBSD 4.9.
5497         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
5498
5499 2011-06-19  Bruno Haible  <bruno@clisp.org>
5500
5501         sprintf-posix: Fix test failure on AIX 7.1.
5502         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
5503         * doc/posix-functions/dprintf.texi: Mention limited precision problem
5504         on AIX.
5505         * doc/posix-functions/fprintf.texi: Likewise.
5506         * doc/posix-functions/printf.texi: Likewise.
5507         * doc/posix-functions/snprintf.texi: Likewise.
5508         * doc/posix-functions/sprintf.texi: Likewise.
5509         * doc/posix-functions/vdprintf.texi: Likewise.
5510         * doc/posix-functions/vfprintf.texi: Likewise.
5511         * doc/posix-functions/vprintf.texi: Likewise.
5512         * doc/posix-functions/vsnprintf.texi: Likewise.
5513         * doc/posix-functions/vsprintf.texi: Likewise.
5514
5515 2011-06-19  Bruno Haible  <bruno@clisp.org>
5516
5517         roundl-ieee: Fix test failure on AIX 7.1.
5518         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
5519         * doc/posix-functions/roundl.texi: Mention problem with negative
5520         arguments.
5521
5522 2011-06-19  Bruno Haible  <bruno@clisp.org>
5523
5524         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5525         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
5526         * doc/posix-functions/round.texi: Mention problem with negative
5527         arguments.
5528         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
5529
5530 2011-06-19  Bruno Haible  <bruno@clisp.org>
5531
5532         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5533         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
5534         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
5535         * doc/posix-functions/roundf.texi: Mention problem with negative
5536         arguments.
5537         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
5538
5539 2011-06-19  Bruno Haible  <bruno@clisp.org>
5540
5541         ceilf-ieee: Work around bug on MacOS X 10.5.
5542         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
5543
5544         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
5545         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
5546         IEEE compliant, avoid compiler optimizations.
5547         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5548         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5549         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5550         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5551         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5552         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5553         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5554         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5555         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5556         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5557
5558 2011-06-19  Bruno Haible  <bruno@clisp.org>
5559
5560         ceilf-ieee: Work around bug on AIX 7.1.
5561         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
5562         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
5563
5564 2011-06-19  Bruno Haible  <bruno@clisp.org>
5565
5566         ceil-ieee: Work around bug on AIX 7.1.
5567         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
5568         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
5569
5570 2011-06-18  Bruno Haible  <bruno@clisp.org>
5571
5572         fsync test: Avoid test failure on MacOS X and AIX.
5573         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
5574         EINVAL.
5575
5576 2011-06-18  Bruno Haible  <bruno@clisp.org>
5577
5578         openat, fdopendir tests: Fix link errors.
5579         * modules/openat-tests (Depends-on): Add progname.
5580         * modules/fdopendir-tests (Depends-on): Likewise.
5581         * tests/test-fchownat.c: Include progname.h.
5582         (main): Call set_program_name.
5583         * tests/test-fstatat.c: Include progname.h.
5584         (main): Call set_program_name.
5585         * tests/test-mkdirat.c: Include progname.h.
5586         (main): Call set_program_name.
5587         * tests/test-openat.c: Include progname.h.
5588         (main): Call set_program_name.
5589         * tests/test-unlinkat.c: Include progname.h.
5590         (main): Call set_program_name.
5591         * tests/test-fdopendir.c: Include progname.h.
5592         (main): Call set_program_name.
5593
5594 2011-06-18  Bruno Haible  <bruno@clisp.org>
5595
5596         Doc update.
5597         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
5598         HP-UX.
5599         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
5600
5601 2011-06-18  Bruno Haible  <bruno@clisp.org>
5602
5603         getcwd tests: Avoid compilation error on HP-UX 11.31.
5604         * modules/getcwd-tests (Depends-on): Add pathmax.
5605         * tests/test-getcwd.c: Include pathmax.h.
5606
5607 2011-06-18  Bruno Haible  <bruno@clisp.org>
5608
5609         isfinite, isinf: Fix link error on AIX 6 and 7.
5610         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
5611         needed, also test the macro with a 'float' argument.
5612         * m4/isinf.m4 (gl_ISINF): Likewise.
5613
5614 2011-06-18  Bruno Haible  <bruno@clisp.org>
5615
5616         getloadavg: Don't clobber LIBS. Regression from previous commit.
5617         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
5618         AC_CHECK_LIB from here...
5619         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
5620         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
5621         gl_func_getloadavg_done.
5622         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5623
5624 2011-06-18  Bruno Haible  <bruno@clisp.org>
5625
5626         clean-temp: Improve documentation.
5627         * lib/clean-temp.h: Explain better how to use this module.
5628         Reported by John Darrington <john@darrington.wattle.id.au>.
5629
5630 2011-06-17  Bruno Haible  <bruno@clisp.org>
5631
5632         pread, pwrite: Avoid cc warning on AIX.
5633         * lib/unistd.in.h (pread): Undefine before defining as a macro.
5634         (pwrite): Likewise.
5635
5636 2011-06-17  Bruno Haible  <bruno@clisp.org>
5637
5638         spawn-pipe tests: Fix link error.
5639         * tests/test-spawn-pipe-child.c: Undefine fprintf.
5640         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5641
5642 2011-06-17  Bruno Haible  <bruno@clisp.org>
5643
5644         Tests: Remove unnecessary dependency.
5645         * modules/canonicalize-tests (Depends-on): Remove progname.
5646         * modules/chown-tests (Depends-on): Likewise.
5647         * modules/dirname-tests (Depends-on): Likewise.
5648         * modules/fdopendir-tests (Depends-on): Likewise.
5649         * modules/fdutimensat-tests (Depends-on): Likewise.
5650         * modules/hash-tests (Depends-on): Likewise.
5651         * modules/lchown-tests (Depends-on): Likewise.
5652         * modules/linkat-tests (Depends-on): Likewise.
5653         * modules/renameat-tests (Depends-on): Likewise.
5654         * modules/spawn-pipe-tests (Depends-on): Likewise.
5655         * modules/utimensat-tests (Depends-on): Likewise.
5656
5657 2011-06-17  Bruno Haible  <bruno@clisp.org>
5658
5659         spawn-pipe tests: Fix link error.
5660         * tests/test-spawn-pipe-child.c: Undefine fflush.
5661
5662 2011-06-17  Bruno Haible  <bruno@clisp.org>
5663
5664         Fix tests link errors.
5665         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
5666         * modules/chown-tests (Makefile.am): Don't link test-chown with
5667         LIBINTL.
5668         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
5669         LIBINTL.
5670         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
5671         LIBINTL.
5672         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
5673         LIBINTL.
5674
5675 2011-06-16  Bruno Haible  <bruno@clisp.org>
5676
5677         crypto/gc-sha1: Fix recent regression.
5678         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
5679         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
5680
5681         crypto/gc-md5: Fix recent regression.
5682         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
5683
5684         crypto/gc-md4: Fix recent regression.
5685         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
5686         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
5687
5688         crypto/gc-arctwo: Fix recent regression.
5689         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
5690         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
5691
5692         crypto/gc-rijndael: Fix recent regression.
5693         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
5694         (configure.ac): Invoke AC_LIBOBJ here.
5695         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
5696         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5697
5698         crypto/gc-hmac-sha1: Fix recent regression.
5699         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
5700         (configure.ac): Invoke AC_LIBOBJ here.
5701         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
5702         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5703
5704         crypto/gc-hmac-md5: Fix recent regression.
5705         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
5706         (configure.ac): Invoke AC_LIBOBJ here.
5707         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
5708         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5709
5710         crypto/gc-des: Fix recent regression.
5711         * modules/crypto/gc-des (Files): Remove m4/des.m4.
5712         (configure.ac): Invoke AC_LIBOBJ here.
5713         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
5714         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5715
5716         crypto/gc-arcfour: Fix recent regression.
5717         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
5718         (configure.ac): Invoke AC_LIBOBJ here.
5719         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
5720         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5721
5722 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
5723
5724         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
5725         After the 2011-05-21 change, this macro requires
5726         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
5727         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
5728
5729 2011-06-16  Bruno Haible  <bruno@clisp.org>
5730
5731         fprintftime: Move AC_LIBOBJ invocations to module description.
5732         * m4/fprintftime.m4: Remove file.
5733         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
5734         (configure.ac): Remove gl_FPRINTFTIME call.
5735         (Makefile.am): Augment lib_SOURCES.
5736         Reported by Jim Meyering.
5737
5738 2011-06-16  Bruno Haible  <bruno@clisp.org>
5739
5740         tmpfile-safer: Finish 2011-05-23 commit.
5741         * m4/stdio-safer.m4: Really remove file.
5742         Reported by Jim Meyering.
5743
5744 2011-06-16  Bruno Haible  <bruno@clisp.org>
5745
5746         syntax-check: Fix typo.
5747         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
5748         printf-posix.m4.
5749         Reported by Jim Meyering.
5750
5751 2011-06-13  Jim Meyering  <meyering@redhat.com>
5752
5753         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
5754         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
5755
5756 2011-05-23  Bruno Haible  <bruno@clisp.org>
5757
5758         yesno: Move AC_LIBOBJ invocations to module description.
5759         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
5760         * modules/yesno (Makefile.am): Augment lib_SOURCES.
5761
5762 2011-05-23  Bruno Haible  <bruno@clisp.org>
5763
5764         xstrtol: Move AC_LIBOBJ invocations to module description.
5765         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
5766         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
5767
5768 2011-05-23  Bruno Haible  <bruno@clisp.org>
5769
5770         xstrtold: Move AC_LIBOBJ invocations to module description.
5771         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
5772         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
5773
5774 2011-05-23  Bruno Haible  <bruno@clisp.org>
5775
5776         xstrtod: Move AC_LIBOBJ invocations to module description.
5777         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
5778         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
5779
5780 2011-05-23  Bruno Haible  <bruno@clisp.org>
5781
5782         xnanosleep: Move AC_LIBOBJ invocations to module description.
5783         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
5784         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
5785
5786 2011-05-23  Bruno Haible  <bruno@clisp.org>
5787
5788         xgetcwd: Move AC_LIBOBJ invocations to module description.
5789         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
5790         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
5791
5792 2011-05-23  Bruno Haible  <bruno@clisp.org>
5793
5794         xalloc: Move AC_LIBOBJ invocations to module description.
5795         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
5796         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
5797
5798 2011-05-23  Bruno Haible  <bruno@clisp.org>
5799
5800         write-any-file: Move AC_LIBOBJ invocations to module description.
5801         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
5802         invocation.
5803         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
5804
5805 2011-05-23  Bruno Haible  <bruno@clisp.org>
5806
5807         utimens: Move AC_LIBOBJ invocations to module description.
5808         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
5809         * modules/utimens (Makefile.am): Augment lib_SOURCES.
5810
5811 2011-05-23  Bruno Haible  <bruno@clisp.org>
5812
5813         utimecmp: Move AC_LIBOBJ invocations to module description.
5814         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
5815         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
5816
5817 2011-05-23  Bruno Haible  <bruno@clisp.org>
5818
5819         userspec: Move AC_LIBOBJ invocations to module description.
5820         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
5821         * modules/userspec (Makefile.am): Augment lib_SOURCES.
5822
5823 2011-05-23  Bruno Haible  <bruno@clisp.org>
5824
5825         unlinkdir: Move AC_LIBOBJ invocations to module description.
5826         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
5827         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
5828
5829 2011-05-23  Bruno Haible  <bruno@clisp.org>
5830
5831         unistd-safer: Move AC_LIBOBJ invocations to module description.
5832         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
5833         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
5834
5835 2011-05-23  Bruno Haible  <bruno@clisp.org>
5836
5837         tempname: Move AC_LIBOBJ invocations to module description.
5838         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
5839         * modules/tempname (Makefile.am): Augment lib_SOURCES.
5840
5841 2011-05-23  Bruno Haible  <bruno@clisp.org>
5842
5843         strftime: Move AC_LIBOBJ invocations to module description.
5844         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
5845         * modules/strftime (Makefile.am): Augment lib_SOURCES.
5846
5847 2011-05-23  Bruno Haible  <bruno@clisp.org>
5848
5849         stdlib-safer: Move AC_LIBOBJ invocations to module description.
5850         * m4/stdlib-safer.m4: Remove file.
5851         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
5852         (configure.ac): Remove gl_STDLIB_SAFER call.
5853         (Makefile.am): Augment lib_SOURCES.
5854
5855 2011-05-23  Bruno Haible  <bruno@clisp.org>
5856
5857         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
5858         * m4/stdio-safer.m4: Remove file.
5859         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
5860         (configure.ac): Remove gl_TMPFILE_SAFER call.
5861         (Makefile.am): Augment lib_SOURCES.
5862
5863 2011-05-23  Bruno Haible  <bruno@clisp.org>
5864
5865         popen-safer: Move AC_LIBOBJ invocations to module description.
5866         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
5867         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
5868         (configure.ac): Remove gl_POPEN_SAFER call.
5869         (Makefile.am): Augment lib_SOURCES.
5870
5871 2011-05-23  Bruno Haible  <bruno@clisp.org>
5872
5873         freopen-safer: Move AC_LIBOBJ invocations to module description.
5874         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
5875         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
5876         (configure.ac): Remove gl_FREOPEN_SAFER call.
5877         (Makefile.am): Augment lib_SOURCES.
5878
5879 2011-05-23  Bruno Haible  <bruno@clisp.org>
5880
5881         fopen-safer: Move AC_LIBOBJ invocations to module description.
5882         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
5883         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
5884         (configure.ac): Remove gl_FOPEN_SAFER call.
5885         (Makefile.am): Augment lib_SOURCES.
5886
5887 2011-05-23  Bruno Haible  <bruno@clisp.org>
5888
5889         crypto/sha512: Move AC_LIBOBJ invocations to module description.
5890         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
5891         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
5892
5893 2011-05-23  Bruno Haible  <bruno@clisp.org>
5894
5895         crypto/sha256: Move AC_LIBOBJ invocations to module description.
5896         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
5897         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
5898
5899 2011-05-23  Bruno Haible  <bruno@clisp.org>
5900
5901         crypto/sha1: Move AC_LIBOBJ invocations to module description.
5902         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
5903         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
5904
5905 2011-05-23  Bruno Haible  <bruno@clisp.org>
5906
5907         settime: Move AC_LIBOBJ invocations to module description.
5908         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
5909         * modules/settime (Makefile.am): Augment lib_SOURCES.
5910
5911 2011-05-23  Bruno Haible  <bruno@clisp.org>
5912
5913         savedir: Move AC_LIBOBJ invocations to module description.
5914         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
5915         * modules/savedir (Makefile.am): Augment lib_SOURCES.
5916
5917 2011-05-23  Bruno Haible  <bruno@clisp.org>
5918
5919         save-cwd: Move AC_LIBOBJ invocations to module description.
5920         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
5921         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
5922
5923 2011-05-23  Bruno Haible  <bruno@clisp.org>
5924
5925         same: Move AC_LIBOBJ invocations to module description.
5926         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
5927         * modules/same (Makefile.am): Augment lib_SOURCES.
5928
5929 2011-05-23  Bruno Haible  <bruno@clisp.org>
5930
5931         safe-write: Move AC_LIBOBJ invocations to module description.
5932         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
5933         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
5934         instead of gl_SAFE_WRITE.
5935         (Makefile.am): Augment lib_SOURCES.
5936
5937 2011-05-23  Bruno Haible  <bruno@clisp.org>
5938
5939         safe-read: Move AC_LIBOBJ invocations to module description.
5940         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
5941         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
5942         of gl_SAFE_READ.
5943         (Makefile.am): Augment lib_SOURCES.
5944
5945 2011-05-23  Bruno Haible  <bruno@clisp.org>
5946
5947         safe-alloc: Move AC_LIBOBJ invocations to module description.
5948         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
5949         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
5950
5951 2011-05-23  Bruno Haible  <bruno@clisp.org>
5952
5953         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
5954         * m4/rijndael.m4: Remove file.
5955         * modules/crypto/rijndael (Files): Remove it.
5956         (configure.ac): Remove gl_RIJNDAEL call.
5957         (Makefile.am): Augment lib_SOURCES.
5958
5959 2011-05-23  Bruno Haible  <bruno@clisp.org>
5960
5961         readtokens: Move AC_LIBOBJ invocations to module description.
5962         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
5963         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
5964
5965 2011-05-23  Bruno Haible  <bruno@clisp.org>
5966
5967         read-file: Move AC_LIBOBJ invocations to module description.
5968         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
5969         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
5970         of gl_FUNC_READ_FILE.
5971         (Makefile.am): Augment lib_SOURCES.
5972
5973 2011-05-23  Bruno Haible  <bruno@clisp.org>
5974
5975         quotearg: Move AC_LIBOBJ invocations to module description.
5976         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
5977         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
5978
5979 2011-05-23  Bruno Haible  <bruno@clisp.org>
5980
5981         quote: Move AC_LIBOBJ invocations to module description.
5982         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
5983         * modules/quote (Makefile.am): Augment lib_SOURCES.
5984
5985 2011-05-23  Bruno Haible  <bruno@clisp.org>
5986
5987         posixver: Move AC_LIBOBJ invocations to module description.
5988         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
5989         * modules/posixver (Makefile.am): Augment lib_SOURCES.
5990
5991 2011-05-23  Bruno Haible  <bruno@clisp.org>
5992
5993         posixtm: Move AC_LIBOBJ invocations to module description.
5994         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
5995         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
5996
5997 2011-05-23  Bruno Haible  <bruno@clisp.org>
5998
5999         physmem: Move AC_LIBOBJ invocations to module description.
6000         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6001         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6002
6003 2011-05-23  Bruno Haible  <bruno@clisp.org>
6004
6005         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6006         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6007         invocation.
6008         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6009
6010 2011-05-23  Bruno Haible  <bruno@clisp.org>
6011
6012         mpsort: Move AC_LIBOBJ invocations to module description.
6013         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6014         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6015
6016 2011-05-23  Bruno Haible  <bruno@clisp.org>
6017
6018         modechange: Move AC_LIBOBJ invocations to module description.
6019         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6020         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6021
6022 2011-05-23  Bruno Haible  <bruno@clisp.org>
6023
6024         mkdir-p: Move AC_LIBOBJ invocations to module description.
6025         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6026         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6027
6028 2011-05-23  Bruno Haible  <bruno@clisp.org>
6029
6030         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6031         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6032         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6033
6034 2011-05-23  Bruno Haible  <bruno@clisp.org>
6035
6036         mgetgroups: Move AC_LIBOBJ invocations to module description.
6037         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6038         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6039
6040 2011-05-23  Bruno Haible  <bruno@clisp.org>
6041
6042         memxor: Move AC_LIBOBJ invocations to module description.
6043         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6044         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6045
6046 2011-05-23  Bruno Haible  <bruno@clisp.org>
6047
6048         memcoll: Move AC_LIBOBJ invocations to module description.
6049         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6050         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6051
6052 2011-05-23  Bruno Haible  <bruno@clisp.org>
6053
6054         memcasecmp: Move AC_LIBOBJ invocations to module description.
6055         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6056         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6057
6058 2011-05-23  Bruno Haible  <bruno@clisp.org>
6059
6060         crypto/md5: Move AC_LIBOBJ invocations to module description.
6061         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6062         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6063
6064 2011-05-23  Bruno Haible  <bruno@clisp.org>
6065
6066         crypto/md4: Move AC_LIBOBJ invocations to module description.
6067         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6068         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6069
6070 2011-05-23  Bruno Haible  <bruno@clisp.org>
6071
6072         crypto/md2: Move AC_LIBOBJ invocations to module description.
6073         * m4/md2.m4: Remove file.
6074         * modules/crypto/md2 (Files): Remove it.
6075         (configure.ac): Remove gl_MD2 call.
6076         (Makefile.am): Augment lib_SOURCES.
6077
6078 2011-05-23  Bruno Haible  <bruno@clisp.org>
6079
6080         long-options: Move AC_LIBOBJ invocations to module description.
6081         * m4/long-options.m4: Remove file.
6082         * modules/long-options (Files): Remove it.
6083         (configure.ac): Remove gl_LONG_OPTIONS call.
6084         (Makefile.am): Augment lib_SOURCES.
6085
6086 2011-05-23  Bruno Haible  <bruno@clisp.org>
6087
6088         i-ring: Move AC_LIBOBJ invocations to module description.
6089         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6090         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6091
6092 2011-05-23  Bruno Haible  <bruno@clisp.org>
6093
6094         idcache: Move AC_LIBOBJ invocations to module description.
6095         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6096         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6097
6098 2011-05-23  Bruno Haible  <bruno@clisp.org>
6099
6100         human: Move AC_LIBOBJ invocations to module description.
6101         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6102         * modules/human (Makefile.am): Augment lib_SOURCES.
6103
6104 2011-05-23  Bruno Haible  <bruno@clisp.org>
6105
6106         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6107         * m4/hmac-sha1.m4: Remove file.
6108         * modules/crypto/hmac-sha1 (Files): Remove it.
6109         (configure.ac): Remove gl_HMAC_SHA1 call.
6110         (Makefile.am): Augment lib_SOURCES.
6111
6112 2011-05-23  Bruno Haible  <bruno@clisp.org>
6113
6114         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6115         * m4/hmac-md5.m4: Remove file.
6116         * modules/crypto/hmac-md5 (Files): Remove it.
6117         (configure.ac): Remove gl_HMAC_MD5 call.
6118         (Makefile.am): Augment lib_SOURCES.
6119
6120 2011-05-23  Bruno Haible  <bruno@clisp.org>
6121
6122         hash: Move AC_LIBOBJ invocations to module description.
6123         * m4/hash.m4: Remove file.
6124         * modules/hash (Files): Remove it.
6125         (configure.ac): Remove gl_HASH call.
6126         (Makefile.am): Augment lib_SOURCES.
6127
6128 2011-05-23  Bruno Haible  <bruno@clisp.org>
6129
6130         hard-locale: Move AC_LIBOBJ invocations to module description.
6131         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
6132         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
6133
6134 2011-05-23  Bruno Haible  <bruno@clisp.org>
6135
6136         getugroups: Move AC_LIBOBJ invocations to module description.
6137         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
6138         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
6139
6140 2011-05-23  Bruno Haible  <bruno@clisp.org>
6141
6142         gettime: Move AC_LIBOBJ invocations to module description.
6143         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
6144         * modules/gettime (Makefile.am): Augment lib_SOURCES.
6145
6146 2011-05-23  Bruno Haible  <bruno@clisp.org>
6147
6148         getndelim2: Move AC_LIBOBJ invocations to module description.
6149         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
6150         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
6151
6152 2011-05-23  Bruno Haible  <bruno@clisp.org>
6153
6154         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
6155         * m4/gc-pbkdf2-sha1.m4: Remove file.
6156         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
6157         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
6158         (Makefile.am): Augment lib_SOURCES.
6159
6160 2011-05-23  Bruno Haible  <bruno@clisp.org>
6161
6162         fts: Move AC_LIBOBJ invocations to module description.
6163         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
6164         * modules/fts (configure.ac): ... to here.
6165
6166 2011-05-23  Bruno Haible  <bruno@clisp.org>
6167
6168         file-type: Move AC_LIBOBJ invocations to module description.
6169         * m4/file-type.m4: Remove file.
6170         * modules/file-type (Files): Remove it.
6171         (configure.ac): Remove gl_FILE_TYPE call.
6172         (Makefile.am): Augment lib_SOURCES.
6173
6174 2011-05-23  Bruno Haible  <bruno@clisp.org>
6175
6176         filenamecat*: Respect rules for use of AC_LIBOBJ.
6177         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6178         Remove AC_LIBOBJ invocation.
6179         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6180         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6181
6182 2011-05-23  Bruno Haible  <bruno@clisp.org>
6183
6184         filemode: Move AC_LIBOBJ invocations to module description.
6185         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6186         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6187
6188 2011-05-23  Bruno Haible  <bruno@clisp.org>
6189
6190         openat-safer: Move AC_LIBOBJ invocations to module description.
6191         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6192         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6193
6194 2011-05-23  Bruno Haible  <bruno@clisp.org>
6195
6196         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6197         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6198         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6199
6200 2011-05-23  Bruno Haible  <bruno@clisp.org>
6201
6202         exclude: Move AC_LIBOBJ invocations to module description.
6203         * m4/exclude.m4: Remove file.
6204         * modules/exclude (Files): Remove it.
6205         (configure.ac): Remove gl_EXCLUDE call.
6206         (Makefile.am): Augment lib_SOURCES.
6207
6208 2011-05-23  Bruno Haible  <bruno@clisp.org>
6209
6210         dirname*: Respect rules for use of AC_LIBOBJ.
6211         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
6212         invocations.
6213         * modules/dirname (Makefile.am): Augment lib_SOURCES.
6214         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
6215
6216 2011-05-23  Bruno Haible  <bruno@clisp.org>
6217
6218         dirent-safer: Move AC_LIBOBJ invocations to module description.
6219         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
6220         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
6221
6222 2011-05-23  Bruno Haible  <bruno@clisp.org>
6223
6224         crypto/des: Move AC_LIBOBJ invocations to module description.
6225         * m4/des.m4: Remove file.
6226         * modules/crypto/des (Files): Remove it.
6227         (configure.ac): Remove gl_DES call.
6228         (Makefile.am): Augment lib_SOURCES.
6229
6230 2011-05-23  Bruno Haible  <bruno@clisp.org>
6231
6232         cycle-check: Move AC_LIBOBJ invocations to module description.
6233         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
6234         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
6235
6236 2011-05-23  Bruno Haible  <bruno@clisp.org>
6237
6238         c-strtold: Move AC_LIBOBJ invocations to module description.
6239         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
6240         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
6241
6242 2011-05-23  Bruno Haible  <bruno@clisp.org>
6243
6244         c-strtod: Move AC_LIBOBJ invocations to module description.
6245         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
6246         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
6247
6248 2011-05-23  Bruno Haible  <bruno@clisp.org>
6249
6250         crc: Move AC_LIBOBJ invocations to module description.
6251         * m4/crc.m4: Remove file.
6252         * modules/crc (Files): Remove it.
6253         (configure.ac): Remove gl_CRC call.
6254         (Makefile.am): Augment lib_SOURCES.
6255
6256 2011-05-23  Bruno Haible  <bruno@clisp.org>
6257
6258         close-stream: Move AC_LIBOBJ invocations to module description.
6259         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
6260         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
6261
6262 2011-05-23  Bruno Haible  <bruno@clisp.org>
6263
6264         closeout: Move AC_LIBOBJ invocations to module description.
6265         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
6266         * modules/closeout (Makefile.am): Augment lib_SOURCES.
6267
6268 2011-05-23  Bruno Haible  <bruno@clisp.org>
6269
6270         closein: Move AC_LIBOBJ invocations to module description.
6271         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
6272         * modules/closein (Makefile.am): Augment lib_SOURCES.
6273
6274 2011-05-23  Bruno Haible  <bruno@clisp.org>
6275
6276         cloexec: Move AC_LIBOBJ invocations to module description.
6277         * m4/cloexec.m4: Remove file.
6278         * modules/cloexec (Files): Remove it.
6279         (configure.ac): Remove gl_CLOEXEC call.
6280         (Makefile.am): Augment lib_SOURCES.
6281
6282 2011-05-23  Bruno Haible  <bruno@clisp.org>
6283
6284         check-version: Move AC_LIBOBJ invocations to module description.
6285         * m4/check-version.m4: Remove file.
6286         * modules/check-version (Files): Remove it.
6287         (configure.ac): Remove gl_CHECK_VERSION call.
6288         (Makefile.am): Augment lib_SOURCES.
6289
6290 2011-05-23  Bruno Haible  <bruno@clisp.org>
6291
6292         chdir-safer: Move AC_LIBOBJ invocations to module description.
6293         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
6294         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
6295
6296 2011-05-23  Bruno Haible  <bruno@clisp.org>
6297
6298         canonicalize: Move AC_LIBOBJ invocations to module description.
6299         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
6300         AC_LIBOBJ invocation.
6301         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
6302
6303 2011-05-23  Bruno Haible  <bruno@clisp.org>
6304
6305         canon-host: Move AC_LIBOBJ invocations to module description.
6306         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
6307         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
6308         instead of gl_CANON_HOST.
6309         (Makefile.am): Augment lib_SOURCES.
6310
6311 2011-05-23  Bruno Haible  <bruno@clisp.org>
6312
6313         backupfile: Move AC_LIBOBJ invocations to module description.
6314         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
6315         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
6316
6317 2011-05-23  Bruno Haible  <bruno@clisp.org>
6318
6319         argmatch: Move AC_LIBOBJ invocations to module description.
6320         * m4/argmatch.m4: Remove file.
6321         * modules/argmatch (Files): Remove it.
6322         (configure.ac): Remove gl_ARGMATCH call.
6323         (Makefile.am): Augment lib_SOURCES.
6324
6325 2011-05-23  Bruno Haible  <bruno@clisp.org>
6326
6327         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
6328         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
6329         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
6330
6331 2011-05-23  Bruno Haible  <bruno@clisp.org>
6332
6333         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
6334         * m4/arcfour.m4: Remove file.
6335         * modules/crypto/arcfour (Files): Remove it.
6336         (configure.ac): Remove gl_ARCFOUR call.
6337         (Makefile.am): Augment lib_SOURCES.
6338
6339 2011-05-22  Bruno Haible  <bruno@clisp.org>
6340
6341         write: Move AC_LIBOBJ invocations to module description.
6342         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
6343         * modules/write (configure.ac): ... to here.
6344
6345 2011-05-22  Bruno Haible  <bruno@clisp.org>
6346
6347         wmemset: Move AC_LIBOBJ invocations to module description.
6348         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
6349         here...
6350         * modules/wmemset (configure.ac): ... to here.
6351
6352 2011-05-22  Bruno Haible  <bruno@clisp.org>
6353
6354         wmemmove: Move AC_LIBOBJ invocations to module description.
6355         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
6356         here...
6357         * modules/wmemmove (configure.ac): ... to here.
6358
6359 2011-05-22  Bruno Haible  <bruno@clisp.org>
6360
6361         wmemcpy: Move AC_LIBOBJ invocations to module description.
6362         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
6363         here...
6364         * modules/wmemcpy (configure.ac): ... to here.
6365
6366 2011-05-22  Bruno Haible  <bruno@clisp.org>
6367
6368         wmemcmp: Move AC_LIBOBJ invocations to module description.
6369         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
6370         here...
6371         * modules/wmemcmp (configure.ac): ... to here.
6372
6373 2011-05-22  Bruno Haible  <bruno@clisp.org>
6374
6375         wmemchr: Move AC_LIBOBJ invocations to module description.
6376         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
6377         here...
6378         * modules/wmemchr (configure.ac): ... to here.
6379
6380 2011-05-22  Bruno Haible  <bruno@clisp.org>
6381
6382         wcswidth: Move AC_LIBOBJ invocations to module description.
6383         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
6384         here...
6385         * modules/wcswidth (configure.ac): ... to here.
6386
6387 2011-05-22  Bruno Haible  <bruno@clisp.org>
6388
6389         wcwidth: Respect rules for use of AC_LIBOBJ.
6390         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
6391         invocation from here...
6392         * modules/wcwidth (configure.ac): ... to here.
6393         (Depends-on): Update conditions.
6394
6395 2011-05-22  Bruno Haible  <bruno@clisp.org>
6396
6397         wctype: Move AC_LIBOBJ invocations to module description.
6398         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
6399         invocation from here...
6400         * modules/wctype (configure.ac): ... to here.
6401         (Depends-on): Update conditions.
6402
6403 2011-05-22  Bruno Haible  <bruno@clisp.org>
6404
6405         wctrans: Move AC_LIBOBJ invocations to module description.
6406         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
6407         invocation from here...
6408         * modules/wctrans (configure.ac): ... to here.
6409
6410 2011-05-22  Bruno Haible  <bruno@clisp.org>
6411
6412         wctomb: Move AC_LIBOBJ invocations to module description.
6413         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
6414         invocations from here...
6415         * modules/wctomb (configure.ac): ... to here.
6416
6417 2011-05-22  Bruno Haible  <bruno@clisp.org>
6418
6419         wctob: Move AC_LIBOBJ invocations to module description.
6420         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
6421         gl_PREREQ_WCTOB invocations from here...
6422         * modules/wctob (configure.ac): ... to here.
6423         (Depends-on): Update conditions.
6424
6425 2011-05-22  Bruno Haible  <bruno@clisp.org>
6426
6427         wcsxfrm: Move AC_LIBOBJ invocations to module description.
6428         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
6429         here...
6430         * modules/wcsxfrm (configure.ac): ... to here.
6431
6432 2011-05-22  Bruno Haible  <bruno@clisp.org>
6433
6434         wcstok: Move AC_LIBOBJ invocations to module description.
6435         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
6436         * modules/wcstok (configure.ac): ... to here.
6437
6438 2011-05-22  Bruno Haible  <bruno@clisp.org>
6439
6440         wcsstr: Move AC_LIBOBJ invocations to module description.
6441         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
6442         * modules/wcsstr (configure.ac): ... to here.
6443
6444 2011-05-22  Bruno Haible  <bruno@clisp.org>
6445
6446         wcsspn: Move AC_LIBOBJ invocations to module description.
6447         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
6448         * modules/wcsspn (configure.ac): ... to here.
6449
6450 2011-05-22  Bruno Haible  <bruno@clisp.org>
6451
6452         wcsrtombs: Move AC_LIBOBJ invocations to module description.
6453         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
6454         gl_PREREQ_WCSRTOMBS invocations from here...
6455         * modules/wcsrtombs (configure.ac): ... to here.
6456
6457 2011-05-22  Bruno Haible  <bruno@clisp.org>
6458
6459         wcsrchr: Move AC_LIBOBJ invocations to module description.
6460         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
6461         here...
6462         * modules/wcsrchr (configure.ac): ... to here.
6463
6464 2011-05-22  Bruno Haible  <bruno@clisp.org>
6465
6466         wcspbrk: Move AC_LIBOBJ invocations to module description.
6467         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
6468         here...
6469         * modules/wcspbrk (configure.ac): ... to here.
6470
6471 2011-05-22  Bruno Haible  <bruno@clisp.org>
6472
6473         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
6474         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
6475         gl_PREREQ_WCSNRTOMBS invocations from here...
6476         * modules/wcsnrtombs (configure.ac): ... to here.
6477
6478 2011-05-22  Bruno Haible  <bruno@clisp.org>
6479
6480         wcsnlen: Move AC_LIBOBJ invocations to module description.
6481         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
6482         here...
6483         * modules/wcsnlen (configure.ac): ... to here.
6484
6485 2011-05-22  Bruno Haible  <bruno@clisp.org>
6486
6487         wcsncpy: Move AC_LIBOBJ invocations to module description.
6488         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
6489         here...
6490         * modules/wcsncpy (configure.ac): ... to here.
6491
6492 2011-05-22  Bruno Haible  <bruno@clisp.org>
6493
6494         wcsncmp: Move AC_LIBOBJ invocations to module description.
6495         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
6496         here...
6497         * modules/wcsncmp (configure.ac): ... to here.
6498
6499 2011-05-22  Bruno Haible  <bruno@clisp.org>
6500
6501         wcsncat: Move AC_LIBOBJ invocations to module description.
6502         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
6503         here...
6504         * modules/wcsncat (configure.ac): ... to here.
6505
6506 2011-05-22  Bruno Haible  <bruno@clisp.org>
6507
6508         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
6509         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
6510         from here...
6511         * modules/wcsncasecmp (configure.ac): ... to here.
6512
6513 2011-05-22  Bruno Haible  <bruno@clisp.org>
6514
6515         wcslen: Move AC_LIBOBJ invocations to module description.
6516         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
6517         * modules/wcslen (configure.ac): ... to here.
6518
6519 2011-05-22  Bruno Haible  <bruno@clisp.org>
6520
6521         wcsdup: Move AC_LIBOBJ invocations to module description.
6522         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
6523         * modules/wcsdup (configure.ac): ... to here.
6524
6525 2011-05-22  Bruno Haible  <bruno@clisp.org>
6526
6527         wcscspn: Move AC_LIBOBJ invocations to module description.
6528         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
6529         here...
6530         * modules/wcscspn (configure.ac): ... to here.
6531
6532 2011-05-22  Bruno Haible  <bruno@clisp.org>
6533
6534         wcscpy: Move AC_LIBOBJ invocations to module description.
6535         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
6536         * modules/wcscpy (configure.ac): ... to here.
6537
6538 2011-05-22  Bruno Haible  <bruno@clisp.org>
6539
6540         wcscoll: Move AC_LIBOBJ invocations to module description.
6541         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
6542         here...
6543         * modules/wcscoll (configure.ac): ... to here.
6544
6545 2011-05-22  Bruno Haible  <bruno@clisp.org>
6546
6547         wcscmp: Move AC_LIBOBJ invocations to module description.
6548         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
6549         * modules/wcscmp (configure.ac): ... to here.
6550
6551 2011-05-22  Bruno Haible  <bruno@clisp.org>
6552
6553         wcschr: Move AC_LIBOBJ invocations to module description.
6554         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
6555         * modules/wcschr (configure.ac): ... to here.
6556
6557 2011-05-22  Bruno Haible  <bruno@clisp.org>
6558
6559         wcscat: Move AC_LIBOBJ invocations to module description.
6560         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
6561         * modules/wcscat (configure.ac): ... to here.
6562
6563 2011-05-22  Bruno Haible  <bruno@clisp.org>
6564
6565         wcscasecmp: Move AC_LIBOBJ invocations to module description.
6566         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
6567         here...
6568         * modules/wcscasecmp (configure.ac): ... to here.
6569
6570 2011-05-22  Bruno Haible  <bruno@clisp.org>
6571
6572         wcrtomb: Move AC_LIBOBJ invocations to module description.
6573         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
6574         invocations from here...
6575         * modules/wcrtomb (configure.ac): ... to here.
6576
6577 2011-05-22  Bruno Haible  <bruno@clisp.org>
6578
6579         wcpncpy: Move AC_LIBOBJ invocations to module description.
6580         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
6581         here...
6582         * modules/wcpncpy (configure.ac): ... to here.
6583
6584 2011-05-22  Bruno Haible  <bruno@clisp.org>
6585
6586         wcpcpy: Move AC_LIBOBJ invocations to module description.
6587         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
6588         * modules/wcpcpy (configure.ac): ... to here.
6589
6590 2011-05-22  Bruno Haible  <bruno@clisp.org>
6591
6592         waitpid: Move AC_LIBOBJ invocations to module description.
6593         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
6594         invocation from here...
6595         * modules/waitpid (configure.ac): ... to here.
6596
6597 2011-05-22  Bruno Haible  <bruno@clisp.org>
6598
6599         utimensat: Move AC_LIBOBJ invocations to module description.
6600         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
6601         here...
6602         * modules/utimensat (configure.ac): ... to here.
6603
6604 2011-05-22  Bruno Haible  <bruno@clisp.org>
6605
6606         usleep: Move AC_LIBOBJ invocations to module description.
6607         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
6608         here...
6609         * modules/usleep (configure.ac): ... to here.
6610
6611 2011-05-22  Bruno Haible  <bruno@clisp.org>
6612
6613         unlockpt: Move AC_LIBOBJ invocations to module description.
6614         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
6615         gl_PREREQ_UNLOCKPT invocations from here...
6616         * modules/unlockpt (configure.ac): ... to here.
6617
6618 2011-05-22  Bruno Haible  <bruno@clisp.org>
6619
6620         unlink: Respect rules for use of AC_LIBOBJ.
6621         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
6622         * modules/unlink (configure.ac): ... to here.
6623
6624 2011-05-22  Bruno Haible  <bruno@clisp.org>
6625
6626         uname: Move AC_LIBOBJ invocations to module description.
6627         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
6628         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
6629         here...
6630         * modules/uname (configure.ac): ... to here.
6631
6632 2011-05-22  Bruno Haible  <bruno@clisp.org>
6633
6634         ttyname_r: Move AC_LIBOBJ invocations to module description.
6635         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
6636         gl_PREREQ_TTYNAME_R invocations from here...
6637         * modules/ttyname_r (configure.ac): ... to here.
6638
6639 2011-05-22  Bruno Haible  <bruno@clisp.org>
6640
6641         tsearch: Move AC_LIBOBJ invocations to module description.
6642         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
6643         invocations from here...
6644         * modules/tsearch (configure.ac): ... to here.
6645
6646 2011-05-22  Bruno Haible  <bruno@clisp.org>
6647
6648         towctrans: Move AC_LIBOBJ invocations to module description.
6649         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
6650         AC_LIBOBJ invocation from here...
6651         * modules/towctrans (configure.ac): ... to here.
6652
6653 2011-05-22  Bruno Haible  <bruno@clisp.org>
6654
6655         tmpfile: Move AC_LIBOBJ invocations to module description.
6656         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
6657         invocations from here...
6658         * modules/tmpfile (configure.ac): ... to here.
6659
6660 2011-05-22  Bruno Haible  <bruno@clisp.org>
6661
6662         times: Move AC_LIBOBJ invocations to module description.
6663         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
6664         * modules/times (configure.ac): ... to here.
6665
6666 2011-05-22  Bruno Haible  <bruno@clisp.org>
6667
6668         time_r: Move AC_LIBOBJ invocations to module description.
6669         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
6670         invocations from here...
6671         * modules/time_r (configure.ac): ... to here.
6672
6673 2011-05-22  Bruno Haible  <bruno@clisp.org>
6674
6675         timegm: Move AC_LIBOBJ invocations to module description.
6676         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
6677         invocations from here...
6678         * modules/timegm (configure.ac): ... to here.
6679
6680 2011-05-22  Bruno Haible  <bruno@clisp.org>
6681
6682         tcgetsid: Move AC_LIBOBJ invocations to module description.
6683         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
6684         and gl_PREREQ_TCGETSID invocations from here...
6685         * modules/tcgetsid (configure.ac): ... to here.
6686         (Depends-on): Update conditions.
6687
6688 2011-05-22  Bruno Haible  <bruno@clisp.org>
6689
6690         symlinkat: Move AC_LIBOBJ invocations to module description.
6691         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
6692         here...
6693         * modules/symlinkat (configure.ac): ... to here.
6694
6695 2011-05-22  Bruno Haible  <bruno@clisp.org>
6696
6697         symlink: Move AC_LIBOBJ invocations to module description.
6698         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
6699         here...
6700         * modules/symlink (configure.ac): ... to here.
6701
6702 2011-05-22  Bruno Haible  <bruno@clisp.org>
6703
6704         strverscmp: Move AC_LIBOBJ invocations to module description.
6705         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
6706         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
6707         from here...
6708         * modules/strverscmp (configure.ac): ... to here.
6709
6710 2011-05-22  Bruno Haible  <bruno@clisp.org>
6711
6712         strtok_r: Move AC_LIBOBJ invocations to module description.
6713         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
6714         and gl_PREREQ_STRTOK_R invocations from here...
6715         * modules/strtok_r (configure.ac): ... to here.
6716         (Depends-on): Update conditions.
6717
6718 2011-05-22  Bruno Haible  <bruno@clisp.org>
6719
6720         strtoumax: Move AC_LIBOBJ invocations to module description.
6721         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
6722         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
6723         from here...
6724         * modules/strtoumax (configure.ac): ... to here.
6725
6726 2011-05-22  Bruno Haible  <bruno@clisp.org>
6727
6728         strtoimax: Move AC_LIBOBJ invocations to module description.
6729         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
6730         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
6731         from here...
6732         * modules/strtoimax (configure.ac): ... to here.
6733
6734 2011-05-22  Bruno Haible  <bruno@clisp.org>
6735
6736         strtoull: Move AC_LIBOBJ invocations to module description.
6737         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
6738         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
6739         from here...
6740         * modules/strtoull (configure.ac): ... to here.
6741
6742 2011-05-22  Bruno Haible  <bruno@clisp.org>
6743
6744         strtoll: Move AC_LIBOBJ invocations to module description.
6745         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
6746         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
6747         here...
6748         * modules/strtoll (configure.ac): ... to here.
6749
6750 2011-05-22  Bruno Haible  <bruno@clisp.org>
6751
6752         strtoul: Move AC_LIBOBJ invocations to module description.
6753         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
6754         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6755         * modules/strtoul (configure.ac): ... to here.
6756
6757 2011-05-22  Bruno Haible  <bruno@clisp.org>
6758
6759         strtol: Move AC_LIBOBJ invocations to module description.
6760         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
6761         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6762         * modules/strtol (configure.ac): ... to here.
6763
6764 2011-05-22  Bruno Haible  <bruno@clisp.org>
6765
6766         strtod: Move AC_LIBOBJ invocations to module description.
6767         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
6768         invocations from here...
6769         * modules/strtod (configure.ac): ... to here.
6770
6771 2011-05-22  Bruno Haible  <bruno@clisp.org>
6772
6773         strstr*: Move AC_LIBOBJ invocations to module description.
6774         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
6775         invocations from here...
6776         * modules/strstr-simple (configure.ac): ... to here.
6777         * modules/strstr (configure.ac): ... and here.
6778
6779 2011-05-22  Bruno Haible  <bruno@clisp.org>
6780
6781         strsignal: Move AC_LIBOBJ invocations to module description.
6782         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
6783         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
6784         * modules/strsignal (configure.ac): ... to here.
6785         (Depends-on): Update conditions.
6786
6787 2011-05-22  Bruno Haible  <bruno@clisp.org>
6788
6789         strsep: Move AC_LIBOBJ invocations to module description.
6790         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
6791         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
6792         here...
6793         * modules/strsep (configure.ac): ... to here.
6794
6795 2011-05-22  Bruno Haible  <bruno@clisp.org>
6796
6797         strptime: Move AC_LIBOBJ invocations to module description.
6798         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
6799         gl_PREREQ_STRPTIME invocations from here...
6800         * modules/strptime (configure.ac): ... to here.
6801
6802 2011-05-22  Bruno Haible  <bruno@clisp.org>
6803
6804         strpbrk: Move AC_LIBOBJ invocations to module description.
6805         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
6806         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
6807         here...
6808         * modules/strpbrk (configure.ac): ... to here.
6809
6810 2011-05-22  Bruno Haible  <bruno@clisp.org>
6811
6812         strnlen: Move AC_LIBOBJ invocations to module description.
6813         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
6814         invocations from here...
6815         * modules/strnlen (configure.ac): ... to here.
6816
6817 2011-05-22  Bruno Haible  <bruno@clisp.org>
6818
6819         strndup: Move AC_LIBOBJ invocations to module description.
6820         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
6821         invocations from here...
6822         * modules/strndup (configure.ac): ... to here.
6823         (Depends-on): Update conditions.
6824
6825 2011-05-22  Bruno Haible  <bruno@clisp.org>
6826
6827         strncat: Move AC_LIBOBJ invocations to module description.
6828         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
6829         invocations from here...
6830         * modules/strncat (configure.ac): ... to here.
6831
6832 2011-05-22  Bruno Haible  <bruno@clisp.org>
6833
6834         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
6835         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
6836         invocations from here...
6837         * modules/strdup (configure.ac): ... to here.
6838         * modules/strdup-posix (configure.ac): ... and here.
6839
6840 2011-05-22  Bruno Haible  <bruno@clisp.org>
6841
6842         strcspn: Move AC_LIBOBJ invocations to module description.
6843         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
6844         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
6845         here...
6846         * modules/strcspn (configure.ac): ... to here.
6847
6848 2011-05-22  Bruno Haible  <bruno@clisp.org>
6849
6850         strchrnul: Move AC_LIBOBJ invocations to module description.
6851         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
6852         gl_PREREQ_STRCHRNUL invocations from here...
6853         * modules/strchrnul (configure.ac): ... to here.
6854
6855 2011-05-22  Bruno Haible  <bruno@clisp.org>
6856
6857         strcasestr*: Move AC_LIBOBJ invocations to module description.
6858         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6859         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
6860         * modules/strcasestr-simple (configure.ac): ... to here.
6861         * modules/strcasestr (configure.ac): ... and here.
6862
6863 2011-05-22  Bruno Haible  <bruno@clisp.org>
6864
6865         strcase: Move AC_LIBOBJ invocations to module description.
6866         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
6867         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
6868         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
6869         gl_PREREQ_STRNCASECMP invocations from here...
6870         * modules/strcase (configure.ac): ... to here.
6871
6872 2011-05-22  Bruno Haible  <bruno@clisp.org>
6873
6874         stpncpy: Move AC_LIBOBJ invocations to module description.
6875         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
6876         here...
6877         * modules/stpncpy (configure.ac): ... to here.
6878
6879 2011-05-22  Bruno Haible  <bruno@clisp.org>
6880
6881         stpcpy: Move AC_LIBOBJ invocations to module description.
6882         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
6883         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
6884         here...
6885         * modules/stpcpy (configure.ac): ... to here.
6886
6887 2011-05-21  Bruno Haible  <bruno@clisp.org>
6888
6889         stat: Move AC_LIBOBJ invocations to module description.
6890         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
6891         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
6892         here...
6893         * modules/stat (configure.ac): ... to here.
6894
6895 2011-05-21  Bruno Haible  <bruno@clisp.org>
6896
6897         sleep: Move AC_LIBOBJ invocations to module description.
6898         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
6899         * modules/sleep (configure.ac): ... to here.
6900
6901 2011-05-21  Bruno Haible  <bruno@clisp.org>
6902
6903         signbit: Move AC_LIBOBJ invocations to module description.
6904         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
6905         * modules/signbit (configure.ac): ... to here.
6906
6907 2011-05-21  Bruno Haible  <bruno@clisp.org>
6908
6909         sigprocmask: Move AC_LIBOBJ invocations to module description.
6910         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
6911         gl_PREREQ_SIGPROMASK invocations from here...
6912         * modules/sigprocmask (configure.ac): ... to here.
6913
6914 2011-05-21  Bruno Haible  <bruno@clisp.org>
6915
6916         sigaction: Move AC_LIBOBJ invocations to module description.
6917         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
6918         gl_PREREQ_SIGACTION invocations from here...
6919         * modules/sigaction (configure.ac): ... to here.
6920
6921 2011-05-21  Bruno Haible  <bruno@clisp.org>
6922
6923         sig2str: Move AC_LIBOBJ invocations to module description.
6924         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
6925         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
6926         here...
6927         * modules/sig2str (configure.ac): ... to here.
6928
6929 2011-05-21  Bruno Haible  <bruno@clisp.org>
6930
6931         setlocale: Move AC_LIBOBJ invocations to module description.
6932         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
6933         gl_PREREQ_SETLOCALE invocations from here...
6934         * modules/setlocale (configure.ac): ... to here.
6935
6936 2011-05-21  Bruno Haible  <bruno@clisp.org>
6937
6938         unsetenv: Move AC_LIBOBJ invocations to module description.
6939         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
6940         and gl_PREREQ_UNSETENV invocations from here...
6941         * modules/unsetenv (configure.ac): ... to here.
6942         (Depends-on): Update.
6943
6944 2011-05-21  Bruno Haible  <bruno@clisp.org>
6945
6946         setenv: Move AC_LIBOBJ invocations to module description.
6947         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
6948         here...
6949         * modules/setenv (configure.ac): ... to here.
6950
6951 2011-05-21  Bruno Haible  <bruno@clisp.org>
6952
6953         selinux-h: Move AC_LIBOBJ invocations to module description.
6954         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
6955         AC_LIBOBJ invocation from here...
6956         * modules/selinux-h (configure.ac): ... to here.
6957
6958 2011-05-21  Bruno Haible  <bruno@clisp.org>
6959
6960         select: Respect rules for use of AC_LIBOBJ.
6961         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
6962         here...
6963         * modules/select (configure.ac): ... to here.
6964
6965 2011-05-21  Bruno Haible  <bruno@clisp.org>
6966
6967         scandir: Move AC_LIBOBJ invocations to module description.
6968         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
6969         invocations from here...
6970         * modules/scandir (configure.ac): ... to here.
6971
6972 2011-05-21  Bruno Haible  <bruno@clisp.org>
6973
6974         rpmatch: Move AC_LIBOBJ invocations to module description.
6975         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
6976         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
6977         here...
6978         * modules/rpmatch (configure.ac): ... to here.
6979
6980 2011-05-21  Bruno Haible  <bruno@clisp.org>
6981
6982         rmdir: Respect rules for use of AC_LIBOBJ.
6983         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
6984         * modules/rmdir (configure.ac): ... to here.
6985
6986 2011-05-21  Bruno Haible  <bruno@clisp.org>
6987
6988         renameat: Move AC_LIBOBJ invocations to module description.
6989         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
6990         here...
6991         * modules/renameat (configure.ac): ... to here.
6992
6993 2011-05-21  Bruno Haible  <bruno@clisp.org>
6994
6995         rename: Respect rules for use of AC_LIBOBJ.
6996         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
6997         here...
6998         * modules/rename (configure.ac): ... to here.
6999
7000 2011-05-21  Bruno Haible  <bruno@clisp.org>
7001
7002         remove: Move AC_LIBOBJ invocations to module description.
7003         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7004         here...
7005         * modules/remove (configure.ac): ... to here.
7006
7007 2011-05-21  Bruno Haible  <bruno@clisp.org>
7008
7009         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7010         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7011         macro.
7012         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7013         * modules/relocatable-lib (configure.ac): ... to here.
7014         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7015         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7016
7017 2011-05-21  Bruno Haible  <bruno@clisp.org>
7018
7019         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7020         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7021         here...
7022         * modules/relocatable-prog (configure.ac): ... to here.
7023
7024 2011-05-21  Bruno Haible  <bruno@clisp.org>
7025
7026         regex: Move AC_LIBOBJ invocations to module description.
7027         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7028         invocations from here...
7029         * modules/regex (configure.ac): ... to here.
7030
7031 2011-05-21  Bruno Haible  <bruno@clisp.org>
7032
7033         realloc-*: Move AC_LIBOBJ invocations to module description.
7034         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7035         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7036         AC_LIBOBJ invocations from here...
7037         * modules/realloc-gnu (configure.ac): ... to here.
7038         * modules/realloc-posix (configure.ac): ... and here.
7039
7040 2011-05-21  Bruno Haible  <bruno@clisp.org>
7041
7042         readutmp: Move AC_LIBOBJ invocations to module description.
7043         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7044         * modules/readutmp (configure.ac): ... to here.
7045
7046 2011-05-21  Bruno Haible  <bruno@clisp.org>
7047
7048         readlinkat: Move AC_LIBOBJ invocations to module description.
7049         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7050         here...
7051         * modules/readlinkat (configure.ac): ... to here.
7052
7053 2011-05-21  Bruno Haible  <bruno@clisp.org>
7054
7055         readlink: Move AC_LIBOBJ invocations to module description.
7056         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7057         gl_PREREQ_READLINK invocations from here...
7058         * modules/readlink (configure.ac): ... to here.
7059
7060 2011-05-21  Bruno Haible  <bruno@clisp.org>
7061
7062         readline: Move AC_LIBOBJ invocations to module description.
7063         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7064         gl_PREREQ_READLINE invocations from here...
7065         * modules/readline (configure.ac): ... to here.
7066
7067 2011-05-21  Bruno Haible  <bruno@clisp.org>
7068
7069         read: Move AC_LIBOBJ invocations to module description.
7070         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7071         * modules/read (configure.ac): ... to here.
7072
7073 2011-05-21  Bruno Haible  <bruno@clisp.org>
7074
7075         rawmemchr: Move AC_LIBOBJ invocations to module description.
7076         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7077         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7078         from here...
7079         * modules/rawmemchr (configure.ac): ... to here.
7080
7081 2011-05-21  Bruno Haible  <bruno@clisp.org>
7082
7083         random_r: Move AC_LIBOBJ invocations to module description.
7084         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7085         gl_PREREQ_RANDOM_R invocations from here...
7086         * modules/random_r (configure.ac): ... to here.
7087
7088 2011-05-21  Bruno Haible  <bruno@clisp.org>
7089
7090         pwrite: Move AC_LIBOBJ invocations to module description.
7091         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7092         * modules/pwrite (configure.ac): ... to here.
7093
7094 2011-05-21  Bruno Haible  <bruno@clisp.org>
7095
7096         putenv: Move AC_LIBOBJ invocations to module description.
7097         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7098         * modules/putenv (configure.ac): ... to here.
7099
7100 2011-05-21  Bruno Haible  <bruno@clisp.org>
7101
7102         login_tty: Move AC_LIBOBJ invocations to module description.
7103         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7104         * modules/login_tty (configure.ac): ... to here.
7105
7106 2011-05-21  Bruno Haible  <bruno@clisp.org>
7107
7108         openpty: Move AC_LIBOBJ invocations to module description.
7109         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7110         * modules/openpty (configure.ac): ... to here.
7111
7112 2011-05-21  Bruno Haible  <bruno@clisp.org>
7113
7114         forkpty: Move AC_LIBOBJ invocations to module description.
7115         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7116         * modules/forkpty (configure.ac): ... to here.
7117
7118 2011-05-21  Bruno Haible  <bruno@clisp.org>
7119
7120         ptsname: Move AC_LIBOBJ invocations to module description.
7121         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7122         invocations from here...
7123         * modules/ptsname (configure.ac): ... to here.
7124
7125 2011-05-21  Bruno Haible  <bruno@clisp.org>
7126
7127         pread: Move AC_LIBOBJ invocations to module description.
7128         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
7129         * modules/pread (configure.ac): ... to here.
7130
7131 2011-05-21  Bruno Haible  <bruno@clisp.org>
7132
7133         posix_spawn*: Move AC_LIBOBJ invocations to module description.
7134         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
7135         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
7136         * modules/posix_spawn (configure.ac): ... to here.
7137         * modules/posix_spawnp (configure.ac): ... and here.
7138
7139 2011-05-21  Bruno Haible  <bruno@clisp.org>
7140
7141         popen: Move AC_LIBOBJ invocations to module description.
7142         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
7143         invocations from here...
7144         * modules/popen (configure.ac): ... to here.
7145
7146 2011-05-21  Bruno Haible  <bruno@clisp.org>
7147
7148         poll: Move AC_LIBOBJ invocations to module description.
7149         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
7150         invocations from here...
7151         * modules/poll (configure.ac): ... to here.
7152
7153 2011-05-21  Bruno Haible  <bruno@clisp.org>
7154
7155         pipe-posix: Move AC_LIBOBJ invocations to module description.
7156         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
7157         * modules/pipe-posix (configure.ac): ... to here.
7158
7159 2011-05-21  Bruno Haible  <bruno@clisp.org>
7160
7161         openat: Respect rules for use of AC_LIBOBJ.
7162         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
7163         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7164         * modules/openat (configure.ac): ... to here.
7165
7166 2011-05-21  Bruno Haible  <bruno@clisp.org>
7167
7168         obstack-printf*: Move AC_LIBOBJ invocations to module description.
7169         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
7170         invocation from here...
7171         * modules/obstack-printf (configure.ac): ... to here.
7172         * modules/obstack-printf-posix (configure.ac): ... and here.
7173
7174 2011-05-21  Bruno Haible  <bruno@clisp.org>
7175
7176         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7177         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7178         from here...
7179         * modules/nl_langinfo (configure.ac): ... to here.
7180
7181 2011-05-21  Bruno Haible  <bruno@clisp.org>
7182
7183         nanosleep: Move AC_LIBOBJ invocations to module description.
7184         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7185         gl_PREREQ_NANOSLEEP invocations from here...
7186         * modules/nanosleep (configure.ac): ... to here.
7187
7188 2011-05-21  Bruno Haible  <bruno@clisp.org>
7189
7190         mountlist: Move AC_LIBOBJ invocations to module description.
7191         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7192         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7193         * modules/mountlist (configure.ac): ... to here.
7194
7195 2011-05-21  Bruno Haible  <bruno@clisp.org>
7196
7197         mktime: Respect rules for use of AC_LIBOBJ.
7198         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7199         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7200         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7201         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7202         * modules/mktime (configure.ac): ... to here.
7203         * modules/mktime-internal (configure.ac): ... and here.
7204         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7205
7206 2011-05-21  Bruno Haible  <bruno@clisp.org>
7207
7208         mkstemps: Move AC_LIBOBJ invocations to module description.
7209         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
7210         here...
7211         * modules/mkstemps (configure.ac): ... to here.
7212
7213 2011-05-21  Bruno Haible  <bruno@clisp.org>
7214
7215         mkstemp: Move AC_LIBOBJ invocations to module description.
7216         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
7217         gl_PREREQ_MKSTEMP invocations from here...
7218         * modules/mkstemp (configure.ac): ... to here.
7219
7220 2011-05-21  Bruno Haible  <bruno@clisp.org>
7221
7222         mkostemps: Move AC_LIBOBJ invocations to module description.
7223         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
7224         here...
7225         * modules/mkostemps (configure.ac): ... to here.
7226
7227 2011-05-21  Bruno Haible  <bruno@clisp.org>
7228
7229         mkostemp: Move AC_LIBOBJ invocations to module description.
7230         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
7231         gl_PREREQ_MKOSTEMP invocations from here...
7232         * modules/mkostemp (configure.ac): ... to here.
7233
7234 2011-05-21  Bruno Haible  <bruno@clisp.org>
7235
7236         mknod: Move AC_LIBOBJ invocations to module description.
7237         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
7238         * modules/mknod (configure.ac): ... to here.
7239
7240 2011-05-21  Bruno Haible  <bruno@clisp.org>
7241
7242         mkfifoat: Move AC_LIBOBJ invocations to module description.
7243         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
7244         here...
7245         * modules/mkfifoat (configure.ac): ... to here.
7246
7247 2011-05-21  Bruno Haible  <bruno@clisp.org>
7248
7249         mkfifo: Respect rules for use of AC_LIBOBJ.
7250         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
7251         here...
7252         * modules/mkfifo (configure.ac): ... to here.
7253
7254 2011-05-21  Bruno Haible  <bruno@clisp.org>
7255
7256         mkdtemp: Move AC_LIBOBJ invocations to module description.
7257         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
7258         invocations from here...
7259         * modules/mkdtemp (configure.ac): ... to here.
7260
7261 2011-05-21  Bruno Haible  <bruno@clisp.org>
7262
7263         mkdir: Move AC_LIBOBJ invocations to module description.
7264         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
7265         * modules/mkdir (configure.ac): ... to here.
7266
7267 2011-05-21  Bruno Haible  <bruno@clisp.org>
7268
7269         memset: Move AC_LIBOBJ invocations to module description.
7270         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
7271         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
7272         here...
7273         * modules/memset (configure.ac): ... to here.
7274
7275 2011-05-21  Bruno Haible  <bruno@clisp.org>
7276
7277         memrchr: Move AC_LIBOBJ invocations to module description.
7278         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
7279         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
7280         here...
7281         * modules/memrchr (configure.ac): ... to here.
7282
7283 2011-05-21  Bruno Haible  <bruno@clisp.org>
7284
7285         mempcpy: Move AC_LIBOBJ invocations to module description.
7286         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
7287         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
7288         here...
7289         * modules/mempcpy (configure.ac): ... to here.
7290
7291 2011-05-21  Bruno Haible  <bruno@clisp.org>
7292
7293         memmove: Move AC_LIBOBJ invocations to module description.
7294         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
7295         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
7296         here...
7297         * modules/memmove (configure.ac): ... to here.
7298
7299 2011-05-21  Bruno Haible  <bruno@clisp.org>
7300
7301         memmem*: Move AC_LIBOBJ invocations to module description.
7302         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
7303         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
7304         here...
7305         (gl_FUNC_MEMMEM): ... and here...
7306         * modules/memmem-simple (configure.ac): ... to here.
7307         * modules/memmem (configure.ac): ... and here.
7308
7309 2011-05-21  Bruno Haible  <bruno@clisp.org>
7310
7311         memcpy: Move AC_LIBOBJ invocations to module description.
7312         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
7313         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
7314         here...
7315         * modules/memcpy (configure.ac): ... to here.
7316
7317 2011-05-21  Bruno Haible  <bruno@clisp.org>
7318
7319         memcmp: Simplify autoconf macro.
7320         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
7321         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
7322         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
7323
7324 2011-05-21  Bruno Haible  <bruno@clisp.org>
7325
7326         memcmp: Move AC_LIBOBJ invocations to module description.
7327         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
7328         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
7329         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
7330         * modules/memcmp (configure.ac): ... to here.
7331         (Depends-on): Update conditions.
7332
7333 2011-05-21  Bruno Haible  <bruno@clisp.org>
7334
7335         memchr: Respect rules for use of AC_LIBOBJ.
7336         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
7337         invocations from here...
7338         * modules/memchr (configure.ac): ... to here.
7339
7340 2011-05-21  Bruno Haible  <bruno@clisp.org>
7341
7342         mbtowc: Move AC_LIBOBJ invocations to module description.
7343         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
7344         invocations from here...
7345         * modules/mbtowc (configure.ac): ... to here.
7346
7347 2011-05-21  Bruno Haible  <bruno@clisp.org>
7348
7349         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
7350         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
7351         gl_PREREQ_MBSRTOWCS invocations from here...
7352         * modules/mbsrtowcs (configure.ac): ... to here.
7353
7354 2011-05-21  Bruno Haible  <bruno@clisp.org>
7355
7356         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
7357         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
7358         gl_PREREQ_MBSNRTOWCS invocations from here...
7359         * modules/mbsnrtowcs (configure.ac): ... to here.
7360
7361 2011-05-21  Bruno Haible  <bruno@clisp.org>
7362
7363         mbsinit: Move AC_LIBOBJ invocations to module description.
7364         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
7365         invocations from here...
7366         * modules/mbsinit (configure.ac): ... to here.
7367
7368 2011-05-21  Bruno Haible  <bruno@clisp.org>
7369
7370         mbrlen: Move AC_LIBOBJ invocations to module description.
7371         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
7372         invocations from here...
7373         * modules/mbrlen (configure.ac): ... to here.
7374
7375 2011-05-21  Bruno Haible  <bruno@clisp.org>
7376
7377         mbrtowc: Respect rules for use of AC_LIBOBJ.
7378         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
7379         invocations from here...
7380         * modules/mbrtowc (configure.ac): ... to here.
7381
7382 2011-05-21  Bruno Haible  <bruno@clisp.org>
7383
7384         malloc-*: Move AC_LIBOBJ invocations to module description.
7385         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
7386         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
7387         AC_LIBOBJ invocations from here...
7388         * modules/malloc-gnu (configure.ac): ... to here.
7389         * modules/malloc-posix (configure.ac): ... and here.
7390
7391 2011-05-21  Bruno Haible  <bruno@clisp.org>
7392
7393         lstat, openat: Respect rules for use of AC_LIBOBJ.
7394         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
7395         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
7396         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
7397         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
7398         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
7399         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
7400         here.
7401         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
7402
7403 2011-05-21  Bruno Haible  <bruno@clisp.org>
7404
7405         lseek: Move AC_LIBOBJ invocations to module description.
7406         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
7407         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7408         * modules/lseek (configure.ac): ... to here.
7409
7410 2011-05-21  Bruno Haible  <bruno@clisp.org>
7411
7412         linkat: Move AC_LIBOBJ invocations to module description.
7413         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
7414         here...
7415         * modules/linkat (configure.ac): ... to here.
7416
7417 2011-05-21  Bruno Haible  <bruno@clisp.org>
7418
7419         link: Respect rules for use of AC_LIBOBJ.
7420         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
7421         * modules/link (configure.ac): ... to here.
7422
7423 2011-05-21  Bruno Haible  <bruno@clisp.org>
7424
7425         lchown: Move AC_LIBOBJ invocations to module description.
7426         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7427         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7428         * modules/lchown (configure.ac): ... to here.
7429
7430 2011-05-21  Bruno Haible  <bruno@clisp.org>
7431
7432         iswctype: Move AC_LIBOBJ invocations to module description.
7433         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
7434         here...
7435         * modules/iswctype (configure.ac): ... to here.
7436
7437 2011-05-21  Bruno Haible  <bruno@clisp.org>
7438
7439         iswblank: Move AC_LIBOBJ invocations to module description.
7440         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
7441         here...
7442         * modules/iswblank (configure.ac): ... to here.
7443
7444 2011-05-21  Bruno Haible  <bruno@clisp.org>
7445
7446         atanl: Move AC_LIBOBJ invocations to module description.
7447         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
7448         * modules/atanl (configure.ac): ... to here.
7449
7450 2011-05-21  Bruno Haible  <bruno@clisp.org>
7451
7452         acosl: Move AC_LIBOBJ invocations to module description.
7453         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
7454         * modules/acosl (configure.ac): ... to here.
7455
7456 2011-05-21  Bruno Haible  <bruno@clisp.org>
7457
7458         asinl: Respect rules for use of AC_LIBOBJ.
7459         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
7460         * modules/asinl (configure.ac): ... to here.
7461
7462 2011-05-21  Bruno Haible  <bruno@clisp.org>
7463
7464         tanl: Move AC_LIBOBJ invocations to module description.
7465         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
7466         * modules/tanl (configure.ac): ... to here.
7467
7468 2011-05-21  Bruno Haible  <bruno@clisp.org>
7469
7470         cosl: Move AC_LIBOBJ invocations to module description.
7471         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
7472         * modules/cosl (configure.ac): ... to here.
7473
7474 2011-05-21  Bruno Haible  <bruno@clisp.org>
7475
7476         sinl: Move AC_LIBOBJ invocations to module description.
7477         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
7478         * modules/sinl (configure.ac): ... to here.
7479
7480 2011-05-21  Bruno Haible  <bruno@clisp.org>
7481
7482         logl: Move AC_LIBOBJ invocations to module description.
7483         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
7484         * modules/logl (configure.ac): ... to here.
7485
7486 2011-05-21  Bruno Haible  <bruno@clisp.org>
7487
7488         expl: Move AC_LIBOBJ invocations to module description.
7489         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
7490         * modules/expl (configure.ac): ... to here.
7491
7492 2011-05-21  Bruno Haible  <bruno@clisp.org>
7493
7494         roundl: Move AC_LIBOBJ invocations to module description.
7495         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
7496         * modules/roundl (configure.ac): ... to here.
7497
7498 2011-05-21  Bruno Haible  <bruno@clisp.org>
7499
7500         round: Move AC_LIBOBJ invocations to module description.
7501         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
7502         * modules/round (configure.ac): ... to here.
7503
7504 2011-05-21  Bruno Haible  <bruno@clisp.org>
7505
7506         roundf: Move AC_LIBOBJ invocations to module description.
7507         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
7508         * modules/roundf (configure.ac): ... to here.
7509
7510 2011-05-21  Bruno Haible  <bruno@clisp.org>
7511
7512         truncl: Move AC_LIBOBJ invocations to module description.
7513         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
7514         * modules/truncl (configure.ac): ... to here.
7515
7516 2011-05-21  Bruno Haible  <bruno@clisp.org>
7517
7518         trunc: Move AC_LIBOBJ invocations to module description.
7519         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
7520         * modules/trunc (configure.ac): ... to here.
7521
7522 2011-05-21  Bruno Haible  <bruno@clisp.org>
7523
7524         truncf: Move AC_LIBOBJ invocations to module description.
7525         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
7526         * modules/truncf (configure.ac): ... to here.
7527
7528 2011-05-21  Bruno Haible  <bruno@clisp.org>
7529
7530         ceill: Move AC_LIBOBJ invocations to module description.
7531         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
7532         * modules/ceill (configure.ac): ... to here.
7533
7534 2011-05-21  Bruno Haible  <bruno@clisp.org>
7535
7536         ceil: Move AC_LIBOBJ invocations to module description.
7537         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
7538         * modules/ceil (configure.ac): ... to here.
7539
7540 2011-05-21  Bruno Haible  <bruno@clisp.org>
7541
7542         ceilf: Move AC_LIBOBJ invocations to module description.
7543         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
7544         * modules/ceilf (configure.ac): ... to here.
7545
7546 2011-05-21  Bruno Haible  <bruno@clisp.org>
7547
7548         floorl: Respect rules for use of AC_LIBOBJ.
7549         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
7550         * modules/floorl (configure.ac): ... to here.
7551
7552 2011-05-21  Bruno Haible  <bruno@clisp.org>
7553
7554         floor: Respect rules for use of AC_LIBOBJ.
7555         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
7556         * modules/floor (configure.ac): ... to here.
7557
7558 2011-05-21  Bruno Haible  <bruno@clisp.org>
7559
7560         floorf: Move AC_LIBOBJ invocations to module description.
7561         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
7562         * modules/floorf (configure.ac): ... to here.
7563
7564 2011-05-20  Bruno Haible  <bruno@clisp.org>
7565
7566         sqrtl: Respect rules for use of AC_LIBOBJ.
7567         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
7568         * modules/sqrtl (configure.ac): ... to here.
7569
7570 2011-05-20  Bruno Haible  <bruno@clisp.org>
7571
7572         ldexpl: Respect rules for use of AC_LIBOBJ.
7573         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
7574         * modules/ldexpl (configure.ac): ... to here.
7575
7576 2011-05-20  Bruno Haible  <bruno@clisp.org>
7577
7578         frexpl*: Respect rules for use of AC_LIBOBJ.
7579         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
7580         invocation from here...
7581         * modules/frexpl (configure.ac): ... to here.
7582         * modules/frexpl-nolibm (configure.ac): ... and here.
7583
7584 2011-05-20  Bruno Haible  <bruno@clisp.org>
7585
7586         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
7587         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
7588         invocation from here...
7589         * modules/frexp (configure.ac): ... to here.
7590         * modules/frexp-nolibm (configure.ac): ... and here.
7591
7592 2011-05-20  Bruno Haible  <bruno@clisp.org>
7593
7594         isnan: Respect rules for use of AC_LIBOBJ.
7595         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
7596         invocations here.
7597         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
7598         REPLACE_ISNAN.
7599         * modules/isnand (configure.ac): Likewise.
7600         * modules/isnanl (configure.ac): Likewise.
7601
7602 2011-05-20  Bruno Haible  <bruno@clisp.org>
7603
7604         isnanl*: Respect rules for use of AC_LIBOBJ.
7605         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
7606         invocation from here...
7607         * modules/isnanl (configure.ac): ... to here.
7608         * modules/isnanl-nolibm (configure.ac): ... and here.
7609
7610 2011-05-20  Bruno Haible  <bruno@clisp.org>
7611
7612         isnand*: Move AC_LIBOBJ invocations to module description.
7613         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
7614         invocation from here...
7615         * modules/isnand (configure.ac): ... to here.
7616         * modules/isnand-nolibm (configure.ac): ... and here.
7617
7618 2011-05-20  Bruno Haible  <bruno@clisp.org>
7619
7620         isnanf*: Move AC_LIBOBJ invocations to module description.
7621         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
7622         invocation from here...
7623         * modules/isnanf (configure.ac): ... to here.
7624         * modules/isnanf-nolibm (configure.ac): ... and here.
7625
7626 2011-05-20  Bruno Haible  <bruno@clisp.org>
7627
7628         isnan*: Separate the AC_LIBOBJ invocations.
7629         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
7630         AC_LIBOBJ invocation.
7631         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
7632         here.
7633         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
7634         AC_LIBOBJ invocation.
7635         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
7636         here.
7637         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
7638         AC_LIBOBJ invocation.
7639         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
7640         here.
7641         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
7642
7643 2011-05-08  Bruno Haible  <bruno@clisp.org>
7644
7645         isinf: Move AC_LIBOBJ invocations to module description.
7646         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
7647         * modules/isinf (configure.ac): ... to here.
7648
7649 2011-05-08  Bruno Haible  <bruno@clisp.org>
7650
7651         isfinite: Move AC_LIBOBJ invocations to module description.
7652         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
7653         * modules/isfinite (configure.ac): ... to here.
7654
7655 2011-05-08  Bruno Haible  <bruno@clisp.org>
7656
7657         isblank: Move AC_LIBOBJ invocations to module description.
7658         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
7659         here...
7660         * modules/isblank (configure.ac): ... to here.
7661
7662 2011-05-08  Bruno Haible  <bruno@clisp.org>
7663
7664         isapipe: Move AC_LIBOBJ invocations to module description.
7665         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
7666         gl_PREREQ_ISAPIPE invocations from here...
7667         * modules/isapipe (configure.ac): ... to here.
7668         (Depends-on): Update condition.
7669
7670 2011-05-08  Bruno Haible  <bruno@clisp.org>
7671
7672         ioctl: Move AC_LIBOBJ invocations to module description.
7673         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
7674         invocations from here...
7675         * modules/ioctl (configure.ac): ... to here.
7676         (Depends-on): Update condition.
7677
7678 2011-05-08  Bruno Haible  <bruno@clisp.org>
7679
7680         imaxdiv: Move AC_LIBOBJ invocations to module description.
7681         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
7682         invocations from here...
7683         * modules/imaxdiv (configure.ac): ... to here.
7684
7685 2011-05-08  Bruno Haible  <bruno@clisp.org>
7686
7687         imaxabs: Move AC_LIBOBJ invocations to module description.
7688         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
7689         invocations from here...
7690         * modules/imaxabs (configure.ac): ... to here.
7691
7692 2011-05-08  Bruno Haible  <bruno@clisp.org>
7693
7694         getaddrinfo: Move AC_LIBOBJ invocations to module description.
7695         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
7696         AC_LIBOBJ invocations from here...
7697         * modules/getaddrinfo (configure.ac): ... to here.
7698         (Depends-on): Add conditions.
7699
7700 2011-05-08  Bruno Haible  <bruno@clisp.org>
7701
7702         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7703         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
7704         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7705         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
7706         (gl_PREREQ_INET_PTON): ... from here.
7707         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
7708         gl_PREREQ_INET_PTON here.
7709         (Depends-on): Update condition.
7710
7711 2011-05-08  Bruno Haible  <bruno@clisp.org>
7712
7713         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7714         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
7715         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7716         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
7717         (gl_PREREQ_INET_NTOP): ... from here.
7718         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
7719         gl_PREREQ_INET_NTOP here.
7720         (Depends-on): Update condition.
7721
7722 2011-05-08  Bruno Haible  <bruno@clisp.org>
7723
7724         iconv_open: Move AC_LIBOBJ invocations to module description.
7725         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
7726         AC_LIBOBJ invocations from here...
7727         * modules/iconv_open (configure.ac): ... to here.
7728
7729 2011-05-08  Bruno Haible  <bruno@clisp.org>
7730
7731         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
7732         If module 'iconv_open' is among the main modules and module
7733         'iconv_open-utf' is among the tests dependencies, then
7734         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
7735         return the special iconv_t values. Therefore iconv() and iconv_close()
7736         must support these special iconv_t values, already in lib, not only in
7737         tests.
7738         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
7739         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
7740         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
7741         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
7742         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
7743         (Depends-on): Add the dependencies of iconv_open-utf.
7744         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
7745         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
7746         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
7747
7748 2011-05-08  Bruno Haible  <bruno@clisp.org>
7749
7750         group-member: Move AC_LIBOBJ invocations to module description.
7751         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
7752         gl_PREREQ_GROUP_MEMBER invocations from here...
7753         * modules/group-member (configure.ac): ... to here.
7754
7755 2011-05-08  Bruno Haible  <bruno@clisp.org>
7756
7757         grantpt: Move AC_LIBOBJ invocations to module description.
7758         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
7759         invocations from here...
7760         * modules/grantpt (configure.ac): ... to here.
7761
7762 2011-05-08  Bruno Haible  <bruno@clisp.org>
7763
7764         glob: Move AC_LIBOBJ invocations to module description.
7765         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
7766         from here...
7767         * modules/glob (configure.ac): ... to here.
7768
7769 2011-05-08  Bruno Haible  <bruno@clisp.org>
7770
7771         getusershell: Move AC_LIBOBJ invocations to module description.
7772         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
7773         Move AC_LIBOBJ invocation from here...
7774         * modules/getusershell (configure.ac): ... to here.
7775         (Depends-on): Update condition.
7776
7777 2011-05-08  Bruno Haible  <bruno@clisp.org>
7778
7779         gettimeofday: Move AC_LIBOBJ invocations to module description.
7780         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7781         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
7782         gl_PREREQ_GETTIMEOFDAY invocations from here...
7783         * modules/gettimeofday (configure.ac): ... to here.
7784
7785 2011-05-08  Bruno Haible  <bruno@clisp.org>
7786
7787         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
7788         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
7789         just gl_FUNC_TZSET.
7790         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
7791         (gl_FUNC_TZSET_CLOBBER): Remove actions.
7792         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
7793         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
7794
7795 2011-05-08  Bruno Haible  <bruno@clisp.org>
7796
7797         getsubopt: Move AC_LIBOBJ invocations to module description.
7798         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
7799         gl_PREREQ_GETSUBOPT invocations from here...
7800         * modules/getsubopt (configure.ac): ... to here.
7801
7802 2011-05-08  Bruno Haible  <bruno@clisp.org>
7803
7804         getpass-gnu: Move AC_LIBOBJ invocations to module description.
7805         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
7806         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
7807         * modules/getpass-gnu (configure.ac): ... to here.
7808
7809 2011-05-08  Bruno Haible  <bruno@clisp.org>
7810
7811         getpass: Move AC_LIBOBJ invocations to module description.
7812         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
7813         gl_PREREQ_GETPASS invocations from here...
7814         * modules/getpass (configure.ac): ... to here.
7815
7816 2011-05-08  Bruno Haible  <bruno@clisp.org>
7817
7818         getpagesize: Move AC_LIBOBJ invocations to module description.
7819         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
7820         from here...
7821         * modules/getpagesize (configure.ac): ... to here.
7822
7823 2011-05-08  Bruno Haible  <bruno@clisp.org>
7824
7825         getopt: Move AC_LIBOBJ invocations to module description.
7826         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
7827         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
7828         invocations from here...
7829         * modules/getopt-gnu (configure.ac): ... to here.
7830         * modules/getopt-posix (configure.ac): ... and here.
7831         (Depends-on): Update condition.
7832
7833 2011-05-08  Bruno Haible  <bruno@clisp.org>
7834
7835         getopt, argp: Respect rules for use of AC_LIBOBJ.
7836         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
7837         (gl_REPLACE_GETOPT_ALWAYS): New macro.
7838         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
7839         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
7840
7841 2011-05-08  Bruno Haible  <bruno@clisp.org>
7842
7843         getlogin_r: Move AC_LIBOBJ invocations to module description.
7844         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
7845         gl_PREREQ_GETLOGIN_R invocations from here...
7846         * modules/getlogin_r (configure.ac): ... to here.
7847
7848 2011-05-08  Bruno Haible  <bruno@clisp.org>
7849
7850         getlogin: Move AC_LIBOBJ invocations to module description.
7851         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
7852         here...
7853         * modules/getlogin (configure.ac): ... to here.
7854
7855 2011-05-08  Bruno Haible  <bruno@clisp.org>
7856
7857         getloadavg: Move AC_LIBOBJ invocations to module description.
7858         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
7859         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
7860         * modules/getloadavg (configure.ac): ... to here.
7861
7862 2011-05-08  Bruno Haible  <bruno@clisp.org>
7863
7864         gethrxtime: Move AC_LIBOBJ invocations to module description.
7865         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
7866         LIB_GETHRXTIME from here...
7867         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
7868         invocations from here...
7869         * modules/gethrxtime (configure.ac): ... to here.
7870
7871 2011-05-08  Bruno Haible  <bruno@clisp.org>
7872
7873         gethostname: Move AC_LIBOBJ invocations to module description.
7874         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
7875         gl_PREREQ_GETHOSTNAME invocations from here...
7876         * modules/gethostname (configure.ac): ... to here.
7877
7878 2011-05-08  Bruno Haible  <bruno@clisp.org>
7879
7880         getgroups: Move AC_LIBOBJ invocations to module description.
7881         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
7882         here...
7883         * modules/getgroups (configure.ac): ... to here.
7884
7885 2011-05-08  Bruno Haible  <bruno@clisp.org>
7886
7887         getdtablesize: Move AC_LIBOBJ invocations to module description.
7888         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
7889         invocation from here...
7890         * modules/getdtablesize (configure.ac): ... to here.
7891
7892 2011-05-08  Bruno Haible  <bruno@clisp.org>
7893
7894         getdomainname: Move AC_LIBOBJ invocations to module description.
7895         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
7896         gl_PREREQ_GETDOMAINNAME invocations from here...
7897         * modules/getdomainname (configure.ac): ... to here.
7898
7899 2011-05-08  Bruno Haible  <bruno@clisp.org>
7900
7901         getline: Move AC_LIBOBJ invocations to module description.
7902         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
7903         invocations from here...
7904         * modules/getline (configure.ac): ... to here.
7905
7906 2011-05-08  Bruno Haible  <bruno@clisp.org>
7907
7908         getline: Simplify.
7909         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
7910         It's already handled through the module dependency.
7911
7912 2011-05-08  Bruno Haible  <bruno@clisp.org>
7913
7914         getdelim: Move AC_LIBOBJ invocations to module description.
7915         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
7916         and gl_PREREQ_GETDELIM invocations from here...
7917         * modules/getdelim (configure.ac): ... to here.
7918         (Depends-on): Fix condition.
7919
7920 2011-05-08  Bruno Haible  <bruno@clisp.org>
7921
7922         getcwd: Move AC_LIBOBJ invocations to module description.
7923         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
7924         invocations from here...
7925         * modules/getcwd (configure.ac): ... to here.
7926
7927 2011-05-08  Bruno Haible  <bruno@clisp.org>
7928
7929         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
7930         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
7931         here...
7932         * modules/getcwd-lgpl (configure.ac): ... to here.
7933
7934 2011-05-07  Bruno Haible  <bruno@clisp.org>
7935
7936         crypto/gc: Move AC_LIBOBJ invocations to module description.
7937         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
7938         * modules/crypto/gc (configure.ac): ... to here.
7939
7940 2011-05-07  Bruno Haible  <bruno@clisp.org>
7941
7942         fwriting: Move AC_LIBOBJ invocations to module description.
7943         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
7944         here...
7945         * modules/fwriting (configure.ac): ... to here.
7946
7947 2011-05-07  Bruno Haible  <bruno@clisp.org>
7948
7949         fwritable: Move AC_LIBOBJ invocations to module description.
7950         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
7951         here...
7952         * modules/fwritable (configure.ac): ... to here.
7953
7954 2011-05-07  Bruno Haible  <bruno@clisp.org>
7955
7956         futimens: Move AC_LIBOBJ invocations to module description.
7957         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
7958         here...
7959         * modules/futimens (configure.ac): ... to here.
7960
7961 2011-05-07  Bruno Haible  <bruno@clisp.org>
7962
7963         ftruncate: Move AC_LIBOBJ invocations to module description.
7964         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
7965         gl_PREREQ_FTRUNCATE invocations from here...
7966         * modules/ftruncate (configure.ac): ... to here.
7967
7968 2011-05-07  Bruno Haible  <bruno@clisp.org>
7969
7970         fsync: Move AC_LIBOBJ invocations to module description.
7971         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
7972         invocations from here...
7973         * modules/fsync (configure.ac): ... to here.
7974
7975 2011-05-07  Bruno Haible  <bruno@clisp.org>
7976
7977         fsusage: Move AC_LIBOBJ invocations to module description.
7978         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
7979         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
7980         * modules/fsusage (configure.ac): ... to here.
7981
7982 2011-05-07  Bruno Haible  <bruno@clisp.org>
7983
7984         freopen: Move AC_LIBOBJ invocations to module description.
7985         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
7986         invocations from here...
7987         * modules/freopen (configure.ac): ... to here.
7988
7989 2011-05-07  Bruno Haible  <bruno@clisp.org>
7990
7991         free: Move AC_LIBOBJ invocations to module description.
7992         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
7993         invocations from here...
7994         * modules/free (configure.ac): ... to here.
7995
7996 2011-05-07  Bruno Haible  <bruno@clisp.org>
7997
7998         freadable: Move AC_LIBOBJ invocations to module description.
7999         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8000         here...
8001         * modules/freadable (configure.ac): ... to here.
8002
8003 2011-05-07  Bruno Haible  <bruno@clisp.org>
8004
8005         fpurge: Move AC_LIBOBJ invocations to module description.
8006         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8007         invocations from here...
8008         * modules/fpurge (configure.ac): ... to here.
8009
8010 2011-05-07  Bruno Haible  <bruno@clisp.org>
8011
8012         fpending: Move AC_LIBOBJ invocations to module description.
8013         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8014         gl_FUNC_FPENDING.
8015         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8016         invocations from here...
8017         * modules/fpending (configure.ac): ... to here.
8018
8019 2011-05-07  Bruno Haible  <bruno@clisp.org>
8020
8021         fopen: Move AC_LIBOBJ invocations to module description.
8022         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8023         invocations from here...
8024         * modules/fopen (configure.ac): ... to here.
8025
8026 2011-05-07  Bruno Haible  <bruno@clisp.org>
8027
8028         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8029         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8030         gl_FUNC_FNMATCH_POSIX.
8031         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8032         invocations from here...
8033         * modules/fnmatch (configure.ac): ... to here.
8034         * modules/fnmatch-gnu (configure.ac): ... and here.
8035
8036 2011-05-07  Bruno Haible  <bruno@clisp.org>
8037
8038         flock: Move AC_LIBOBJ invocations to module description.
8039         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8040         invocations from here...
8041         * modules/flock (configure.ac): ... to here.
8042
8043 2011-05-07  Bruno Haible  <bruno@clisp.org>
8044
8045         fileblocks: Move AC_LIBOBJ invocations to module description.
8046         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8047         gl_PREREQ_FILEBLOCKS invocations from here...
8048         * modules/fileblocks (configure.ac): ... to here.
8049
8050 2011-05-06  Bruno Haible  <bruno@clisp.org>
8051
8052         fflush: Move AC_LIBOBJ invocations to module description.
8053         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8054         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8055         invocations from here...
8056         * modules/fflush (configure.ac): ... to here.
8057
8058 2011-05-06  Bruno Haible  <bruno@clisp.org>
8059
8060         fdopendir: Move AC_LIBOBJ invocations to module description.
8061         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8062         here...
8063         * modules/fdopendir (configure.ac): ... to here.
8064         (Depends-on): Improve conditions.
8065
8066 2011-05-06  Bruno Haible  <bruno@clisp.org>
8067
8068         _Exit: Move AC_LIBOBJ invocations to module description.
8069         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8070         invocations from here...
8071         * modules/_Exit (configure.ac): ... to here.
8072
8073 2011-05-21  Bruno Haible  <bruno@clisp.org>
8074
8075         euidaccess: Respect rules for use of AC_LIBOBJ.
8076         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8077         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8078         from here...
8079         * modules/euidaccess (configure.ac): ... to here.
8080
8081 2011-05-06  Bruno Haible  <bruno@clisp.org>
8082
8083         error: Move AC_LIBOBJ invocations to module description.
8084         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8085         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8086         invocations from here...
8087         * modules/error (configure.ac): ... to here.
8088
8089 2011-05-06  Bruno Haible  <bruno@clisp.org>
8090
8091         duplocale: Move AC_LIBOBJ invocations to module description.
8092         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8093         gl_PREREQ_DUPLOCALE invocations from here...
8094         * modules/duplocale (configure.ac): ... to here.
8095
8096 2011-05-05  Bruno Haible  <bruno@clisp.org>
8097
8098         dirfd: Move AC_LIBOBJ invocations to module description.
8099         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8100         gl_FUNC_DIRFD.
8101         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8102         here...
8103         * modules/dirfd (configure.ac): ... to here.
8104         (Depends-on): Fix condition.
8105
8106 2011-05-05  Bruno Haible  <bruno@clisp.org>
8107
8108         chown: Respect rules for use of AC_LIBOBJ.
8109         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8110         * modules/chown (configure.ac): ... to here.
8111
8112 2011-05-05  Bruno Haible  <bruno@clisp.org>
8113
8114         chdir-long: Move AC_LIBOBJ invocations to module description.
8115         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8116         gl_PREREQ_CHDIR_LONG invocations from here...
8117         * modules/chdir-long (configure.ac): ... to here.
8118
8119 2011-05-05  Bruno Haible  <bruno@clisp.org>
8120
8121         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8122         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8123         from here...
8124         * modules/canonicalize-lgpl (configure.ac): ... to here.
8125
8126 2011-05-05  Bruno Haible  <bruno@clisp.org>
8127
8128         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
8129         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
8130         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
8131         REPLACE_CALLOC.
8132         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
8133         * modules/calloc-gnu (configure.ac): Likewise.
8134
8135 2011-05-05  Bruno Haible  <bruno@clisp.org>
8136
8137         btowc: Move AC_LIBOBJ invocations to module description.
8138         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
8139         invocations from here...
8140         * modules/btowc (configure.ac): ... to here.
8141
8142 2011-05-21  Bruno Haible  <bruno@clisp.org>
8143
8144         atexit: Move AC_LIBOBJ invocations to module description.
8145         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
8146         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
8147         here...
8148         * modules/atexit (configure.ac): ... to here.
8149
8150 2011-05-05  Bruno Haible  <bruno@clisp.org>
8151
8152         atoll: Move AC_LIBOBJ invocations to module description.
8153         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
8154         invocations from here...
8155         * modules/atoll (configure.ac): ... to here.
8156
8157 2011-05-05  Bruno Haible  <bruno@clisp.org>
8158
8159         argz: Move AC_LIBOBJ invocations to module description.
8160         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
8161         * modules/argz (configure.ac): ... to here.
8162
8163 2011-05-05  Bruno Haible  <bruno@clisp.org>
8164
8165         alphasort: Move AC_LIBOBJ invocations to module description.
8166         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
8167         gl_PREREQ_ALPHASORT invocations from here...
8168         * modules/alphasort (configure.ac): ... to here.
8169
8170 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8171
8172         verify: new macro verify_expr; verify_true deprecated
8173         * NEWS: Mention this.
8174         * doc/verify.texi (Compile-time Assertions): Document this.
8175         * lib/verify.h (verify_true): Deprecate.
8176         (verify_expr): New macro.
8177         * tests/test-verify.c (function): Test verify_expr.
8178
8179 2011-06-14  Jim Meyering  <meyering@redhat.com>
8180
8181         init.sh: give more portable redirection-related advice in a comment
8182         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8183         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8184         for lots of discussion.  Stefano Lattarini suggested the solution
8185         of putting "9>&2" after the command.  Reported by Bruno Haible.
8186
8187 2011-06-13  Bruno Haible  <bruno@clisp.org>
8188
8189         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8190         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8191         'none'.
8192
8193 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8194
8195         ftoastr: use strtof only if HAVE_STRTOF
8196         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8197         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8198         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8199         * modules/ftoastr (configure.ac): Check for strtof.
8200
8201 2011-06-13  Bruno Haible  <bruno@clisp.org>
8202
8203         gnulib-tool: Addendum to 2011-06-08 commit.
8204         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8205         and --witness-c-macro have been given, augment AM_CPPFLAGS.
8206
8207 2011-06-13  Bruno Haible  <bruno@clisp.org>
8208
8209         fseeko: Provide a non-inline replacement of fseek().
8210         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
8211         * modules/fseeko (Depends-on): Add fseek.
8212         * modules/fseek (License): Change to LGPLv2+.
8213
8214 2011-06-13  Bruno Haible  <bruno@clisp.org>
8215
8216         ftello: Provide a non-inline replacement of ftell().
8217         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
8218         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
8219         not have ftello() (such as on mingw).
8220         * modules/ftello (Depends-on): Add ftell.
8221         * modules/ftell (License): Change to LGPLv2+.
8222
8223 2011-05-07  Bruno Haible  <bruno@clisp.org>
8224
8225         ftell: Move AC_LIBOBJ invocations to module description.
8226         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
8227         * modules/ftell (configure.ac): ... to here.
8228
8229 2011-05-07  Bruno Haible  <bruno@clisp.org>
8230
8231         ftello: Respect rules for use of AC_LIBOBJ.
8232         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
8233         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
8234         here...
8235         * modules/ftello (configure.ac): ... to here.
8236
8237 2011-05-07  Bruno Haible  <bruno@clisp.org>
8238
8239         fseeko: Simplify.
8240         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
8241         (gl_FUNC_FSEEKO): Inline it here.
8242
8243 2011-05-07  Bruno Haible  <bruno@clisp.org>
8244
8245         fseek: Move AC_LIBOBJ invocations to module description.
8246         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
8247         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8248         * modules/fseek (configure.ac): ... to here.
8249
8250 2011-05-07  Bruno Haible  <bruno@clisp.org>
8251
8252         fseek: Respect rules for use of AC_LIBOBJ.
8253         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
8254         here...
8255         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
8256
8257 2011-05-07  Bruno Haible  <bruno@clisp.org>
8258
8259         fseeko: Respect rules for use of AC_LIBOBJ.
8260         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
8261         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
8262         here...
8263         * modules/fseeko (configure.ac): ... to here.
8264
8265 2011-06-13  Bruno Haible  <bruno@clisp.org>
8266
8267         gnulib-tool: Allow comments in the 'Depends-on' section.
8268         * doc/gnulib.texi (Module description): Mention comment syntax in the
8269         Depends-on section.
8270         * gnulib-tool (func_get_dependencies): Filter out comment lines.
8271
8272 2011-06-13  Bruno Haible  <bruno@clisp.org>
8273
8274         file-set.h: guard __attibute__ use, now that it's not always defined
8275         * lib/file-set.h (record_file): Use __attribute__ only with compiler
8276         versions that support it.  This fixes a coreutils build failure with
8277         the vendor cc on HP-UX 11.31.
8278
8279 2011-06-12  Bruno Haible  <bruno@clisp.org>
8280
8281         acl: Add support for HP-UX >= 11.11 JFS ACLs.
8282         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
8283         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
8284         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
8285         (acl, aclsort): New declarations.
8286         (aclv_nontrivial): New declaration.
8287         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
8288         (file_has_acl): Read also the second kind of HP-UX ACLs.
8289         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
8290         kind of HP-UX ACLs if the first kind fails.
8291         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
8292         second kind of HP-UX ACLs.
8293         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
8294         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
8295         agree.
8296         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8297         hpuxjfs.
8298         Handle hpuxjfs.
8299         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8300         hpuxjfs.
8301         Handle hpuxjfs.
8302         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8303         (func_test_same_acls): Use both lsacl and getacl.
8304         Handle hpuxjfs.
8305         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8306         (func_test_same_acls): Use both lsacl and getacl.
8307         Handle hpuxjfs.
8308
8309 2011-06-12  Bruno Haible  <bruno@clisp.org>
8310
8311         acl: Complete the 2010-08-10 fix.
8312         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
8313         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
8314         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
8315         explicitly.
8316         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
8317         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
8318
8319 2011-06-12  Bruno Haible  <bruno@clisp.org>
8320
8321         spawn-pipe tests: Comments.
8322         * tests/test-spawn-pipe-child.c (main): Update comment.
8323         Reported by James Youngman <jay@gnu.org>.
8324
8325 2011-06-11  James Youngman  <jay@gnu.org>
8326
8327         New module 'stat-size'.
8328         * modules/stat-size: New module.  Provides macros for accessing
8329         file size information in instances of struct stat.  Depends on the
8330         fileblocks module because it calls st_blocks.
8331         * lib/stat-size.h: New file, adapted from coreutils' system.h.
8332         * doc/gnulib.texi: Include stat-size.texi.
8333         * doc/stat-size.texi: Documentation for this module.
8334         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
8335         * m4/fileblocks.m4: Mention that stat-size depends on the call to
8336         AC_STRUCT_ST_BLOCKS.
8337
8338 2011-06-09  Bruno Haible  <bruno@clisp.org>
8339
8340         thread: Support pthreads-win32.
8341         * lib/glthread/thread.h (gl_thread_self): Define differently on
8342         pthreads-win32.
8343         (gl_null_thread): New declaration.
8344         (gl_thread_self_pointer): New macro.
8345         * lib/glthread/thread.c (gl_null_thread): New constant.
8346         * tests/test-lock.c: Use gl_thread_self_pointer instead of
8347         gl_thread_self.
8348         * tests/test-tls.c: Likewise.
8349         Suggested by Paul Eggert. Reported by Eric Blake.
8350
8351 2011-06-09  Bruno Haible  <bruno@clisp.org>
8352
8353         thread: Fix confusion between NULL and 0.
8354         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
8355         Reported by Paul Eggert.
8356
8357 2011-06-09  Bruno Haible  <bruno@clisp.org>
8358
8359         spawn-pipe tests: Avoid test failure on HP-UX 11.
8360         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
8361         is closed.
8362
8363 2011-06-09  Bruno Haible  <bruno@clisp.org>
8364
8365         acl tests: Fix compilation error on HP-UX 11.
8366         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
8367
8368 2011-06-09  Bruno Haible  <bruno@clisp.org>
8369
8370         rmdir: Avoid test failure on HP-UX 10.20.
8371         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
8372         EEXIST.
8373
8374 2011-06-08  Eric Blake  <eblake@redhat.com>
8375
8376         perror: fix test on mingw
8377         * modules/perror-tests (Depends-on): Add dup2.
8378
8379         strerror_r-posix: fix on MacOS
8380         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
8381         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
8382         logic bug.
8383         * lib/strerror_r.c (strerror_r): Fix the bug.
8384         * lib/strerror.c (strerror): Likewise.
8385         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8386         problem.
8387         * doc/posix-functions/strerror.texi (strerror): Likewise.
8388         * doc/posix-functions/perror.texi (perror): Likewise.
8389         * tests/test-strerror.c (main): Enhance test.
8390         * tests/test-strerror_r.c (main): Likewise.
8391
8392 2011-06-08  Bruno Haible  <bruno@clisp.org>
8393
8394         gnulib-tool: Better isolation between different gnulib-tool invocations.
8395         * gnulib-tool: New option --witness-c-macro.
8396         (witness_c_macro): New variable.
8397         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
8398         AM_CPPFLAGS define it as a C macro.
8399         (func_emit_tests_Makefile_am): Likewise.
8400         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
8401         read it from there.
8402         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
8403         m4_define, not AC_DEFUN.
8404         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
8405         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
8406         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
8407         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
8408         s|...|...|, to substitute the values of the GNULIB_* module indicator
8409         variables.
8410         * modules/dirent (Makefile.am): Likewise.
8411         * modules/fcntl-h (Makefile.am): Likewise.
8412         * modules/iconv-h (Makefile.am): Likewise.
8413         * modules/langinfo (Makefile.am): Likewise.
8414         * modules/locale (Makefile.am): Likewise.
8415         * modules/math (Makefile.am): Likewise.
8416         * modules/netdb (Makefile.am): Likewise.
8417         * modules/poll-h (Makefile.am): Likewise.
8418         * modules/pty (Makefile.am): Likewise.
8419         * modules/search (Makefile.am): Likewise.
8420         * modules/signal (Makefile.am): Likewise.
8421         * modules/spawn (Makefile.am): Likewise.
8422         * modules/stdio (Makefile.am): Likewise.
8423         * modules/stdlib (Makefile.am): Likewise.
8424         * modules/string (Makefile.am): Likewise.
8425         * modules/sys_ioctl (Makefile.am): Likewise.
8426         * modules/sys_select (Makefile.am): Likewise.
8427         * modules/sys_socket (Makefile.am): Likewise.
8428         * modules/sys_stat (Makefile.am): Likewise.
8429         * modules/sys_times (Makefile.am): Likewise.
8430         * modules/sys_utsname (Makefile.am): Likewise.
8431         * modules/sys_wait (Makefile.am): Likewise.
8432         * modules/termios (Makefile.am): Likewise.
8433         * modules/time (Makefile.am): Likewise.
8434         * modules/unistd (Makefile.am): Likewise.
8435         * modules/wchar (Makefile.am): Likewise.
8436
8437 2011-06-08  Eric Blake  <eblake@redhat.com>
8438
8439         strerror: simplify replacement
8440         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
8441         * modules/strerror (configure.ac): No prereqs needed here...
8442         * modules/strerror-override (configure.ac): ...but this needs it.
8443         (Files): Add file for needed prereq macro.
8444
8445 2011-06-08  Bruno Haible  <bruno@clisp.org>
8446
8447         strerror_r-posix: Tweaks.
8448         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
8449         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
8450         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
8451         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
8452         (gl_FUNC_STRERROR_R): ... to here.
8453         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
8454
8455 2011-06-07  Eric Blake  <eblake@redhat.com>
8456
8457         perror: document fixed bugs
8458         * doc/posix-functions/perror.texi (perror): Document recent
8459         patches.
8460
8461 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8462
8463         stat-time: get_stat_birthtime failure is better-defined
8464         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
8465         return a timestamp whose tv_sec and tv_nsec values are both -1.
8466         Previously, the spec said only that the tv_nsec value was negative.
8467         This upward-compatible change simplifies GNU tar a bit.
8468
8469 2011-06-07  Eric Blake  <eblake@redhat.com>
8470
8471         strerror_r-posix: work around cygwin 1.7.9
8472         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
8473         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
8474         bug without replacing strerror_r.
8475         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
8476         strerror_r is buggy, but without requiring strerror_r compilation.
8477         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
8478
8479         test-perror: relax test to ignore cygwin bug
8480         * tests/test-perror2.c (main): Relax test on requiring detection
8481         of stream errors, and use unbuffered stream.
8482         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
8483         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8484         * doc/posix-functions/fputc.texi (fputc): Likewise.
8485         * doc/posix-functions/fputs.texi (fputs): Likewise.
8486         * doc/posix-functions/fputws.texi (fputws): Likewise.
8487         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8488         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
8489         * doc/posix-functions/getopt.texi (getopt): Likewise.
8490         * doc/posix-functions/perror.texi (perror): Likewise.
8491         * doc/posix-functions/printf.texi (printf): Likewise.
8492         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
8493         * doc/posix-functions/psignal.texi (psignal): Likewise.
8494         * doc/posix-functions/putc.texi (putc): Likewise.
8495         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
8496         Likewise.
8497         * doc/posix-functions/putchar.texi (putchar): Likewise.
8498         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
8499         Likewise.
8500         * doc/posix-functions/puts.texi (puts): Likewise.
8501         * doc/posix-functions/putwc.texi (putwc): Likewise.
8502         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8503         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8504         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8505         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8506         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8507         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8508         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8509         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8510
8511 2011-05-22  Bruno Haible  <bruno@clisp.org>
8512
8513         strerror: Move AC_LIBOBJ invocations to module description.
8514         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
8515         gl_PREREQ_STRERROR invocations from here...
8516         * modules/strerror (configure.ac): ... to here.
8517
8518 2011-05-21  Bruno Haible  <bruno@clisp.org>
8519
8520         perror: Use common idiom.
8521         * modules/perror (configure.ac): Reorder statements.
8522
8523 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8524
8525         tests: fix usage message in 'mktempd_'
8526         * tests/init.sh (mktempd_): In the usage message, use literal
8527         'mktempd_', not '$ME' (which is even undefined), as the name of
8528         the subroutine.
8529
8530 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8531
8532         tests init: new function 'fatal_', for hard errors
8533         Before this patch, the only way offered by tests/init.sh to
8534         properly signal a hard error was the `framework_failure_'
8535         function.  But the error message issued by that function,
8536         as its name would suggest, refers to a set-up failure in the
8537         testsuite, while hard errors can obviously also be due to
8538         other reasons.  The best way to fix this inconsistency is to
8539         introduce a new function with a more general error message.
8540         * tests/init.sh (fatal_): New function.
8541
8542 2011-06-06  Eric Blake  <eblake@redhat.com>
8543
8544         canonicalize-lgpl: use common idiom
8545         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
8546         over newer POSIX -Rf.
8547         Reported by Bruno Haible.
8548
8549         canonicalize-lgpl: work around AIX realpath bug
8550         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
8551         * doc/posix-functions/realpath.texi (realpath): Document it.
8552         Reported by Bruno Haible.
8553
8554         strerror: work around FreeBSD bug
8555         * lib/strerror.c (strerror): Special case 0.
8556         Reported by Bruno Haible.
8557
8558         strerror-override: avoid bloating errno module
8559         * modules/errno (Files, configure.ac): Move replacement strings...
8560         * modules/strerror-override: ...to new module.
8561         * modules/strerror (Depends-on): Add strerror-override.
8562         * modules/strerror_r-posix (Depends-on): Likewise.
8563         * MODULES.html.sh: Document new module.
8564         Reported by Bruno Haible.
8565
8566 2011-06-06  Bruno Haible  <bruno@clisp.org>
8567
8568         spawn-pipe tests: Rename program.
8569         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
8570         * tests/test-spawn-pipe-child.c: Update comment.
8571         * tests/test-spawn-pipe.sh: Update.
8572         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
8573
8574         spawn-pipe tests: Link the child program only against libc.
8575         * tests/test-spawn-pipe-child.c: New file, extracted from
8576         tests/test-spawn-pipe.c.
8577         (main): Expect only one argument.
8578         (is_open): New function, copied from tests/test-pipe.c.
8579         * tests/test-spawn-pipe.c: Don't include <errno.h>.
8580         (child_main): Remove function.
8581         (test_pipe): Pass only one argument to the child program.
8582         (main): Remove child process code. Expect the child program's name as
8583         first argument.
8584         * tests/test-spawn-pipe.sh: Pass the child program's name as first
8585         argument.
8586         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
8587         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
8588         test-spawn-pipe-child against no libraries.
8589
8590 2011-06-06  Bruno Haible  <bruno@clisp.org>
8591
8592         careadlinkat: Avoid mismatch between ssize_t and int.
8593         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
8594         * lib/careadlinkat.c (careadlinkatcwd): Define always.
8595
8596 2011-06-06  Jim Meyering  <meyering@redhat.com>
8597
8598         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
8599         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
8600         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
8601
8602 2011-06-05  Bruno Haible  <bruno@clisp.org>
8603
8604         ansi-c++-opt: Interoperability with libtool.
8605         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
8606         set the variable to "no", not to ":".
8607         * NEWS: Mention the change.
8608
8609 2011-06-05  Bruno Haible  <bruno@clisp.org>
8610
8611         acl: Fix test failure on AIX 7.
8612         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
8613         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
8614
8615 2011-06-05  Bruno Haible  <bruno@clisp.org>
8616
8617         pipe-filter-ii: Fix test failure on AIX and IRIX.
8618         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
8619         with EAGAIN, retry with a smaller buffer size.
8620
8621 2011-06-05  Bruno Haible  <bruno@clisp.org>
8622
8623         localename: Fix link dependencies.
8624         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
8625         * modules/localename-tests (Makefile.am): Link test-localename with
8626         $(LIBTHREAD).
8627
8628 2011-06-05  Bruno Haible  <bruno@clisp.org>
8629
8630         error: Avoid gcc warning.
8631         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
8632
8633 2011-06-05  Bruno Haible  <bruno@clisp.org>
8634
8635         unsetenv: Avoid gcc warning.
8636         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
8637
8638 2011-06-05  Bruno Haible  <bruno@clisp.org>
8639
8640         setenv: Avoid gcc warning.
8641         * lib/setenv.c (setenv): Provide declaration if system lacks it.
8642
8643 2011-06-05  Bruno Haible  <bruno@clisp.org>
8644
8645         sys_select: Ensure memset is declared also on AIX 7.
8646         * lib/sys_select.in.h: Include <string.h> also on AIX.
8647         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
8648         self-contained also on AIX 7.1.
8649
8650 2011-06-04  Jim Meyering  <meyering@redhat.com>
8651
8652         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
8653         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
8654         function name, "error".
8655         (_gl_translatable_diag_func_re): New configurable variable.
8656
8657 2011-06-04  Bruno Haible  <bruno@clisp.org>
8658
8659         getopt: Avoid gcc warning.
8660         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
8661
8662 2011-06-04  Bruno Haible  <bruno@clisp.org>
8663
8664         strerror_r: Fix comments.
8665         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
8666         commit.
8667
8668 2011-06-04  Bruno Haible  <bruno@clisp.org>
8669
8670         perror: Fix compilation error.
8671         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
8672         Undefine fprintf, not sprintf.
8673         * modules/perror (Depends-on): Remove intprops, verify.
8674
8675 2011-06-04  Bruno Haible  <bruno@clisp.org>
8676
8677         setlocale: Enable replacement on Cygwin 1.5.
8678         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
8679         Cygwin 1.5.x.
8680         * doc/posix-functions/setlocale.texi: Mention that the problem with the
8681         LC_CTYPE category also exists on Cygwin 1.5.x.
8682
8683 2011-06-04  Bruno Haible  <bruno@clisp.org>
8684
8685         strerror-override: Don't disable symbol renamings.
8686         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
8687         * lib/strerror-override.c: Include config.h.
8688         (strerror_override): Don't undefine.
8689
8690 2011-06-03  Bruno Haible  <bruno@clisp.org>
8691
8692         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
8693         * lib/localename.h: Update copyright header.
8694         * lib/localename.c: Likewise.
8695         * lib/relocatable.h: Likewise.
8696         * lib/relocatable.c: Likewise.
8697
8698 2011-06-02  Bruno Haible  <bruno@clisp.org>
8699
8700         doc: Fix a module name.
8701         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
8702
8703 2011-06-02  Bruno Haible  <bruno@clisp.org>
8704
8705         pipe2: Remove dependency on 'nonblocking' module.
8706         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
8707         O_NONBLOCK is defined by gnulib.
8708         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
8709         is zero.
8710         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
8711         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
8712         defined by gnulib.
8713         (get_nonblocking_flag): New function.
8714         (main): Test O_NONBLOCK flag only if it is nonzero.
8715         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
8716
8717 2011-06-03  Jim Meyering  <meyering@redhat.com>
8718
8719         maint: three new prohibit-header-without-use rules
8720         Prohibit use of cloexec.h, posixver.h, same.h without use.
8721         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
8722         (sc_prohibit_posixver_without_use): Likewise.
8723         (sc_prohibit_same_without_use): Likewise.
8724
8725 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8726
8727         allocator: 'die' routine is now given requested size
8728         * lib/allocator.h (struct allocator.die): New size arg.
8729         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
8730         If the actual problem is an ssize_t limitation, not a size_t or
8731         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
8732
8733 2011-06-01  Eric Blake  <eblake@redhat.com>
8734
8735         strerror: drop strerror_r dependency
8736         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
8737         * lib/strerror-override.c (strerror_override): ...to new file.
8738         * lib/strerror-override.h: Add prototype.
8739         * lib/strerror-impl.h: Delete.
8740         * lib/strerror.c (strerror): New implementation.
8741         * modules/errno (Files): Add new files.
8742         (configure.ac): Compile new file as appropriate.
8743         * modules/strerror (Files): Drop unused file.
8744         (Depends-on): Drop strerror_r-posix.
8745         * MODULES.html.sh: Document strerror_r-posix.
8746         Requested by Sam Steingold.
8747
8748         perror: call strerror_r directly
8749         * modules/perror (Files): Drop strerror-impl.h.
8750         * lib/perror.c (perror): Use our own stack buffer, rather than
8751         calling a wrapper that uses static storage.
8752         * doc/posix-functions/perror.texi (perror): Document a limitation
8753         of our replacement.
8754
8755         strerror_r: fix includes for FreeBSD
8756         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
8757         since we use abort on some platforms.
8758         Reported by Matthias Bolte.
8759
8760 2011-05-31  Bruno Haible  <bruno@clisp.org>
8761
8762         Fix link errors in tests: openat-die uses gettext-h.
8763         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
8764         against $(LIBINTL).
8765         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
8766         against $(LIBINTL).
8767         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
8768         $(LIBINTL).
8769         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
8770         against $(LIBINTL).
8771         * modules/linkat-tests (Makefile.am): Link test-linkat against
8772         $(LIBINTL).
8773         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
8774         $(LIBINTL).
8775         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
8776         against $(LIBINTL).
8777         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
8778         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
8779         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
8780         $(LIBINTL).
8781         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
8782         $(LIBINTL).
8783         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
8784         $(LIBINTL).
8785         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8786
8787 2011-05-31  Bruno Haible  <bruno@clisp.org>
8788
8789         Fix link errors in tests: wait-process uses gettext-h.
8790         * modules/nonblocking-pipe-tests (Makefile.am): Set
8791         test_nonblocking_pipe_main_LDADD.
8792         * modules/nonblocking-socket-tests (Makefile.am): Link
8793         test-nonblocking-socket-main against $(LIBINTL).
8794         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8795
8796 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
8797
8798         assert-h: work around 'verify' incompatibility
8799         * lib/verify.h: Use @...@ directives, not ifdef.
8800         * modules/assert-h (assert.h): Implement the directives.
8801         (assert.h): Substitute the symbol-prefix more consistently.
8802
8803 2011-05-29  Jim Meyering  <meyering@redhat.com>
8804
8805         trim: remove three superfluous assignments
8806         * lib/trim.c (trim2): Remove three superfluous assignments
8807         and correct brace positioning.
8808
8809 2011-05-29  Bruno Haible  <bruno@clisp.org>
8810
8811         wctype-h: Avoid namespace pollution on Solaris 2.6.
8812         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
8813         identifiers.
8814         * doc/posix-headers/wctype.texi: Mention the problem.
8815         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8816
8817 2011-05-28  Jim Meyering  <meyering@redhat.com>
8818
8819         parse-datetime.y: accommodate -Wstrict-overflow
8820         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
8821         placate -Wstrict-overflow.
8822
8823         trim: avoid a warning from -O2 -Wstrict-overflow
8824         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
8825
8826 2011-05-29  Bruno Haible  <bruno@clisp.org>
8827
8828         gnulib-tool: Fix bug in yesterday's commit.
8829         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
8830         twice.
8831
8832 2011-05-29  Bruno Haible  <bruno@clisp.org>
8833
8834         Allow multiple gnulib generated include files to be combined.
8835         * gnulib-tool (func_compute_include_guard_prefix): New function.
8836         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
8837         ${gl_include_guard_prefix} references.
8838         (func_import, func_create_testdir): Invoke
8839         func_compute_include_guard_prefix.
8840         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
8841         * lib/ctype.in.h: Likewise.
8842         * lib/dirent.in.h: Likewise.
8843         * lib/errno.in.h: Likewise.
8844         * lib/fcntl.in.h: Likewise.
8845         * lib/float.in.h: Likewise.
8846         * lib/getopt.in.h: Likewise.
8847         * lib/iconv.in.h: Likewise.
8848         * lib/langinfo.in.h: Likewise.
8849         * lib/locale.in.h: Likewise.
8850         * lib/math.in.h: Likewise.
8851         * lib/netdb.in.h: Likewise.
8852         * lib/netinet_in.in.h: Likewise.
8853         * lib/poll.in.h: Likewise.
8854         * lib/pthread.in.h: Likewise.
8855         * lib/pty.in.h: Likewise.
8856         * lib/sched.in.h: Likewise.
8857         * lib/se-selinux.in.h: Likewise.
8858         * lib/search.in.h: Likewise.
8859         * lib/signal.in.h: Likewise.
8860         * lib/spawn.in.h: Likewise.
8861         * lib/stdarg.in.h: Likewise.
8862         * lib/stddef.in.h: Likewise.
8863         * lib/stdint.in.h: Likewise.
8864         * lib/stdio.in.h: Likewise.
8865         * lib/stdlib.in.h: Likewise.
8866         * lib/string.in.h: Likewise.
8867         * lib/strings.in.h: Likewise.
8868         * lib/sys_file.in.h: Likewise.
8869         * lib/sys_ioctl.in.h: Likewise.
8870         * lib/sys_select.in.h: Likewise.
8871         * lib/sys_socket.in.h: Likewise.
8872         * lib/sys_stat.in.h: Likewise.
8873         * lib/sys_time.in.h: Likewise.
8874         * lib/sys_times.in.h: Likewise.
8875         * lib/sys_uio.in.h: Likewise.
8876         * lib/sys_utsname.in.h: Likewise.
8877         * lib/sys_wait.in.h: Likewise.
8878         * lib/sysexits.in.h: Likewise.
8879         * lib/termios.in.h: Likewise.
8880         * lib/time.in.h: Likewise.
8881         * lib/unistd.in.h: Likewise.
8882         * lib/wchar.in.h: Likewise.
8883         * lib/wctype.in.h: Likewise.
8884         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
8885         * modules/ctype (Makefile.am): Likewise.
8886         * modules/dirent (Makefile.am): Likewise.
8887         * modules/errno (Makefile.am): Likewise.
8888         * modules/fcntl-h (Makefile.am): Likewise.
8889         * modules/float (Makefile.am): Likewise.
8890         * modules/getopt-posix (Makefile.am): Likewise.
8891         * modules/iconv-h (Makefile.am): Likewise.
8892         * modules/langinfo (Makefile.am): Likewise.
8893         * modules/locale (Makefile.am): Likewise.
8894         * modules/math (Makefile.am): Likewise.
8895         * modules/netdb (Makefile.am): Likewise.
8896         * modules/netinet_in (Makefile.am): Likewise.
8897         * modules/poll-h (Makefile.am): Likewise.
8898         * modules/pthread (Makefile.am): Likewise.
8899         * modules/pty (Makefile.am): Likewise.
8900         * modules/sched (Makefile.am): Likewise.
8901         * modules/search (Makefile.am): Likewise.
8902         * modules/selinux-h (Makefile.am): Likewise.
8903         * modules/signal (Makefile.am): Likewise.
8904         * modules/spawn (Makefile.am): Likewise.
8905         * modules/stdarg (Makefile.am): Likewise.
8906         * modules/stddef (Makefile.am): Likewise.
8907         * modules/stdint (Makefile.am): Likewise.
8908         * modules/stdio (Makefile.am): Likewise.
8909         * modules/stdlib (Makefile.am): Likewise.
8910         * modules/string (Makefile.am): Likewise.
8911         * modules/strings (Makefile.am): Likewise.
8912         * modules/sys_file (Makefile.am): Likewise.
8913         * modules/sys_ioctl (Makefile.am): Likewise.
8914         * modules/sys_select (Makefile.am): Likewise.
8915         * modules/sys_socket (Makefile.am): Likewise.
8916         * modules/sys_stat (Makefile.am): Likewise.
8917         * modules/sys_time (Makefile.am): Likewise.
8918         * modules/sys_times (Makefile.am): Likewise.
8919         * modules/sys_uio (Makefile.am): Likewise.
8920         * modules/sys_utsname (Makefile.am): Likewise.
8921         * modules/sys_wait (Makefile.am): Likewise.
8922         * modules/sysexits (Makefile.am): Likewise.
8923         * modules/termios (Makefile.am): Likewise.
8924         * modules/time (Makefile.am): Likewise.
8925         * modules/unistd (Makefile.am): Likewise.
8926         * modules/wchar (Makefile.am): Likewise.
8927         * modules/wctype-h (Makefile.am): Likewise.
8928         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
8929
8930 2011-05-29  Bruno Haible  <bruno@clisp.org>
8931
8932         assert-h: Allow multiple gnulib generated replacements to coexist.
8933         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
8934
8935 2011-05-29  Bruno Haible  <bruno@clisp.org>
8936
8937         argp: Allow coexistence with strerror_r-posix module.
8938         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
8939         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
8940         by gnulib's <string.h> replacement), assume it has the POSIX signature,
8941         not the glibc signature.
8942
8943 2011-05-28  Bruno Haible  <bruno@clisp.org>
8944
8945         gnulib-tool: Alternative structure of testdirs, similar to --import.
8946         * gnulib-tool: New option --single-configure.
8947         (func_usage): Document it.
8948         (single_configure): New variable.
8949         (func_modules_transitive_closure_separately,
8950         func_modules_transitive_closure_separately,
8951         func_determine_use_libtests, func_modules_add_dummy_separately,
8952         func_modules_to_filelist_separately): New functions, extracted from
8953         func_import.
8954         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
8955         (func_import): Use the new functions.
8956         (func_create_testdir): Set final_modules. Handle $single_configure =
8957         true case.
8958
8959 2011-05-28  Bruno Haible  <bruno@clisp.org>
8960
8961         getloadavg: Remove an unreliable safety check.
8962         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
8963         getloadavg.c is in place.
8964         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
8965         Reported by Sam Steingold <sds@gnu.org>.
8966
8967 2011-05-28  Bruno Haible  <bruno@clisp.org>
8968
8969         doc: Cleanup yet another file produced by texinfo.tex.
8970         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
8971
8972 2011-05-28  Bruno Haible  <bruno@clisp.org>
8973
8974         Finish the conditional dependencies mechanism.
8975         * gnulib-tool: New option --no-conditional-dependencies.
8976         (func_usage): Document it. Don't mark --conditional-dependencies as
8977         experimental.
8978         (cond_dependencies): The possible values can now be true, false, empty.
8979         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
8980         (func_import): Store setting in gnulib-cache.m4 and read it from there.
8981         * doc/gnulib-tool.texi (Conditional dependencies): New section.
8982
8983 2011-05-28  Bruno Haible  <bruno@clisp.org>
8984
8985         doc: Use a recent texinfo.tex.
8986         * doc/Makefile (tex_opts): New variable.
8987         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
8988
8989 2011-05-28  Jim Meyering  <meyering@redhat.com>
8990
8991         intprops.h: adjust comment to match code change
8992         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
8993         only once, it *may* have side effects.  Also fix an unrelated typo.
8994         (_GL_INT_SIGNED): Likewise.
8995
8996 2011-05-26  Simon Josefsson  <simon@josefsson.org>
8997
8998         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
8999
9000 2011-05-26  Bruno Haible  <bruno@clisp.org>
9001
9002         mbsrchr: Avoid collision with system function on Interix.
9003         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9004         Reported by Markus Duft <mduft@gentoo.org>.
9005
9006 2011-05-15  James Youngman  <jay@gnu.org>
9007
9008         getopt: for ambiguous options, enumerate the possibilities.
9009         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9010         the ambiguous options when an ambiguous prefix is given. This was
9011         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9012         glibc change was
9013         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9014
9015 2011-05-25  Eric Blake  <eblake@redhat.com>
9016
9017         getcwd: work around mingw bug
9018         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9019         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9020         Reported by Matthias Bolte.
9021
9022 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9023
9024         test-intprops: disable -Wtype-limits diagnostics
9025         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9026         diagnostics.  Otherwise, the integer overflow macros generate many
9027         diagnostics.  Reported by Jim Meyering in
9028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9029
9030         intprops: shorten, to pacify gcc -Woverlength-strings
9031         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9032         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9033         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9034         likely to run afoul of C compiler limits for string constant lengths.
9035         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9036
9037 2011-05-24  Eric Blake  <eblake@redhat.com>
9038
9039         docs: document recently fixed glibc printf bug
9040         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9041         * doc/posix-functions/printf.texi (printf): Likewise.
9042         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9043         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9044
9045         closein-tests: convert to init.sh
9046         * modules/closein-tests (Files): Add init.sh
9047         * tests/test-closein.sh Use it.
9048
9049         yesno-tests: convert to init.sh
9050         * modules/yesno-tests (Files): Add init.sh.
9051         * tests/test-yesno.sh: Use it.
9052
9053         atexit-tests: ensure reliable exit status
9054         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9055         Reported by Bruno Haible.
9056
9057 2011-05-24  Bruno Haible  <bruno@clisp.org>
9058
9059         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9060         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9061         gl_PREREQ_STRERROR_R invocations from here...
9062         * modules/strerror_r-posix (configure.ac): ... to here.
9063
9064 2011-05-24  Eric Blake  <eblake@redhat.com>
9065
9066         strerror_r: fix missing header
9067         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9068
9069         strerror_r: fix AIX test failures
9070         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9071         ERANGE failure.
9072
9073         strerror_r: fix Solaris test failures
9074         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9075         failures.
9076         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9077
9078         strerror_r: enforce POSIX recommendations
9079         * lib/strerror_r.c (safe_copy): New helper method.
9080         (strerror_r): Guarantee a non-empty string.
9081         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9082         recent POSIX rulings and to match our strerror guarantees.
9083         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9084
9085 2011-05-24  Jim Meyering  <meyering@redhat.com>
9086
9087         test-perror2.c: avoid warning about unused variable
9088         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9089
9090 2011-05-24  Eric Blake  <eblake@redhat.com>
9091
9092         perror: avoid spurious test failure on HP-UX
9093         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9094
9095         tests: fix logic bug in init.sh
9096         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9097         shell.
9098
9099 2011-05-24  Jim Meyering  <meyering@redhat.com>
9100
9101         utimensat: do not reference an out-of-scope buffer
9102         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9103         declared in an inner scope, yet "times" would be dereferenced outside
9104         the scope in which "ts" was valid.
9105         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9106         of ts[2] "out/up", so that the use of aliased "times" (via
9107         "times = ts;") does not end up referencing an out-of-scope "ts"
9108
9109         opendir-safer.c: don't clobber errno; don't close negative FD
9110         * lib/opendir-safer.c (opendir_safer):
9111         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9112         file descriptor, and more importantly, don't clobber the
9113         offending errno value with EINVAL.  Before, upon failure
9114         of dup_safer, we would pass the negative file descriptor to
9115         fdopendir, which would clobber errno.
9116
9117 2011-05-23  Bruno Haible  <bruno@clisp.org>
9118
9119         idcache: Fix module description.
9120         * modules/idcache (Include): Set to "idcache.h".
9121
9122 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9123
9124         gnulib-tool: fix portability problem with MacOS sed
9125         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
9126         before the "}".  Problem reported by Leo in
9127         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
9128         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
9129         sed_extract_condition1, sed_extract_condition2.
9130
9131 2011-05-23  Bruno Haible  <bruno@clisp.org>
9132
9133         hash: Simplify autoconf macro.
9134         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
9135
9136 2011-05-23  Bruno Haible  <bruno@clisp.org>
9137
9138         getugroups: Fix module description.
9139         * modules/getugroups (Include): Set to "getugroups.h".
9140
9141 2011-05-23  Bruno Haible  <bruno@clisp.org>
9142
9143         linkat: Simplify autoconf macro.
9144         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
9145
9146 2011-05-23  Bruno Haible  <bruno@clisp.org>
9147             Eric Blake  <eblake@redhat.com>
9148
9149         linkat, renameat: Update dependencies.
9150         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
9151         * modules/linkat (Depends-on): Likewise. Remove also readlink,
9152         symlinkat.
9153
9154 2011-05-23  Jim Meyering  <meyering@redhat.com>
9155
9156         maint.mk: more tight_scope improvements
9157         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
9158         (_gl_TS_headers): Define only in if-0'd block.
9159         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
9160         sometimes we must *not* use it.  Adjust uses accordingly.
9161         (sc_tight_scope): Use much simpler grep-based test to determine
9162         whether we skip this rule.
9163
9164         maint.mk: generalize/improve the tight-scope rule
9165         * top/maint.mk: Emit a warning when the test is skipped.
9166         (_gl_TS_dir): Add $(srcdir)/ prefix.
9167         (_gl_TS_function_match): Simplify, rather than trying
9168         to enumerate common types.  Otherwise, it would fail to match an
9169         "extern unsigned char const *" declaration in idutils.
9170         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
9171         a way to support use of that type of macro.
9172         (_gl_TS_var_match): Simplify regexp.
9173         (_gl_TS_obj_files): New configurable variable.
9174         (_gl_TS_headers): Likewise.
9175
9176 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9177
9178         verify: fix bug when gnulib <assert.h> is also included
9179         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9180         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9181         Perhaps there's a better way, but this fixes the immediate problem.
9182         Problem reported by Bruno Haible in
9183         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9184
9185 2011-05-22  Bruno Haible  <bruno@clisp.org>
9186
9187         xgetcwd: Simplify autoconf macro.
9188         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9189
9190 2011-05-22  Bruno Haible  <bruno@clisp.org>
9191
9192         New module 'mktime-internal'.
9193         * modules/mktime-internal: New file.
9194         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9195         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9196         mktime_internal as a C macro if libc has __mktime_internal.
9197         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9198         conditions.
9199         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9200
9201 2011-05-22  Bruno Haible  <bruno@clisp.org>
9202
9203         timegm: Correct mktime replacement statements.
9204         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9205         defining mktime as a C macro. This completes a 2009-07-28 commit.
9206
9207 2011-05-22  Bruno Haible  <bruno@clisp.org>
9208
9209         timegm: Simplify autoconf macro.
9210         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
9211
9212 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9213
9214         clock-time: change to LGPLv2+.
9215         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
9216         BSD-like but we have no mark for that; this is good enough for now.
9217
9218 2011-05-21  Bruno Haible  <bruno@clisp.org>
9219
9220         strerror_r: Fix comments.
9221         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
9222
9223 2011-05-21  Bruno Haible  <bruno@clisp.org>
9224
9225         relocatable-prog-wrapper: Fix possible link error.
9226         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
9227         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
9228         (gl_FUNC_SETENV): ... to here.
9229         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
9230         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
9231
9232 2011-05-21  Bruno Haible  <bruno@clisp.org>
9233
9234         relocatable-prog-wrapper: Assume strerror() exists.
9235         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
9236         m4/strerror.m4.
9237         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
9238         * lib/relocwrapper.c: Remove mention of strerror module.
9239         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
9240         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
9241         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
9242         C macro.
9243
9244 2011-05-21  Bruno Haible  <bruno@clisp.org>
9245
9246         select: Simplify replacement idiom.
9247         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
9248         Win32 platforms.
9249         * lib/sys_select.in.h (select): Simplify accordingly.
9250         * modules/select (Depends-on): Likewise.
9251
9252 2011-05-21  Bruno Haible  <bruno@clisp.org>
9253
9254         mkdir-p: Simplify autoconf macro.
9255         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
9256         gl_FUNC_LCHOWN.
9257
9258 2011-05-21  Eric Blake  <eblake@redhat.com>
9259
9260         strerror_r: avoid clobbering strerror on cygwin
9261         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
9262         fall back instead to sys_errlist.
9263         * modules/strerror (configure.ac): Add witness.
9264         * tests/test-strerror_r.c (main): Enhance test.
9265         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9266         * tests/test-perror2.c (main): Free memory before exit.
9267
9268 2011-05-21  Bruno Haible  <bruno@clisp.org>
9269
9270         mkdtemp: Use gnulib naming conventions.
9271         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
9272         * modules/mkdtemp (configure.ac): Update.
9273
9274 2011-05-20  Eric Blake  <eblake@redhat.com>
9275
9276         strerror_r: avoid corrupting errno on Solaris
9277         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
9278         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9279
9280         strerror_r: avoid compiler warning
9281         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
9282
9283         strerror_r: simplify AIX code
9284         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
9285
9286         test-perror: avoid spurious failure on FreeBSD
9287         * modules/perror-tests (Depends-on): Add strerror, now that
9288         strerror_r no longer pulls it in.
9289
9290 2011-05-20  Bruno Haible  <bruno@clisp.org>
9291
9292         strerror_r-posix: Remove unused dependencies.
9293         * modules/strerror_r-posix (Depends-on): Remove strerror.
9294         Reported by Eric Blake.
9295
9296 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
9297
9298         intprops: remove assumption about A|B representation
9299         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
9300         is a valid integer if both A and B are.  Although this is true for
9301         all known practical hosts, the C standard doesn't guarantee it,
9302         and the code need not assume it.  Also, this change may work around
9303         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
9304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
9305
9306 2011-05-20  Eric Blake  <eblake@redhat.com>
9307
9308         perror: work around FreeBSD bug
9309         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
9310         is broken.  Move AC_LIBOBJ...
9311         * modules/perror (configure.ac): Here.
9312         * doc/posix-functions/perror.texi (perror): Document this.
9313         * tests/test-perror2.c (main): Enhance test.
9314
9315         test-perror: check for strerror interactions
9316         * tests/macros.h (STREQ): Add macro.
9317         * modules/perror-tests (Files): Add second test.
9318         * tests/test-perror2.c (main): New file.
9319         * doc/posix-functions/perror.texi (perror): Document glibc bug.
9320
9321         test-perror: rewrite to use init script
9322         * modules/perror-tests (Files): Add init.sh.
9323         * tests/test-perror.sh: Use temporary directory.
9324
9325 2011-05-20  Jim Meyering  <meyering@redhat.com>
9326
9327         maint: replace misused "a" with "an"
9328         * doc/intprops.texi: "a integer"
9329         * doc/regex.texi: "a explanation"
9330         * lib/alignof.h: "a object"
9331         * lib/argmatch.h: "a explanation"
9332         * lib/argp-help.c: "a option" and "a OPTION_DOC"
9333         * lib/stdint.in.h: "a integer"
9334         * lib/userspec.c: "a owner"
9335         * doc/gnulib.texi: Fix "a idea", and reword.
9336
9337 2011-05-19  Jim Meyering  <meyering@redhat.com>
9338
9339         maint: correct misuse of "a" and "an"
9340         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
9341         * lib/argp-help.c: "an docum...": s/an/a/
9342         * lib/argp-parse.c: "An vector": s/An/A/
9343         * lib/execute.c: "an native": s/an/a/
9344         * lib/spawn-pipe.c: Likewise.
9345         * lib/gc.h: "an Gc_rc": s/an/a/
9346         * lib/unigbrk.in.h: "an grapheme": s/an/a/
9347         * lib/fts.c: "an stat.st_dev": s/an/a/
9348
9349 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9350
9351         intprops-tests: work around HP-UX 11.23 cc bug with constants
9352         * tests/test-intprops.c (VERIFY): New macro.
9353         (main): Use it, instead of verify, to work around the compiler bug; see
9354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9355
9356         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
9357         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
9358         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
9359         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
9360         (_GL_REMAINDER_OVERFLOW): Use it.
9361
9362         intprops-tests: revert unsigned part of previous change
9363         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
9364         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
9365         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
9366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
9367
9368 2011-05-19  Bruno Haible  <bruno@clisp.org>
9369
9370         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
9371         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
9372         strerror_r() returned without filling the buffer.
9373         Reported by Eric Blake.
9374
9375 2011-05-19  Eric Blake  <eblake@redhat.com>
9376
9377         strerror_r: guarantee unchanged errno
9378         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
9379         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
9380         failure.
9381         * tests/test-strerror_r.c (main): Enhance test.
9382
9383 2011-05-19  Bruno Haible  <bruno@clisp.org>
9384
9385         strerror_r: Reorder #if blocks.
9386         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
9387         for consistency with the previous commit.
9388
9389 2011-05-19  Bruno Haible  <bruno@clisp.org>
9390
9391         perror: Avoid clobbering the strerror buffer when possible.
9392         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
9393         * lib/strerror.c: Include it.
9394         * modules/strerror (Files): Add lib/strerror-impl.h.
9395         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
9396         (my_strerror): New function, defined through lib/strerror-impl.h.
9397         (perror): Use it instead of strerror.
9398         * modules/perror (Files): Add lib/strerror-impl.h.
9399         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
9400
9401 2011-05-19  Eric Blake  <eblake@redhat.com>
9402
9403         strerror_r: fix on newer cygwin
9404         * lib/strerror_r.c (strerror_r): Cygwin now has
9405         __xpg_strerror_r, use it.
9406
9407 2011-05-19  Bruno Haible  <bruno@clisp.org>
9408
9409         strerror_r: Avoid clobbering the strerror buffer when possible.
9410         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
9411         (sys_nerr, sys_errlist): New declarations.
9412         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
9413         HP-UX, native Win32, IRIX, and 32-bit Solaris.
9414         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
9415
9416 2011-05-19  Bruno Haible  <bruno@clisp.org>
9417
9418         strerror_r: Fix test failure on mingw.
9419         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
9420         EXTEND_STRERROR_R.
9421         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
9422         macros from errno.in.h instead.
9423
9424 2011-05-19  Eric Blake  <eblake@redhat.com>
9425
9426         strerror: relax test for Solaris
9427         * tests/test-strerror.c (main): Permit Solaris behavior.
9428         * tests/test-strerror_r.c (main): Likewise.
9429
9430         strerror: enforce POSIX ruling on strerror(0)
9431         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
9432         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9433         * lib/strerror_r.c (rpl_strerror_r): Work around it.
9434         * doc/posix-functions/strerror.texi (strerror): Document it.
9435         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
9436         * tests/test-strerror.c (main): Strengthen test.
9437         * tests/test-strerror_r.c (main): Likewise.
9438
9439 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9440
9441         intprop-tests: port to older and more-pedantic compilers
9442         * modules/intprops-tests (Files): Add tests/macros.h.
9443         * tests/test-intprops.c: Include macros.h.
9444         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
9445         it's no longer documented to expand to an integer constant expression.
9446         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
9447         argument is floating point, as it's no longer documented to expand
9448         to an integer constant expression in that case.
9449         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
9450         compiler bugs reported by Bruno Haible.  See
9451         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9452         (U0, U1): New constants, to work around the same bugs.  Also,
9453         in tests, use e.g., "(unsigned int) 39" rather than "39u".
9454
9455         intprops: work around C compiler bugs
9456         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
9457         bug in Sun C 5.11 2010/08/13 and other compilers; see
9458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9459
9460         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
9461         * doc/intprops.texi (Integer Type Determination): Fix
9462         documentation for TYPE_IS_INTEGER: it returns an constant
9463         expression, not an integer constant expression.  Fix doc for
9464         TYPE_SIGNED: it returns an integer constant expression only if its
9465         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
9466         hardly worth documented that way....)
9467
9468 2011-05-18  Bruno Haible  <bruno@clisp.org>
9469
9470         strerror_r: Avoid clobbering the strerror buffer when possible.
9471         * lib/strerror_r.c (strerror_r): Merge the three implementations.
9472         Handle gnulib defined errno values here. When strerror() returns NULL
9473         or an empty string, return EINVAL.
9474         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
9475         gnulib defined errno values here.
9476         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
9477
9478 2011-05-18  Eric Blake  <eblake@redhat.com>
9479
9480         fnmatch: avoid compiler warning
9481         * lib/fnmatch_loop.c (FCT): Use correct type.
9482         Reported by Matthias Bolte.
9483
9484 2011-05-13  Jim Meyering  <meyering@redhat.com>
9485
9486         maint.mk: three new prohibit_<HDR>_without_use rules
9487         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
9488         (sc_prohibit_stdio-safer_without_use): Likewise.
9489         (sc_prohibit_xfreopen_without_use): Likewise.
9490
9491 2011-05-17  Jim Meyering  <meyering@redhat.com>
9492
9493         announce-gen: fail if the NEWS delta is empty
9494         If there's nothing noteworthy in NEWS, then either you forgot
9495         or you shouldn't be releasing.
9496         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
9497
9498 2011-05-17  Pádraig Brady <P@draigBrady.com>
9499
9500         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
9501         reserved symbols starting with double underscore from the check.
9502
9503 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9504
9505         intprops: add doc
9506         * doc/intprops.texi: New file, documenting intprops.
9507         * doc/gnulib.texi (Particular Modules): Include it.
9508
9509         verify: add doc to gnulib manual and fix example
9510         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
9511         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
9512         (Compile-time Assertions): Fix example so it can't overflow.
9513
9514 2011-05-17  Jim Meyering  <meyering@redhat.com>
9515
9516         warnings.m4: don't usurp save_CPPFLAGS variable name
9517         * m4/warnings.m4: Prefix local temporary variable name with gl_.
9518
9519         doc: fix typo
9520         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
9521
9522 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9523             Bruno Haible  <bruno@clisp.org>
9524
9525         doc: Tweak recent change.
9526         * README (Portability guidelines): Tweak new text.
9527         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
9528         Interix 6.1.
9529
9530 2011-05-16  Eric Blake  <eblake@redhat.com>
9531
9532         inttypes: avoid autoconf warning
9533         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
9534         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9535
9536 2011-05-16  Sam Steingold <sds@gnu.org>
9537         and Eric Blake  <eblake@redhat.com>
9538
9539         vc-list-files: accept multiple directory operands
9540         * build-aux/vc-list-files: Iterate over all remaining operands.
9541
9542 2011-05-16  Bruno Haible  <bruno@clisp.org>
9543
9544         Fix confusion regarding deprecated modules.
9545         * modules/calloc (Status, Notice): Mark module as deprecated, not
9546         obsolete.
9547         * modules/fnmatch-posix (Status, Notice): Likewise.
9548         * modules/getdate (Status, Notice): Likewise.
9549         * modules/getopt (Status, Notice): Likewise.
9550         * modules/malloc (Status, Notice): Likewise.
9551         * modules/pipe (Status, Notice): Likewise.
9552         * modules/realloc (Status, Notice): Likewise.
9553         * modules/rename-dest-slash (Status, Notice): Likewise.
9554         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
9555         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
9556         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
9557         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
9558         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
9559
9560 2011-05-16  Bruno Haible  <bruno@clisp.org>
9561
9562         doc: List the target platforms.
9563         * doc/gnulib-intro.texi (Target Platforms): New section.
9564         * doc/gnulib.texi (Introduction): Update menu.
9565         * README (Portability guidelines): Refer to the new section. Update
9566         statement about oldest supported environment. Remove rationale why
9567         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
9568         unportable C89 function.
9569         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
9570         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
9571
9572 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9573
9574         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
9575
9576 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
9577
9578         intprops-tests: new module
9579         * modules/intprops-tests, tests/test-intprops.c: New files.
9580
9581         intprops: add safe, portable integer overflow checking
9582         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
9583         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
9584         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
9585         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
9586         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
9587         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
9588         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
9589         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
9590         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9591         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
9592         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
9593
9594 2011-05-12  James Youngman  <jay@gnu.org>
9595
9596         Add a test for glibc's Bugzilla bug #12378.
9597         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
9598         doesn't allow the literal matching of a lone "[" (which is
9599         required by POSIX).
9600         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
9601
9602 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9603
9604         Sync glibc change fixing Bugzilla bug #12378.
9605         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
9606         beginning and fall back to matching as normal character if the
9607         string ends before the matching ']' is found.  This is what POSIX
9608         requires.
9609
9610 2011-05-13  Eric Blake  <eblake@redhat.com>
9611
9612         getcwd-lgpl: relax test for FreeBSD
9613         * doc/posix-functions/getcwd.texi (getcwd): Document portability
9614         issue.
9615         * tests/test-getcwd-lgpl.c (main): Relax test.
9616         Reported by Matthias Bolte.
9617
9618 2011-05-11  Eric Blake  <eblake@redhat.com>
9619
9620         test-fflush: silence compiler warning
9621         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
9622
9623 2011-05-11  Bruno Haible  <bruno@clisp.org>
9624
9625         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
9626         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
9627         * modules/canonicalize (Depends-on): Add 'nocrash'.
9628         * modules/canonicalize-lgpl (Depends-on): Likewise.
9629         * doc/posix-functions/realpath.texi: Update platforms list.
9630         Reported by Ryan Schmidt <ryandesign@macports.org>.
9631
9632 2011-05-11  Bruno Haible  <bruno@clisp.org>
9633
9634         group-member: Declare function in <unistd.h>.
9635         * lib/unistd.in.h (group_member): New declaration.
9636         * lib/group-member.h: Remove file.
9637         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
9638         * tests/test-unistd-c++.cc: Check signature of group_member.
9639         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
9640         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
9641         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
9642         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
9643         HAVE_GROUP_MEMBER.
9644         * modules/group-member (Files): Remove lib/group-member.h.
9645         (Depends-on): Add unistd. Specify conditions.
9646         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9647         (Include): Change to <unistd.h>.
9648         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
9649         HAVE_GROUP_MEMBER.
9650         * NEWS: Mention the change.
9651         * lib/euidaccess.c: Don't include group-member.h.
9652
9653 2011-05-11  Bruno Haible  <bruno@clisp.org>
9654
9655         group-member: Document module.
9656         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
9657         module.
9658
9659 2011-05-11  Bruno Haible  <bruno@clisp.org>
9660
9661         fclose: Fix mistake earlier today.
9662         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
9663
9664 2011-05-11  Eric Blake  <eblake@redhat.com>
9665
9666         fclose: preserve fflush errors
9667         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
9668         Reported by Jim Meyering.
9669
9670         bootstrap: support a prereq of 'rpcgen -' on RHEL5
9671         * build-aux/bootstrap (check_versions): When no specific version
9672         is required, merely check that the app produces an exit status
9673         that indicates its existence.
9674
9675         maint.mk: drop redundant check
9676         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
9677         the same but better.
9678
9679 2011-05-11  Bruno Haible  <bruno@clisp.org>
9680
9681         fclose: Fix possible link error.
9682         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
9683         unregister_shadow_fd. Improve comments.
9684         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
9685         Eric Blake.
9686
9687 2011-05-11  Jim Meyering  <meyering@redhat.com>
9688
9689         maint.mk: improve "can not" detection and generalize rule name
9690         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
9691         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
9692         Use the same technique as in sc_prohibit_doubled_word, so that
9693         we recognize "can not" also when the words are separated by a newline.
9694         Suggested by Eric Blake.
9695         (perl_filename_lineno_text_): Define.  Factored out of...
9696         (prohibit_doubled_word_): ...here.  Use the new definition.
9697         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
9698         (prohibit_undesirable_word_seq_RE_): New overridable variable.
9699         (ignore_undesirable_word_sequence_RE_): New overridable variable.
9700
9701 2011-05-10  Eric Blake  <eblake@redhat.com>
9702
9703         fclose: avoid double close race when possible
9704         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
9705         all but WINDOWS_SOCKETS.
9706
9707 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
9708
9709         openat: correct new comment
9710         * lib/openat-proc.c (openat_proc_name): Correct the comment.
9711
9712 2011-05-10  Jim Meyering  <meyering@redhat.com>
9713
9714         openat: add comments
9715         * lib/openat-proc.c (openat_proc_name): Add comments,
9716         mostly from Eric Blake.
9717
9718 2011-05-09  Eric Blake  <eblake@redhat.com>
9719
9720         openat: reduce syscalls in first probe of /proc
9721         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
9722         be a directory.  Simplify the probe for .. bugs.
9723         * modules/openat (Depends-on): Drop same-inode.
9724         Reported by Bastien ROUCARIES.
9725
9726 2011-05-09  Jim Meyering  <meyering@redhat.com>
9727
9728         maint.mk: change semantics/name of tight_scope variables
9729         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
9730         Rename variables to align with semantics that make them more useful.
9731
9732         maint.mk: tweak new rule's name not to impinge
9733         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
9734         (sc_tight_scope): Use new rule name rather than $@-0.
9735
9736         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
9737         * top/maint.mk (sc_tight_scope): New rule.
9738         (sc_tight_scope-0): New rule, ifdef'd out.
9739         (_gl_TS_dir): Default.
9740         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
9741         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
9742
9743 2011-05-09  Simon Josefsson  <simon@josefsson.org>
9744
9745         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
9746         Haible <bruno@clisp.org>.
9747
9748 2011-05-08  Bruno Haible  <bruno@clisp.org>
9749
9750         Comments.
9751         * m4/isnanf.m4: Add comment.
9752         * m4/isnanl.m4: Likewise.
9753
9754 2011-05-08  Bruno Haible  <bruno@clisp.org>
9755
9756         glob: Remove obsolete macro.
9757         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
9758
9759 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
9760
9761         intprops: Sun C 5.11 supports __typeof__
9762         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
9763         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
9764         which is new.
9765         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
9766
9767         intprops: switch to usual gnulib indenting and naming
9768         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
9769         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
9770
9771         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
9772
9773 2011-05-08  Jim Meyering  <meyering@redhat.com>
9774
9775         maint.mk: suppress "Entering/Leaving directory" diag in announcement
9776         * top/maint.mk (release-prep): Use make's --no-print-directory
9777         option when generating the announcement.  This eliminates the
9778         pesky "make[2]: Entering/Leaving directory" diagnostics in the
9779         generated announcement template.
9780
9781 2011-05-08  Bruno Haible  <bruno@clisp.org>
9782
9783         tzset: Fix gettimeofday wrapper on Solaris 2.6.
9784         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
9785         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
9786
9787 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
9788
9789         ignore-value, verify: Omit include files from lib_SOURCES.
9790         * modules/ignore-value, modules/verify (Makefile.am):
9791         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
9792         that leads Automake to duplicate use of am__objects_... variables
9793         in Makefile.in.  See
9794         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
9795
9796 2011-05-07  Bruno Haible  <bruno@clisp.org>
9797
9798         fclose: Simplify autoconf macro.
9799         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
9800         defined.
9801
9802 2011-05-07  Bruno Haible  <bruno@clisp.org>
9803
9804         canonicalize-lgpl: Fix autoconf macro ordering bug.
9805         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
9806         gl_STDLIB_H_DEFAULTS.
9807
9808 2011-05-06  Eric Blake  <eblake@redhat.com>
9809
9810         maintainer-makefile: make sc_po_check easier to tune
9811         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
9812         to probe for strings, such as an alternate location for gnulib.
9813
9814         fclose: guarantee behavior on seekable stdin
9815         * modules/fclose (Depends-on): Add fflush.
9816         * doc/posix-functions/fclose.texi (fclose): Document this.
9817         * tests/test-fclose.c (main): Make test for this unconditional.
9818
9819 2011-05-06  Bruno Haible  <bruno@clisp.org>
9820
9821         fflush, fpurge: Relicense under LGPLv2+.
9822         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
9823         * modules/fpurge (License): Likewise.
9824         With permission from Eric Blake and Jim Meyering.
9825         Suggested by Eric Blake.
9826
9827 2011-05-06  Karl Berry  <karl@gnu.org>
9828
9829         * MODULES.html.sh (func_all_modules): remove exit.
9830
9831 2011-05-06  Jim Meyering  <meyering@redhat.com>
9832
9833         maint.mk: use info-gnu@ as the default only for a stable release
9834         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
9835         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
9836         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
9837         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
9838
9839 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9840
9841         assert-h: new module, which supports C1X-style static_assert
9842         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
9843         * lib/verify.h: Revamp so that this can be copied into assert.h,
9844         while retaining the ability to use it standalone as before.
9845         Rename private identifiers so as not to encroach on the
9846         standard C namespace, since this is now used by assert.h.
9847         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
9848         the old verify_true.
9849         (_GL_VERIFY_TRUE): New macro, with much of the contents of
9850         the old verify_true.  Use _GL_VERIFY_TYPE.
9851         (_GL_VERIFY): New macro, with much of the contents of the old verify.
9852         (static_assert): New macro, if _GL_STATIC_ASSERT_H
9853         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
9854         defined when this file is copied into the replacement assert.h.
9855         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
9856         and _Static_assert is not built in.
9857         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
9858         defined, and use the new macros mentioned above.
9859         * doc/posix-headers/assert.texi: Document this.
9860
9861 2011-05-05  Bruno Haible  <bruno@clisp.org>
9862
9863         fclose, fflush: Respect rules for use of AC_LIBOBJ.
9864         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
9865         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
9866         gl_REPLACE_FCLOSE here.
9867         * modules/fflush (Depends-on): Remove fclose.
9868         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
9869         combination with module 'fclose'.
9870
9871 2011-05-05  Bruno Haible  <bruno@clisp.org>
9872
9873         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
9874         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
9875         gl_FUNC_FFLUSH.
9876         (gl_FUNC_FFLUSH): Use it.
9877         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
9878         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
9879         gl_REPLACE_FSEEKO here.
9880
9881 2011-05-05  Bruno Haible  <bruno@clisp.org>
9882
9883         tzset: Relicense under LGPL.
9884         * modules/tzset (License): Change to LGPL.
9885         No agreement needed; it's a no-op.
9886
9887         strtoimax, strtoumax: Relicense under LGPL.
9888         * modules/strtoimax (License): Change to LGPL.
9889         * modules/strtoumax (License): Likewise.
9890         With permission from Jim Meyering, Paul Eggert:
9891         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
9892         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
9893
9894         getgroups: Relicense under LGPL.
9895         * modules/getgroups (License): Change to LGPL.
9896         With permission from Jim Meyering, Paul Eggert, Eric Blake:
9897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9898         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9900
9901         nanosleep: Relicense under LGPL.
9902         * modules/nanosleep (License): Change to LGPL.
9903         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
9904         Haible:
9905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9907         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9909
9910         futimens: Relicense under LGPL.
9911         * modules/futimens (License): Change to LGPL.
9912         With permission from Eric Blake:
9913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9914
9915         fflush: Relicense under LGPL.
9916         * modules/fflush (License): Change to LGPL.
9917         With permission from Eric Blake, Bruno Haible, Jim Meyering:
9918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
9921
9922         tmpfile: Relicense under LGPL.
9923         * modules/tmpfile (License): Change to LGPL.
9924         With permission from Ben Pfaff:
9925         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9926
9927         isfinite: Relicense under LGPL.
9928         * modules/isfinite (License): Change to LGPL.
9929         With permission from Ben Pfaff, Bruno Haible:
9930         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
9932
9933         acosl..tanl: Relicense under LGPL.
9934         * modules/acosl (License): Change to LGPL.
9935         * modules/asinl (License): Likewise.
9936         * modules/atanl (License): Likewise.
9937         * modules/cosl (License): Likewise.
9938         * modules/expl (License): Likewise.
9939         * modules/logl (License): Likewise.
9940         * modules/sinl (License): Likewise.
9941         * modules/sqrtl (License): Likewise.
9942         * modules/tanl (License): Likewise.
9943         Source code originally from glibc and Paolo Bonzini. Agreements:
9944         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
9945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
9946
9947 2011-05-05  Bruno Haible  <bruno@clisp.org>
9948
9949         signal: Define sighandler_t.
9950         * lib/signal.in.h (sighandler_t): New type.
9951         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
9952         whether sighandler_t is defined.
9953         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
9954         * modules/signal (Depends-on): Add extensions.
9955         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
9956         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
9957         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
9958
9959 2011-05-05  Eric Blake  <eblake@redhat.com>
9960
9961         maint: remove useless REPLACE_*_H macros
9962         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
9963         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9964         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9965         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
9966         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9967         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9968         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
9969         * m4/btowc.m4: Update callers.
9970         * m4/dirfd.m4: Likewise.
9971         * m4/duplocale.m4: Likewise.
9972         * m4/fchdir.m4: Likewise.
9973         * m4/fdopendir.m4: Likewise.
9974         * m4/inet_ntop.m4: Likewise.
9975         * m4/inet_pton.m4: Likewise.
9976         * m4/ioctl.m4: Likewise.
9977         * m4/mbrlen.m4: Likewise.
9978         * m4/mbrtowc.m4: Likewise.
9979         * m4/mbsinit.m4: Likewise.
9980         * m4/mbsnrtowcs.m4: Likewise.
9981         * m4/mbsrtowcs.m4: Likewise.
9982         * m4/poll.m4: Likewise.
9983         * m4/setlocale.m4: Likewise.
9984         * m4/wcrtomb.m4: Likewise.
9985         * m4/wcsnrtombs.m4: Likewise.
9986         * m4/wcsrtombs.m4: Likewise.
9987         * m4/wctob.m4: Likewise.
9988         * m4/wcwidth.m4: Likewise.
9989         * modules/posix_spawn: Likewise.
9990         * modules/posix_spawn_file_actions_addclose: Likewise.
9991         * modules/posix_spawn_file_actions_adddup2: Likewise.
9992         * modules/posix_spawn_file_actions_addopen: Likewise.
9993         * modules/posix_spawn_file_actions_destroy: Likewise.
9994         * modules/posix_spawn_file_actions_init: Likewise.
9995         * modules/posix_spawnattr_destroy: Likewise.
9996         * modules/posix_spawnattr_getflags: Likewise.
9997         * modules/posix_spawnattr_getpgroup: Likewise.
9998         * modules/posix_spawnattr_getschedparam: Likewise.
9999         * modules/posix_spawnattr_getschedpolicy: Likewise.
10000         * modules/posix_spawnattr_getsigdefault: Likewise.
10001         * modules/posix_spawnattr_getsigmask: Likewise.
10002         * modules/posix_spawnattr_init: Likewise.
10003         * modules/posix_spawnattr_setflags: Likewise.
10004         * modules/posix_spawnattr_setpgroup: Likewise.
10005         * modules/posix_spawnattr_setschedparam: Likewise.
10006         * modules/posix_spawnattr_setschedpolicy: Likewise.
10007         * modules/posix_spawnattr_setsigdefault: Likewise.
10008         * modules/posix_spawnattr_setsigmask: Likewise.
10009         * modules/posix_spawnp: Likewise.
10010
10011 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10012
10013         Add option to do-release-commit-and-tag to specify branch.
10014         * build-aux/do-release-commit-and-tag: Add --branch.
10015
10016 2011-05-03  Bruno Haible  <bruno@clisp.org>
10017
10018         Avoid unnecessary compilation units, through conditional dependencies.
10019         * modules/accept (Depends-on): Add conditions to the dependencies.
10020         * modules/acosl (Depends-on): Likewise.
10021         * modules/argz (Depends-on): Likewise.
10022         * modules/asinl (Depends-on): Likewise.
10023         * modules/atanl (Depends-on): Likewise.
10024         * modules/atoll (Depends-on): Likewise.
10025         * modules/bind (Depends-on): Likewise.
10026         * modules/btowc (Depends-on): Likewise.
10027         * modules/canonicalize-lgpl (Depends-on): Likewise.
10028         * modules/ceil (Depends-on): Likewise.
10029         * modules/ceilf (Depends-on): Likewise.
10030         * modules/ceill (Depends-on): Likewise.
10031         * modules/chdir-long (Depends-on): Likewise.
10032         * modules/chown (Depends-on): Likewise.
10033         * modules/close (Depends-on): Likewise.
10034         * modules/connect (Depends-on): Likewise.
10035         * modules/cosl (Depends-on): Likewise.
10036         * modules/dirfd (Depends-on): Likewise.
10037         * modules/dprintf (Depends-on): Likewise.
10038         * modules/dprintf-posix (Depends-on): Likewise.
10039         * modules/error (Depends-on): Likewise.
10040         * modules/euidaccess (Depends-on): Likewise.
10041         * modules/expl (Depends-on): Likewise.
10042         * modules/faccessat (Depends-on): Likewise.
10043         * modules/fchdir (Depends-on): Likewise.
10044         * modules/fclose (Depends-on): Likewise.
10045         * modules/fcntl (Depends-on): Likewise.
10046         * modules/fdopendir (Depends-on): Likewise.
10047         * modules/fflush (Depends-on): Likewise.
10048         * modules/floor (Depends-on): Likewise.
10049         * modules/floorf (Depends-on): Likewise.
10050         * modules/floorl (Depends-on): Likewise.
10051         * modules/fnmatch (Depends-on): Likewise.
10052         * modules/fopen (Depends-on): Likewise.
10053         * modules/fprintf-posix (Depends-on): Likewise.
10054         * modules/frexp (Depends-on): Likewise.
10055         * modules/frexp-nolibm (Depends-on): Likewise.
10056         * modules/frexpl (Depends-on): Likewise.
10057         * modules/frexpl-nolibm (Depends-on): Likewise.
10058         * modules/fseek (Depends-on): Likewise.
10059         * modules/fsusage (Depends-on): Likewise.
10060         * modules/ftell (Depends-on): Likewise.
10061         * modules/ftello (Depends-on): Likewise.
10062         * modules/futimens (Depends-on): Likewise.
10063         * modules/getcwd (Depends-on): Likewise.
10064         * modules/getcwd-lgpl (Depends-on): Likewise.
10065         * modules/getdelim (Depends-on): Likewise.
10066         * modules/getdomainname (Depends-on): Likewise.
10067         * modules/getgroups (Depends-on): Likewise.
10068         * modules/gethostname (Depends-on): Likewise.
10069         * modules/getline (Depends-on): Likewise.
10070         * modules/getlogin_r (Depends-on): Likewise.
10071         * modules/getopt-posix (Depends-on): Likewise.
10072         * modules/getpeername (Depends-on): Likewise.
10073         * modules/getsockname (Depends-on): Likewise.
10074         * modules/getsockopt (Depends-on): Likewise.
10075         * modules/getsubopt (Depends-on): Likewise.
10076         * modules/getusershell (Depends-on): Likewise.
10077         * modules/glob (Depends-on): Likewise.
10078         * modules/grantpt (Depends-on): Likewise.
10079         * modules/iconv_open (Depends-on): Likewise.
10080         * modules/iconv_open-utf (Depends-on): Likewise.
10081         * modules/inet_ntop (Depends-on): Likewise.
10082         * modules/inet_pton (Depends-on): Likewise.
10083         * modules/ioctl (Depends-on): Likewise.
10084         * modules/isapipe (Depends-on): Likewise.
10085         * modules/isfinite (Depends-on): Likewise.
10086         * modules/isinf (Depends-on): Likewise.
10087         * modules/lchown (Depends-on): Likewise.
10088         * modules/ldexpl (Depends-on): Likewise.
10089         * modules/link (Depends-on): Likewise.
10090         * modules/linkat (Depends-on): Likewise.
10091         * modules/listen (Depends-on): Likewise.
10092         * modules/logl (Depends-on): Likewise.
10093         * modules/lstat (Depends-on): Likewise.
10094         * modules/mbrlen (Depends-on): Likewise.
10095         * modules/mbrtowc (Depends-on): Likewise.
10096         * modules/mbsinit (Depends-on): Likewise.
10097         * modules/mbsnrtowcs (Depends-on): Likewise.
10098         * modules/mbsrtowcs (Depends-on): Likewise.
10099         * modules/mbtowc (Depends-on): Likewise.
10100         * modules/memcmp (Depends-on): Likewise.
10101         * modules/mkdir (Depends-on): Likewise.
10102         * modules/mkdtemp (Depends-on): Likewise.
10103         * modules/mkfifo (Depends-on): Likewise.
10104         * modules/mkfifoat (Depends-on): Likewise.
10105         * modules/mknod (Depends-on): Likewise.
10106         * modules/mkostemp (Depends-on): Likewise.
10107         * modules/mkostemps (Depends-on): Likewise.
10108         * modules/mkstemp (Depends-on): Likewise.
10109         * modules/mkstemps (Depends-on): Likewise.
10110         * modules/mktime (Depends-on): Likewise.
10111         * modules/nanosleep (Depends-on): Likewise.
10112         * modules/open (Depends-on): Likewise.
10113         * modules/openat (Depends-on): Likewise.
10114         * modules/perror (Depends-on): Likewise.
10115         * modules/poll (Depends-on): Likewise.
10116         * modules/popen (Depends-on): Likewise.
10117         * modules/posix_spawn (Depends-on): Likewise.
10118         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10119         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10120         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10121         * modules/posix_spawnp (Depends-on): Likewise.
10122         * modules/pread (Depends-on): Likewise.
10123         * modules/printf-posix (Depends-on): Likewise.
10124         * modules/ptsname (Depends-on): Likewise.
10125         * modules/putenv (Depends-on): Likewise.
10126         * modules/pwrite (Depends-on): Likewise.
10127         * modules/readline (Depends-on): Likewise.
10128         * modules/readlink (Depends-on): Likewise.
10129         * modules/readlinkat (Depends-on): Likewise.
10130         * modules/recv (Depends-on): Likewise.
10131         * modules/recvfrom (Depends-on): Likewise.
10132         * modules/regex (Depends-on): Likewise.
10133         * modules/remove (Depends-on): Likewise.
10134         * modules/rename (Depends-on): Likewise.
10135         * modules/renameat (Depends-on): Likewise.
10136         * modules/rmdir (Depends-on): Likewise.
10137         * modules/round (Depends-on): Likewise.
10138         * modules/roundf (Depends-on): Likewise.
10139         * modules/roundl (Depends-on): Likewise.
10140         * modules/rpmatch (Depends-on): Likewise.
10141         * modules/select (Depends-on): Likewise.
10142         * modules/send (Depends-on): Likewise.
10143         * modules/sendto (Depends-on): Likewise.
10144         * modules/setenv (Depends-on): Likewise.
10145         * modules/setlocale (Depends-on): Likewise.
10146         * modules/setsockopt (Depends-on): Likewise.
10147         * modules/shutdown (Depends-on): Likewise.
10148         * modules/sigaction (Depends-on): Likewise.
10149         * modules/signbit (Depends-on): Likewise.
10150         * modules/sigprocmask (Depends-on): Likewise.
10151         * modules/sinl (Depends-on): Likewise.
10152         * modules/sleep (Depends-on): Likewise.
10153         * modules/snprintf (Depends-on): Likewise.
10154         * modules/snprintf-posix (Depends-on): Likewise.
10155         * modules/socket (Depends-on): Likewise.
10156         * modules/sprintf-posix (Depends-on): Likewise.
10157         * modules/sqrtl (Depends-on): Likewise.
10158         * modules/stat (Depends-on): Likewise.
10159         * modules/strchrnul (Depends-on): Likewise.
10160         * modules/strdup-posix (Depends-on): Likewise.
10161         * modules/strerror (Depends-on): Likewise.
10162         * modules/strerror_r-posix (Depends-on): Likewise.
10163         * modules/strndup (Depends-on): Likewise.
10164         * modules/strnlen (Depends-on): Likewise.
10165         * modules/strptime (Depends-on): Likewise.
10166         * modules/strsep (Depends-on): Likewise.
10167         * modules/strsignal (Depends-on): Likewise.
10168         * modules/strstr-simple (Depends-on): Likewise.
10169         * modules/strtod (Depends-on): Likewise.
10170         * modules/strtoimax (Depends-on): Likewise.
10171         * modules/strtok_r (Depends-on): Likewise.
10172         * modules/strtoumax (Depends-on): Likewise.
10173         * modules/symlink (Depends-on): Likewise.
10174         * modules/symlinkat (Depends-on): Likewise.
10175         * modules/tanl (Depends-on): Likewise.
10176         * modules/tcgetsid (Depends-on): Likewise.
10177         * modules/tmpfile (Depends-on): Likewise.
10178         * modules/trunc (Depends-on): Likewise.
10179         * modules/truncf (Depends-on): Likewise.
10180         * modules/truncl (Depends-on): Likewise.
10181         * modules/uname (Depends-on): Likewise.
10182         * modules/unlink (Depends-on): Likewise.
10183         * modules/unlockpt (Depends-on): Likewise.
10184         * modules/unsetenv (Depends-on): Likewise.
10185         * modules/usleep (Depends-on): Likewise.
10186         * modules/utimensat (Depends-on): Likewise.
10187         * modules/vasprintf (Depends-on): Likewise.
10188         * modules/vdprintf (Depends-on): Likewise.
10189         * modules/vdprintf-posix (Depends-on): Likewise.
10190         * modules/vfprintf-posix (Depends-on): Likewise.
10191         * modules/vprintf-posix (Depends-on): Likewise.
10192         * modules/vsnprintf (Depends-on): Likewise.
10193         * modules/vsnprintf-posix (Depends-on): Likewise.
10194         * modules/vsprintf-posix (Depends-on): Likewise.
10195         * modules/wcrtomb (Depends-on): Likewise.
10196         * modules/wcscasecmp (Depends-on): Likewise.
10197         * modules/wcscspn (Depends-on): Likewise.
10198         * modules/wcsdup (Depends-on): Likewise.
10199         * modules/wcsncasecmp (Depends-on): Likewise.
10200         * modules/wcsnrtombs (Depends-on): Likewise.
10201         * modules/wcspbrk (Depends-on): Likewise.
10202         * modules/wcsrtombs (Depends-on): Likewise.
10203         * modules/wcsspn (Depends-on): Likewise.
10204         * modules/wcsstr (Depends-on): Likewise.
10205         * modules/wcstok (Depends-on): Likewise.
10206         * modules/wcswidth (Depends-on): Likewise.
10207         * modules/wctob (Depends-on): Likewise.
10208         * modules/wctomb (Depends-on): Likewise.
10209         * modules/wctype (Depends-on): Likewise.
10210         * modules/wcwidth (Depends-on): Likewise.
10211         * modules/write (Depends-on): Likewise.
10212
10213 2011-05-03  Bruno Haible  <bruno@clisp.org>
10214
10215         Support for conditional dependencies.
10216         * doc/gnulib.texi (Module description): Document the syntax of
10217         conditional dependencies.
10218         * gnulib-tool: New option --conditional-dependencies.
10219         (func_usage): Document it.
10220         (cond_dependencies): New variable.
10221         (func_get_automake_snippet_conditional,
10222         func_get_automake_snippet_unconditional): New functions, extracted from
10223         func_get_automake_snippet.
10224         (func_get_automake_snippet): Use them.
10225         (sed_first_32_chars): New variable.
10226         (func_module_shellfunc_name): New function.
10227         (func_module_shellvar_name): New function.
10228         (func_module_conditional_name): New function.
10229         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
10230         func_cond_module_condition): New functions.
10231         (func_modules_transitive_closure): Add support for conditional
10232         dependencies.
10233         (func_emit_lib_Makefile_am): For a conditional module, enclose the
10234         conditional automake snippet in an automake conditional.
10235         (func_emit_autoconf_snippets): Emit shell functions that contain the
10236         code for conditional modules.
10237         (func_import, func_create_testdir): Update specification.
10238
10239 2011-05-03  Eric Blake  <eblake@redhat.com>
10240
10241         test-getaddrinfo: report error information
10242         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
10243
10244 2011-05-03  Jim Meyering  <meyering@redhat.com>
10245
10246         bootstrap: avoid build failure when $GZIP is set
10247         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
10248         program name.  If defined at all, it is supposed to list gzip options.
10249         Reported by Alan Curry in http://debbugs.gnu.org/8609
10250
10251 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
10252
10253         readme-release: new module with release instructions
10254         * modules/readme-release: New module.
10255         * top/README-release: New file, from coreutils, grep, diffutils.
10256         * MODULES.html.sh (Support for maintaining and releasing): Add it.
10257
10258 2011-05-02  Eric Blake  <eblake@redhat.com>
10259
10260         fflush: also replace fclose when fixing fflush
10261         * modules/fflush (Depends-on): Add fclose.
10262         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
10263         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
10264         memstreams with no backing fd.
10265         * doc/posix-functions/fclose.texi (fclose): Document the use of
10266         fflush module to fix the bug.
10267         * tests/test-fclose.c (main): Relax test when fclose is used in
10268         isolation.
10269
10270         fclose: add some tests
10271         * modules/fclose-tests: New test module.
10272         * tests/test-fclose.c: New file.
10273         * doc/posix-functions/fclose.texi (fclose): Document the bug.
10274
10275         fclose: reduced dependencies
10276         * modules/fclose (Depends-on): Switch from fflush/fseeko to
10277         simpler lseek.
10278         * lib/fclose.c (rpl_fclose): Likewise.
10279         Reported by Simon Josefsson.
10280
10281         exit: drop remaining clients
10282         * modules/argmatch (Depends-on): Replace exit with stdlib.
10283         * modules/copy-file (Depends-on): Likewise.
10284         * modules/execute (Depends-on): Likewise.
10285         * modules/exitfail (Depends-on): Likewise.
10286         * modules/obstack (Depends-on): Likewise.
10287         * modules/pagealign_alloc (Depends-on): Likewise.
10288         * modules/pipe-filter-gi (Depends-on): Likewise.
10289         * modules/pipe-filter-ii (Depends-on): Likewise.
10290         * modules/savewd (Depends-on): Likewise.
10291         * modules/spawn-pipe (Depends-on): Likewise.
10292         * modules/wait-process (Depends-on): Likewise.
10293         * modules/xsetenv (Depends-on): Likewise.
10294         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
10295         * modules/git-merge-changelog (Depends-on): Likewise.
10296         * modules/long-options (Depends-on): Likewise.
10297         * modules/pt_chown (Depends-on): Likewise.
10298         * modules/sysexits (Depends-on): Likewise.
10299
10300         freading: relax license from LGPLv3+ to LGPLv2+
10301         * modules/freading (License): Relax LGPL version.
10302
10303 2011-05-02  Bruno Haible  <bruno@clisp.org>
10304
10305         fchdir: Remove unused dependencies.
10306         * modules/fchdir (Depends-on): Remove include_next.
10307
10308 2011-05-02  Bruno Haible  <bruno@clisp.org>
10309
10310         gnulib-tool: Refactor.
10311         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
10312         from func_emit_autoconf_snippets.
10313         (func_emit_autoconf_snippets): Use it.
10314
10315 2011-05-02  Simon Josefsson  <simon@josefsson.org>
10316
10317         * NEWS: Document removal of 'exit'.
10318         * modules/exit: Remove file.
10319
10320 2011-05-01  Bruno Haible  <bruno@clisp.org>
10321
10322         Update DEPENDENCIES.
10323         * DEPENDENCIES (gettext): Recommend the newest release.
10324         Reported by Simon Josefsson.
10325
10326 2011-05-01  Bruno Haible  <bruno@clisp.org>
10327
10328         gnulib-tool: Reduce code duplication.
10329         * gnulib-tool (func_emit_autoconf_snippets): New function.
10330         (func_import, func_create_testdir): Use it.
10331
10332 2011-04-30  Eric Blake  <eblake@redhat.com>
10333
10334         fclose: don't fail on non-seekable input stream
10335         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
10336         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
10337         since fflush is allowed to fail in that case.
10338
10339 2011-04-30  Bruno Haible  <bruno@clisp.org>
10340
10341         dup3: cleanup
10342         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
10343
10344 2011-04-30  Bruno Haible  <bruno@clisp.org>
10345
10346         netdb: Make it work in C++ mode.
10347         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
10348         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
10349         module.
10350         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
10351         gl_MODULE_INDICATOR_FOR_TESTS.
10352         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
10353         * modules/netdb-c++-tests: New file.
10354         * tests/test-netdb-c++.cc: New file.
10355
10356 2011-04-30  Bruno Haible  <bruno@clisp.org>
10357
10358         New modules 'vfscanf', 'vscanf'.
10359         * modules/vfscanf: New file.
10360         * modules/vscanf: New file.
10361         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
10362         here.
10363         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
10364         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
10365
10366 2011-04-30  Bruno Haible  <bruno@clisp.org>
10367
10368         passfd: Add comments.
10369         * lib/passfd.c: Add comments about platforms.
10370
10371 2011-04-30  Bruno Haible  <bruno@clisp.org>
10372
10373         sys_uio: Make <sys/uio.h> self-contained.
10374         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
10375         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
10376
10377 2011-04-30  Bruno Haible  <bruno@clisp.org>
10378
10379         sys_socket: Ensure 'struct iovec' definition.
10380         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
10381         <sys/socket.h>.
10382         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
10383
10384 2011-04-30  Bruno Haible  <bruno@clisp.org>
10385
10386         sys_uio: Protect definition of 'struct iovec'.
10387         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
10388         it as a C struct.
10389
10390 2011-04-30  Bruno Haible  <bruno@clisp.org>
10391
10392         manywarnings: fix indentation
10393         * m4/manywarnings.m4: Indent by 2 spaces consistently.
10394
10395 2011-04-30  Pádraig Brady <P@draigBrady.com>
10396
10397         manywarnings: add -Wno-missing-field-initializers if needed.
10398         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
10399         option if it's needed to allow initialization with { 0, }
10400
10401 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
10402
10403         announce-gen: cosmetic improvement
10404         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
10405
10406 2011-04-29  Jim Meyering  <meyering@redhat.com>
10407
10408         vc-list-files: indent with spaces, not TABs
10409         * build-aux/vc-list-files: Convert leading TABs to spaces,
10410         to match the style of most other files in gnulib.
10411
10412         announce-gen: indent with spaces, not TABs
10413         * build-aux/announce-gen: Convert all TABs to spaces, to match
10414         the style of most other files in gnulib.
10415
10416 2011-04-29  Eric Blake  <eblake@redhat.com>
10417
10418         quotearg: avoid uninitialized variable use
10419         * lib/quotearg.c (quoting_options_from_style): Initialize
10420         remaining fields, and ensure that custom styles are only used via
10421         quoting_options rather than quoting_style.
10422
10423 2011-04-29  Jim Meyering  <meyering@redhat.com>
10424
10425         maint.mk: remove unused VC-tag variable
10426         * top/maint.mk (VC-tag): Remove unused variable.
10427
10428 2011-04-29  Bruno Haible  <bruno@clisp.org>
10429
10430         netdb: fix gai_strerror replacements
10431         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
10432         * modules/netdb: Substitute it.
10433
10434 2011-04-29  Jim Meyering  <meyering@redhat.com>
10435
10436         test-getcwd.c: avoid new set-but-not-used warning
10437         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
10438         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
10439         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
10440         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
10441
10442         test-hash.c: avoid a new shadowing warning
10443         * tests/test-hash.c (main): Don't shadow "dup".
10444
10445 2011-04-28  Eric Blake  <eblake@redhat.com>
10446
10447         getaddrinfo: fix gai_strerror signature
10448         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
10449         and work around mingw with UNICODE defined.
10450         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
10451         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
10452         * modules/netdb (Makefile.am): Substitute it.
10453         * lib/netdb.in.h (gai_strerror): Declare replacement.
10454         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
10455         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
10456         the fix.
10457
10458         getsockopt: avoid compiler warning
10459         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
10460         Reported by Matthias Bolte.
10461
10462         tests: drop unused link dependency
10463         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
10464         * modules/dirent-safer-tests (Makefile.am): Likewise.
10465         * modules/fdopendir-tests (Makefile.am): Likewise.
10466         * modules/mkfifoat-tests (Makefile.am): Likewise.
10467         * modules/openat-safer-tests (Makefile.am): Likewise.
10468         * modules/openat-tests (Makefile.am): Likewise.
10469         * modules/readlinkat-tests (Makefile.am): Likewise.
10470         * modules/symlinkat-tests (Makefile.am): Likewise.
10471         * modules/linkat-tests (Makefile.am): Likewise.
10472         (Depends-on): Switch to filenamecat-lgpl.
10473         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
10474         LIBINTL.
10475         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
10476         * tests/test-linkat.c (main): Don't require xalloc.
10477
10478         hash, mgetgroups: drop xalloc dependency
10479         * lib/hash.c (includes): Adjust includes.
10480         * lib/mgetgroups.c (includes): Likewise.
10481         (xgetgroups): Move...
10482         * lib/xgetgroups.c: ...to new file.
10483         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
10484         * modules/xgetgroups: New file, split from...
10485         * modules/mgetgroups: ...here.
10486         (Depends-on): Add xalloc-oversized.
10487         * modules/hash (Depends-on): Likewise.
10488         * modules/hash-tests (Depends-on): Drop xalloc.
10489         (test_hash_LDADD): Drop unused library.
10490         * tests/test-hash.c (main): Break xalloc dependency.
10491         (includes): Drop unused include.
10492
10493         xalloc-oversized: new module
10494         * modules/xalloc-oversized: New module.
10495         * modules/xalloc (Depends-on): Add it.
10496         * lib/xalloc.h (xalloc_oversized): Move...
10497         * lib/xalloc-oversized.h: ...into new file.
10498
10499         utimecmp: drop dependency on xmalloc
10500         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
10501         due to memory pressure.
10502         * modules/utimecmp (Depends-on): Drop xalloc.
10503
10504 2011-04-27  Eric Blake  <eblake@redhat.com>
10505
10506         getcwd: fix mingw bugs
10507         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
10508         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
10509         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
10510
10511 2011-04-27  Bruno Haible  <bruno@clisp.org>
10512
10513         mkstemps: Ensure declaration on MacOS X 10.5.
10514         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
10515         * doc/glibc-functions/mkstemps.texi: Document header file problem on
10516         MacOS X.
10517
10518 2011-04-27  Bruno Haible  <bruno@clisp.org>
10519
10520         mkstemp: More documentation.
10521         * doc/posix-functions/mkstemp.texi: Document header file problem on
10522         MacOS X.
10523
10524 2011-04-27  Bruno Haible  <bruno@clisp.org>
10525
10526         mkstemp: Tweak configure message when cross-compiling.
10527         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
10528         result as a guess.
10529
10530 2011-04-27  Bruno Haible  <bruno@clisp.org>
10531
10532         clean-temp: Clarify what it does.
10533         * lib/clean-temp.h: Add more comments.
10534         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
10535         module.
10536         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
10537         * doc/glibc-functions/mkstemps.texi: Likewise.
10538         * doc/glibc-functions/mkostemps.texi: Likewise.
10539
10540 2011-04-27  Eric Blake  <eblake@redhat.com>
10541
10542         fchdir: avoid extra chdir and fix test
10543         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
10544         getcwd-lgpl.
10545         * lib/fchdir.c (get_name): Any absolute name will do; it does not
10546         have to be canonical.
10547         (canonicalize_file_name): Drop unused macro.
10548         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
10549
10550         filenamecat-lgpl: fix licence
10551         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
10552         when it was first created.
10553
10554         linkat, renameat: add missing dependency
10555         * modules/linkat (Depends-on): Require getcwd-lgpl.
10556         * modules/renameat (Depends-on): Likewise.
10557
10558         tests: reduce dependencies
10559         * tests/test-linkat.c (main): Use lighter-weight getcwd.
10560         * tests/test-renameat.c (main): Likewise.
10561         * modules/linkat-tests (Depends-on): Relax dependency.
10562         * modules/renameat-tests (Depends-on): Likewise.
10563         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
10564         dependency explicit.
10565
10566         save-cwd: reduce default dependency
10567         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
10568         * lib/save-cwd.c: Update comments.
10569         * NEWS: Document the semantic change.
10570
10571         getcwd: enhance tests
10572         * tests/test-getcwd-lgpl.c: New file, taken from...
10573         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
10574         repeat long path stress tests from m4 probe.
10575         * modules/getcwd-lgpl-tests: New module.
10576         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
10577         * m4/getcwd-abort-bug.m4: Update comment.
10578         * m4/getcwd-path-max.m4: Likewise.
10579
10580         getcwd-lgpl: new module
10581         * modules/getcwd-lgpl: New module.
10582         * lib/getcwd-lgpl.c: New file.
10583         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10584         * MODULES.html.sh (lacking POSIX:2008): Likewise.
10585         * modules/getcwd (configure.ac): Set C witness.
10586         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
10587
10588         getcwd: tweak comments
10589         * m4/getcwd-abort-bug.m4: Fix comments.
10590         * m4/getcwd-path-max.m4: Likewise.
10591         * m4/getcwd.m4: Likewise.
10592
10593 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10594         and Eric Blake  <eblake@redhat.com>
10595
10596         mkstemp: replace if system version uses wrong permissions
10597         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
10598         read/write mode bits set in file created by mkstemp.
10599         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
10600
10601 2011-04-27  Eric Blake  <eblake@redhat.com>
10602
10603         passfd: avoid compiler warning
10604         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
10605         Reported by Laine Stump.
10606
10607 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
10608
10609         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
10610         required by the NetBSD (and perhaps other 4.4BSD derived) join.
10611
10612 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10613         and Eric Blake  <eblake@redhat.com>
10614
10615         mkstemp: mention clean-temp module
10616         * lib/mkstemp.c: Add comment.
10617         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
10618
10619 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10620
10621         inttypes: also provide default values for 32-bit tests
10622         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
10623         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
10624
10625 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10626
10627         strtoumax: remove dependency on strtoimax
10628         This is like the strtoull change of yesterday.
10629         * modules/strtoumax (Files): Add lib/strtoimax.c.
10630         (Depends-on): Remove strtoimax and add verify.
10631
10632         inttypes-incomplete: new module
10633         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
10634         all but the PRI* and SCN* parts of gl_INTTYPES_H.
10635         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
10636         of gl_INTTYPES_H.
10637         (gl_INTTYPES_H): Rewrite in terms of these new macros.
10638         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
10639         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
10640         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
10641         * modules/strtoumax, modules/xstrtol (Depends-on):
10642         Depend on inttypes-incomplete, not inttypes.
10643         * modules/inttypes-incomplete: New module, containing the contents
10644         of the old modules/inttypes module, except that the Files: section
10645         omits m4/inttypes-pri.m4, and the configure.ac section invokes
10646         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
10647         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
10648         (Depends-on): Depend only on inttypes-incomplete.
10649         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
10650
10651         inttypes: omit now-redundant strtoimax and strtoumax work
10652         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
10653         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
10654
10655         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
10656         This supports apps that need pointers to strtoimax and strtoumax,
10657         and ports to HP-UX 11.00 64.bit, which has macros that expand to
10658         nonexistent functions.  See
10659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
10660         et seq.
10661         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
10662         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
10663         a macro.
10664         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10665
10666 2011-04-25  Simon Josefsson  <simon@josefsson.org>
10667
10668         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
10669
10670 2011-04-25  Bruno Haible  <bruno@clisp.org>
10671
10672         strtol, strtoul: Mark modules as obsolete.
10673         * modules/strtol (Status, Notice): New sections.
10674         * modules/strtoul (Status, Notice): New sections.
10675
10676 2011-04-25  Bruno Haible  <bruno@clisp.org>
10677
10678         strtod: Remove check for strtod, unless supporting old platforms.
10679         * modules/strtod-obsolete: New file.
10680         * m4/strtod-obsolete.m4: New file.
10681         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
10682         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
10683         * modules/strtod (Depends-on): Add strtod-obsolete.
10684         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
10685
10686 2011-04-25  Bruno Haible  <bruno@clisp.org>
10687
10688         strcase: Make module obsolete.
10689         * modules/strcase (Status, Notice): New sections.
10690
10691 2011-04-25  Bruno Haible  <bruno@clisp.org>
10692
10693         dup2: Remove check for dup2, unless supporting old obsolete platforms.
10694         * modules/dup2-obsolete: New file.
10695         * m4/dup2-obsolete.m4: New file.
10696         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
10697         gl_FUNC_DUP2_OBSOLETE is not also defined.
10698         * modules/dup2 (Depends-on): Add dup2-obsolete.
10699         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
10700
10701 2011-04-25  Bruno Haible  <bruno@clisp.org>
10702
10703         strnlen: Avoid memchr related link error on old obsolete platforms.
10704         * modules/memchr-obsolete: New file.
10705         * m4/memchr-obsolete.m4: New file.
10706         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
10707         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
10708         * modules/memchr (Depends-on): Add memchr-obsolete.
10709         * modules/strnlen (Depends-on): Likewise.
10710         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
10711
10712 2011-04-25  Jim Meyering  <meyering@redhat.com>
10713
10714         maint.mk: makefile_at_at_check extend and clean up
10715         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
10716         in addition to */Makefile.am.
10717         Exempt legitimate uses of @VAR@ notation, e.g.,
10718         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
10719         Remove obsolete coreutils-specific comment.
10720         Prompted by discussion here:
10721         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
10722
10723 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
10724
10725         strtoul: remove dependency on strtol
10726         This is so that 'configure' need not check for strtol merely because
10727         the application needs strtoul.
10728         * modules/strtoul (Files): Add lib/strtol.c.
10729         (Depends-on): Remove strtol.
10730
10731         strtoull: remove dependency on strtoul
10732         This is like the strtoll change.
10733         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
10734         (Depends-on): Remove strtoul.
10735
10736         strtoll: remove dependency on strtol
10737         This is so that 'configure' need not check for strtol merely because
10738         the application needs strtoll.
10739         * modules/strtoll (Files): Add lib/strtol.c.
10740         (Depends-on): Remove strtol.
10741
10742 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10743
10744         inttypes: Move some configure check to module 'imaxdiv'.
10745         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
10746         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
10747         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
10748
10749 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10750
10751         inttypes: Move some configure check to module 'imaxabs'.
10752         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
10753         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
10754         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
10755
10756 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10757
10758         inttypes: Remove configure tests that are not needed since 2009-12-31.
10759         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
10760         gl_cv_header_working_inttypes_h.
10761
10762 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10763
10764         * modules/strnlen (Depends-on): Remove memchr.
10765         The strnlen implementation doesn't need the memchr module's fixes; see
10766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
10767
10768         strtol: remove dependency on wchar
10769         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
10770         * modules/strtol (Depends-on): Remove wchar.
10771
10772 2011-04-21  Eric Blake  <eblake@redhat.com>
10773
10774         passfd: fix test regression on Linux
10775         * modules/passfd-tests (configure.ac): Correct socketpair check.
10776
10777         passfd: speed up configure and drop unused code
10778         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
10779         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
10780         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
10781         Instead of probing at configure for unix_scm_rights_bsd44_way,
10782         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
10783         check to a struct member probe.
10784         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
10785         (sendfd, recvfd): Update preprocessor checks.
10786         * modules/passfd (Files): Reflect rename, and drop unused file.
10787         (Depends-on): Drop unused dependency.
10788
10789         passfd: allow compilation on mingw
10790         * modules/sys_socket (Depends-on): Add sys_uio.
10791         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
10792         iovec and a minimal struct msghdr.
10793         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
10794         * tests/test-sys_socket.c (main): Enhance test.
10795         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
10796         guaranteed to provide what we need.
10797         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
10798         * modules/passfd-tests (Depends-on): Add sys_wait.
10799         * tests/test-passfd.c (main): Skip test on mingw, for now.
10800         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
10801         partial 'struct msghdr' implementation.
10802
10803         sys_uio: new module
10804         * modules/sys_uio: New module.
10805         * modules/sys_uio-tests: Likewise.
10806         * lib/sys_uio.in.h: New file.
10807         * m4/sys_uio_h.m4: Likewise.
10808         * tests/test-sys_uio.c: Likewise.
10809         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
10810         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
10811
10812 2011-04-20  Jim Meyering  <meyering@redhat.com>
10813
10814         useless-if-before-free: avoid false-positive
10815         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
10816         disjunct so that it too requires a terminating ";".  Without that,
10817         this script would identify as useless one statement from gcc that
10818         was not:
10819           if (aligned_ptr)
10820             free (((void **) aligned_ptr) [-1]);
10821
10822 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
10823
10824         doc: update users.txt.
10825         * users.txt: Add barcode.
10826
10827 2011-04-19  Bruno Haible  <bruno@clisp.org>
10828
10829         ioctl: Remove link dependency on native Windows.
10830         * lib/fd-hook.h: Renamed from lib/close-hook.h.
10831         (gl_close_fn, gl_ioctl_fn): New types.
10832         (struct fd_hook): Renamed from struct close_hook. Change type of
10833         private_close_fn field. Add private_ioctl_fn field.
10834         (close_hook_fn): Add parameter for primary close method.
10835         (execute_close_hooks, execute_all_close_hooks): Likewise.
10836         (ioctl_hook_fn): New type.
10837         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
10838         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10839         argument.
10840         (unregister_fd_hook): Renamed from unregister_close_hook.
10841         * lib/fd-hook.c: Renamed from lib/close-hook.c.
10842         Don't include <unistd.h>.
10843         (close): Remove undef.
10844         (anchor): Update.
10845         (execute_close_hooks): Add argument for primary close method.
10846         (execute_all_close_hooks): Likewise.
10847         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
10848         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10849         argument. Allow each argument to be NULL.
10850         (unregister_fd_hook): Renamed from unregister_close_hook.
10851         * lib/close.c (rpl_close): Pass 'close' function pointer to
10852         execute_all_close_hooks.
10853         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
10854         (primary_ioctl): New function.
10855         (ioctl): Don't call ioctlsocket here. Instead, call
10856         execute_all_ioctl_hooks.
10857         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
10858         close method.
10859         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
10860         (fd_sockets_hook): Renamed from close_sockets_hook.
10861         (gl_sockets_startup, gl_sockets_cleanup): Update.
10862         * modules/fd-hook: Renamed from modules/close-hook. Update.
10863         * modules/close (Depends-on): Add fd-hook, remove close-hook.
10864         * modules/sockets (Depends-on): Likewise.
10865         * modules/ioctl (Depends-on): Add fd-hook.
10866         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
10867         GNULIB_SOCKET.
10868
10869 2011-04-19  Bruno Haible  <bruno@clisp.org>
10870
10871         Move the support of O_NONBLOCK in open() to the 'open' module.
10872         * modules/nonblocking (Depends-on): Remove 'open'.
10873         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
10874         gl_cv_have_open_O_NONBLOCK.
10875         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
10876         O_NONBLOCK support.
10877         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
10878
10879 2011-04-17  Bruno Haible  <bruno@clisp.org>
10880
10881         pipe2: Simplify code.
10882         * lib/pipe2.c (pipe2): Reduce code duplication.
10883
10884 2011-04-17  Bruno Haible  <bruno@clisp.org>
10885
10886         nonblocking: Add comment.
10887         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
10888
10889 2011-04-17  Bruno Haible  <bruno@clisp.org>
10890
10891         nonblocking: Add tests for sockets.
10892         * tests/test-nonblocking-socket.sh: New file.
10893         * tests/test-nonblocking-socket-main.c: New file.
10894         * tests/test-nonblocking-socket-child.c: New file.
10895         * tests/test-nonblocking-socket.h: New file.
10896         * tests/socket-server.h: New file.
10897         * tests/socket-client.h: New file.
10898         * modules/nonblocking-socket-tests: New file.
10899         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
10900
10901 2011-04-17  Bruno Haible  <bruno@clisp.org>
10902
10903         nonblocking: Add tests for pipes.
10904         * tests/test-nonblocking-pipe.sh: New file.
10905         * tests/test-nonblocking-pipe-main.c: New file.
10906         * tests/test-nonblocking-pipe-child.c: New file.
10907         * tests/test-nonblocking-pipe.h: New file.
10908         * tests/test-nonblocking-writer.h: New file.
10909         * tests/test-nonblocking-reader.h: New file.
10910         * tests/test-nonblocking-misc.h: New file.
10911         * modules/nonblocking-pipe-tests: New file.
10912         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
10913
10914 2011-04-16  Bruno Haible  <bruno@clisp.org>
10915
10916         gettext: Clarify the needed programmer actions.
10917         * modules/gettext (Notice): New field.
10918         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
10919
10920 2011-04-16  Bruno Haible  <bruno@clisp.org>
10921
10922         strchrnul: Tweak last commit.
10923         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
10924         bug.
10925         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
10926         as in _GL_FUNCDECL_SYS.
10927         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
10928         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
10929
10930 2011-04-15  Eric Blake  <eblake@redhat.com>
10931
10932         strchrnul: work around cygwin bug
10933         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
10934         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
10935         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
10936         * modules/string (Makefile.am): Substitute it.
10937         * lib/string.in.h (strchrnul): Use it.
10938
10939 2011-04-15  Bruno Haible  <bruno@clisp.org>
10940
10941         Don't require lib/stdio-write.c when only module 'stdio' is used.
10942         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
10943         invocation.
10944         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
10945
10946 2011-04-14  Bruno Haible  <bruno@clisp.org>
10947
10948         Support non-blocking pipe I/O in read() on native Windows.
10949         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
10950         (read): New declaration.
10951         * lib/read.c: New file.
10952         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
10953         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
10954         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
10955         vscanf): New declarations.
10956         * lib/stdio-read.c: New file.
10957         * m4/read.m4: New file.
10958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
10959         REPLACE_READ.
10960         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
10961         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10962         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
10963         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
10964         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
10965         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10966         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10967         * modules/read: New file.
10968         * modules/nonblocking (Files): Add lib/stdio-read.c.
10969         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
10970         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
10971         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10972         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10973         * modules/pread (Depends-on): Add read.
10974         * modules/safe-read (Depends-on): Likewise.
10975         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
10976         gets, scanf, vfscanf, vscanf): Verify signatures.
10977         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
10978         problem with non-blocking pipes.
10979         * doc/posix-functions/fgetc.texi: Likewise.
10980         * doc/posix-functions/fgets.texi: Likewise.
10981         * doc/posix-functions/fread.texi: Likewise.
10982         * doc/posix-functions/fscanf.texi: Likewise.
10983         * doc/posix-functions/getc.texi: Likewise.
10984         * doc/posix-functions/getchar.texi: Likewise.
10985         * doc/posix-functions/gets.texi: Likewise.
10986         * doc/posix-functions/scanf.texi: Likewise.
10987         * doc/posix-functions/vfscanf.texi: Likewise.
10988         * doc/posix-functions/vscanf.texi: Likewise.
10989
10990 2011-04-14  Bruno Haible  <bruno@clisp.org>
10991
10992         Support non-blocking pipe I/O in write() on native Windows.
10993         * lib/write.c (rpl_write): Split a write request that failed merely
10994         because the byte count was larger than the pipe buffer's size.
10995         * doc/posix-functions/write.texi: Mention the problem with large byte
10996         counts.
10997
10998 2011-04-14  Bruno Haible  <bruno@clisp.org>
10999
11000         wchar: Ensure that wchar_t gets defined on uClibc.
11001         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11002         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11003
11004 2011-04-13  Bruno Haible  <bruno@clisp.org>
11005
11006         safe-write, full-read: Avoid unnecessary compilation units.
11007         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11008         (Depends-on): Remove safe-read. Add ssize_t.
11009         * modules/full-read (Files): Add lib/full-write.c.
11010         (Depends-on): Add full-write.
11011
11012 2011-04-13  Bruno Haible  <bruno@clisp.org>
11013
11014         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11015         * modules/pwrite (Depends-on): Add 'write'.
11016
11017 2011-04-13  Bruno Haible  <bruno@clisp.org>
11018
11019         Support non-blocking pipe I/O in write() on native Windows.
11020         * lib/unistd.in.h (write): Enable replacement also if
11021         GNULIB_UNISTD_H_NONBLOCKING is 1.
11022         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11023         (rpl_write): When failing to write on a non-blocking pipe, change
11024         errno from ENOSPC to EAGAIN.
11025         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11026         putchar, puts, vfprintf, vprintf): Enable replacement also if
11027         GNULIB_STDIO_H_NONBLOCKING is 1.
11028         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11029         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11030         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11031         CALL_WITH_SIGPIPE_EMULATION.
11032         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11033         * m4/nonblocking.m4: New file.
11034         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11035         for non-blocking I/O support.
11036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11037         GNULIB_UNISTD_H_NONBLOCKING.
11038         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11039         required for non-blocking I/O support.
11040         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11041         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11042         lib/stdio-write.c, m4/asm-underscore.m4.
11043         (Depends-on): Add stdio, unistd.
11044         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11045         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11046         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11047         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11048         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11049         problem with non-blocking pipes.
11050         * doc/posix-functions/fputc.texi: Likewise.
11051         * doc/posix-functions/fputs.texi: Likewise.
11052         * doc/posix-functions/fwrite.texi: Likewise.
11053         * doc/posix-functions/printf.texi: Likewise.
11054         * doc/posix-functions/putc.texi: Likewise.
11055         * doc/posix-functions/putchar.texi: Likewise.
11056         * doc/posix-functions/puts.texi: Likewise.
11057         * doc/posix-functions/vfprintf.texi: Likewise.
11058         * doc/posix-functions/vprintf.texi: Likewise.
11059         * doc/posix-functions/write.texi: Likewise.
11060
11061 2011-04-10  Jim Meyering  <meyering@redhat.com>
11062
11063         maint.mk: prohibit doubled words
11064         Detect them also when they're separated by a newline.
11065         There are 3 ways to customize it:
11066           - disable the test on a per file basis, as usual with rules using
11067             $(VC_LIST_EXCEPT)
11068           - replace the default doubled-word-selecting regexp (affects all files)
11069           - ignore a particular file-vs-doubled-word match
11070         I nearly used that last one to ignore the "is is" match in
11071         coreutils' NEWS file, since the text was "ls -is is ..."
11072         To do that, I would have added this line to cfg.mk:
11073           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11074         but it would have ignored any "is is" match in NEWS.
11075         Low probability, but still...
11076         Instead, I changed the text, slightly:
11077           -  ls -is is now consistent with ls -lis in ignoring values returned
11078           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11079         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11080         (prohibit_doubled_word_): Define.
11081         (sc_prohibit_doubled_word): New rule.
11082         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11083
11084 2011-04-10  Jim Meyering  <meyering@redhat.com>
11085
11086         maint: fix doubled-word typo in comment
11087         * m4/gethostname.m4: s/is is/it is/
11088         * m4/getdomainname.m4: Likewise.
11089
11090 2011-04-10  Jim Meyering  <meyering@redhat.com>
11091
11092         maint: remove doubled word: s/it it/it/
11093         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11094
11095 2011-04-10  Jim Meyering  <meyering@redhat.com>
11096
11097         maint.mk: remove useless semicolon and backslash
11098         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11099         semicolon and backslash.
11100
11101 2011-04-10  Bruno Haible  <bruno@clisp.org>
11102
11103         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11104         * modules/stdint-tests (Depends-on): Add wchar.
11105
11106 2011-04-10  Jim Meyering  <meyering@redhat.com>
11107
11108         maint: remove doubled words in comments, e.g., s/a a/a/
11109         * lib/strptime.c (day_of_the_week): s/the the/the/
11110         * tests/test-chown.h (test_chown): s/a a/a/
11111
11112         test-chown.h: correct a cast
11113         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11114         when the destination is a stat.st_gid.
11115
11116 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11117
11118         getaddrinfo: Fix test for sa_len member.
11119         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11120         include <sys/types.h> before <sys/socket.h>.
11121
11122 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11123
11124         maint: change "can not" to "cannot"
11125         * doc/posix-functions/iconv.texi (iconv): This one crossed line
11126         boundaries.
11127
11128 2011-04-09  Jim Meyering  <meyering@redhat.com>
11129
11130         maint: change "a a" to "a"
11131         * tests/test-lchown.h (test_lchown): s/a a/a/
11132
11133         maint.mk: prohibit \<the the\>
11134         * top/maint.mk (sc_prohibit_the_the): New rule.
11135
11136         maint: fix "the the" in comment
11137         * lib/count-one-bits.h: s/the the/the/
11138
11139         maint: change "can not" to "cannot"
11140         But do not change the occurrences in maintain.texi or in
11141         build-aux/po/Makefile.in.in, which I presume comes from gettext.
11142         * doc/gnulib-tool.texi: s/can not/cannot/
11143         * doc/posix-functions/accept.texi (accept): Likewise.
11144         * doc/posix-functions/socket.texi (socket): Likewise.
11145         * lib/mbrtowc.c: Likewise.
11146
11147         maint.mk: prohibit use of "can not"
11148         * top/maint.mk (sc_prohibit_can_not): New rule.
11149         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
11150
11151 2011-04-09  Bruno Haible  <bruno@clisp.org>
11152
11153         careadlinkat: Guard against misuse of careadlinkatcwd.
11154         * lib/careadlinkat.c: Include <stdlib.h>.
11155         (careadlinkatcwd): Check that the fd argument is as expected.
11156
11157 2011-04-09  Bruno Haible  <bruno@clisp.org>
11158
11159         careadlinkat: Use common coding style.
11160         * lib/careadlinkat.c: Move gnulib includes after system includes.
11161
11162 2011-04-09  Bruno Haible  <bruno@clisp.org>
11163
11164         careadlinkat: Clarify specification.
11165         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
11166         (careadlinkatcwd): Add comment.
11167         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
11168
11169 2011-04-09  Bruno Haible  <bruno@clisp.org>
11170
11171         areadlinkat: Avoid link error on many platforms.
11172         * modules/areadlinkat (Depends-on): Add areadlink.
11173
11174 2011-04-09  Bruno Haible  <bruno@clisp.org>
11175
11176         allocator, careadlinkat: Fix double-inclusion guard.
11177         * lib/allocator.h: Fix double-inclusion guard.
11178         * lib/careadlinkat.h: Likewise.
11179
11180 2011-04-09  Bruno Haible  <bruno@clisp.org>
11181
11182         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11183         * lib/relocwrapper.c: Update dependencies hierarchy.
11184         * build-aux/install-reloc: Update list of files to be compiled.
11185         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11186         lib/allocator.[hc].
11187
11188 2011-04-08  Eric Blake  <eblake@redhat.com>
11189
11190         strftime: silence gnulib-tool warning
11191         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11192
11193 2011-04-08  Bruno Haible  <bruno@clisp.org>
11194
11195         verify: Fix syntax error with GCC 4.6 in C++ mode.
11196         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11197         (HAVE_STATIC_ASSERT): New macro.
11198         (verify_true, verify): Use 'static_assert' if it is supported and
11199         '_Static_assert' is not supported.
11200
11201 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11202
11203         allocator: New module.
11204         * modules/allocator, lib/allocator.c: New files.
11205         * lib/allocator.h (stdlib_allocator): New decl.
11206         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
11207         Remove.  Do not include <stdlib.h>.
11208         (careadlinkat): Use stdlib_allocator instead of rolling our own.
11209         * modules/careadlinkat (Files): Remove lib/allocator.h.
11210         (Depends-on): Add allocator.
11211
11212         stdlib: let modules use system malloc, realloc
11213         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
11214         if !_GL_USE_STDLIB_ALLOC.
11215         (malloc, realloc): Limit this change to a smaller scope.
11216
11217         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
11218         (malloc, realloc): Don't #undef; no longer needed.
11219         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11220         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11221         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11222         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11223         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11224         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11225         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11226         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11227
11228         careadlinkat: rename members to avoid problem
11229         * lib/allocator.h (struct allocator): Rename members from
11230         malloc/realloc to allocate/reallocate, to avoid problems if malloc
11231         and realloc are #define'd.  Reported by Eric Blake in
11232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
11233         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
11234
11235 2011-04-08  Eric Blake  <eblake@redhat.com>
11236
11237         nonblocking: reduce dependency
11238         * tests/test-nonblocking.c: Only test sockets when in use.
11239         * modules/nonblocking-tests (Depends-on): Drop socket.
11240         (Makefile.am): Link even if sockets are not present.
11241         * modules/pipe2-tests (Makefile.am): Likewise.
11242         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
11243
11244         pipe2: fix O_NONBLOCK support on mingw
11245         * modules/pipe2 (Depends-on): Add nonblocking.
11246         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
11247         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
11248         * tests/test-nonblocking.c (main): Likewise.
11249         * modules/pipe2-tests (Makefile.am): Avoid link failure.
11250
11251         fcntl-h: fix O_ACCMODE on cygwin
11252         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
11253         * lib/fcntl.in.h (O_ACCMODE): Fix it.
11254
11255         pipe-filter: drop O_NONBLOCK workarounds
11256         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
11257         * modules/pipe-filter-ii (Depends-on): Likewise.
11258         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
11259
11260         nonblocking: provide O_NONBLOCK for mingw
11261         * modules/nonblocking (Depends-on): Add open.
11262         (configure.ac): Set new witness macro.
11263         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
11264         * modules/fcntl-h (Makefile.am): Substitute it.
11265         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
11266         nonblocking module is in use.
11267         * lib/nonblocking.c: Adjust portability test.
11268         * lib/open.c (open): Don't let native open see gnulib flag.
11269         * tests/test-fcntl-h.c (main): Enhance test.
11270         * tests/test-open.h (test_open): Likewise.
11271         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
11272
11273         careadlinkat: fix compilation error on mingw
11274         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
11275         within struct allocator.
11276
11277 2011-04-06  Eric Blake  <eblake@redhat.com>
11278
11279         binary-io: relicense under LGPLv2+
11280         * modules/binary-io (License): Relax to LGPLv2+.
11281         Requested for libvirt, and required by pipe2.
11282
11283 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
11284
11285         verify: use _Static_assert if available
11286         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
11287         (verify_true, verify): Use it if available.  This generates better
11288         diagnostics with GCC 4.6.0 and later.
11289
11290 2011-04-05  Bruno Haible  <bruno@clisp.org>
11291
11292         Remove leftover generated .h files after config.status changed.
11293
11294         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
11295         GL_GENERATE_ALLOCA_H.
11296         * modules/alloca-opt (Makefile.am): Remove alloca.h if
11297         GL_GENERATE_ALLOCA_H evaluates to false.
11298
11299         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
11300         GL_GENERATE_ARGZ_H.
11301         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
11302         evaluates to false.
11303
11304         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
11305         GL_GENERATE_BYTESWAP_H.
11306         * modules/byteswap (Makefile.am): Remove byteswap.h if
11307         GL_GENERATE_BYTESWAP_H evaluates to false.
11308
11309         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
11310         GL_GENERATE_ERRNO_H.
11311         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
11312         evaluates to false.
11313
11314         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
11315         GL_GENERATE_FLOAT_H.
11316         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
11317         evaluates to false.
11318
11319         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
11320         GL_GENERATE_FNMATCH_H.
11321         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
11322         GL_GENERATE_FNMATCH_H evaluates to false.
11323
11324         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
11325         GL_GENERATE_GLOB_H.
11326         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
11327         evaluates to false.
11328
11329         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
11330         automake conditional GL_GENERATE_ICONV_H.
11331         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
11332         evaluates to false.
11333
11334         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
11335         GL_GENERATE_NETINET_IN_H.
11336         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
11337         GL_GENERATE_NETINET_IN_H evaluates to false.
11338
11339         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
11340         conditional GL_GENERATE_PTHREAD_H.
11341         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
11342         * modules/pthread (Makefile.am): Remove pthread.h if
11343         GL_GENERATE_PTHREAD_H evaluates to false.
11344
11345         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
11346         GL_GENERATE_SCHED_H.
11347         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
11348         evaluates to false.
11349
11350         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
11351         conditional GL_GENERATE_SELINUX_CONTEXT_H.
11352         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
11353         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
11354
11355         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
11356         GL_GENERATE_STDARG_H.
11357         * modules/stdarg (Makefile.am): Remove stdarg.h if
11358         GL_GENERATE_STDARG_H evaluates to false.
11359
11360         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
11361         GL_GENERATE_STDBOOL_H.
11362         * modules/stdbool (Makefile.am): Remove stdbool.h if
11363         GL_GENERATE_STDBOOL_H evaluates to false.
11364
11365         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
11366         conditional GL_GENERATE_STDDEF_H.
11367         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
11368         * modules/stddef (Makefile.am): Remove stddef.h if
11369         GL_GENERATE_STDDEF_H evaluates to false.
11370
11371         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
11372         GL_GENERATE_STDINT_H.
11373         * modules/stdint (Makefile.am): Remove stdint.h if
11374         GL_GENERATE_STDINT_H evaluates to false.
11375
11376         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
11377         GL_GENERATE_SYSEXITS_H.
11378         * modules/sysexits (Makefile.am): Remove sysexits.h if
11379         GL_GENERATE_SYSEXITS_H evaluates to false.
11380
11381         Reported by Karl Berry and Ralf Wildenhues.
11382
11383 2011-04-05  Bruno Haible  <bruno@clisp.org>
11384
11385         Ensure to rebuild generated .h files when config.status has changed.
11386         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
11387         config.status.
11388         * modules/ctype (Makefile.am): Likewise.
11389         * modules/dirent (Makefile.am): Likewise.
11390         * modules/errno (Makefile.am): Likewise.
11391         * modules/fcntl-h (Makefile.am): Likewise.
11392         * modules/float (Makefile.am): Likewise.
11393         * modules/getopt-posix (Makefile.am): Likewise.
11394         * modules/glob (Makefile.am): Likewise.
11395         * modules/iconv-h (Makefile.am): Likewise.
11396         * modules/inttypes (Makefile.am): Likewise.
11397         * modules/langinfo (Makefile.am): Likewise.
11398         * modules/locale (Makefile.am): Likewise.
11399         * modules/math (Makefile.am): Likewise.
11400         * modules/netdb (Makefile.am): Likewise.
11401         * modules/netinet_in (Makefile.am): Likewise.
11402         * modules/poll-h (Makefile.am): Likewise.
11403         * modules/pthread (Makefile.am): Likewise.
11404         * modules/pty (Makefile.am): Likewise.
11405         * modules/sched (Makefile.am): Likewise.
11406         * modules/search (Makefile.am): Likewise.
11407         * modules/selinux-h (Makefile.am): Likewise.
11408         * modules/signal (Makefile.am): Likewise.
11409         * modules/spawn (Makefile.am): Likewise.
11410         * modules/stdarg (Makefile.am): Likewise.
11411         * modules/stdbool (Makefile.am): Likewise.
11412         * modules/stddef (Makefile.am): Likewise.
11413         * modules/stdint (Makefile.am): Likewise.
11414         * modules/stdio (Makefile.am): Likewise.
11415         * modules/stdlib (Makefile.am): Likewise.
11416         * modules/string (Makefile.am): Likewise.
11417         * modules/strings (Makefile.am): Likewise.
11418         * modules/sys_file (Makefile.am): Likewise.
11419         * modules/sys_ioctl (Makefile.am): Likewise.
11420         * modules/sys_select (Makefile.am): Likewise.
11421         * modules/sys_socket (Makefile.am): Likewise.
11422         * modules/sys_stat (Makefile.am): Likewise.
11423         * modules/sys_time (Makefile.am): Likewise.
11424         * modules/sys_times (Makefile.am): Likewise.
11425         * modules/sys_utsname (Makefile.am): Likewise.
11426         * modules/sys_wait (Makefile.am): Likewise.
11427         * modules/sysexits (Makefile.am): Likewise.
11428         * modules/termios (Makefile.am): Likewise.
11429         * modules/time (Makefile.am): Likewise.
11430         * modules/unistd (Makefile.am): Likewise.
11431         * modules/wchar (Makefile.am): Likewise.
11432         * modules/wctype-h (Makefile.am): Likewise.
11433         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
11434
11435 2011-04-05  Bruno Haible  <bruno@clisp.org>
11436
11437         pipe2: Relicense under LGPLv2+.
11438         * modules/pipe2 (License): Change to LGPLv2+.
11439         Requested by Eric Blake, for libvirt.
11440
11441 2011-04-05  Bruce Korb  <bkorb@gnu.org>
11442
11443         bootstrap: compute gnulib_extra_files after updating build_aux
11444         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
11445         change build_aux or also supply gnulib_extra_files.  Handle correctly.
11446
11447 2011-04-05  Eric Blake  <eblake@redhat.com>
11448
11449         bootstrap: preserve git whitelist item sorting
11450         * build-aux/bootstrap (sort_patterns): New function.
11451         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
11452
11453 2011-04-05  Simon Josefsson  <simon@josefsson.org>
11454
11455         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
11456         sc_space_tab check.
11457
11458 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11459
11460         areadlink, areadlinkat: rewrite in terms of careadlinkat
11461         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
11462         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
11463         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
11464         (malloc, realloc): Remove #undefs.
11465         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
11466         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
11467         readlink, ssize_t, stdint, unistd.
11468         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
11469         areadlink, stdint.
11470
11471         careadlinkat: new module
11472         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
11473         * modules/careadlinkat: New files, written by me with
11474         a review and feedback from Ben Pfaff in
11475         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
11476
11477 2011-04-01  Bruno Haible  <bruno@clisp.org>
11478
11479         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
11480         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
11481         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
11482         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
11483         Reported by Bruce Korb <bruce.korb@gmail.com>.
11484
11485 2011-04-01  Bruno Haible  <bruno@clisp.org>
11486
11487         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
11488         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
11489         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
11490         * modules/wcpcpy (Depends-on): Add extensions.
11491         * modules/wcpncpy (Depends-on): Likewise.
11492         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
11493         systems.
11494         * doc/posix-functions/wcpncpy.texi: Likewise.
11495         * doc/posix-functions/wcwidth.texi: Likewise.
11496
11497 2011-03-31  Eric Blake  <eblake@redhat.com>
11498
11499         nonblocking: fix mingw test failures
11500         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
11501         non-blocking flag on regular file.
11502         (get_nonblocking_flag): Set errno on invalid fd.
11503         * tests/test-nonblocking.c (main): Avoid test failure on
11504         directories if fchdir is not active.
11505         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
11506
11507 2011-03-31  Bruno Haible  <bruno@clisp.org>
11508
11509         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
11510         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
11511         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
11512         Reported by Simon Josefsson <simon@josefsson.org>.
11513
11514 2011-03-31  Bruno Haible  <bruno@clisp.org>
11515         and Eric Blake  <eblake@redhat.com>
11516
11517         nonblocking: new module
11518         * modules/nonblocking: New module.
11519         * modules/nonblocking-tests: Likewise.
11520         * lib/nonblocking.h: New file.
11521         * lib/nonblocking.c: Likewise.
11522         * tests/test-nonblocking.c: New test.
11523         * lib/ioctl.c (ioctl) [mingw]: Update comment.
11524
11525 2011-03-30  Bruno Haible  <bruno@clisp.org>
11526
11527         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
11528         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
11529         instead of 'printf' format for GCC >= 4.4.
11530         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
11531         (fprintf, printf, vfprintf, vprintf): Declare with
11532         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
11533         the system's vfprintf() function.
11534         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
11535
11536 2011-03-30  Eric Blake  <eblake@redhat.com>
11537
11538         passfd: fix scoping bug
11539         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
11540         before sendmsg/recvmsg.
11541
11542         passfd: standardize coding conventions
11543         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
11544         can be learned at compile time.
11545         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
11546         ifdefs.
11547         (sendfd, recvfd): Follow gnulib code conventions.
11548
11549         passfd: fix incorrect sendmsg arguments
11550         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
11551         incorrect msg_controllen value.
11552         * modules/passfd-tests (Depends-on): Check for alarm.
11553         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
11554         Reported by Bastien ROUCARIES.
11555
11556 2011-03-30  Bruno Haible  <bruno@clisp.org>
11557
11558         c-strcasestr: Relicense under LGPLv2+.
11559         * modules/c-strcasestr (License): Change to LGPLv2+.
11560         Requested by Eric Blake, for libvirt.
11561
11562 2011-03-30  Simon Josefsson  <simon@josefsson.org>
11563
11564         * users.txt: Add libidn2.  Fix libtasn1 link.
11565
11566 2011-03-30  Jim Meyering  <meyering@redhat.com>
11567
11568         tests: readlink* ("",... fails with EINVAL on newer kernels
11569         readlink and readlinkat have typically failed with ENOENT for
11570         the invalid, empty file name,  "".  However, with the advent
11571         of linux-2.6.39, they fail with EINVAL.
11572         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
11573         when operating on the empty file name.
11574         * tests/test-readlink.h (test_readlink): Likewise.
11575
11576 2011-03-29  Bruno Haible  <bruno@clisp.org>
11577
11578         Relicense some modules under LGPLv2+, for libidn2.
11579         * modules/array-mergesort (License): Change to LGPLv2+.
11580         * modules/c-strcaseeq (License): Likewise.
11581         * modules/striconveh (License): Likewise.
11582         * modules/striconveha (License): Likewise.
11583         * modules/uniconv/base (License): Likewise.
11584         * modules/uniconv/u8-conv-from-enc (License): Likewise.
11585         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
11586         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
11587         * modules/unictype/base (License): Likewise.
11588         * modules/unictype/bidiclass-of (License): Likewise.
11589         * modules/unictype/category-M (License): Likewise.
11590         * modules/unictype/category-none (License): Likewise.
11591         * modules/unictype/category-of (License): Likewise.
11592         * modules/unictype/category-test (License): Likewise.
11593         * modules/unictype/category-test-withtable (License): Likewise.
11594         * modules/unictype/combining-class (License): Likewise.
11595         * modules/unictype/joiningtype-of (License): Likewise.
11596         * modules/unictype/scripts (License): Likewise.
11597         * modules/uninorm/base (License): Likewise.
11598         * modules/uninorm/canonical-decomposition (License): Likewise.
11599         * modules/uninorm/composition (License): Likewise.
11600         * modules/uninorm/decompose-internal (License): Likewise.
11601         * modules/uninorm/decomposition-table (License): Likewise.
11602         * modules/uninorm/nfc (License): Likewise.
11603         * modules/uninorm/nfd (License): Likewise.
11604         * modules/uninorm/u32-normalize (License): Likewise.
11605         * modules/unistr/base (License): Likewise.
11606         * modules/unistr/u32-cpy (License): Likewise.
11607         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
11608         * modules/unistr/u32-to-u8 (License): Likewise.
11609         * modules/unistr/u32-uctomb (License): Likewise.
11610         * modules/unistr/u8-check (License): Likewise.
11611         * modules/unistr/u8-mblen (License): Likewise.
11612         * modules/unistr/u8-mbtouc (License): Likewise.
11613         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
11614         * modules/unistr/u8-mbtoucr (License): Likewise.
11615         * modules/unistr/u8-prev (License): Likewise.
11616         * modules/unistr/u8-strlen (License): Likewise.
11617         * modules/unistr/u8-to-u32 (License): Likewise.
11618         * modules/unistr/u8-uctomb (License): Likewise.
11619         * modules/unitypes (License): Likewise.
11620         Requested by Simon Josefsson.
11621
11622 2011-03-29  Simon Josefsson  <simon@josefsson.org>
11623
11624         lib-symbol-visibility: Add a notice.
11625         * modules/lib-symbol-visibility (Notice): New field.
11626
11627 2011-03-29  Bruno Haible  <bruno@clisp.org>
11628
11629         getaddrinfo: Doc fix.
11630         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
11631         section "fixed in Gnulib".
11632
11633 2011-03-28  Simon Josefsson  <simon@josefsson.org>
11634
11635         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
11636         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
11637
11638 2011-03-26  Bruno Haible  <bruno@clisp.org>
11639
11640         unictype/property-byname: Reduce the number of load-time relocations.
11641         * lib/unictype/pr_byname.c: Include <stdlib.h>.
11642         (UC_PROPERTY_INDEX_*): New enumeration values.
11643         (uc_property_byname): Convert an index from the lookup table to an
11644         uc_property_t.
11645         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
11646         values.
11647
11648 2011-03-26  Bruno Haible  <bruno@clisp.org>
11649
11650         unictype/property-byname: Allow omitted word separators and aliases.
11651         * lib/unictype/pr_byname.gperf: Add property names without word
11652         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
11653         for 'space'.
11654
11655 2011-03-26  Bruno Haible  <bruno@clisp.org>
11656
11657         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
11658         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
11659         also hyphens to space.
11660         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
11661         without spaces.
11662         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
11663
11664 2011-03-26  Bruno Haible  <bruno@clisp.org>
11665
11666         unictype/joiningtype-byname: Recognize long names as well.
11667         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
11668         a long name.
11669         * lib/unictype/joiningtype_byname.c: Include <string.h>,
11670         unictype/joiningtype_byname.h.
11671         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
11672         * lib/unictype/joiningtype_byname.gperf: New file.
11673         * modules/unictype/joiningtype-byname (Files): Add
11674         lib/unictype/joiningtype_byname.gperf.
11675         (Depends-on): Add gperf.
11676         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
11677         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
11678         long names.
11679
11680         Tests for module 'unictype/joiningtype-longname'.
11681         * modules/unictype/joiningtype-longname-tests: New file.
11682         * tests/unictype/test-joiningtype_longname.c: New file.
11683
11684         New module 'unictype/joiningtype-longname'.
11685         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
11686         * lib/unictype/joiningtype_longname.c: New file.
11687         * modules/unictype/joiningtype-longname: New file.
11688         * modules/unictype/joiningtype-all (Depends-on): Add
11689         unictype/joiningtype-longname.
11690
11691 2011-03-26  Bruno Haible  <bruno@clisp.org>
11692
11693         unictype/bidiclass-byname: Recognize long names as well.
11694         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
11695         name.
11696         * lib/unictype/bidi_byname.c: Include <string.h>,
11697         unictype/bidi_byname.h.
11698         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
11699         * lib/unictype/bidi_byname.gperf: New file.
11700         * modules/unictype/bidiclass-byname (Files): Add
11701         lib/unictype/bidi_byname.gperf.
11702         (Depends-on): Add gperf.
11703         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
11704         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
11705         long names.
11706
11707         Tests for module 'unictype/bidiclass-longname'.
11708         * modules/unictype/bidiclass-longname-tests: New file.
11709         * tests/unictype/test-bidi_longname.c: New file.
11710
11711         New module 'unictype/bidiclass-longname'.
11712         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
11713         * lib/unictype/bidi_longname.c: New file.
11714         * modules/unictype/bidiclass-longname: New file.
11715         * modules/unictype/bidiclass-all (Depends-on): Add
11716         unictype/bidiclass-longname.
11717
11718 2011-03-26  Bruno Haible  <bruno@clisp.org>
11719
11720         unictype/bidi*: Rename modules.
11721         * modules/unictype/bidiclass-all: Renamed from
11722         modules/unictype/bidicategory-all.
11723         * modules/unictype/bidiclass-name: Renamed from
11724         modules/unictype/bidiclass-name.
11725         (Description): Update.
11726         * modules/unictype/bidiclass-name-tests: Renamed from
11727         modules/unictype/bidicategory-name-tests.
11728         * modules/unictype/bidiclass-byname: Renamed from
11729         modules/unictype/bidicategory-byname.
11730         (Description): Update.
11731         * modules/unictype/bidiclass-byname-tests: Renamed from
11732         modules/unictype/bidicategory-byname-tests.
11733         * modules/unictype/bidiclass-of: Renamed from
11734         modules/unictype/bidicategory-of.
11735         (Description): Update.
11736         * modules/unictype/bidiclass-of-tests: Renamed from
11737         modules/unictype/bidicategory-of-tests.
11738         * modules/unictype/bidiclass-test: Renamed from
11739         modules/unictype/bidicategory-test.
11740         (Description): Update.
11741         * modules/unictype/bidiclass-test-tests: Renamed from
11742         modules/unictype/bidicategory-test-tests.
11743         * modules/unictype/bidicategory-all: New file, a simple redirection.
11744         * modules/unictype/bidicategory-name: Likewise.
11745         * modules/unictype/bidicategory-byname: Likewise.
11746         * modules/unictype/bidicategory-of: Likewise.
11747         * modules/unictype/bidicategory-test: Likewise.
11748         * modules/unictype/property-bidi-* (Dependencies): Update.
11749         * lib/unictype/bidi_*.c: Update comment.
11750
11751 2011-03-26  Bruno Haible  <bruno@clisp.org>
11752
11753         unictype/bidi*: Rename functions, part 2.
11754         * modules/unictype/bidicategory-name (configure.ac): Update required
11755         libunistring version.
11756         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
11757
11758 2011-03-25  Bruno Haible  <bruno@clisp.org>
11759
11760         New module 'unictype/combining-class-all'.
11761         * modules/unictype/combining-class-all: New file.
11762
11763         Tests for module 'unictype/combining-class-byname'.
11764         * modules/unictype/combining-class-byname-tests: New file.
11765         * tests/unictype/test-combiningclass_byname.c: New file.
11766
11767         New module 'unictype/combining-class-byname'.
11768         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
11769         * lib/unictype/combiningclass_byname.c: New file.
11770         * lib/unictype/combiningclass_byname.gperf: New file.
11771         * modules/unictype/combining-class-byname: New file.
11772
11773         Tests for module 'unictype/combining-class-longname'.
11774         * modules/unictype/combining-class-longname-tests: New file.
11775         * tests/unictype/test-combiningclass_longname.c: New file.
11776
11777         New module 'unictype/combining-class-longname'.
11778         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
11779         * lib/unictype/combiningclass_longname.c: New file.
11780         * modules/unictype/combining-class-longname: New file.
11781
11782         Tests for module 'unictype/combining-class-name'.
11783         * modules/unictype/combining-class-name-tests: New file.
11784         * tests/unictype/test-combiningclass_name.c: New file.
11785
11786         New module 'unictype/combining-class-name'.
11787         * lib/unictype.in.h (uc_combining_class_name): New declaration.
11788         * lib/unictype/combiningclass_name.c: New file.
11789         * modules/unictype/combining-class-name: New file.
11790
11791 2011-03-25  Bruno Haible  <bruno@clisp.org>
11792
11793         unictype/combining-class: Rename source files.
11794         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
11795         of unictype/combining.h.
11796         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
11797         Update.
11798         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
11799         * modules/unictype/combining-class (Description): Fix.
11800         (Files, Makefile.am): Update.
11801         * tests/unictype/test-combiningclass.c: Renamed from
11802         tests/unictype/test-combining.c.
11803         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
11804
11805 2011-03-25  Bruno Haible  <bruno@clisp.org>
11806
11807         unictype: Update list of canonical combining classes.
11808         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
11809
11810 2011-03-25  Bruno Haible  <bruno@clisp.org>
11811
11812         unictype/category-byname: Recognize long names as well.
11813         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
11814         a long name.
11815         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
11816         unictype/categ_byname.h.
11817         (UC_CATEGORY_INDEX_*): New enumeration values.
11818         (uc_general_category_byname): Use uc_general_category_lookup and
11819         convert from index to value.
11820         * lib/unictype/categ_byname.gperf: New file.
11821         * modules/unictype/category-byname (Files): Add
11822         lib/unictype/categ_byname.gperf.
11823         (Depends-on): Add gperf.
11824         (Makefile.am): Add rule for generating unictype/categ_byname.h.
11825         * tests/unictype/test-categ_byname.c (main): Test the recognition of
11826         long names.
11827
11828         Tests for module 'unictype/category-longname'.
11829         * modules/unictype/category-longname-tests: New file.
11830         * tests/unictype/test-categ_longname.c: New file.
11831
11832         New module 'unictype/category-longname'.
11833         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
11834         * lib/unictype/categ_longname.c: New file.
11835         * modules/unictype/category-longname: New file.
11836         * modules/unictype/category-all (Depends-on): Add it.
11837
11838 2011-03-25  Bruno Haible  <bruno@clisp.org>
11839
11840         Tests for module 'unictype/category-LC'.
11841         * modules/unictype/category-LC-tests: New file.
11842         * tests/unictype/test-categ_LC.c: New file, automatically generated.
11843
11844         New module 'unictype/category-LC'.
11845         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
11846         (UC_CATEGORY_LC): New declaration.
11847         (UC_CASED_LETTER): New macro.
11848         * lib/gen-uni-tables.c (is_category_LC): New function.
11849         (output_categories): Also handle category LC.
11850         (UC_CATEGORY_MASK_LC): New enumeration value.
11851         (general_category_byname): Also handle category LC.
11852         * lib/unictype/categ_LC.c: New file.
11853         * lib/unictype/categ_LC.h: New file, automatically generated.
11854         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
11855         category LC.
11856         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
11857         * modules/unictype/category-LC: New file.
11858         * modules/unictype/category-byname (Depends-on): Add
11859         unictype/category-LC.
11860         * modules/unictype/category-all (Depends-on): Likewise.
11861
11862 2011-03-25  Eric Blake  <eblake@redhat.com>
11863
11864         xmalloc: revert yesterday's regression
11865         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
11866         realloc's underlying behavior (allowing allocation of zero-size
11867         objects, especially if malloc-gnu is also in use).
11868
11869 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
11870
11871         maint.mk: add missing version to VC-tag
11872         * top/maint.mk: git tag was missing actual tag name; add it.
11873
11874         valgrind: do leak checking, and exit with code 1 on error (not 0)
11875         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
11876         to VALGRIND.
11877
11878 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
11879
11880         posix-modules: say what it does.
11881         * posix-modules: Add a line to the --help output saying what it does.
11882
11883 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11884
11885         xmalloc: Do not leak if underlying realloc is C99 compatible.
11886         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
11887         This avoids a leak on C99-based systems.  See
11888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
11889
11890 2011-03-24  Eric Blake  <eblake@redhat.com>
11891
11892         realloc: document portability problem
11893         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
11894         passing 0 size to realloc.
11895
11896 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
11897
11898         doc: update users.txt
11899         * users.txt: Add cvsps, tmpwatch
11900
11901 2011-03-23  Matt Rice  <ratmice@gmail.com>
11902
11903         doc: update users.txt
11904         * users.txt: Add gdb.
11905
11906 2011-03-23  Jim Meyering  <meyering@redhat.com>
11907
11908         doc: update users.txt
11909         Looking through matches up to the following URL (there are still
11910         several more pages), I found several projects that use gnulib:
11911         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
11912         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
11913         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
11914
11915 2011-03-22  Bruno Haible  <bruno@clisp.org>
11916
11917         unictype/bidi*: Rename functions.
11918         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
11919         uc_bidi_class, uc_is_bidi_class): New declarations.
11920         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
11921         uc_bidi_category_byname.
11922         (uc_bidi_category_byname): New function.
11923         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
11924         u_bidi_category_name.
11925         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
11926         (uc_bidi_category_name): New function.
11927         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
11928         uc_bidi_category.
11929         (uc_bidi_category): New function.
11930         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
11931         uc_is_bidi_category. Invoke uc_bidi_class.
11932         (uc_is_bidi_category): New function.
11933         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
11934         instead of uc_bidi_category_byname.
11935         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
11936         instead of uc_bidi_category_name.
11937         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
11938         uc_bidi_category.
11939         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
11940         instead of uc_is_bidi_category.
11941
11942 2011-03-21  Bruno Haible  <bruno@clisp.org>
11943
11944         New module 'unictype/joininggroup-all'.
11945         * modules/unictype/joininggroup-all: New file.
11946
11947         Tests for module 'unictype/joininggroup-of'.
11948         * modules/unictype/joininggroup-of-tests: New file.
11949         * tests/unictype/test-joininggroup_of.c: New file.
11950         * tests/unictype/test-joininggroup_of.h: New file, automatically
11951         generated by gen-uni-tables.
11952
11953         New module 'unictype/joininggroup-of'.
11954         * modules/unictype/joininggroup-of: New file.
11955         * lib/unictype/joininggroup_of.c: New file.
11956         * lib/unictype/joininggroup_of.h: New file, automatically generated by
11957         gen-uni-tables.
11958
11959         Tests for module 'unictype/joininggroup-byname'.
11960         * modules/unictype/joininggroup-byname-tests: New file.
11961         * tests/unictype/test-joininggroup_byname.c: New file.
11962
11963         New module 'unictype/joininggroup-byname'.
11964         * modules/unictype/joininggroup-byname: New file.
11965         * lib/unictype/joininggroup_byname.c: New file.
11966         * lib/unictype/joininggroup_byname.gperf: New file.
11967
11968         Tests for module 'unictype/joininggroup-name'.
11969         * modules/unictype/joininggroup-name-tests: New file.
11970         * tests/unictype/test-joininggroup_name.c: New file.
11971
11972         New module 'unictype/joininggroup-name'.
11973         * modules/unictype/joininggroup-name: New file.
11974         * lib/unictype/joininggroup_name.c: New file.
11975         * lib/unictype/joininggroup_name.h: New file.
11976
11977         New module 'unictype/joiningtype-all'.
11978         * modules/unictype/joiningtype-all: New file.
11979
11980         Tests for module 'unictype/joiningtype-of'.
11981         * modules/unictype/joiningtype-of-tests: New file.
11982         * tests/unictype/test-joiningtype_of.c: New file.
11983         * tests/unictype/test-joiningtype_of.h: New file, automatically
11984         generated by gen-uni-tables.
11985
11986         New module 'unictype/joiningtype-of'.
11987         * modules/unictype/joiningtype-of: New file.
11988         * lib/unictype/joiningtype_of.c: New file.
11989         * lib/unictype/joiningtype_of.h: New file, automatically generated by
11990         gen-uni-tables.
11991
11992         Tests for module 'unictype/joiningtype-byname'.
11993         * modules/unictype/joiningtype-byname-tests: New file.
11994         * tests/unictype/test-joiningtype_byname.c: New file.
11995
11996         New module 'unictype/joiningtype-byname'.
11997         * modules/unictype/joiningtype-byname: New file.
11998         * lib/unictype/joiningtype_byname.c: New file.
11999
12000         Tests for module 'unictype/joiningtype-name'.
12001         * modules/unictype/joiningtype-name-tests: New file.
12002         * tests/unictype/test-joiningtype_name.c: New file.
12003
12004         New module 'unictype/joiningtype-name'.
12005         * modules/unictype/joiningtype-name: New file.
12006         * lib/unictype/joiningtype_name.c: New file.
12007
12008         unictype: Add support for Arabic shaping properties.
12009         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12010         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12011         declarations.
12012         (UC_JOINING_GROUP_*): New enumeration values.
12013         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12014         declarations.
12015         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12016         (unicode_joining_type): New variable.
12017         (UC_JOINING_GROUP_*): New enumeration values.
12018         (unicode_joining_group): New variable.
12019         (fill_arabicshaping, joining_type_as_c_identifier,
12020         output_joining_type_test, output_joining_type,
12021         joining_group_as_c_identifier, output_joining_group_test,
12022         output_joining_group): New functions.
12023         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12024         fill_arabicshaping and output_joining_type_test, output_joining_type,
12025         output_joining_group_test, output_joining_group.
12026         Reported by Simon Josefsson.
12027
12028 2011-03-21  Jim Meyering  <meyering@redhat.com>
12029
12030         strftime: fix a bug in yesterday's change
12031         * lib/strftime.c (add): Accommodate width's initial value of -1.
12032         Otherwise, nstrftime would copy uninitialized data into
12033         the result buffer.
12034
12035 2011-03-21  Jim Meyering  <meyering@redhat.com>
12036
12037         tests: add strftime-tests module
12038         * tests/test-strftime.c: New file.
12039         * modules/strftime-tests: New module.
12040
12041 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12042
12043         strftime: don't assume a byte count fits in 'int'
12044         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12045         found this problem by static analysis, using gcc -Wstrict-overflow
12046         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12047         on an integer overflow having undefined behavior, but it turns out
12048         that the argument is a size, which might not fit in 'int' anyway,
12049
12050 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12051
12052         stdio: don't require ignore_value around fwrite
12053
12054         This patch works around libc bug 11959
12055         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12056         Without this patch, applications must often write
12057         ignore_value (fwrite (...)) even though the ignore_value is
12058         not helpful here.  It's common to write many objects, using
12059         fwrite/printf/etc., and then use ferror to detect output error.
12060
12061         I considered making this patch optional, but decided against it,
12062         because libc is obviously being inconsistent here: there is no
12063         reason libc should insist that user code must inspect fwrite
12064         return's value without also insisting that it inspect printf's,
12065         putchar's, etc.  If user code wants to have a strict style where
12066         all these functions' values are checked (so that ferror need not
12067         be checked), we could add support for that style in a new gnulib
12068         module, but in the meantime it's better to be consistent and to
12069         support common usage.
12070
12071         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12072         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12073         that we are compiling in checking mode, and if not C++, and
12074         if not already wrapping fwrite for some other reason.
12075         (fwrite): #define to rpl_fwrite if the latter is defined.
12076
12077 2011-03-20  Bruno Haible  <bruno@clisp.org>
12078
12079         verror: Fix compilation error introduced on 2011-02-13.
12080         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12081         instead of __attribute__.
12082         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12083
12084 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12085             Bruno Haible  <bruno@clisp.org>
12086
12087         socklen: do not depend on sys_socket
12088         While trying to modify Emacs to use gnulib's socklen module,
12089         I discovered a circular dependency: socklen depends on sys_socket
12090         and vice versa.  Emacs can use socklen, but it does not need
12091         sys_socket because it has its own substitute for sys/socket.h.
12092         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12093         gl_TYPE_SOCKLEN_T.
12094         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12095         gl_PREREQ_SYS_H_SOCKET.
12096         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12097         gl_PREREQ_SYS_H_SOCKET.
12098         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12099         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12100         * modules/socklen (Depends-on): Do not depend on sys_socket.
12101         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12102
12103 2011-03-20  Jim Meyering  <meyering@redhat.com>
12104
12105         maint.mk: sort file names *after* new transformation
12106         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12107         prefix would have led to an unwarranted failure in GNU parted.
12108         Sort after that transformation.
12109
12110 2011-03-19  Jim Meyering  <meyering@redhat.com>
12111
12112         maint.mk: fix po-file syntax-check rule
12113         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12114         Patch by Bruno Haible.
12115
12116 2011-03-19  Bruno Haible  <bruno@clisp.org>
12117
12118         socklen: Update comment.
12119         * m4/socklen.m4: Update comment about platforms.
12120
12121 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12122             Bruno Haible  <bruno@clisp.org>
12123
12124         inet_ntop, inet_pton: Simplify.
12125         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
12126         documented to provide socklen_t and we already depend on sys_socket.
12127         * modules/inet_pton (Depends-on): Likewise.
12128         * lib/arpa_inet.in.h: Adjust comment.
12129
12130 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12131             Bruno Haible  <bruno@clisp.org>
12132
12133         netdb: Simplify.
12134         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
12135         documented to provide socklen_t and we already depend on sys_socket.
12136         * lib/netdb.in.h: Adjust comment.
12137
12138 2011-03-19  Bruno Haible  <bruno@clisp.org>
12139
12140         sys_socket, netdb: Document problem with socklen_t.
12141         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
12142         platforms.
12143         * doc/posix-headers/netdb.texi: Likewise.
12144
12145 2011-03-18  Eric Blake  <eblake@redhat.com>
12146
12147         maint.mk: let po check work in VPATH build
12148         * top/maint.mk (po_file): Allow cfg.mk override.
12149         (sc_po_check): Allow VPATH use.
12150         Reported by Jiri Denemark.
12151
12152 2011-03-16  Jim Meyering  <meyering@redhat.com>
12153
12154         maint.mk: allow fine-grained syntax-check exclusion via Make variables
12155         Before, you would have had to create one .x-sc_ file per rule in order
12156         to exempt offending files.  Now, you may instead use a Make variable --
12157         usually defined in cfg.mk -- whose name identifies the affected rule.
12158         * top/maint.mk (_sc_excl): Define.
12159         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
12160         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
12161
12162 2011-03-13  Bruno Haible  <bruno@clisp.org>
12163
12164         ignore-value tests: Avoid warnings.
12165         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
12166         empty for gcc < 3.4.
12167
12168 2011-03-13  Bruno Haible  <bruno@clisp.org>
12169
12170         passfd: Fix link error on Solaris.
12171         * modules/passfd (Description): Correct.
12172         (Depends-on): Add socketlib.
12173         (Link): New section.
12174         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
12175
12176 2011-03-13  Bruno Haible  <bruno@clisp.org>
12177
12178         passfd: Fix link error on AIX 5.2.
12179         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12180
12181 2011-03-13  Bruno Haible  <bruno@clisp.org>
12182
12183         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12184         * lib/sys_socket.in.h: Include <stddef.h>.
12185         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12186         CMSG_FIRSTHDR. Remove unused variable.
12187
12188 2011-03-13  Bruno Haible  <bruno@clisp.org>
12189
12190         passfd: Fix compilation error on OpenBSD.
12191         * lib/passfd.c: Include <sys/uio.h>.
12192
12193 2011-03-13  Bruno Haible  <bruno@clisp.org>
12194
12195         passfd test: Fix warnings.
12196         * tests/test-passfd.c: Include <sys/wait.h>.
12197         (main): Fix typo.
12198
12199 2011-03-13  Bruno Haible  <bruno@clisp.org>
12200
12201         passfd module, part 4, tweaks.
12202         * tests/test-passfd.c: Reorder includes.
12203         (main): Fix perror and printf calls.
12204
12205 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12206
12207         passfd module, part 4.
12208         * modules/passfd-tests: New file.
12209         * tests/test-passfd.c: New file.
12210
12211 2011-03-13  Jim Meyering  <meyering@redhat.com>
12212
12213         Makefile: rely on GNU make; derive syntax-check rule names
12214         Rather than requiring that each sc_ rule be listed as a dependent
12215         of "check", use features of GNU make to derive the list.
12216         * Makefile (syntax-check-rules): Define.
12217         (check): Depend on the new variable, not the hard-coded list.
12218
12219 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
12220             Bruno Haible  <bruno@clisp.org>
12221
12222         passfd module, part 3.
12223         * lib/passfd.h (recvfd): Add a flags argument.
12224         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
12225         (recvfd): Add a flags argument.
12226         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
12227         exists.
12228         * modules/passfd (Depends-on): Add cloexec.
12229         Suggested by Eric Blake.
12230
12231 2011-03-13  Bruno Haible  <bruno@clisp.org>
12232
12233         passfd module, part 2, tweaks.
12234         * modules/passfd (Files): Reorder.
12235         (Depends-on): Remove errno.
12236         (Include): Remove <sys/socket.h>, <sys/un.h>.
12237         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
12238         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
12239         specification header. Include <sys/socket.h> always. Don't include
12240         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
12241         (sendfd): Clarify that it sets errno when it fails.
12242         (recvfd): Fix specification.
12243
12244 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12245
12246         passfd module, part 2.
12247         * modules/passfd: New file.
12248         * lib/passfd.h: New file.
12249         * lib/passfd.c: New file.
12250
12251 2011-03-12  Bruno Haible  <bruno@clisp.org>
12252
12253         wcswidth, mbswidth: Avoid integer overflow.
12254         * lib/wcswidth.c: Include <limits.h>.
12255         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
12256         * lib/mbswidth.c: Include <limits.h>.
12257         (mbsnwidth): Avoid 'int' overflow.
12258         Reported by Jim Meyering.
12259
12260 2011-03-12  Bruno Haible  <bruno@clisp.org>
12261
12262         futimens, utimensat: Avoid endless recursion on Solaris 10.
12263         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
12264         Solaris.
12265         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
12266         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
12267
12268 2011-03-11  Jim Meyering  <meyering@redhat.com>
12269
12270         maint.mk: relax a regexp to accommodate other formatting styles
12271         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
12272         between "ngettext" and the following "(".
12273
12274 2011-03-11  Pádraig Brady <P@draigBrady.com>
12275
12276         maint.mk: suppress a false positive warning
12277         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
12278         diagnostics are marked with ngettext.
12279
12280 2011-03-10  Eric Blake  <eblake@redhat.com>
12281
12282         wchar: add explicit dependencies, for Tru64
12283         * modules/mbmemcasecoll (Depends-on): Add wchar.
12284         * modules/mbtowc (Depends-on): Likewise.
12285         * modules/vasnprintf (Depends-on): Likewise.
12286         * modules/unistdio/u-printf-args (Depends-on): Likewise.
12287         * modules/wctomb (Depends-on): Likewise.
12288         Reported by Peter O'Gorman.
12289
12290 2011-03-08  Bruno Haible  <bruno@clisp.org>
12291
12292         passfd module, part 1, tweaks.
12293         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
12294         Improve indentation. Improve AC_MSG_CHECKING messages.
12295         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
12296         gl_SOCKET_FAMILIES.
12297
12298 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12299
12300         passfd module, part 1.
12301         * m4/afunix.m4: New file.
12302         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
12303         sockets.
12304
12305 2011-03-08  Bruno Haible  <bruno@clisp.org>
12306
12307         regex-quote: New API.
12308         * lib/regex-quote.h: Include <stdbool.h>.
12309         (struct regex_quote_spec): New type.
12310         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12311         New declarations.
12312         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12313         'const struct regex_quote_spec *' argument.
12314         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
12315         (pcre_special): New constant.
12316         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12317         New functions.
12318         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12319         'const struct regex_quote_spec *' argument.
12320         * modules/regex-quote (Depends-on): Add stdbool.
12321         * tests/test-regex-quote.c (check): Update for new API. Add test for
12322         anchored results.
12323         * NEWS: Mention the API change.
12324         Reported by Reuben Thomas and Eric Blake.
12325
12326 2011-03-06  Bruno Haible  <bruno@clisp.org>
12327
12328         regex-quote: Fix creation of POSIX extended regular expressions.
12329         * lib/regex-quote.c (ere_special): Add grouping and alternation
12330         operators.
12331
12332 2011-03-05  Bruno Haible  <bruno@clisp.org>
12333
12334         doc: Improve doc regarding autopoint vs. gnulib.
12335         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
12336         disable autopoint while running autoreconf.
12337         Suggested by Ralf Wildenhues.
12338
12339 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12340
12341         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
12342         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
12343
12344 2011-03-03  Bruce Korb  <bkorb@gnu.org>
12345
12346         parse-duration: remove xalloc.h dependency
12347         * lib/parse-duration.c (parse_period): handle NULL return from
12348         strdup instead of calling xstrdup().
12349         * modules/parse-duration: remove "xalloc" dependency
12350
12351 2011-03-03  Matthew Booth  <mbooth@redhat.com>
12352
12353         bootstrap: honor m4_base when running aclocal
12354         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
12355
12356 2011-03-02  Jim Meyering  <meyering@redhat.com>
12357
12358         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
12359         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
12360         on request from Matt Booth.
12361
12362 2011-03-01  Eric Blake  <eblake@redhat.com>
12363
12364         test-link: work on Hurd
12365         * tests/test-link.h (test_link): Hurd rejects linking directories
12366         with EISDIR instead of the POSIX-mandated EPERM.
12367
12368 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
12369
12370         stdio: simplify by moving files to printf-posix, sigpipe
12371         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
12372         since this symbol is needed only if printf is replaced.
12373         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
12374         Require gl_ASM_SYMBOL_PREFIX.
12375         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
12376         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
12377         (Depends-on): Add 'raise'.
12378         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
12379         * modules/stdio (Files): Remove lib/stdio-write.c,
12380         m4/asm-underscore.m4.
12381         (Depends-on): Remove 'raise'.
12382
12383         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
12384         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
12385         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
12386         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
12387
12388 2011-02-28  Bruno Haible  <bruno@clisp.org>
12389
12390         localcharset: Assume ANSI C behaviour of free().
12391         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
12392         calling free().
12393         Suggested by Simon Josefsson <simon@josefsson.org>.
12394
12395 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
12396             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
12397             Bruno Haible  <bruno@clisp.org>  (tiny change)
12398
12399         On Cygwin, use /proc file system instead of win32 API.
12400         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
12401         Win32 file names.
12402         (DllMain): Simplify by removing Cygwin specific code.
12403         (find_shared_library_fullname): Use Linux specific implementation also
12404         for Cygwin.
12405         (get_shared_library_fullname): Update accordingly.
12406         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
12407         Win32 file names.
12408         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
12409         Cygwin specific code.
12410
12411 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
12412             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
12413
12414         Fix OpenMP flag detection for various Fortran compilers.
12415         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
12416         OpenMP-conditional compilation construct, to force compile
12417         failure with missing OpenMP flag.
12418         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
12419
12420 2011-02-25  Eric Blake  <eblake@redhat.com>
12421
12422         strstr: expand test coverage
12423         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
12424         compilation.
12425         * tests/test-memmem.c (main): Duplicate tests.
12426         * tests/test-strcasestr.c (main): Likewise.
12427         * tests/test-c-strcasestr.c (main): Likewise.
12428
12429 2011-02-25  Jim Meyering  <meyering@redhat.com>
12430
12431         maint.mk: detect missing-NL-at-EOF, too
12432         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
12433         it also detects when a file lacks a newline at EOF.
12434         (require_exactly_one_NL_at_EOF_): Renamed from
12435         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
12436         since people may well have .x-sc_... file names tied to the
12437         existing name.  Suggested by Eric Blake.
12438
12439 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12440
12441         dirname: move m4/dos.m4 functionality into lib/dosname.h
12442
12443         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
12444         extracts symbols from it, puts them into config.h; but it's much
12445         easier to use the symbols directly.  filename.h already does this,
12446         but it disagrees with dos.m4 in some respects.  This patch
12447         introduces a different include file dosname.h that packages up
12448         dos.m4, and then later we can work on merging filename.h and
12449         dosname.h.  Applications that need only the easy-to-configure
12450         symbols should consider including dosname.h rather than dirname.h.
12451         * NEWS: Mention incompatible changes.
12452         * m4/dos.m4: Remove.
12453         * lib/dosname.h, modules/dosname: New files.
12454         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
12455         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
12456         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
12457         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
12458         Include dosname.h, not dirname.h.
12459         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
12460         Include dosname.h, for definitions of symbols like ISSLASH
12461         that used to be in config.h.
12462         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
12463         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12464         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12465         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12466         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
12467         * modules/rmdir (Files): Likewise.
12468         * modules/stat (Files): Likewise.
12469         * modules/unlink (Files): Likewise.
12470         * modules/dirname-lgpl (Depends-on): Add dosname.
12471         * modules/lstat (Depends-on): Likewise.
12472         * modules/openat (Depends-on): Likewise.
12473         * modules/rmdir (Depends-on): Likewise.
12474         * modules/savewd (Depends-on): Likewise.
12475         * modules/stat (Depends-on): Likewise.
12476         * modules/unlink (Depends-on): Likewise.
12477         * modules/openat (Depends-on): Remove dirname-lgpl.
12478         * modules/savewd (Depends-on): Likewise.
12479         * tests/test-dirname.c: Do not use removed symbols like
12480         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
12481         the remaining symbols, e.g., ISSLASH ('\\').
12482
12483 2011-02-25  Eric Blake  <eblake@redhat.com>
12484
12485         strstr: revert patches that introduced bug and pessimization
12486         * lib/str-two-way.h: Add another reference.
12487         (two_way_short_needle, two_way_long_needle): Revert changes from
12488         2011-02-24; they pessimize search speed.
12489         (critical_factorization): Partially revert changes from
12490         2010-06-22; they violate the requirement that the left half of the
12491         needle be smaller than the period of the needle.
12492
12493 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12494
12495         filenamecat: remove unnecessary dependency on dirname-lgpl
12496         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
12497         is no direct dependency, just an indirect one via filenamecat-lgpl.
12498
12499         remove: remove unnecessary use of m4/dos.m4
12500         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
12501         * modules/remove (FILES): Remove m4/dos.m4.
12502
12503         * lib/openat-proc.c: Don't include dirname.h; not needed.
12504
12505         backupfile: remove unnecessary use of m4/dos.m4
12506         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
12507         of its symbols are used by the backupfile code.  backupfile.c does
12508         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
12509         for the rare case of programs that want all their backup file
12510         names to live within 8+3 limits, and dos.m4 doesn't address that.
12511         * modules/backupfile (Files): Remove m4/dos.m4.
12512
12513 2011-02-24  Jim Meyering  <meyering@redhat.com>
12514
12515         strstr: fix a bug whereby strstr would mistakenly return NULL
12516         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
12517         in period calculation.
12518         (two_way_long_needle): Likewise.
12519         The original problem was reported by Mike Stump in
12520         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
12521         Ralf Wildenhues provided the short needle and haystack.
12522         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
12523         Add a more involved test to trigger the bug in two_way_long_needle.
12524
12525 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12526
12527         gnulib-tool: remove use of bold display in help screen
12528         * gnulib-tool (func_usage): Do not use bold display anymore in the
12529         help screen.  That was just meant to be a temporary emphasis for a
12530         backward-incompatible change.
12531
12532 2011-02-23  Bruno Haible  <bruno@clisp.org>
12533
12534         Fix misindentation of preprocessor directives.
12535         * lib/argp-namefrob.h: Reindent preprocessor directives.
12536         * lib/getopt_int.h (struct _getopt_data): Likewise.
12537         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
12538         * lib/vasnprintf.c (decode_long_double): Likewise.
12539         * tests/test-argmatch.c: Insert blank lines, for clarity.
12540         * tests/test-exclude.c: Likewise.
12541
12542 2011-02-22  Bruno Haible  <bruno@clisp.org>
12543
12544         ioctl: Fix for MacOS X in 64-bit mode.
12545         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
12546         value.
12547         Suggested by Eric Blake.
12548         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
12549
12550 2011-02-22  Jim Meyering  <meyering@redhat.com>
12551
12552         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
12553         * Makefile (sc_cpp_indent_check): Don't limit the check to files
12554         in lib/.
12555
12556 2011-02-22  Eric Blake  <eblake@redhat.com>
12557
12558         maint: avoid any CDPATH issue
12559         * Makefile (sc_cpp_indent_check): Anchor cd argument.
12560
12561         maint: adjust cpp indentation for my modules, as well
12562         * Makefile (sc_cpp_indent_check): Add my name.
12563         * lib/fbufmode.c: Filter through cppi.
12564         * lib/fpurge.c: Likewise.
12565         * lib/freadable.c: Likewise.
12566         * lib/freading.c: Likewise.
12567         * lib/fwritable.c: Likewise.
12568         * lib/fwriting.c: Likewise.
12569         * lib/sigaction.c: Likewise.
12570
12571 2011-02-22  Jim Meyering  <meyering@redhat.com>
12572
12573         maint: adjust cpp indentation to reflect nesting depth
12574         I.e., in a block of code that begins with an unnested "#if",
12575         put one space between the "#" in column 1 and following token.
12576         For example,
12577         -#include <sys/vfs.h>
12578         +# include <sys/vfs.h>
12579         Do this only in .c files that are part of a module I maintain.
12580         * lib/linkat.c: Filter through cppi.
12581         * lib/nanosleep.c: Likewise.
12582         * lib/openat.c: Likewise.
12583         * lib/openat-die.c: Likewise.
12584         * lib/dup3.c: Likewise.
12585         * lib/fchownat.c: Likewise.
12586         * lib/flock.c: Likewise.
12587         * lib/fsync.c: Likewise.
12588         * lib/fts.c: Likewise.
12589         * lib/getpass.c: Likewise.
12590         * lib/gettimeofday.c: Likewise.
12591         * lib/userspec.c: Likewise.
12592         * Makefile (sc_cpp_indent_check): New rule, to check this.
12593
12594 2011-02-22  Bruno Haible  <bruno@clisp.org>
12595
12596         New module 'wctomb'.
12597         * lib/stdlib.in.h (wctomb): New declaration.
12598         * lib/wctomb.c: New file.
12599         * lib/wctomb-impl.h: New file.
12600         * m4/wctomb.m4: New file.
12601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
12602         REPLACE_WCTOMB.
12603         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
12604         REPLACE_WCTOMB.
12605         * modules/wctomb: New file.
12606         * tests/test-stdlib-c++.cc: Test signature of wctomb.
12607         * doc/posix-functions/wctomb.texi: Mention the new module.
12608         * modules/wctob (Depends-on): Add wctomb.
12609
12610 2011-02-22  Bruno Haible  <bruno@clisp.org>
12611
12612         New module 'mbtowc'.
12613         * lib/stdlib.in.h (mbtowc): New declaration.
12614         * lib/mbtowc.c: New file.
12615         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
12616         * m4/mbtowc.m4: New file.
12617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
12618         REPLACE_MBTOWC.
12619         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
12620         REPLACE_MBTOWC.
12621         * modules/mbtowc: New file.
12622         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
12623         * doc/posix-functions/mbtowc.texi: Mention the new module.
12624         * modules/btowc (Depends-on): Add mbtowc.
12625
12626 2011-02-22  Bruno Haible  <bruno@clisp.org>
12627
12628         wcrtomb: Add more tests for native Windows platforms.
12629         * tests/test-wcrtomb-w32-1.sh: New file.
12630         * tests/test-wcrtomb-w32-2.sh: New file.
12631         * tests/test-wcrtomb-w32-3.sh: New file.
12632         * tests/test-wcrtomb-w32-4.sh: New file.
12633         * tests/test-wcrtomb-w32-5.sh: New file.
12634         * tests/test-wcrtomb-w32.c: New file.
12635         * modules/wcrtomb-tests (Files): Add them.
12636         (Makefile.am): Arrange to run these tests.
12637         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
12638         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
12639
12640 2011-02-20  Bruno Haible  <bruno@clisp.org>
12641
12642         wcrtomb: Enhance test.
12643         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
12644
12645 2011-02-20  Bruno Haible  <bruno@clisp.org>
12646
12647         mbrtowc: Tiny optimization.
12648         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
12649
12650 2011-02-20  Jim Meyering  <meyering@redhat.com>
12651
12652         test-exclude.c: remove unmatched #endif
12653         * tests/test-exclude.c: Remove stray #endif, left over from
12654         the change of a week ago.
12655
12656 2011-02-19  Jim Meyering  <meyering@redhat.com>
12657
12658         git-version-gen: skip "-dirty" check when appropriate
12659         * build-aux/git-version-gen: Don't run any git commands when the
12660         version string comes from .tarball-version.  Prior to this, we
12661         would run git update-index --refresh even from a just-unpacked
12662         tarball directory, and that could affect a .git/ directory in a
12663         parent of the build directory.  Reported by Mike Frysinger.
12664
12665 2011-02-19  Bruno Haible  <bruno@clisp.org>
12666
12667         unictype/property-byname: Reduce the size of the 'data' segment.
12668         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
12669
12670 2011-02-19  Bruno Haible  <bruno@clisp.org>
12671
12672         unictype/scripts: Reduce the size of the 'data' segment.
12673         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
12674         '%pic'.
12675         * lib/unictype/scripts_byname.gperf: Regenerated.
12676
12677 2011-02-19  Bruno Haible  <bruno@clisp.org>
12678
12679         stdint: Update documentation.
12680         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
12681
12682 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12683
12684         stdint: omit redundant check for wchar.h
12685         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
12686         always tests whether wchar.h exists, so remove the now-redundant test.
12687
12688 2011-02-18  Bruno Haible  <bruno@clisp.org>
12689
12690         stdint: Cut dependency to module 'wchar'.
12691         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
12692         include the necessary prerequisites.
12693         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
12694         * modules/stdint (Depends-on): Remove wchar.
12695         (Makefile.am): Substitute HAVE_WCHAR_H.
12696         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
12697
12698 2011-02-18  Eric Blake  <eblake@redhat.com>
12699
12700         longlong: skip, rather than fail, on cross-compilation
12701         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
12702         when cross-compiling; regression from 2011-02-16.
12703
12704 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12705
12706         * NEWS: Mention 2011-02-08 change to stdlib.
12707
12708 2011-02-17  Bruno Haible  <bruno@clisp.org>
12709
12710         getloadavg: Add comments about platforms.
12711         * m4/getloadavg.m4: Add comment.
12712         * lib/getloadavg.c: Likewise.
12713
12714 2011-02-17  Bruno Haible  <bruno@clisp.org>
12715
12716         getloadavg: Fix link error on Solaris 2.6.
12717         * modules/getloadavg (Link): New section.
12718         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
12719         linking test-getloadavg.
12720         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
12721         getloadavg.
12722
12723 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12724
12725         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
12726         It was 'int', but this doesn't match the IRIX 6.5 manual.
12727         Suggested by Bruno Haible in
12728         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
12729
12730 2011-02-17  Bruno Haible  <bruno@clisp.org>
12731
12732         havelib: Fix comments.
12733         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
12734         change.
12735
12736 2011-02-17  Bruno Haible  <bruno@clisp.org>
12737
12738         havelib: Update config.rpath.
12739         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
12740
12741 2011-02-17  Bruno Haible  <bruno@clisp.org>
12742
12743         getloadavg test: Add some plausibility checks.
12744         * tests/test-getloadavg.c (check_avg): Print a warning when the value
12745         is improbable.
12746
12747 2011-02-16  Eric Blake  <eblake@redhat.com>
12748
12749         maintainer-makefile: make syntax-check a no-op from tarballs
12750         * top/maint.mk (no-vc-detected): New rule.
12751         (local-checks-available): Use it to avoid hanging if someone tries
12752         'make syntax-check' from a tarball.  Also append to any non-syntax
12753         checks already defined in cfg.mk.
12754
12755 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12756
12757         longlong: tune, particularly for common case of c99
12758
12759         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
12760         or running anything if c99, or if unsigned long long int does not
12761         work.  In either case, we know the answer without further tests.
12762         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
12763         it at most once, and use its results for both long long int and
12764         unsigned long long int.  This is more likely to be efficient in
12765         the common case where the program wants to check for both long
12766         long int and unsigned long long int.
12767         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
12768         since the answer is already known.
12769
12770 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
12771
12772         getloadavg: set errno
12773         * lib/getloadavg.c: Set errno when returning -1.  If no other
12774         error number looks appropriate, set it to ENOSYS if the getloadavg
12775         looks like it can't possibly ever work, ENOTSUP otherwise.
12776         Suggested by Bruno Haible in
12777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
12778
12779         getloadavg: trim unused parts and speed up 'configure'
12780         * NEWS: Document this.
12781         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
12782         always compiled if getloadavg is absent.
12783         Move test code to ...
12784         * tests/test-getloadavg.c: New file, containing previous
12785         contents of test from lib/getloadavg.c.  It also contains
12786         suggestions by Bruno Haible in
12787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
12788         * modules/getloadavg-tests: New file.
12789         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
12790         Do tests in the same order as they're needed for getloadavg.c.
12791         Omit setgid-related tests that generate symbols KMEM_GROUP,
12792         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
12793         Do only the tests that are needed to see whether the system has
12794         getloadavg, moving the other tests into ...
12795         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
12796         NLIST_NAME_UNION; nobody should be using it.  Do not define
12797         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
12798         relevant, as the user of this module shouldn't care how getloadavg
12799         is implemented.
12800
12801         getloadavg: omit unused var
12802         * lib/getloadavg.c (getloadavg): Omit unused local variable.
12803
12804 2011-02-15  Jim Meyering  <meyering@redhat.com>
12805
12806         doc: update users.txt
12807         * users.txt: Update iwhd's URL.
12808
12809 2011-02-13  Bruno Haible  <bruno@clisp.org>
12810
12811         Consistent macro naming for macros that use GCC __attribute__.
12812         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
12813         _ATTRIBUTE_NONNULL_.
12814         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
12815         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
12816         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
12817         ATTRIBUTE_DEPRECATED.
12818         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
12819         ATTRIBUTE_NORETURN.
12820         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12821         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12822         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12823         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12824         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
12825         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
12826         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
12827         ATTRIBUTE_SENTINEL.
12828         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
12829         ATTRIBUTE_RETURN_CHECK.
12830         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
12831         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
12832         ATTRIBUTE_NORETURN.
12833         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
12834         Reported by Paul Eggert.
12835
12836 2011-02-13  Bruno Haible  <bruno@clisp.org>
12837
12838         Don't interfere with a program's definition of __attribute__.
12839         * lib/argp.h (__attribute__): Remove definition.
12840         (_GL_ATTRIBUTE_FORMAT): New macro.
12841         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
12842         * lib/argp-fmtstream.h (__attribute__): Remove definition.
12843         (_GL_ATTRIBUTE_FORMAT): New macro.
12844         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
12845         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
12846         GCC 3 or newer.
12847         * lib/error.h (__attribute__): Remove definition.
12848         (_GL_ATTRIBUTE_FORMAT): New macro.
12849         (error, error_at_line): Use it.
12850         * lib/hash.h (__attribute__): Remove definition.
12851         (ATTRIBUTE_WUR): Update definition. Define always.
12852         * lib/openat.h (__attribute__): Remove definition.
12853         (ATTRIBUTE_NORETURN): Update definition. Define always.
12854         * lib/sigpipe-die.h (__attribute__): Remove definition.
12855         (ATTRIBUTE_NORETURN): Update definition. Define always.
12856         * lib/vasnprintf.h (__attribute__): Remove definition.
12857         (_GL_ATTRIBUTE_FORMAT): New macro.
12858         (asnprintf, vasnprintf): Use it.
12859         * lib/xalloc.h (__attribute__): Remove definition.
12860         (ATTRIBUTE_NORETURN): Update definition. Define always.
12861         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
12862         * lib/xmemdup0.h (__attribute__): Remove definition.
12863         (ATTRIBUTE_NORETURN): Update definition. Define always.
12864         * lib/xprintf.h (__attribute__): Remove definition.
12865         (_GL_ATTRIBUTE_FORMAT): New macro.
12866         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
12867         * lib/xstrtol.h (__attribute__): Remove definition.
12868         (ATTRIBUTE_NORETURN): Update definition. Define always.
12869         * lib/xvasprintf.h (__attribute__): Remove definition.
12870         (_GL_ATTRIBUTE_FORMAT): New macro.
12871         (xasprintf, xvasprintf): Use it.
12872         * tests/test-argmatch.c (__attribute__): Remove definition.
12873         (ATTRIBUTE_NORETURN): Update definition. Define always.
12874         * tests/test-exclude.c (__attribute__): Remove definition.
12875         (ATTRIBUTE_NORETURN): Update definition. Define always.
12876         Reported by Paul Eggert.
12877
12878 2011-02-13  Bruno Haible  <bruno@clisp.org>
12879
12880         mbrtowc: Add more tests for native Windows platforms.
12881         * tests/test-mbrtowc-w32-1.sh: New file.
12882         * tests/test-mbrtowc-w32-2.sh: New file.
12883         * tests/test-mbrtowc-w32-3.sh: New file.
12884         * tests/test-mbrtowc-w32-4.sh: New file.
12885         * tests/test-mbrtowc-w32-5.sh: New file.
12886         * tests/test-mbrtowc-w32.c: New file.
12887         * modules/mbrtowc-tests (Files): Add them.
12888         (Makefile.am): Arrange to run these tests.
12889         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
12890         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
12891
12892 2011-02-13  Bruno Haible  <bruno@clisp.org>
12893
12894         mbrtowc: Work around native Windows bug.
12895         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
12896         guess when no suitable locale for testing was found.
12897         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
12898
12899 2011-02-13  Bruno Haible  <bruno@clisp.org>
12900
12901         mbsinit: Work around mingw bug.
12902         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
12903         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
12904         Windows.
12905         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
12906
12907 2011-02-13  Bruno Haible  <bruno@clisp.org>
12908
12909         mbsinit: Don't crash for a NULL argument.
12910         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
12911         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
12912
12913 2011-02-13  Bruno Haible  <bruno@clisp.org>
12914
12915         Don't interfere with a program's definition of __attribute__.
12916         * lib/stdio.in.h (__attribute__): Remove definition.
12917         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
12918         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
12919         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
12920         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
12921         * lib/string.in.h (__attribute__): Remove definition.
12922         Reported by Paul Eggert.
12923
12924 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12925
12926         stdlib: don't get in the way of non-GCC __attribute__
12927         See thread starting at
12928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
12929         Revert previous stdlib change, installing the following instead:
12930         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
12931         to get in the way of a non-GCC compiler that supports __attribute__.
12932         (_GL_ATTRIBUTE_RETURN): New macro.
12933         (_Exit): Use it instead of __attribute__.
12934
12935 2011-02-12  Bruno Haible  <bruno@clisp.org>
12936
12937         quotearg test: Avoid test failure on mingw.
12938         * tests/test-quotearg.sh: Convert the locale identifier from native
12939         Windows syntax to Unix syntax.
12940
12941 2011-02-12  Bruno Haible  <bruno@clisp.org>
12942
12943         setlocale: Prefer gnulib's override over libintl's override.
12944         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
12945         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
12946         GNULIB_defined_setlocale is set.
12947
12948 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12949
12950         stdlib: support non-GCC __attribute__
12951
12952         Fix a serious and tricky problem encountered when attempting to
12953         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
12954         5.5, but it crashed due to memory corruption on Solaris 10 with
12955         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
12956         bits that are otherwise zero.  This tagging is optional inside
12957         Emacs but is preferred and is used when __attribute__ ((__aligned
12958         (8))) works, as it does with both recent-enough GCC and with Sun C
12959         5.11.  However, Sun C 5.11 is not GCC and does not #define
12960         __GNUC__ and __GNUC_MINOR__.
12961
12962         When I added the getloadavg module to Emacs, it brought in
12963         stdlib.in.h, which contained this fragment:
12964
12965            #ifndef __attribute__
12966            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
12967            #  define __attribute__(Spec)   /* empty */
12968            # endif
12969            #endif
12970
12971         When files that include <stdlib.h> were compiled with Sun C 5.11,
12972         the above code disabled __attribute__ ((__aligned (8))), which
12973         caused variables to not be properly aligned, which eventually led
12974         to the pointer corruption mentioned above.  (This was a bit hard
12975         to diagnose, unfortunately.)
12976
12977         Several "#define __attribute__(X) /* empty */" code snippets need
12978         to be eradicated from Gnulib to work with non-GCC compilers that
12979         support __attribute__.  The Autoconf way to do this is to test for
12980         each kind of attribute that we want support for, and selectively
12981         enable that in source code.
12982
12983         Fix this problem just for stdlib.h, by adding a test for the
12984         __noreturn__ attribute, and change stdlib.in.h to use that test
12985         when needed.  This technique can be easily generalized to the
12986         other *.in.h files and attributes, and a similar technique can be
12987         used for *.h and *.c files.  This patch is enough to solve the
12988         problem for Emacs + getloadavg, and I thought I'd publish it for
12989         feedback before undertaking further, similar fixes in other
12990         modules.
12991
12992         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
12993         because it's not needed for stdlib.h.  It merely substitutes the
12994         value directly into stdlib.h.  We may well need to #define it, or
12995         similar symbols, for other modules, but it's nice to also have an
12996         option to not #define it for applications like Emacs that do not
12997         need it.
12998
12999         * lib/stdlib.in.h (__attribute__): Do not #define.
13000         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13001         be defined only if the _Exit module is also used.
13002         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13003         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13004         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13005         platforms.
13006         * modules/_Exit (Files): Add m4/attribute.m4.
13007         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13008         * m4/attribute.m4: New file.
13009
13010 2011-02-12  Bruno Haible  <bruno@clisp.org>
13011
13012         wcsrtombs: Work around bug on native Windows.
13013         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13014         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13015         instead of len.
13016         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13017
13018 2011-02-12  Bruno Haible  <bruno@clisp.org>
13019
13020         mbsrtowcs: Work around bug on native Windows.
13021         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13022         against mingw bug.
13023         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13024
13025 2011-02-12  Bruno Haible  <bruno@clisp.org>
13026
13027         Avoid setlocale bugs in tests.
13028         * modules/btowc (Dependencies): Add setlocale.
13029         * modules/c-strcase (Dependencies): Likewise.
13030         * modules/mbmemcasecmp (Dependencies): Likewise.
13031         * modules/mbmemcasecoll (Dependencies): Likewise.
13032         * modules/mbrtowc (Dependencies): Likewise.
13033         * modules/mbscasecmp (Dependencies): Likewise.
13034         * modules/mbscasestr (Dependencies): Likewise.
13035         * modules/mbschr (Dependencies): Likewise.
13036         * modules/mbscspn (Dependencies): Likewise.
13037         * modules/mbsinit (Dependencies): Likewise.
13038         * modules/mbsncasecmp (Dependencies): Likewise.
13039         * modules/mbsnrtowcs (Dependencies): Likewise.
13040         * modules/mbspbrk (Dependencies): Likewise.
13041         * modules/mbspcasecmp (Dependencies): Likewise.
13042         * modules/mbsrchr (Dependencies): Likewise.
13043         * modules/mbsrtowcs (Dependencies): Likewise.
13044         * modules/mbsspn (Dependencies): Likewise.
13045         * modules/mbsstr (Dependencies): Likewise.
13046         * modules/nl_langinfo (Dependencies): Likewise.
13047         * modules/quotearg (Dependencies): Likewise.
13048         * modules/unicase/locale-language (Dependencies): Likewise.
13049         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13050         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13051         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13052         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13053         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13054         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13055         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13056         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13057         * modules/vasnprintf-posix (Dependencies): Likewise.
13058         * modules/wcrtomb (Dependencies): Likewise.
13059         * modules/wcsnrtombs (Dependencies): Likewise.
13060         * modules/wcsrtombs (Dependencies): Likewise.
13061
13062 2011-02-12  Bruno Haible  <bruno@clisp.org>
13063
13064         setlocale: Workaround native Windows bug.
13065         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13066         succeeds but sets LC_CTYPE to "C", report a failure.
13067         * tests/test-setlocale2.sh: New file.
13068         * tests/test-setlocale2.c: New file.
13069         * modules/setlocale-tests (Files): Add the new files.
13070         (Makefile.am): Enable test-setlocale2.sh test.
13071         * doc/posix-functions/setlocale.texi: Mention workaround.
13072
13073 2011-02-11  Bruno Haible  <bruno@clisp.org>
13074
13075         Tests for module 'setlocale'.
13076         * modules/setlocale-tests: New file.
13077         * tests/test-setlocale1.sh: New file.
13078         * tests/test-setlocale1.c: New file.
13079
13080         New module 'setlocale'.
13081         * lib/locale.in.h (setlocale): New declaration.
13082         * lib/setlocale.c: New file, based on
13083         gettext/gettext-runtime/intl/setlocale.c.
13084         * m4/setlocale.m4: New file.
13085         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13086         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13087         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13088         REPLACE_SETLOCALE.
13089         * modules/setlocale: New file.
13090         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13091         * doc/posix-functions/setlocale.texi: Mention the new module.
13092
13093 2011-02-11  Bruno Haible  <bruno@clisp.org>
13094
13095         Prepare for locale dependent tests on mingw.
13096         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13097         because it has the wrong locale encoding.
13098         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13099         French_France.1252 instead of "fr".
13100         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13101         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13102         because it has the wrong locale encoding.
13103         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13104         native Windows, try Turkish_Turkey.65001.
13105         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13106         Chinese_China.54936.
13107
13108         Prepare for locale dependent tests on mingw.
13109         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13110         differently.
13111         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13112         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13113         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13114         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13115
13116 2011-02-11  Eric Blake  <eblake@redhat.com>
13117
13118         strptime: avoid compiler warnings
13119         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13120         compiler warnings about dead code.
13121         Reported by Daniel P. Berrange.
13122
13123 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13124
13125         doc: update users.txt
13126         * users.txt: Add rcs.
13127
13128 2011-02-10  John W. Eaton  <jwe@gnu.org>
13129
13130         doc: update users.txt
13131         * users.txt: Add octave.
13132
13133 2011-02-10  Jim Meyering  <meyering@redhat.com>
13134
13135         doc: update users.txt
13136         * users.txt: Add iwhd.
13137
13138 2011-02-09  Bruno Haible  <bruno@clisp.org>
13139
13140         gnulib-tool: Make copyright notice adjustment more robust.
13141         * gnulib-tool (func_import): In sed_transform_main_lib_file,
13142         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
13143         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
13144         License".
13145         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
13146
13147 2011-02-06  Bruno Haible  <bruno@clisp.org>
13148
13149         New module 'towctrans'.
13150         * modules/towctrans: New file.
13151         * lib/wctype.in.h (towctrans): New declaration.
13152         * lib/towctrans.c: New file.
13153         * lib/towctrans-impl.h: New file.
13154         * m4/towctrans.m4: New file.
13155         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
13156         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
13157         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
13158         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
13159         * doc/posix-functions/towctrans.texi: Mention the new module.
13160
13161 2011-02-06  Bruno Haible  <bruno@clisp.org>
13162
13163         New module 'wctrans'.
13164         * modules/wctrans: New file.
13165         * lib/wctype.in.h (wctrans): New declaration.
13166         * lib/wctrans.c: New file.
13167         * lib/wctrans-impl.h: New file.
13168         * m4/wctrans.m4: New file.
13169         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
13170         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
13171         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
13172         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
13173         * doc/posix-functions/wctrans.texi: Mention the new module.
13174
13175 2011-02-06  Bruno Haible  <bruno@clisp.org>
13176
13177         New module 'iswctype'.
13178         * modules/iswctype: New file.
13179         * lib/wctype.in.h (iswctype): New declaration.
13180         * lib/iswctype.c: New file.
13181         * lib/iswctype-impl.h: New file.
13182         * m4/iswctype.m4: New file.
13183         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13184         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13185         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13186         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13187         * doc/posix-functions/iswctype.texi: Mention the new module and the
13188         HP-UX 11.00 problem.
13189
13190 2011-02-06  Bruno Haible  <bruno@clisp.org>
13191
13192         New module 'wctype'.
13193         * modules/wctype: Change to represent the wctype() substitute.
13194         * lib/wctype.in.h (wctype): New declaration.
13195         * lib/wctype.c: New file.
13196         * lib/wctype-impl.h: New file.
13197         * m4/wctype.m4: New file.
13198         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13199         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13200         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13201         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13202         * doc/posix-functions/wctype.texi: Mention the new module and the
13203         HP-UX 11.00 problem.
13204
13205 2011-02-06  Bruno Haible  <bruno@clisp.org>
13206
13207         wctype-h: Ensure wctype_t and wctrans_t are defined.
13208         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
13209         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13210         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13211         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
13212         HAVE_WCTRANS_T.
13213         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
13214
13215 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13216
13217         flock: fix license typo
13218
13219         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
13220         omitted.
13221
13222 2011-02-08  Bruno Haible  <bruno@clisp.org>
13223
13224         Split large sed scripts, for HP-UX sed.
13225         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
13226         to avoid HP-UX limit of 99 commands, in the near future.
13227         * modules/stdlib (Makefile.am): Likewise.
13228         * modules/unistd (Makefile.am): Likewise.
13229         * modules/wchar (Makefile.am): Likewise.
13230         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13231         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
13232         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
13233
13234 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13235             Bruno Haible  <bruno@clisp.org>
13236
13237         stdlib: improve random_r modularization
13238         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
13239         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
13240         you also need the random_r module to get this material right.
13241         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
13242         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
13243         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
13244
13245 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13246
13247         stdlib: don't depend on stdint
13248         * lib/stdlib.in.h: Don't include <stdint.h> merely because
13249         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
13250         be independent of whether stdint.h is needed.
13251         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
13252         here, instead of ...
13253         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
13254         struct random_data should be using the random_r module, not just
13255         the stdlib module (which wouldn't make sense: what package needs
13256         just struct random_data without also needing random_r?).
13257         * modules/stdlib (Depends-on): Remove stdint.
13258
13259         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
13260         See the thread rooted at
13261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
13262         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
13263         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
13264         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
13265         __VMS)); previously it was always included (via fcntl--.h).
13266         (getloadavg): Do not use c_strtod.  Instead, approximate it by
13267         hand; this is good enough for load averages.  Also, do not use
13268         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
13269         flags directly if available and don't bother otherwise.  (Packages
13270         that need the extra reliability should use the modules that define
13271         these flags on older platforms that lack them.)
13272         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
13273         fcntl-safer.
13274
13275 2011-02-08  Jim Meyering  <meyering@redhat.com>
13276
13277         di-set.h, ino-map.h: add multiple-inclusion guard
13278         Technically, the guard is required only for ino-map.h, due to its
13279         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
13280         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
13281         * lib/ino-map.h: Likewise.
13282
13283 2011-02-06  Bruno Haible  <bruno@clisp.org>
13284
13285         iswblank: Ensure declaration on glibc systems.
13286         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
13287         * modules/iswblank (Dependencies): Add 'extensions'.
13288         * doc/posix-functions/iswblank.texi: Document the glibc problem.
13289
13290 2011-02-06  Bruno Haible  <bruno@clisp.org>
13291
13292         New module 'iswblank'.
13293         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
13294         * modules/iswblank: New file.
13295         * modules/wctype-h (Files): Remove lib/iswblank.c.
13296         (Makefile.am): Substitute GNULIB_ISWBLANK.
13297         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
13298         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
13299         (gl_WCTYPE_H_DEFAULTS): New macro.
13300         (gl_WCTYPE_H): Require it. Remove iswblank related code.
13301         * modules/iswblank-tests: New file.
13302         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
13303         * tests/test-wctype-h.c (main): Remove iswblank tests.
13304         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
13305         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
13306         of 'wctype-h'.
13307         * NEWS: Mention the change.
13308         * modules/mbchar (Depends-on): Add iswblank.
13309
13310 2011-02-08  Bruno Haible  <bruno@clisp.org>
13311
13312         di-set tests: Refactor.
13313         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
13314         unnecessary includes.
13315         (ASSERT): Remove macro.
13316         (main): Make C90 compliant by avoiding variable declaration after
13317         statement.
13318         * modules/di-set-tests (Files): Add tests/macros.h.
13319
13320 2011-02-08  Bruno Haible  <bruno@clisp.org>
13321
13322         ino-map tests: Refactor.
13323         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
13324         unnecessary includes.
13325         (ASSERT): Remove macro.
13326         (main): Make C90 compliant by avoiding variable declaration after
13327         statement.
13328         * modules/ino-map-tests (Files): Add tests/macros.h.
13329
13330 2011-02-08  Jim Meyering  <meyering@redhat.com>
13331
13332         di-set: add "const" to a cast
13333         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
13334         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
13335
13336 2011-02-06  Bruno Haible  <bruno@clisp.org>
13337
13338         Rename module 'wctype' to 'wctype-h'.
13339         * modules/wctype-h: Renamed from modules/wctype.
13340         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
13341         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
13342         (Files, Depends-on, Makefile.am): Update.
13343         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
13344         (Files, Makefile.am): Update.
13345         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
13346         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
13347         * doc/posix-headers/wctype.texi: Update.
13348         * doc/posix-functions/iswalnum.texi: Update.
13349         * doc/posix-functions/iswalpha.texi: Update.
13350         * doc/posix-functions/iswblank.texi: Update.
13351         * doc/posix-functions/iswcntrl.texi: Update.
13352         * doc/posix-functions/iswdigit.texi: Update.
13353         * doc/posix-functions/iswgraph.texi: Update.
13354         * doc/posix-functions/iswlower.texi: Update.
13355         * doc/posix-functions/iswprint.texi: Update.
13356         * doc/posix-functions/iswpunct.texi: Update.
13357         * doc/posix-functions/iswspace.texi: Update.
13358         * doc/posix-functions/iswupper.texi: Update.
13359         * doc/posix-functions/iswxdigit.texi: Update.
13360         * doc/posix-functions/towlower.texi: Update.
13361         * doc/posix-functions/towupper.texi: Update.
13362         * NEWS: Mention the change.
13363         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
13364         * modules/mbchar (Dependencies): Likewise.
13365         * modules/mbswidth (Dependencies): Likewise.
13366         * modules/quotearg (Dependencies): Likewise.
13367         * modules/regex (Dependencies): Likewise.
13368         * modules/wcscasecmp (Dependencies): Likewise.
13369         * modules/wcsncasecmp (Dependencies): Likewise.
13370         * modules/wcwidth (Dependencies): Likewise.
13371
13372 2011-02-06  Bruno Haible  <bruno@clisp.org>
13373
13374         New module 'wcswidth'.
13375         * modules/wcswidth: New file.
13376         * lib/wchar.in.h (wcswidth): New declaration.
13377         * lib/wcswidth.c: New file.
13378         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
13379         * m4/wcswidth.m4: New file.
13380         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
13381         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
13382         REPLACE_WCSWIDTH.
13383         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
13384         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
13385         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
13386         * doc/posix-functions/wcswidth.texi: Mention the new module.
13387
13388 2011-02-06  Bruno Haible  <bruno@clisp.org>
13389
13390         New module 'wcstok'.
13391         * modules/wcstok: New file.
13392         * lib/wchar.in.h (wcstok): New declaration.
13393         * lib/wcstok.c: New file.
13394         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
13395         * m4/wcstok.m4: New file.
13396         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
13397         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
13398         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
13399         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
13400         * doc/posix-functions/wcstok.texi: Mention the new module.
13401
13402 2011-02-06  Bruno Haible  <bruno@clisp.org>
13403
13404         New module 'wcsstr'.
13405         * modules/wcsstr: New file.
13406         * lib/wchar.in.h (wcsstr): New declaration.
13407         * lib/wcsstr.c: New file.
13408         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
13409         * m4/wcsstr.m4: New file.
13410         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
13411         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
13412         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
13413         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
13414         * doc/posix-functions/wcsstr.texi: Mention the new module.
13415
13416 2011-02-06  Bruno Haible  <bruno@clisp.org>
13417
13418         New module 'wcspbrk'.
13419         * modules/wcspbrk: New file.
13420         * lib/wchar.in.h (wcspbrk): New declaration.
13421         * lib/wcspbrk.c: New file.
13422         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
13423         * m4/wcspbrk.m4: New file.
13424         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
13425         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
13426         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
13427         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
13428         * doc/posix-functions/wcspbrk.texi: Mention the new module.
13429
13430 2011-02-06  Bruno Haible  <bruno@clisp.org>
13431
13432         New module 'wcsspn'.
13433         * modules/wcsspn: New file.
13434         * lib/wchar.in.h (wcsspn): New declaration.
13435         * lib/wcsspn.c: New file.
13436         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
13437         * m4/wcsspn.m4: New file.
13438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
13439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
13440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
13441         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
13442         * doc/posix-functions/wcsspn.texi: Mention the new module.
13443
13444 2011-02-06  Bruno Haible  <bruno@clisp.org>
13445
13446         New module 'wcscspn'.
13447         * modules/wcscspn: New file.
13448         * lib/wchar.in.h (wcscspn): New declaration.
13449         * lib/wcscspn.c: New file.
13450         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
13451         * m4/wcscspn.m4: New file.
13452         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
13453         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
13454         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
13455         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
13456         * doc/posix-functions/wcscspn.texi: Mention the new module.
13457
13458 2011-02-06  Bruno Haible  <bruno@clisp.org>
13459
13460         New module 'wcsrchr'.
13461         * modules/wcsrchr: New file.
13462         * lib/wchar.in.h (wcsrchr): New declaration.
13463         * lib/wcsrchr.c: New file.
13464         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
13465         * m4/wcsrchr.m4: New file.
13466         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
13467         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
13468         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
13469         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
13470         * doc/posix-functions/wcsrchr.texi: Mention the new module.
13471
13472 2011-02-06  Bruno Haible  <bruno@clisp.org>
13473
13474         New module 'wcschr'.
13475         * modules/wcschr: New file.
13476         * lib/wchar.in.h (wcschr): New declaration.
13477         * lib/wcschr.c: New file.
13478         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
13479         * m4/wcschr.m4: New file.
13480         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
13481         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
13482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
13483         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
13484         * doc/posix-functions/wcschr.texi: Mention the new module.
13485
13486 2011-02-06  Bruno Haible  <bruno@clisp.org>
13487
13488         New module 'wcsdup'.
13489         * modules/wcsdup: New file.
13490         * lib/wchar.in.h (wcsdup): New declaration.
13491         * lib/wcsdup.c: New file.
13492         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
13493         * m4/wcsdup.m4: New file.
13494         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
13495         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
13496         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
13497         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
13498         * doc/posix-functions/wcsdup.texi: Mention the new module.
13499
13500 2011-02-06  Bruno Haible  <bruno@clisp.org>
13501
13502         New module 'wcsxfrm'.
13503         * modules/wcsxfrm: New file.
13504         * lib/wchar.in.h (wcsxfrm): New declaration.
13505         * lib/wcsxfrm.c: New file.
13506         * lib/wcsxfrm-impl.h: New file.
13507         * m4/wcsxfrm.m4: New file.
13508         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
13509         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
13510         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
13511         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
13512         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
13513
13514 2011-02-06  Bruno Haible  <bruno@clisp.org>
13515
13516         New module 'wcscoll'.
13517         * modules/wcscoll: New file.
13518         * lib/wchar.in.h (wcscoll): New declaration.
13519         * lib/wcscoll.c: New file.
13520         * lib/wcscoll-impl.h: New file.
13521         * m4/wcscoll.m4: New file.
13522         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
13523         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
13524         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
13525         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
13526         * doc/posix-functions/wcscoll.texi: Mention the new module.
13527
13528 2011-02-06  Bruno Haible  <bruno@clisp.org>
13529
13530         New module 'wcsncasecmp'.
13531         * modules/wcsncasecmp: New file.
13532         * lib/wchar.in.h (wcsncasecmp): New declaration.
13533         * lib/wcsncasecmp.c: New file.
13534         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
13535         * m4/wcsncasecmp.m4: New file.
13536         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
13537         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
13538         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
13539         HAVE_WCSNCASECMP.
13540         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
13541         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
13542
13543 2011-02-06  Bruno Haible  <bruno@clisp.org>
13544
13545         New module 'wcscasecmp'.
13546         * modules/wcscasecmp: New file.
13547         * lib/wchar.in.h (wcscasecmp): New declaration.
13548         * lib/wcscasecmp.c: New file.
13549         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
13550         * m4/wcscasecmp.m4: New file.
13551         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
13552         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
13553         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
13554         HAVE_WCSCASECMP.
13555         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
13556         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
13557
13558 2011-02-05  Bruno Haible  <bruno@clisp.org>
13559
13560         New module 'wcsncmp'.
13561         * modules/wcsncmp: New file.
13562         * lib/wchar.in.h (wcsncmp): New declaration.
13563         * lib/wcsncmp.c: New file.
13564         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
13565         * m4/wcsncmp.m4: New file.
13566         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
13567         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
13568         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
13569         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
13570         * doc/posix-functions/wcsncmp.texi: Mention the new module.
13571
13572 2011-02-05  Bruno Haible  <bruno@clisp.org>
13573
13574         New module 'wcscmp'.
13575         * modules/wcscmp: New file.
13576         * lib/wchar.in.h (wcscmp): New declaration.
13577         * lib/wcscmp.c: New file.
13578         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
13579         * m4/wcscmp.m4: New file.
13580         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
13581         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
13582         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
13583         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
13584         * doc/posix-functions/wcscmp.texi: Mention the new module.
13585
13586 2011-02-05  Bruno Haible  <bruno@clisp.org>
13587
13588         New module 'wcsncat'.
13589         * modules/wcsncat: New file.
13590         * lib/wchar.in.h (wcsncat): New declaration.
13591         * lib/wcsncat.c: New file.
13592         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
13593         * m4/wcsncat.m4: New file.
13594         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
13595         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
13596         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
13597         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
13598         * doc/posix-functions/wcsncat.texi: Mention the new module.
13599
13600 2011-02-05  Bruno Haible  <bruno@clisp.org>
13601
13602         New module 'wcscat'.
13603         * modules/wcscat: New file.
13604         * lib/wchar.in.h (wcscat): New declaration.
13605         * lib/wcscat.c: New file.
13606         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
13607         * m4/wcscat.m4: New file.
13608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
13609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
13610         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
13611         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
13612         * doc/posix-functions/wcscat.texi: Mention the new module.
13613
13614 2011-02-05  Bruno Haible  <bruno@clisp.org>
13615
13616         New module 'wcpncpy'.
13617         * modules/wcpncpy: New file.
13618         * lib/wchar.in.h (wcpncpy): New declaration.
13619         * lib/wcpncpy.c: New file.
13620         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
13621         * m4/wcpncpy.m4: New file.
13622         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
13623         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
13624         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
13625         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
13626         * doc/posix-functions/wcpncpy.texi: Mention the new module.
13627
13628 2011-02-05  Bruno Haible  <bruno@clisp.org>
13629
13630         New module 'wcsncpy'.
13631         * modules/wcsncpy: New file.
13632         * lib/wchar.in.h (wcsncpy): New declaration.
13633         * lib/wcsncpy.c: New file.
13634         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
13635         * m4/wcsncpy.m4: New file.
13636         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
13637         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
13638         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
13639         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
13640         * doc/posix-functions/wcsncpy.texi: Mention the new module.
13641
13642 2011-02-05  Bruno Haible  <bruno@clisp.org>
13643
13644         New module 'wcpcpy'.
13645         * modules/wcpcpy: New file.
13646         * lib/wchar.in.h (wcpcpy): New declaration.
13647         * lib/wcpcpy.c: New file.
13648         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
13649         * m4/wcpcpy.m4: New file.
13650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
13651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
13652         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
13653         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
13654         * doc/posix-functions/wcpcpy.texi: Mention the new module.
13655
13656 2011-02-05  Bruno Haible  <bruno@clisp.org>
13657
13658         New module 'wcscpy'.
13659         * modules/wcscpy: New file.
13660         * lib/wchar.in.h (wcscpy): New declaration.
13661         * lib/wcscpy.c: New file.
13662         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
13663         * m4/wcscpy.m4: New file.
13664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
13665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
13666         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
13667         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
13668         * doc/posix-functions/wcscpy.texi: Mention the new module.
13669
13670 2011-02-05  Bruno Haible  <bruno@clisp.org>
13671
13672         New module 'wcsnlen'.
13673         * modules/wcsnlen: New file.
13674         * lib/wchar.in.h (wcsnlen): New declaration.
13675         * lib/wcsnlen.c: New file.
13676         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
13677         * m4/wcsnlen.m4: New file.
13678         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
13679         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
13680         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
13681         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
13682         * doc/posix-functions/wcsnlen.texi: Mention the new module.
13683
13684 2011-02-05  Bruno Haible  <bruno@clisp.org>
13685
13686         New module 'wcslen'.
13687         * modules/wcslen: New file.
13688         * lib/wchar.in.h (wcslen): New declaration.
13689         * lib/wcslen.c: New file.
13690         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
13691         * m4/wcslen.m4: New file.
13692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
13693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
13694         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
13695         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
13696         * doc/posix-functions/wcslen.texi: Mention the new module.
13697
13698 2011-02-05  Bruno Haible  <bruno@clisp.org>
13699
13700         New module 'wmemset'.
13701         * modules/wmemset: New file.
13702         * lib/wchar.in.h (wmemset): New declaration.
13703         * lib/wmemset.c: New file.
13704         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
13705         * m4/wmemset.m4: New file.
13706         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
13707         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
13708         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
13709         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
13710         * doc/posix-functions/wmemset.texi: Mention the new module.
13711
13712 2011-02-05  Bruno Haible  <bruno@clisp.org>
13713
13714         New module 'wmemmove'.
13715         * modules/wmemmove: New file.
13716         * lib/wchar.in.h (wmemmove): New declaration.
13717         * lib/wmemmove.c: New file.
13718         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
13719         * m4/wmemmove.m4: New file.
13720         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
13721         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
13722         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
13723         HAVE_WMEMMOVE.
13724         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
13725         * doc/posix-functions/wmemmove.texi: Mention the new module.
13726
13727 2011-02-05  Bruno Haible  <bruno@clisp.org>
13728
13729         New module 'wmemcpy'.
13730         * modules/wmemcpy: New file.
13731         * lib/wchar.in.h (wmemcpy): New declaration.
13732         * lib/wmemcpy.c: New file.
13733         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
13734         * m4/wmemcpy.m4: New file.
13735         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
13736         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
13737         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
13738         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
13739         * doc/posix-functions/wmemcpy.texi: Mention the new module.
13740
13741 2011-02-05  Bruno Haible  <bruno@clisp.org>
13742
13743         New module 'wmemcmp'.
13744         * modules/wmemcmp: New file.
13745         * lib/wchar.in.h (wmemcmp): New declaration.
13746         * lib/wmemcmp.c: New file.
13747         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
13748         * m4/wmemcmp.m4: New file.
13749         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
13750         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
13751         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
13752         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
13753         * doc/posix-functions/wmemcmp.texi: Mention the new module.
13754
13755 2011-02-07  Jim Meyering  <meyering@redhat.com>
13756
13757         di-set, ino-map: new modules, from coreutils
13758         * lib/di-set.c: New file.
13759         * lib/di-set.h: Likewise.
13760         * lib/ino-map.c: Likewise.
13761         * lib/ino-map.h: Likewise.
13762         * modules/di-set: Likewise.
13763         * modules/di-set-tests: Likewise.
13764         * modules/ino-map: Likewise.
13765         * modules/ino-map-tests: Likewise.
13766         * tests/test-di-set.c: Likewise.
13767         * tests/test-ino-map.c: Likewise.
13768
13769 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
13770
13771         getloadavg: merge minor changes from Emacs
13772
13773         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
13774         (getloadavg): Use memset, not bzero.
13775
13776         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
13777         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13778         clash (bug#86).
13779
13780 2010-11-14  Bruno Haible  <bruno@clisp.org>
13781
13782         Allow multiple gnulib generated replacements to coexist.
13783         * lib/getopt.in.h (struct option): Avoid identical redefinition.
13784         * lib/inttypes.in.h (imaxdiv_t): Likewise.
13785         * lib/langinfo.in.h (nl_item): Likewise.
13786         * lib/math.in.h (_NaN, NAN): Likewise.
13787         * lib/netdb.in.h (struct addrinfo): Likewise.
13788         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
13789         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
13790         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
13791         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
13792         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
13793         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
13794         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
13795         pthread_mutexattr_init, pthread_mutexattr_settype,
13796         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
13797         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
13798         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
13799         pthread_spin_trylock, pthread_spin_unlock): Likewise.
13800         * lib/sched.in.h (struct sched_param): Likewise.
13801         * lib/se-selinux.in.h (security_class_t, security_context_t,
13802         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
13803         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
13804         lsetfilecon, fsetfilecon, security_check_context,
13805         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
13806         Likewise.
13807         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
13808         Likewise.
13809         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
13810         _gl_function_taking_int_returning_void_t, union sigval,
13811         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
13812         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
13813         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13814         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
13815         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
13816         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
13817         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
13818         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
13819         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
13820         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
13821         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
13822         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
13823         socklen_t, rpl_fd_isset): Likewise.
13824         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
13825         * lib/sys_time.in.h (struct timeval): Likewise.
13826         * lib/sys_times.in.h (struct tms): Likewise.
13827         * lib/sys_utsname.in.h (struct utsname):
13828         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
13829         * lib/unistd.in.h (getpagesize): Likewise.
13830         * lib/wchar.in.h (mbstate_t): Likewise.
13831         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13832         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
13833         towlower, towupper): Likewise.
13834         Reported by Sam Steingold <sds@gnu.org>.
13835
13836 2011-02-05  Eric Blake  <eblake@redhat.com>
13837
13838         unsetenv: work around Haiku issues
13839         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
13840         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
13841
13842 2010-12-30  Bruce Korb  <bkorb@gnu.org>
13843
13844         libposix: avoid calling error() within libposix
13845         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
13846         is defined.
13847
13848 2011-02-05  Eric Blake  <eblake@redhat.com>
13849
13850         strerror_r-posix: port to cygwin
13851         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
13852         implementation.
13853         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
13854         * tests/test-strerror_r.c (main): Fix test.
13855         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13856         issue.
13857
13858 2011-02-05  Bruno Haible  <bruno@clisp.org>
13859
13860         New module 'wmemchr'.
13861         * modules/wmemchr: New file.
13862         * lib/wchar.in.h (wmemchr): New declaration.
13863         * lib/wmemchr.c: New file.
13864         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
13865         * m4/wmemchr.m4: New file.
13866         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
13867         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
13868         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
13869         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
13870         * doc/posix-functions/wmemchr.texi: Mention the new module.
13871
13872 2011-02-04  Eric Blake  <eblake@redhat.com>
13873
13874         fdopendir: detect FreeBSD bug
13875         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
13876         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
13877
13878 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13879
13880         stdbool: do not define HAVE_STDBOOL_H
13881         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
13882         AC_HEADER_STDBOOL.  All uses changed.  Do not define
13883         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
13884         imported from the latest Autoconf git.  It was motivated by Emacs,
13885         which uses gnulib but does not need HAVE_STDBOOL_H.
13886
13887 2011-02-04  Bruno Haible  <bruno@clisp.org>
13888
13889         wcsnrtombs: Prepare for new module wwcsnrtombs.
13890         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
13891         * lib/wcsnrtombs.c: Include it.
13892         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
13893
13894         wcsrtombs: Prepare for new module wwcsrtombs.
13895         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
13896         * lib/wcsrtombs.c: Include it.
13897         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
13898
13899         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
13900         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
13901         * lib/mbsnrtowcs.c: Include it.
13902         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
13903
13904         mbsrtowcs: Prepare for new module mbsrtowwcs.
13905         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
13906         * lib/mbsrtowcs.c: Include it.
13907         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
13908
13909 2011-02-04  Bruno Haible  <bruno@clisp.org>
13910
13911         vasnprintf: Reduce use of malloc for small format strings.
13912         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
13913         (arguments): Add room for the first 7 arguments.
13914         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
13915         (char_directives, u8_directives, u16_directives, u32_directives): Add
13916         room for the first 7 directives.
13917         * lib/printf-parse.c: Include <string.h>.
13918         (PRINTF_PARSE): Change memory handling code so that it uses the first
13919         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
13920         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
13921         Reported by Pádraig Brady <P@draigbrady.com>.
13922
13923 2011-01-31  Eric Blake  <eblake@redhat.com>
13924
13925         dup2: work around Haiku bug
13926         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
13927         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
13928         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13929         * tests/test-dup2.c (main): Enhance test.
13930
13931 2011-01-31  Simon Josefsson  <simon@josefsson.org>
13932
13933         doc: off_t is not available in eglibc 2.11.2 stdio.h.
13934         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
13935         declared by eglibc 2.11.2.
13936         * lib/stdio.in.h: Likewise.
13937
13938 2011-01-31  Eric Blake  <eblake@redhat.com>
13939
13940         ignore-value: add missing test dependency
13941         * tests/test-ignore-value.c: Revert previous change; stdio.h
13942         provides off_t.
13943         * modules/ignore-value-tests (Depends-on): Add missing dependency.
13944
13945 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13946
13947         mktime: clarify long_int width checking
13948         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
13949         the top level, to make it clearer that the assumption about
13950         long_int width is being checked.  See
13951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
13952
13953 2011-01-30  Simon Josefsson  <simon@josefsson.org>
13954
13955         ignore-value: Fix self-test.
13956         * tests/test-ignore-value.c: Include sys/types.h for off_t.
13957
13958 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13959
13960         TYPE_MAXIMUM: avoid theoretically undefined behavior
13961         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
13962         negative number, which the C Standard says has undefined behavior.
13963         In practice this is not a problem, but might as well do it by the book.
13964         Reported by Rich Felker and Eric Blake; see
13965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
13966         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
13967         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13968         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13969         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
13970         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13971         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
13972
13973         mktime: #undef mktime before #defining it
13974         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
13975
13976         mktime: systematically normalize tm_isdst comparisons
13977         * lib/mktime.c (isdst_differ): New function.
13978         (__mktime_internal): Use it systematically for all isdst comparisons.
13979         This completes the fix for libc BZ #6723, and removes the need for
13980         normalizing tm_isdst.  See
13981         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
13982         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
13983
13984         mktime: fix some integer overflow issues and sidestep the rest
13985
13986         This was prompted by a bug report by Benjamin Lindner for MinGW
13987         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
13988         His bug is due to signed integer overflow (0 - INT_MIN), and I
13989         I scanned through mktime.c looking for other integer overflow
13990         problems, fixing all the bugs I found.
13991
13992         Although the C Standard says the resulting code is still not safe
13993         in the presence of integer overflow, in practice it should be good
13994         enough for all real-world two's-complement implementations, except
13995         for debugging environments that deliberately trap on integer
13996         overflow (e.g., gcc -ftrapv).
13997
13998         * lib/mktime.c (WRAPV): New macro.
13999         (SHR): Also check that long_int and time_t shift right in the
14000         usual way, before using the fast-but-unportable method.
14001         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14002         used.  The code already assumed two's complement, so there's
14003         no need to test for alternatives.  All uses removed.
14004         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14005         the C standard.  Problem reported by Rich Felker in
14006         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14007         (twos_complement_arithmetic): Also check long_int and time_t.
14008         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14009         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14010         (__mktime_internal): Avoid integer overflow with unary subtraction
14011         in two instances where -1 - X is an adequate replacement for -X,
14012         since the calculations are approximate.
14013
14014 2011-01-29  Eric Blake  <eblake@redhat.com>
14015
14016         mktime: avoid infinite loop
14017         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14018         type; behavior is still undefined but portable to all known targets.
14019         Reported by Rich Felker.
14020
14021 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14022
14023         rename, unlink, same-inode: Relicense.
14024         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14025         * modules/unlink (License): Likewise.
14026         * modules/same-inode (License): Likewise.
14027
14028 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14029
14030         mktime: avoid problems on NetBSD 5 / i386
14031         * lib/mktime.c (long_int): New type.  This works around a problem
14032         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14033         but time_t is 64 bits, and where I expect the existing code is
14034         wrong in some cases.
14035         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14036         (ydhms_diff): Bring back the compile-time check for wide-enough
14037         year and yday.
14038
14039         mktime: fix misspelling in comment
14040         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14041         This merges all recent glibc changes of importance.
14042
14043 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14044
14045         move-if-change: cope with concurrent mv of identical file.
14046         * build-aux/move-if-change (CMPPROG): Accept environment
14047         variable as an override for `cmp'.
14048         (usage): Document CMPPROG.
14049         Adjust comparison to drop stdout.  Cope with failure of mv if
14050         the target file exists and is identical to the source, for
14051         parallel builds.
14052         Report from H.J. Lu against binutils in PR binutils/12283.
14053
14054 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14055
14056         * users.txt: Mention sharutils.
14057
14058 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14059
14060         * users.txt: Mention OATH Toolkit.
14061
14062 2011-01-27  Bruno Haible  <bruno@clisp.org>
14063
14064         Prepare for supporting FreeBSD 10.
14065         * build-aux/config.libpath: Remove handling of freebsd1*.
14066
14067 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14068
14069         Prepare for supporting FreeBSD 10.
14070         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14071         match FreeBSD 10.0.
14072
14073 2011-01-27  Bruno Haible  <bruno@clisp.org>
14074
14075         vma-iter, get-rusage-as: Add OpenBSD support.
14076         * modules/vma-iter (configure.ac): Test for mquery.
14077         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14078         * lib/vma-iter.c: Include <sys/mman.h>.
14079         (vma_iterate): Add an implementation based on mquery().
14080         * lib/resource-ext.h (get_rusage_as): Update comments.
14081         * lib/get-rusage-as.c: Likewise.
14082         * lib/get-rusage-data.c: Likewise.
14083
14084 2011-01-26  Karl Berry  <karl@gnu.org>
14085
14086         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14087         variables to make it easier to override the makeinfo program used.
14088
14089 2011-01-26  Eric Blake  <eblake@redhat.com>
14090
14091         fcntl: work around Haiku F_DUPFD bugs
14092         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14093         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14094         cloexec bit on duplication.
14095         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14096
14097 2011-01-26  Bruno Haible  <bruno@clisp.org>
14098
14099         Enable memory leak tests on AIX.
14100         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14101         * tests/test-fprintf-posix3.c (main): Likewise.
14102
14103 2011-01-26  Bruno Haible  <bruno@clisp.org>
14104
14105         Tests for module 'get-rusage-data'.
14106         * modules/get-rusage-data-tests: New file.
14107         * tests/test-get-rusage-data.c: New file.
14108
14109         New module 'get-rusage-data'.
14110         * lib/resource-ext.h (get_rusage_data): New declaration.
14111         * lib/get-rusage-data.c: New file.
14112         * modules/get-rusage-data: New file.
14113
14114 2011-01-25  Bruno Haible  <bruno@clisp.org>
14115
14116         get-rusage-as: Allow for easier testing.
14117         * lib/resource-ext.h (get_rusage_as): Add comment.
14118         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14119         (main): New function for interactive testing.
14120
14121 2011-01-25  Bruno Haible  <bruno@clisp.org>
14122
14123         vma-iter: Treat Haiku like BeOS.
14124         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
14125         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
14126
14127 2011-01-25  Eric Blake  <eblake@redhat.com>
14128
14129         c-stack: fix regression on cygwin when libsigsegv is present
14130         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
14131
14132 2011-01-24  Bruno Haible  <bruno@clisp.org>
14133
14134         vma-iter: Avoid empty intervals.
14135         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
14136         on an empty interval.
14137
14138 2011-01-24  Jim Meyering  <meyering@redhat.com>
14139
14140         u64: remove unnecessary #include
14141         * lib/u64.h: Don't include <stddef.h>.  It was not used.
14142
14143 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14144
14145         Allow the user to avoid the HAVE_RAW_DECL_* macros.
14146         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
14147
14148 2011-01-23  Bruno Haible  <bruno@clisp.org>
14149
14150         New module 'vma-iter'.
14151         * lib/vma-iter.h: New file.
14152         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
14153         * modules/vma-iter: New file.
14154         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
14155         for get_rusage_as_via_iterator.
14156         (vma_iterate_callback): New function.
14157         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
14158         * modules/get-rusage-as (Depends-on): Add vma-iter.
14159
14160 2011-01-23  Bruno Haible  <bruno@clisp.org>
14161
14162         uninorm: Tweak includes.
14163         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
14164         Reported by Jim Meyering.
14165
14166 2011-01-23  Bruno Haible  <bruno@clisp.org>
14167
14168         get-rusage-as: Improve on NetBSD.
14169         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
14170         /proc, like on FreeBSD.
14171
14172 2011-01-23  Jim Meyering  <meyering@redhat.com>
14173
14174         xreadlink.h: remove unnecessary #include
14175         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14176
14177         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14178         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14179
14180 2011-01-23  Bruno Haible  <bruno@clisp.org>
14181
14182         get-rusage-as: Fix bug.
14183         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14184         original limit when aborting the first loop.
14185
14186 2011-01-23  Bruno Haible  <bruno@clisp.org>
14187
14188         wctype: Ensure valid C syntax.
14189         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14190         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14191
14192 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14193
14194         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14195         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14196         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14197         as they are needed only for configure's test case.
14198         This removes two unnecessary symbols from config.h.
14199
14200         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14201         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14202         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14203         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14204         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14205         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
14206         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
14207         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14208         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14209         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14210         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14211         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14212         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14213         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14214         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14215         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14216         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14217         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14218
14219 2011-01-21  Eric Blake  <eblake@redhat.com>
14220
14221         maintainer-makefile: work with older git for submodule check
14222         * top/maint.mk (public-submodule-commit): Rewrite to avoid
14223         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
14224         Reported by Matthias Bolte.
14225
14226         bootstrap: minor portability fixes
14227         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
14228         (usage): Omit leading capital and trailing . on help phrases, per
14229         GNU Coding Standards.
14230         (check_versions, top level): Prefix messages with script name.
14231
14232 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
14233
14234         bootstrap: support --no-git option
14235         * build-aux/bootstrap: Add --no-git option, to be used when
14236         --gnulib-srcdir points to the exact desired checkout.
14237
14238 2011-01-21  Eric Blake  <eblake@redhat.com>
14239
14240         strerror_r-posix: work with glibc 2.13
14241         * lib/strerror_r.c (strerror_r): Fix return type.
14242
14243 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14244             Bruno Haible  <bruno@clisp.org>
14245
14246         uN_strstr: New unit tests.
14247         * modules/unistr/u8-strstr-tests: New file.
14248         * modules/unistr/u16-strstr-tests: New file.
14249         * modules/unistr/u32-strstr-tests: New file.
14250         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
14251         * tests/unistr/test-u8-strstr.c: New file.
14252         * tests/unistr/test-u16-strstr.c: New file.
14253         * tests/unistr/test-u32-strstr.c: New file.
14254
14255 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14256             Bruno Haible  <bruno@clisp.org>
14257
14258         Make uN_strstr functions O(n) worst-case.
14259         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
14260         16-bit and 32-bit unit cases, use the unibyte algorithm from
14261         lib/mbsstr.c.
14262         * lib/unistr/u8-strstr.c: Include <string.h>.
14263         (UNIT_IS_UINT8_T): New macro.
14264         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
14265         (U_STRLEN, U_STRNLEN): New macros.
14266         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
14267         (U_STRLEN, U_STRNLEN): New macros.
14268         * modules/unistr/u8-strstr (Depends-on): Add strstr.
14269         (configure.ac): Update required libunistring version.
14270         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
14271         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
14272         malloca.
14273         (configure.ac): Update required libunistring version.
14274         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
14275         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
14276         malloca.
14277         (configure.ac): Update required libunistring version.
14278
14279 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14280             Bruno Haible  <bruno@clisp.org>
14281
14282         Prepare for faster uN_strstr functions.
14283         * lib/str-kmp.h: Support definable UNITs.
14284         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
14285         needle_len argument.
14286         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
14287         * lib/mbscasestr.c (mbscasestr): Likewise.
14288
14289 2011-01-21  Pádraig Brady <P@draigBrady.com>
14290
14291         malloca-tests: make faster by unsetting MALLOC_PERTURB_
14292         * tests/test-malloca.c (main): Unset the environment variable
14293         to greatly speed up the test.
14294         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
14295         * modules/malloca-tests: Depend on unsetenv.
14296
14297 2011-01-21  Pádraig Brady <P@draigBrady.com>
14298
14299         ignore-value: remove stdint dependency
14300         * lib/ignore-value.h: Remove <stdint.h>
14301         * modules/ignore-value: Remove stdint dependency.
14302
14303 2011-01-21  Jim Meyering  <meyering@redhat.com>
14304
14305         maint.mk: adjust variable name to be consistent with other gl_ vars
14306         * top/maint.mk (gl_public_submodule_commit): Rename the variable
14307         to be lower case.
14308
14309 2011-01-20  Jim Meyering  <meyering@redhat.com>
14310
14311         maint.mk: make "check" depend on public-submodule-commit by default
14312         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
14313
14314 2011-01-20  Bruno Haible  <bruno@clisp.org>
14315
14316         mbfile, mbiter: Complete change from 2008-12-21.
14317         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
14318         * m4/mbiter.m4 (gl_MBITER): Likewise.
14319
14320 2011-01-20  Jim Meyering  <meyering@redhat.com>
14321
14322         init.sh: insert space between each function name and "()"
14323         * tests/init.sh: Make it a little easier to see that a function's
14324         name is "warn_", and not "warn" when looking at the first part of
14325         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
14326
14327 2011-01-20  Jim Meyering  <meyering@redhat.com>
14328
14329         mountlist: clean up code formatting
14330         * lib/mountlist.c (read_file_system_list): Split a long line,
14331         correct bracing style, use NULL in place of "(struct statfs *)0",
14332         don't parenthesize return value, add spaces around "=" and after
14333         ";-in-for-stmt".
14334
14335 2011-01-14  Markus Duft <mduft@gentoo.org>
14336
14337         mountlist: add support for Interix
14338         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
14339         Apply statvfs to all entries of /dev/fs.
14340         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
14341         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
14342
14343 2011-01-20  Jim Meyering  <meyering@redhat.com>
14344
14345         maint.mk: improve the public-submodule-commit rule
14346         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
14347         to suppress printing of its commands... unless V=1.
14348         Add git submodule's --quiet option to suppress printing of e.g.,
14349         "Entering gnulib" output.
14350         "cd" into $(srcdir) before running git submodule.
14351
14352 2011-01-20  Bruno Haible  <bruno@clisp.org>
14353
14354         include_next: Fix bug introduced on 2011-01-18.
14355         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
14356         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
14357         ac_cv_header_... variable if the second argument is not 'check'.
14358         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
14359         gl_NEXT_HEADERS_INTERNAL.
14360
14361 2011-01-20  Bruno Haible  <bruno@clisp.org>
14362
14363         Allow the user to avoid the GNULIB_TEST_* macros.
14364         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
14365         Suggested by Paul Eggert.
14366
14367 2011-01-14  Jim Meyering  <meyering@redhat.com>
14368
14369         bootstrap: avoid failure when there is no .gitmodules file
14370         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
14371         has been assigned to, even when its value is the empty string.
14372         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
14373         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
14374         Reported by John W. Eaton <jwe@gnu.org>.
14375
14376 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14377
14378         assume <ctype.h>, ..., <time.h> exist
14379         For years gnulib has been assuming the existence of the headers
14380         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
14381         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
14382         them, since they don't appear to be needed.
14383         * README (Portability guidelines): Document this.
14384         * lib/flock.c: Assume <fcntl.h> exists.
14385         * lib/regex_internal.h: Assume <locale.h> exists.
14386         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
14387         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
14388         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
14389         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
14390         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
14391         * m4/regex.m4 (gl_REGEX): Likewise.
14392         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
14393         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
14394         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
14395         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
14396         * tests/test-argp.c: Likewise.
14397         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
14398
14399         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
14400         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
14401         AA_APPLE_UNIVERSAL_BUILD.  See
14402         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
14403         * NEWS: Document this.
14404
14405 2011-01-19  Eric Blake  <eblake@redhat.com>
14406
14407         c-stack: assume stack overflow if SA_SIGINFO unsupported
14408         * lib/c-stack.c (SIGACTION_WORKS): Rename...
14409         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
14410         sigaction will work.
14411         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
14412         behavior match Linux.
14413         * tests/test-c-stack.c (main): Prefer NULL for pointers.
14414
14415         stdbool-tests: accomodate Haiku
14416         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
14417
14418         binary-io: fix O_TEXT on Haiku
14419         * modules/binary-io (Depends-on): Add fcntl-h.
14420         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
14421         than blindly undefining O_TEXT.
14422         Reported by Scott McCreary.
14423
14424 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14425
14426         include_next: do not check for standard headers like stddef.h
14427
14428         I found this problem when modifying Emacs to use gnulib.
14429         I noticed that it added HAVE_STDDEF_H to config.h, even though
14430         gnulib always assumes <stddef.h> exists as per README and this
14431         symbol is unnecessary.
14432         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
14433         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
14434         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
14435         faster for headers like stddef.h that are known to exist.
14436         (gl_CHECK_NEXT_HEADERS): Use it.
14437         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
14438         rather than gl_CHECK_NEXT_HEADERS.
14439         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
14440         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
14441
14442 2011-01-18  Eric Blake  <eblake@redhat.com>
14443
14444         ansi-c++-opt: skip C++ dependency style if C++ is unused
14445         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
14446         tests when we know C++ compilation is not desired.
14447         Reported by Scott McCreary.
14448
14449 2011-01-18  Bruno Haible  <bruno@clisp.org>
14450
14451         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
14452         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
14453         (main): Perform test also when getrlimit and setrlimit don't exist or
14454         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
14455         limiting the address space size using setrlimit, compare the address
14456         space size before and after the the test.
14457         * tests/test-dprintf-posix2.c: Likewise.
14458         * tests/test-fprintf-posix3.sh: Update skip messages.
14459         * tests/test-dprintf-posix2.sh: Likewise.
14460         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
14461         * modules/dprintf-posix-tests (Depends-on): Likewise.
14462         Reported by Bruce Korb <bkorb@gnu.org> and
14463         Gary V. Vaughan <gary@gnu.org>.
14464
14465 2011-01-18  Bruno Haible  <bruno@clisp.org>
14466
14467         get-rusage-as: Improvement for Cygwin.
14468         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
14469         areas that are merely reserved.
14470
14471 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14472
14473         strftime: remove dependencies on multibyte modules
14474
14475         strftime depended on mbrlen, mbsinit, and wchar, but these modules
14476         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
14477         only if __osf__ is defined, and I suspect OSF doesn't need these
14478         other modules.  If my guess is wrong, we'll need to come up with a
14479         variant of strftime that doesn't need the multibyte modules.
14480
14481         I discovered this problem when attempting modify Emacs to use the
14482         strftime module.  With the previous gnulib, this caused Emacs to
14483         need 31 new files, ranging from lib/config.charset to
14484         m4/wint_t.m4.  This was overkill and I expect would be offputting
14485         to the Emacs maintainers.  After this change, only 6 new files are
14486         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
14487         stdbool.m4, and tm_gmtoff.m4.
14488
14489         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
14490         Suggested by Bruno Haible in
14491         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
14492         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
14493         and do not check for wchar.h.
14494         * modules/strftime (Files): Remove m4/mbstate_t.m4.
14495         (Depends-on): Remove mbrlen, mbsinit, wchar.
14496
14497 2011-01-18  Bruno Haible  <bruno@clisp.org>
14498
14499         Tests for module 'get-rusage-as'.
14500         * modules/get-rusage-as-tests: New file.
14501         * tests/test-get-rusage-as.c: New file.
14502
14503         New module 'get-rusage-as'.
14504         * modules/get-rusage-as: New file.
14505         * lib/resource-ext.h: New file.
14506         * lib/get-rusage-as.c: New file.
14507
14508 2011-01-17  Eric Blake  <eblake@redhat.com>
14509
14510         sigaction: relax license from LGPLv3+ to LGPLv2+
14511         * modules/sigaction (License): Relax to LGPLv2+.
14512
14513 2011-01-14  Bruno Haible  <bruno@clisp.org>
14514
14515         filemode: Make function declarations usable in C++ mode.
14516         * lib/filemode.h: Enclose function declarations in extern "C" block.
14517         Reported by John W. Eaton <jwe@gnu.org>.
14518
14519 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
14520
14521         save-cwd: no longer include "xgetcwd.h"
14522         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
14523         This avoids a compilation failure in projects that use save-cwd
14524         without also using the xgetcwd module.
14525
14526 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14527
14528         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
14529         This is so that a program like Emacs, which needs only dtoastr,
14530         does not have to bother with distributing and compiling ftoastr
14531         and ldtoastr.
14532         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
14533         * modules/dtoastr, modules/ldtoastr: New files.
14534         * modules/ftoastr: Now works just for 'float'.
14535         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
14536         (Makefile.am): Remove ftoastr.h (not needed and no effect),
14537         dtoastr.c, ldtoastr.c.
14538
14539 2011-01-11  Jim Meyering  <meyering@redhat.com>
14540
14541         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
14542         There is no need to work around the lack of the fchdir function,
14543         since gnulib can now provide a replacement when required.
14544         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
14545         * modules/save-cwd (Depends-on): Add fchdir.
14546
14547 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14548
14549         openat, save-cwd: avoid xmalloc
14550
14551         This removes a direct (but undocumented) dependency of openat on
14552         xalloc, along with an indirect dependency via save-cwd.  It also
14553         removes a dependency of save-cwd on xgetcwd, and thereby
14554         indirectly on xalloc.  This change causes the openat substitute
14555         to fall back on save_cwd when memory is tight, and for save_cwd to
14556         fail instead of dying when memory is tight, but that's good enough.
14557         Problem and initial idea for fix reported by Bastien Roucaries in
14558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
14559
14560         * lib/openat-proc.c: Include stdlib.h (for malloc), not
14561         xalloc.h (for xmalloc).
14562         (openat_proc_name): Use malloc, not xmalloc.
14563         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
14564         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
14565
14566         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
14567         This avoids heap allocation for file names whose lengths are in
14568         the range 512..1023, with the upper bound increasing to at most
14569         4031 depending on the platform's PATH_MAX.  (We do not want
14570         pathmax.h here as it might supply a non-constant PATH_MAX.)
14571         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
14572         Perhaps they should be moved to malloca.h?
14573         (OPENAT_BUFFER_SIZE): Use them.
14574
14575 2011-01-10  Bruno Haible  <bruno@clisp.org>
14576
14577         doc: Update users.txt.
14578         * users.txt: Add recutils.
14579
14580 2011-01-09  Karl Berry  <karl@gnu.org>
14581
14582         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
14583
14584         * doc/configmake.texi: New file.
14585         * doc/gnulib.texi: Include it.
14586         * modules/configmake: Move documentation from here.
14587
14588 2011-01-09  Bruno Haible  <bruno@clisp.org>
14589
14590         Update to Unicode 6.0.0.
14591         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
14592         (get_lbp): Update for Unicode 6.0.0.
14593         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
14594         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
14595         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
14596         U+11001, U+11038..U+11046. Remove U+06DE.
14597         (uc_width): Fix bounds of planes.
14598         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14599         lib/uniwidth/width.c.
14600         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
14601         trailing whitespace removed.
14602         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
14603         without comments, but with the original copyright notice.
14604         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
14605         * lib/unicase/ignorable.h: Likewise.
14606         * lib/unicase/tocasefold.h: Likewise.
14607         * lib/unicase/tolower.h: Likewise.
14608         * lib/unicase/totitle.h: Likewise.
14609         * lib/unicase/toupper.h: Likewise.
14610         * lib/unictype/bidi_of.h: Likewise.
14611         * lib/unictype/blocks.h: Likewise.
14612         * lib/unictype/categ_C.h: Likewise.
14613         * lib/unictype/categ_Cn.h: Likewise.
14614         * lib/unictype/categ_L.h: Likewise.
14615         * lib/unictype/categ_Ll.h: Likewise.
14616         * lib/unictype/categ_Lm.h: Likewise.
14617         * lib/unictype/categ_Lo.h: Likewise.
14618         * lib/unictype/categ_Lu.h: Likewise.
14619         * lib/unictype/categ_M.h: Likewise.
14620         * lib/unictype/categ_Mc.h: Likewise.
14621         * lib/unictype/categ_Me.h: Likewise.
14622         * lib/unictype/categ_Mn.h: Likewise.
14623         * lib/unictype/categ_N.h: Likewise.
14624         * lib/unictype/categ_Nd.h: Likewise.
14625         * lib/unictype/categ_No.h: Likewise.
14626         * lib/unictype/categ_P.h: Likewise.
14627         * lib/unictype/categ_Po.h: Likewise.
14628         * lib/unictype/categ_S.h: Likewise.
14629         * lib/unictype/categ_Sc.h: Likewise.
14630         * lib/unictype/categ_Sk.h: Likewise.
14631         * lib/unictype/categ_Sm.h: Likewise.
14632         * lib/unictype/categ_So.h: Likewise.
14633         * lib/unictype/categ_of.h: Likewise.
14634         * lib/unictype/combining.h: Likewise.
14635         * lib/unictype/ctype_alnum.h: Likewise.
14636         * lib/unictype/ctype_alpha.h: Likewise.
14637         * lib/unictype/ctype_graph.h: Likewise.
14638         * lib/unictype/ctype_lower.h: Likewise.
14639         * lib/unictype/ctype_print.h: Likewise.
14640         * lib/unictype/ctype_punct.h: Likewise.
14641         * lib/unictype/ctype_upper.h: Likewise.
14642         * lib/unictype/decdigit.h: Likewise.
14643         * lib/unictype/digit.h: Likewise.
14644         * lib/unictype/numeric.h: Likewise.
14645         * lib/unictype/pr_alphabetic.h: Likewise.
14646         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14647         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14648         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14649         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14650         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14651         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14652         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14653         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14654         * lib/unictype/pr_case_ignorable.h: Likewise.
14655         * lib/unictype/pr_cased.h: Likewise.
14656         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
14657         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
14658         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
14659         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
14660         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
14661         * lib/unictype/pr_combining.h: Likewise.
14662         * lib/unictype/pr_composite.h: Likewise.
14663         * lib/unictype/pr_currency_symbol.h: Likewise.
14664         * lib/unictype/pr_decimal_digit.h: Likewise.
14665         * lib/unictype/pr_deprecated.h: Likewise.
14666         * lib/unictype/pr_format_control.h: Likewise.
14667         * lib/unictype/pr_grapheme_base.h: Likewise.
14668         * lib/unictype/pr_grapheme_extend.h: Likewise.
14669         * lib/unictype/pr_grapheme_link.h: Likewise.
14670         * lib/unictype/pr_id_continue.h: Likewise.
14671         * lib/unictype/pr_id_start.h: Likewise.
14672         * lib/unictype/pr_ideographic.h: Likewise.
14673         * lib/unictype/pr_lowercase.h: Likewise.
14674         * lib/unictype/pr_math.h: Likewise.
14675         * lib/unictype/pr_numeric.h: Likewise.
14676         * lib/unictype/pr_other_alphabetic.h: Likewise.
14677         * lib/unictype/pr_other_id_continue.h: Likewise.
14678         * lib/unictype/pr_other_math.h: Likewise.
14679         * lib/unictype/pr_punctuation.h: Likewise.
14680         * lib/unictype/pr_sentence_terminal.h: Likewise.
14681         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14682         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14683         * lib/unictype/pr_unified_ideograph.h: Likewise.
14684         * lib/unictype/pr_uppercase.h: Likewise.
14685         * lib/unictype/pr_xid_continue.h: Likewise.
14686         * lib/unictype/pr_xid_start.h: Likewise.
14687         * lib/unictype/scripts.h: Likewise.
14688         * lib/unictype/scripts_byname.gperf: Likewise.
14689         * lib/unictype/sy_java_ident.h: Likewise.
14690         * lib/unigbrk/gbrkprop.h: Likewise.
14691         * lib/unilbrk/lbrkprop1.h: Likewise.
14692         * lib/unilbrk/lbrkprop2.h: Likewise.
14693         * lib/uninorm/decomposition-table2.h: Likewise.
14694         * lib/uniwbrk/wbrkprop.h: Likewise.
14695         * tests/unicase/test-cased.c: Likewise.
14696         * tests/unicase/test-ignorable.c: Likewise.
14697         * tests/unicase/test-uc_tolower.c: Likewise.
14698         * tests/unicase/test-uc_totitle.c: Likewise.
14699         * tests/unicase/test-uc_toupper.c: Likewise.
14700         * tests/unictype/test-categ_C.c: Likewise.
14701         * tests/unictype/test-categ_Cn.c: Likewise.
14702         * tests/unictype/test-categ_L.c: Likewise.
14703         * tests/unictype/test-categ_Ll.c: Likewise.
14704         * tests/unictype/test-categ_Lm.c: Likewise.
14705         * tests/unictype/test-categ_Lo.c: Likewise.
14706         * tests/unictype/test-categ_Lu.c: Likewise.
14707         * tests/unictype/test-categ_M.c: Likewise.
14708         * tests/unictype/test-categ_Mc.c: Likewise.
14709         * tests/unictype/test-categ_Me.c: Likewise.
14710         * tests/unictype/test-categ_Mn.c: Likewise.
14711         * tests/unictype/test-categ_N.c: Likewise.
14712         * tests/unictype/test-categ_Nd.c: Likewise.
14713         * tests/unictype/test-categ_No.c: Likewise.
14714         * tests/unictype/test-categ_P.c: Likewise.
14715         * tests/unictype/test-categ_Po.c: Likewise.
14716         * tests/unictype/test-categ_S.c: Likewise.
14717         * tests/unictype/test-categ_Sc.c: Likewise.
14718         * tests/unictype/test-categ_Sk.c: Likewise.
14719         * tests/unictype/test-categ_Sm.c: Likewise.
14720         * tests/unictype/test-categ_So.c: Likewise.
14721         * tests/unictype/test-ctype_alnum.c: Likewise.
14722         * tests/unictype/test-ctype_alpha.c: Likewise.
14723         * tests/unictype/test-ctype_graph.c: Likewise.
14724         * tests/unictype/test-ctype_lower.c: Likewise.
14725         * tests/unictype/test-ctype_print.c: Likewise.
14726         * tests/unictype/test-ctype_punct.c: Likewise.
14727         * tests/unictype/test-ctype_upper.c: Likewise.
14728         * tests/unictype/test-decdigit.h: Likewise.
14729         * tests/unictype/test-digit.h: Likewise.
14730         * tests/unictype/test-numeric.h: Likewise.
14731         * tests/unictype/test-pr_alphabetic.c: Likewise.
14732         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14733         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14734         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14735         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14736         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14737         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14738         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14739         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14740         * tests/unictype/test-pr_case_ignorable.c: Likewise.
14741         * tests/unictype/test-pr_cased.c: Likewise.
14742         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
14743         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
14744         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
14745         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
14746         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
14747         * tests/unictype/test-pr_combining.c: Likewise.
14748         * tests/unictype/test-pr_composite.c: Likewise.
14749         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14750         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14751         * tests/unictype/test-pr_deprecated.c: Likewise.
14752         * tests/unictype/test-pr_format_control.c: Likewise.
14753         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14754         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14755         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14756         * tests/unictype/test-pr_id_continue.c: Likewise.
14757         * tests/unictype/test-pr_id_start.c: Likewise.
14758         * tests/unictype/test-pr_ideographic.c: Likewise.
14759         * tests/unictype/test-pr_lowercase.c: Likewise.
14760         * tests/unictype/test-pr_math.c: Likewise.
14761         * tests/unictype/test-pr_numeric.c: Likewise.
14762         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14763         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14764         * tests/unictype/test-pr_other_math.c: Likewise.
14765         * tests/unictype/test-pr_punctuation.c: Likewise.
14766         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14767         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14768         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14769         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14770         * tests/unictype/test-pr_uppercase.c: Likewise.
14771         * tests/unictype/test-pr_xid_continue.c: Likewise.
14772         * tests/unictype/test-pr_xid_start.c: Likewise.
14773         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14774         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14775         changes.
14776         * lib/unictype/categ_Cc.h: Likewise.
14777         * lib/unictype/categ_Cf.h: Likewise.
14778         * lib/unictype/categ_Co.h: Likewise.
14779         * lib/unictype/categ_Cs.h: Likewise.
14780         * lib/unictype/categ_Lt.h: Likewise.
14781         * lib/unictype/categ_Nl.h: Likewise.
14782         * lib/unictype/categ_Pc.h: Likewise.
14783         * lib/unictype/categ_Pd.h: Likewise.
14784         * lib/unictype/categ_Pe.h: Likewise.
14785         * lib/unictype/categ_Pf.h: Likewise.
14786         * lib/unictype/categ_Pi.h: Likewise.
14787         * lib/unictype/categ_Ps.h: Likewise.
14788         * lib/unictype/categ_Z.h: Likewise.
14789         * lib/unictype/categ_Zl.h: Likewise.
14790         * lib/unictype/categ_Zp.h: Likewise.
14791         * lib/unictype/categ_Zs.h: Likewise.
14792         * lib/unictype/ctype_blank.h: Likewise.
14793         * lib/unictype/ctype_cntrl.h: Likewise.
14794         * lib/unictype/ctype_digit.h: Likewise.
14795         * lib/unictype/ctype_space.h: Likewise.
14796         * lib/unictype/ctype_xdigit.h: Likewise.
14797         * lib/unictype/mirror.h: Likewise.
14798         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14799         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14800         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14801         * lib/unictype/pr_bidi_control.h: Likewise.
14802         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14803         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14804         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14805         * lib/unictype/pr_bidi_pdf.h: Likewise.
14806         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14807         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14808         * lib/unictype/pr_dash.h: Likewise.
14809         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14810         * lib/unictype/pr_diacritic.h: Likewise.
14811         * lib/unictype/pr_extender.h: Likewise.
14812         * lib/unictype/pr_hex_digit.h: Likewise.
14813         * lib/unictype/pr_hyphen.h: Likewise.
14814         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14815         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14816         * lib/unictype/pr_ignorable_control.h: Likewise.
14817         * lib/unictype/pr_iso_control.h: Likewise.
14818         * lib/unictype/pr_join_control.h: Likewise.
14819         * lib/unictype/pr_left_of_pair.h: Likewise.
14820         * lib/unictype/pr_line_separator.h: Likewise.
14821         * lib/unictype/pr_logical_order_exception.h: Likewise.
14822         * lib/unictype/pr_non_break.h: Likewise.
14823         * lib/unictype/pr_not_a_character.h: Likewise.
14824         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14825         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14826         * lib/unictype/pr_other_id_start.h: Likewise.
14827         * lib/unictype/pr_other_lowercase.h: Likewise.
14828         * lib/unictype/pr_other_uppercase.h: Likewise.
14829         * lib/unictype/pr_paired_punctuation.h: Likewise.
14830         * lib/unictype/pr_paragraph_separator.h: Likewise.
14831         * lib/unictype/pr_pattern_syntax.h: Likewise.
14832         * lib/unictype/pr_pattern_white_space.h: Likewise.
14833         * lib/unictype/pr_private_use.h: Likewise.
14834         * lib/unictype/pr_quotation_mark.h: Likewise.
14835         * lib/unictype/pr_radical.h: Likewise.
14836         * lib/unictype/pr_soft_dotted.h: Likewise.
14837         * lib/unictype/pr_space.h: Likewise.
14838         * lib/unictype/pr_titlecase.h: Likewise.
14839         * lib/unictype/pr_variation_selector.h: Likewise.
14840         * lib/unictype/pr_white_space.h: Likewise.
14841         * lib/unictype/pr_zero_width.h: Likewise.
14842         * lib/unictype/sy_c_ident.h: Likewise.
14843         * lib/unictype/sy_c_whitespace.h: Likewise.
14844         * lib/unictype/sy_java_whitespace.h: Likewise.
14845         * lib/uninorm/composition-table.gperf: Likewise.
14846         * lib/uninorm/decomposition-table1.h: Likewise.
14847         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
14848         LB8.
14849         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14850         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14851         * modules/unictype/*: Bump version number of expected libunistring
14852         version.
14853
14854 2011-01-09  Bruno Haible  <bruno@clisp.org>
14855
14856         Update to Unicode 5.2.0.
14857         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
14858         trailing whitespace removed.
14859
14860 2011-01-09  Bruno Haible  <bruno@clisp.org>
14861
14862         New Unicode character properties, from Unicode 5.2.0.
14863         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
14864         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
14865         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
14866         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
14867         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
14868         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
14869         uc_is_property_cased, uc_is_property_case_ignorable,
14870         uc_is_property_changes_when_lowercased,
14871         uc_is_property_changes_when_uppercased,
14872         uc_is_property_changes_when_titlecased,
14873         uc_is_property_changes_when_casefolded,
14874         uc_is_property_changes_when_casemapped): New declarations.
14875         * lib/unictype/pr_byname.gperf: Add the new properties.
14876         * modules/unictype/property-byname (Depends-on): Depend on the new
14877         properties modules.
14878         * modules/unictype/property-all (Depends-on): Likewise.
14879         * MODULES.html.sh (Unicode string functions): Add
14880         unictype/property-case-ignorable, unictype/property-cased,
14881         unictype/property-changes-when-casefolded,
14882         unictype/property-changes-when-casemapped,
14883         unictype/property-changes-when-lowercased,
14884         unictype/property-changes-when-titlecased,
14885         unictype/property-changes-when-uppercased.
14886
14887         New module 'unictype/property-changes-when-casemapped'.
14888         * modules/unictype/property-changes-when-casemapped: New file.
14889         * lib/unictype/pr_changes_when_casemapped.c: New file.
14890         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
14891         generated by gen-uni-tables.
14892         * modules/unictype/property-changes-when-casemapped-tests: New file.
14893         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
14894         automatically generated by gen-uni-tables.
14895
14896         New module 'unictype/property-changes-when-casefolded'.
14897         * modules/unictype/property-changes-when-casefolded: New file.
14898         * lib/unictype/pr_changes_when_casefolded.c: New file.
14899         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
14900         generated by gen-uni-tables.
14901         * modules/unictype/property-changes-when-casefolded-tests: New file.
14902         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
14903         automatically generated by gen-uni-tables.
14904
14905         New module 'unictype/property-changes-when-titlecased'.
14906         * modules/unictype/property-changes-when-titlecased: New file.
14907         * lib/unictype/pr_changes_when_titlecased.c: New file.
14908         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
14909         generated by gen-uni-tables.
14910         * modules/unictype/property-changes-when-titlecased-tests: New file.
14911         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
14912         automatically generated by gen-uni-tables.
14913
14914         New module 'unictype/property-changes-when-uppercased'.
14915         * modules/unictype/property-changes-when-uppercased: New file.
14916         * lib/unictype/pr_changes_when_uppercased.c: New file.
14917         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
14918         generated by gen-uni-tables.
14919         * modules/unictype/property-changes-when-uppercased-tests: New file.
14920         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
14921         automatically generated by gen-uni-tables.
14922
14923         New module 'unictype/property-changes-when-lowercased'.
14924         * modules/unictype/property-changes-when-lowercased: New file.
14925         * lib/unictype/pr_changes_when_lowercased.c: New file.
14926         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
14927         generated by gen-uni-tables.
14928         * modules/unictype/property-changes-when-lowercased-tests: New file.
14929         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
14930         automatically generated by gen-uni-tables.
14931
14932         New module 'unictype/property-case-ignorable'.
14933         * modules/unictype/property-case-ignorable: New file.
14934         * lib/unictype/pr_case_ignorable.c: New file.
14935         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
14936         by gen-uni-tables.
14937         * modules/unictype/property-case-ignorable-tests: New file.
14938         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
14939         generated by gen-uni-tables.
14940
14941         New module 'unictype/property-cased'.
14942         * modules/unictype/property-cased: New file.
14943         * lib/unictype/pr_cased.c: New file.
14944         * lib/unictype/pr_cased.h: New file, automatically generated by
14945         gen-uni-tables.
14946         * modules/unictype/property-cased-tests: New file.
14947         * tests/unictype/test-pr_cased.c: New file, automatically generated by
14948         gen-uni-tables.
14949
14950 2011-01-09  Bruno Haible  <bruno@clisp.org>
14951
14952         Update to Unicode 5.2.0.
14953         * lib/gen-uni-tables.c (output_predicate, output_category,
14954         output_combclass, output_bidi_category, output_decimal_digit_test,
14955         output_decimal_digit, output_digit_test, output_digit,
14956         output_numeric_test, output_numeric, output_mirror, output_scripts,
14957         output_scripts_byname, output_blocks, output_ident_category): Fix
14958         comment header.
14959         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
14960         get_wbp.
14961         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
14962         items.
14963         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
14964         Changes_When_Lowercased, Changes_When_Uppercased,
14965         Changes_When_Titlecased, Changes_When_Casefolded,
14966         Changes_When_Casemapped.
14967         (is_property_alphabetic, is_property_default_ignorable_code_point):
14968         Update for Unicode 5.2.0.
14969         (is_property_cased, is_property_case_ignorable,
14970         is_property_changes_when_lowercased,
14971         is_property_changes_when_uppercased,
14972         is_property_changes_when_titlecased,
14973         is_property_changes_when_casefolded,
14974         is_property_changes_when_casemapped): New functions.
14975         (output_properties): Output also the properties cased, case_ignorable,
14976         changes_when_lowercased, changes_when_uppercased,
14977         changes_when_titlecased, changes_when_casefolded,
14978         changes_when_casemapped.
14979         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
14980         Unicode TR#11 revision 17 -> 19.
14981         (LBP_CP): New enumeration value.
14982         (LBP_*): Adjust values accordingly.
14983         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14984         TR#14 revision 22 -> 24.
14985         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
14986         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
14987         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14988         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
14989         is_WBP_MIDLETTER.
14990         (output_composition_tables): Allow for 24 bits instead of 16 bits in
14991         the code1 and code2 of each composition rule.
14992         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
14993         * lib/unicase/ignorable.h: Likewise.
14994         * lib/unicase/tocasefold.h: Likewise.
14995         * lib/unicase/tolower.h: Likewise.
14996         * lib/unicase/totitle.h: Likewise.
14997         * lib/unicase/toupper.h: Likewise.
14998         * lib/unictype/bidi_of.h: Likewise.
14999         * lib/unictype/blocks.h: Likewise.
15000         * lib/unictype/categ_C.h: Likewise.
15001         * lib/unictype/categ_Cf.h: Likewise.
15002         * lib/unictype/categ_Cn.h: Likewise.
15003         * lib/unictype/categ_L.h: Likewise.
15004         * lib/unictype/categ_Ll.h: Likewise.
15005         * lib/unictype/categ_Lm.h: Likewise.
15006         * lib/unictype/categ_Lo.h: Likewise.
15007         * lib/unictype/categ_Lu.h: Likewise.
15008         * lib/unictype/categ_M.h: Likewise.
15009         * lib/unictype/categ_Mc.h: Likewise.
15010         * lib/unictype/categ_Mn.h: Likewise.
15011         * lib/unictype/categ_N.h: Likewise.
15012         * lib/unictype/categ_Nd.h: Likewise.
15013         * lib/unictype/categ_Nl.h: Likewise.
15014         * lib/unictype/categ_No.h: Likewise.
15015         * lib/unictype/categ_P.h: Likewise.
15016         * lib/unictype/categ_Pd.h: Likewise.
15017         * lib/unictype/categ_Po.h: Likewise.
15018         * lib/unictype/categ_S.h: Likewise.
15019         * lib/unictype/categ_Sc.h: Likewise.
15020         * lib/unictype/categ_So.h: Likewise.
15021         * lib/unictype/categ_of.h: Likewise.
15022         * lib/unictype/combining.h: Likewise.
15023         * lib/unictype/ctype_alnum.h: Likewise.
15024         * lib/unictype/ctype_alpha.h: Likewise.
15025         * lib/unictype/ctype_graph.h: Likewise.
15026         * lib/unictype/ctype_lower.h: Likewise.
15027         * lib/unictype/ctype_print.h: Likewise.
15028         * lib/unictype/ctype_punct.h: Likewise.
15029         * lib/unictype/ctype_upper.h: Likewise.
15030         * lib/unictype/decdigit.h: Likewise.
15031         * lib/unictype/digit.h: Likewise.
15032         * lib/unictype/numeric.h: Likewise.
15033         * lib/unictype/pr_alphabetic.h: Likewise.
15034         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15035         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15036         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15037         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15038         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15039         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15040         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15041         * lib/unictype/pr_combining.h: Likewise.
15042         * lib/unictype/pr_composite.h: Likewise.
15043         * lib/unictype/pr_currency_symbol.h: Likewise.
15044         * lib/unictype/pr_dash.h: Likewise.
15045         * lib/unictype/pr_decimal_digit.h: Likewise.
15046         * lib/unictype/pr_deprecated.h: Likewise.
15047         * lib/unictype/pr_diacritic.h: Likewise.
15048         * lib/unictype/pr_extender.h: Likewise.
15049         * lib/unictype/pr_grapheme_base.h: Likewise.
15050         * lib/unictype/pr_grapheme_extend.h: Likewise.
15051         * lib/unictype/pr_grapheme_link.h: Likewise.
15052         * lib/unictype/pr_id_continue.h: Likewise.
15053         * lib/unictype/pr_id_start.h: Likewise.
15054         * lib/unictype/pr_ideographic.h: Likewise.
15055         * lib/unictype/pr_ignorable_control.h: Likewise.
15056         * lib/unictype/pr_logical_order_exception.h: Likewise.
15057         * lib/unictype/pr_lowercase.h: Likewise.
15058         * lib/unictype/pr_numeric.h: Likewise.
15059         * lib/unictype/pr_other_alphabetic.h: Likewise.
15060         * lib/unictype/pr_punctuation.h: Likewise.
15061         * lib/unictype/pr_sentence_terminal.h: Likewise.
15062         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15063         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15064         * lib/unictype/pr_unified_ideograph.h: Likewise.
15065         * lib/unictype/pr_uppercase.h: Likewise.
15066         * lib/unictype/pr_xid_continue.h: Likewise.
15067         * lib/unictype/pr_xid_start.h: Likewise.
15068         * lib/unictype/pr_zero_width.h: Likewise.
15069         * lib/unictype/scripts.h: Likewise.
15070         * lib/unictype/scripts_byname.gperf: Likewise.
15071         * lib/unictype/sy_java_ident.h: Likewise.
15072         * lib/unigbrk/gbrkprop.h: Likewise.
15073         * lib/unilbrk/lbrkprop1.h: Likewise.
15074         * lib/unilbrk/lbrkprop2.h: Likewise.
15075         * lib/unilbrk/lbrktables.h: Likewise.
15076         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15077         LBP_CP. Implement rule LB30.
15078         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15079         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15080         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15081         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15082         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15083         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15084         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15085         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15086         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15087         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15088         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15089         bits instead of 16 bits in the code1 and code2 of each composition
15090         rule.
15091         (uc_composition): Update for Unicode 5.2.0.
15092         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15093         * lib/uninorm/decomposition-table2.h: Likewise.
15094         * lib/uniwbrk/wbrkprop.h: Likewise.
15095         * tests/unicase/test-cased.c: Likewise.
15096         * tests/unicase/test-ignorable.c: Likewise.
15097         * tests/unicase/test-uc_tolower.c: Likewise.
15098         * tests/unicase/test-uc_totitle.c: Likewise.
15099         * tests/unicase/test-uc_toupper.c: Likewise.
15100         * tests/unictype/test-categ_C.c: Likewise.
15101         * tests/unictype/test-categ_Cf.c: Likewise.
15102         * tests/unictype/test-categ_Cn.c: Likewise.
15103         * tests/unictype/test-categ_L.c: Likewise.
15104         * tests/unictype/test-categ_Ll.c: Likewise.
15105         * tests/unictype/test-categ_Lm.c: Likewise.
15106         * tests/unictype/test-categ_Lo.c: Likewise.
15107         * tests/unictype/test-categ_Lu.c: Likewise.
15108         * tests/unictype/test-categ_M.c: Likewise.
15109         * tests/unictype/test-categ_Mc.c: Likewise.
15110         * tests/unictype/test-categ_Mn.c: Likewise.
15111         * tests/unictype/test-categ_N.c: Likewise.
15112         * tests/unictype/test-categ_Nd.c: Likewise.
15113         * tests/unictype/test-categ_Nl.c: Likewise.
15114         * tests/unictype/test-categ_No.c: Likewise.
15115         * tests/unictype/test-categ_P.c: Likewise.
15116         * tests/unictype/test-categ_Pd.c: Likewise.
15117         * tests/unictype/test-categ_Po.c: Likewise.
15118         * tests/unictype/test-categ_S.c: Likewise.
15119         * tests/unictype/test-categ_Sc.c: Likewise.
15120         * tests/unictype/test-categ_So.c: Likewise.
15121         * tests/unictype/test-ctype_alnum.c: Likewise.
15122         * tests/unictype/test-ctype_alpha.c: Likewise.
15123         * tests/unictype/test-ctype_graph.c: Likewise.
15124         * tests/unictype/test-ctype_lower.c: Likewise.
15125         * tests/unictype/test-ctype_print.c: Likewise.
15126         * tests/unictype/test-ctype_punct.c: Likewise.
15127         * tests/unictype/test-ctype_upper.c: Likewise.
15128         * tests/unictype/test-decdigit.h: Likewise.
15129         * tests/unictype/test-digit.h: Likewise.
15130         * tests/unictype/test-numeric.h: Likewise.
15131         * tests/unictype/test-pr_alphabetic.c: Likewise.
15132         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15133         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15134         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15135         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15136         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15137         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15138         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15139         * tests/unictype/test-pr_combining.c: Likewise.
15140         * tests/unictype/test-pr_composite.c: Likewise.
15141         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15142         * tests/unictype/test-pr_dash.c: Likewise.
15143         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15144         * tests/unictype/test-pr_deprecated.c: Likewise.
15145         * tests/unictype/test-pr_diacritic.c: Likewise.
15146         * tests/unictype/test-pr_extender.c: Likewise.
15147         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15148         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15149         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15150         * tests/unictype/test-pr_id_continue.c: Likewise.
15151         * tests/unictype/test-pr_id_start.c: Likewise.
15152         * tests/unictype/test-pr_ideographic.c: Likewise.
15153         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15154         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15155         * tests/unictype/test-pr_lowercase.c: Likewise.
15156         * tests/unictype/test-pr_numeric.c: Likewise.
15157         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15158         * tests/unictype/test-pr_punctuation.c: Likewise.
15159         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15160         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15161         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15162         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15163         * tests/unictype/test-pr_uppercase.c: Likewise.
15164         * tests/unictype/test-pr_xid_continue.c: Likewise.
15165         * tests/unictype/test-pr_xid_start.c: Likewise.
15166         * tests/unictype/test-pr_zero_width.c: Likewise.
15167         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15168         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
15169         changed behaviour: line breaking is now disallowed between a letter
15170         or '=' and '('.
15171         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15172         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15173         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15174         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
15175         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15176         lib/uniwidth/width.c.
15177         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15178         without comments, but with the original copyright notice.
15179         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15180         changes.
15181         * lib/unictype/categ_Cc.h: Likewise.
15182         * lib/unictype/categ_Co.h: Likewise.
15183         * lib/unictype/categ_Cs.h: Likewise.
15184         * lib/unictype/categ_Lt.h: Likewise.
15185         * lib/unictype/categ_Me.h: Likewise.
15186         * lib/unictype/categ_Pc.h: Likewise.
15187         * lib/unictype/categ_Pe.h: Likewise.
15188         * lib/unictype/categ_Pf.h: Likewise.
15189         * lib/unictype/categ_Pi.h: Likewise.
15190         * lib/unictype/categ_Ps.h: Likewise.
15191         * lib/unictype/categ_Sk.h: Likewise.
15192         * lib/unictype/categ_Sm.h: Likewise.
15193         * lib/unictype/categ_Z.h: Likewise.
15194         * lib/unictype/categ_Zl.h: Likewise.
15195         * lib/unictype/categ_Zp.h: Likewise.
15196         * lib/unictype/categ_Zs.h: Likewise.
15197         * lib/unictype/ctype_blank.h: Likewise.
15198         * lib/unictype/ctype_cntrl.h: Likewise.
15199         * lib/unictype/ctype_digit.h: Likewise.
15200         * lib/unictype/ctype_space.h: Likewise.
15201         * lib/unictype/ctype_xdigit.h: Likewise.
15202         * lib/unictype/mirror.h: Likewise.
15203         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15204         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15205         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15206         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15207         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15208         * lib/unictype/pr_bidi_control.h: Likewise.
15209         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15210         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15211         * lib/unictype/pr_bidi_pdf.h: Likewise.
15212         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15213         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15214         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15215         * lib/unictype/pr_format_control.h: Likewise.
15216         * lib/unictype/pr_hex_digit.h: Likewise.
15217         * lib/unictype/pr_hyphen.h: Likewise.
15218         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15219         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15220         * lib/unictype/pr_iso_control.h: Likewise.
15221         * lib/unictype/pr_join_control.h: Likewise.
15222         * lib/unictype/pr_left_of_pair.h: Likewise.
15223         * lib/unictype/pr_line_separator.h: Likewise.
15224         * lib/unictype/pr_math.h: Likewise.
15225         * lib/unictype/pr_non_break.h: Likewise.
15226         * lib/unictype/pr_not_a_character.h: Likewise.
15227         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15228         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15229         * lib/unictype/pr_other_id_continue.h: Likewise.
15230         * lib/unictype/pr_other_id_start.h: Likewise.
15231         * lib/unictype/pr_other_lowercase.h: Likewise.
15232         * lib/unictype/pr_other_math.h: Likewise.
15233         * lib/unictype/pr_other_uppercase.h: Likewise.
15234         * lib/unictype/pr_paired_punctuation.h: Likewise.
15235         * lib/unictype/pr_paragraph_separator.h: Likewise.
15236         * lib/unictype/pr_pattern_syntax.h: Likewise.
15237         * lib/unictype/pr_pattern_white_space.h: Likewise.
15238         * lib/unictype/pr_private_use.h: Likewise.
15239         * lib/unictype/pr_quotation_mark.h: Likewise.
15240         * lib/unictype/pr_radical.h: Likewise.
15241         * lib/unictype/pr_soft_dotted.h: Likewise.
15242         * lib/unictype/pr_space.h: Likewise.
15243         * lib/unictype/pr_titlecase.h: Likewise.
15244         * lib/unictype/pr_variation_selector.h: Likewise.
15245         * lib/unictype/pr_white_space.h: Likewise.
15246         * lib/unictype/sy_c_ident.h: Likewise.
15247         * lib/unictype/sy_c_whitespace.h: Likewise.
15248         * lib/unictype/sy_java_whitespace.h: Likewise.
15249         * modules/uni*/*: Bump version number of expected libunistring version.
15250         Reported by Simon Josefsson.
15251
15252 2011-01-09  Karl Heuer  <kwzh@gnu.org>
15253
15254         useless-if-before-free: fix typo in --help and make the internal,
15255         automatic version date update process work once again.
15256         --help output contained a NUL character instead of the
15257         backslash-zero that was intended.  Also, the "must lie within
15258         the first 8 lines" line is on line 9, and hence not getting
15259         automatically updated.
15260         * build-aux/useless-if-before-free: Fix the former by adding a
15261         backslash, and the latter by condensing the three lines of what-it-does
15262         to a single line, leaving one line of slack for the future.
15263
15264 2011-01-09  Bruno Haible  <bruno@clisp.org>
15265
15266         uniwidth/width: Fix width of U+1D173..U+1D17A.
15267         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
15268         symbolic_width, output_width_property_test): New functions.
15269         (main): Invoke output_nonspacing_property, output_width_property_test.
15270         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
15271         U+1D173..U+1D17A.
15272         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
15273         1.
15274         * modules/uniwidth/*: Bump version number of expected libunistring
15275         version.
15276         * modules/unilbrk/*: Likewise.
15277
15278 2011-01-08  Bruno Haible  <bruno@clisp.org>
15279
15280         uninorm tests: Preserve copyright of Unicode data file.
15281         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
15282         Mention modifications.
15283
15284 2011-01-08  Bruno Haible  <bruno@clisp.org>
15285
15286         gen-uni-tables: Prepare for Unicode 5.2.0.
15287         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
15288         (debug_output_lbp, output_lbp): Update.
15289
15290 2011-01-08  Bruno Haible  <bruno@clisp.org>
15291
15292         unilbrk: Clarify gen-uni-tables.c code.
15293         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
15294         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
15295         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
15296
15297 2011-01-07  Bruno Haible  <bruno@clisp.org>
15298
15299         strtod: Restore errno when successfully parsing Infinity or NaN.
15300         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
15301         restore the original errno.
15302
15303 2011-01-07  Bruno Haible  <bruno@clisp.org>
15304
15305         remove test: Avoid failure on HP-UX 11.
15306         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
15307
15308 2011-01-07  Bruno Haible  <bruno@clisp.org>
15309
15310         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
15311         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
15312         error code.
15313
15314 2011-01-07  Pádraig Brady <P@draigBrady.com>
15315
15316         ignore-value: fixup comments, and add Eric Blake
15317         as an author since he rewrote the macros.
15318         * lib/ignore-value.h (ignore_value):  State that
15319         we now support aggregates.  Also specify exactly
15320         when the GCC warn_unused_result feature was added.
15321
15322 2011-01-06  Eric Blake  <eblake@redhat.com>
15323
15324         ignore-value: support aggregate types
15325         * lib/ignore-value.h (ignore_value): Provide separate gcc
15326         definition.
15327         * modules/ignore-value-tests: New test module.
15328         * tests/test-ignore-value.c: New test.
15329
15330         maint.mk: improve sc_prohibit_strcmp regex
15331         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
15332         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
15333         definition of STRNEQ.
15334
15335         signal: work around Haiku issue with SIGBUS
15336         * lib/siglist.h: Add comment.
15337         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
15338         strsignal's favoring of SIGSEGV.
15339         * tests/test-signal.c (main): Avoid test failure.
15340         * doc/posix-headers/signal.texi (signal.h): Document the issue.
15341         Reported by Scott McCreary.
15342
15343         maint.mk: add pre-release check to ensure submodule commits are public
15344         * top/maint.mk (public-submodule-commit): New rule.
15345         (submodule-checks): New variable.
15346         (alpha beta stable): Depend on the variable.
15347
15348 2011-01-05  Pádraig Brady <P@draigBrady.com>
15349         and Jim Meyering  <meyering@redhat.com>
15350
15351         ignore-value: make ignore_value more generic; deprecate ignore_ptr
15352         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
15353         (ATTRIBUTE_DEPRECATED): Define.
15354         (_ignore_case): New function.
15355         (ignore_value): New macro, to replace the old function.
15356         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
15357         * modules/ignore-value (Depends-on): Add stdint.
15358
15359 2011-01-04  Eric Blake  <eblake@redhat.com>
15360
15361         doc: regenerate INSTALL
15362         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
15363         @firstparagraphindent support, now that autoconf dropped it.
15364         (INSTALL_PRELUDE): Reinstate old macro.
15365         * doc/install.texi: Resync from autoconf.
15366         * doc/INSTALL: Reflect recent autoconf update.
15367         * doc/INSTALL.ISO: Likewise.
15368         * doc/INSTALL.UTF-8: Likewise.
15369         Reported by Karl Berry.
15370
15371 2011-01-04  Bruce Korb  <address@hidden>
15372
15373         git-version-gen: avoid a sub-shell
15374         * build-aux/git-version-gen: Redirect stderr in `...` via
15375         "exec 2>...", rather than via an added sub-shell.
15376
15377 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
15378
15379         git-version-gen: use (...) rather than sh -c '...'
15380         * build-aux/git-version-gen: Rather than hard-coding a shell's name
15381         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
15382
15383 2011-01-03  Jim Meyering  <meyering@redhat.com>
15384
15385         git-version-gen: convert leading TABs to spaces
15386         * build-aux/git-version-gen: Expand leading TABs.
15387
15388         git-version-gen: handle failed "git rev-list"
15389         * build-aux/git-version-gen: Rather than leaking a "fatal" error
15390         from git and proceeding as if it had succeeded but printed no SHA1
15391         checksums, suppress the diagnostic and handle the failure.
15392         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
15393
15394         git-version-gen: include command name in one more diagnostic
15395         * build-aux/git-version-gen: When the required .tarball-version file
15396         was missing or unreadable, you might see the diagnostic from "cat",
15397         but no trace of the name of the invoking script.  Now, you still see
15398         the diagnostic from cat, but also get one from "git-version-gen: ".
15399         Inspired by a patch from Bruce Korb.
15400
15401         update-copyright: adjust test to match changed code
15402         * tests/test-update-copyright.sh: Change test's expected output
15403         to match new actual output.
15404
15405 2011-01-02  Bruno Haible  <bruno@clisp.org>
15406
15407         getlogin_r: Avoid test failure on HP-UX 11.
15408         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
15409         ERANGE when the second argument is zero.
15410         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
15411         portability problem.
15412
15413 2011-01-02  Bruce Korb  <bkorb@gnu.org>
15414
15415         * build-aux/update-copyright: doc Simon's changes
15416
15417 2011-01-02  Simon Josefsson  <simon@josefsson.org>
15418
15419         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
15420         environment variable.
15421
15422 2011-01-02  Bruno Haible  <bruno@clisp.org>
15423
15424         unigbrk: Avoid gcc warnings.
15425         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
15426         unused variable.
15427         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
15428         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
15429         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
15430         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
15431         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
15432         Change type of first argument to 'const char *'.
15433         (main): Remove unused variable.
15434         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
15435         type of first argument to 'const char *'.
15436         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
15437         Likewise.
15438         (main): Change type of variable 's'.
15439         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
15440         to 'int'.
15441
15442 2011-01-02  Bruno Haible  <bruno@clisp.org>
15443
15444         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
15445         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
15446         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
15447         bug.
15448         * lib/pwrite.c: Undo 2010-12-31 patch.
15449         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
15450
15451 2011-01-02  Bruno Haible  <bruno@clisp.org>
15452
15453         pread: Fix test whether it works.
15454         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
15455
15456 2011-01-02  Bruno Haible  <bruno@clisp.org>
15457
15458         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
15459         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
15460         ends in "6". Don't require a specific month name. Try also the locale
15461         names found on HP-UX 11 and Solaris 7.
15462
15463 2011-01-02  Bruno Haible  <bruno@clisp.org>
15464
15465         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
15466         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
15467         C linkage.
15468         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
15469
15470 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15471
15472         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
15473         for consistency, since the "cluster" term is not used elsewhere.
15474         * lib/unigbrk.in.h: Update name.
15475         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
15476         * lib/unigbrk/u16-grapheme-next.c: Update name.
15477         * lib/unigbrk/u16-grapheme-prev.c: Update name.
15478         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
15479         * lib/unigbrk/u32-grapheme-next.c: Update name.
15480         * lib/unigbrk/u32-grapheme-prev.c: Update name.
15481         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
15482         * lib/unigbrk/u8-grapheme-next.c: Update name.
15483         * lib/unigbrk/u8-grapheme-prev.c: Update name.
15484         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
15485         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
15486         Suggested by Bruno Haible.
15487
15488 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15489
15490         Remove module 'u8-grapheme-len' as too redundant with
15491         'u8-grapheme-next'.
15492         * modules/unigbrk/u8-grapheme-len: Delete file.
15493         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
15494         * lib/unigbrk.in.h: Remove prototype for deleted function.
15495         * lib/unigbrk/u8-grapheme-len.c: Delete file.
15496         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
15497
15498         Remove module 'u16-grapheme-len' as too redundant with
15499         'u16-grapheme-next'.
15500         * modules/unigbrk/u16-grapheme-len: Delete file.
15501         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
15502         * lib/unigbrk.in.h: Remove prototype for deleted function.
15503         * lib/unigbrk/u16-grapheme-len.c: Delete file.
15504         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
15505
15506         Remove module 'u32-grapheme-len' as too redundant with
15507         'u32-grapheme-next'.
15508         * modules/unigbrk/u32-grapheme-len: Delete file.
15509         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
15510         * lib/unigbrk.in.h: Remove prototype for deleted function.
15511         * lib/unigbrk/u32-grapheme-len.c: Delete file.
15512         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
15513
15514         Suggested by Bruno Haible.
15515
15516 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15517
15518         * unigbrk.in.h: Fix typo: "ben" => "been".
15519         Reported by Bruno Haible.
15520
15521 2011-01-01  Jim Meyering  <meyering@redhat.com>
15522
15523         maint: update almost all copyright ranges to include 2011
15524         Run the new "make update-copyright" rule.
15525
15526 2011-01-01  Jim Meyering  <meyering@redhat.com>
15527
15528         maint: update-copyright: exempt doc/INSTALL*
15529         * Makefile (update-copyright): Also exclude doc/INSTALL*,
15530         since they are generated.  Suggested by Bruno Haible.
15531
15532 2011-01-01  Jim Meyering  <meyering@redhat.com>
15533
15534         maint: refine the update-copyright rule
15535         * Makefile (update-copyright): Also exclude any file that includes
15536         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
15537         code that merely generates the comment.
15538
15539 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15540
15541         New module 'u8-grapheme-len'.
15542         * modules/unigbrk/u8-grapheme-len: New file.
15543         * modules/unigbrk/u8-grapheme-len-tests: New file.
15544         * lib/unigbrk.in.h: Add prototype for new function.
15545         * lib/unigbrk/u8-grapheme-len.c: New file.
15546         * tests/unigbrk/test-u8-grapheme-len.c: New file.
15547
15548         New module 'u16-grapheme-len'.
15549         * modules/unigbrk/u16-grapheme-len: New file.
15550         * modules/unigbrk/u16-grapheme-len-tests: New file.
15551         * lib/unigbrk.in.h: Add prototype for new function.
15552         * lib/unigbrk/u16-grapheme-len.c: New file.
15553         * tests/unigbrk/test-u16-grapheme-len.c: New file.
15554
15555         New module 'u32-grapheme-len'.
15556         * modules/unigbrk/u32-grapheme-len: New file.
15557         * modules/unigbrk/u32-grapheme-len-tests: New file.
15558         * lib/unigbrk.in.h: Add prototype for new function.
15559         * lib/unigbrk/u32-grapheme-len.c: New file.
15560         * tests/unigbrk/test-u32-grapheme-len.c: New file.
15561
15562         New module 'u8-grapheme-next'.
15563         * modules/unigbrk/u8-grapheme-next: New file.
15564         * modules/unigbrk/u8-grapheme-next-tests: New file.
15565         * lib/unigbrk.in.h: Add prototype for new function.
15566         * lib/unigbrk/u8-grapheme-next.c: New file.
15567         * tests/unigbrk/test-u8-grapheme-next.c: New file.
15568
15569         New module 'u16-grapheme-next'.
15570         * modules/unigbrk/u16-grapheme-next: New file.
15571         * modules/unigbrk/u16-grapheme-next-tests: New file.
15572         * lib/unigbrk.in.h: Add prototype for new function.
15573         * lib/unigbrk/u16-grapheme-next.c: New file.
15574         * tests/unigbrk/test-u16-grapheme-next.c: New file.
15575
15576         New module 'u32-grapheme-next'.
15577         * modules/unigbrk/u32-grapheme-next: New file.
15578         * modules/unigbrk/u32-grapheme-next-tests: New file.
15579         * lib/unigbrk.in.h: Add prototype for new function.
15580         * lib/unigbrk/u32-grapheme-next.c: New file.
15581         * tests/unigbrk/test-u32-grapheme-next.c: New file.
15582
15583         New module 'u8-grapheme-prev'.
15584         * modules/unigbrk/u8-grapheme-prev: New file.
15585         * modules/unigbrk/u8-grapheme-prev-tests: New file.
15586         * lib/unigbrk.in.h: Add prototype for new function.
15587         * lib/unigbrk/u8-grapheme-prev.c: New file.
15588         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
15589
15590         New module 'u16-grapheme-prev'.
15591         * modules/unigbrk/u16-grapheme-prev: New file.
15592         * modules/unigbrk/u16-grapheme-prev-tests: New file.
15593         * lib/unigbrk.in.h: Add prototype for new function.
15594         * lib/unigbrk/u16-grapheme-prev.c: New file.
15595         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
15596
15597         New module 'u32-grapheme-prev'.
15598         * modules/unigbrk/u32-grapheme-prev: New file.
15599         * modules/unigbrk/u32-grapheme-prev-tests: New file.
15600         * lib/unigbrk.in.h: Add prototype for new function.
15601         * lib/unigbrk/u32-grapheme-prev.c: New file.
15602         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
15603
15604         New module 'u8-grapheme-breaks'.
15605         * modules/unigbrk/u8-grapheme-breaks: New file.
15606         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
15607         * lib/unigbrk.in.h: Add prototype for new function.
15608         * lib/unigbrk/u8-grapheme-breaks.c: New file.
15609         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
15610
15611         New module 'u16-grapheme-breaks'.
15612         * modules/unigbrk/u16-grapheme-breaks: New file.
15613         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
15614         * lib/unigbrk.in.h: Add prototype for new function.
15615         * lib/unigbrk/u16-grapheme-breaks.c: New file.
15616         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
15617
15618         New module 'u32-grapheme-breaks'.
15619         * modules/unigbrk/u32-grapheme-breaks: New file.
15620         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
15621         * lib/unigbrk.in.h: Add prototype for new function.
15622         * lib/unigbrk/u32-grapheme-breaks.c: New file.
15623         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
15624
15625         New module 'ulc-grapheme-breaks'.
15626         * modules/unigbrk/ulc-grapheme-breaks: New file.
15627         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
15628         * m4/locale-ar.m4: New file.
15629         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
15630         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
15631         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
15632
15633 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15634
15635         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
15636         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
15637         modified how this file was generated before I initially submitted
15638         the module, but failed to regenerate it.  This meant that several
15639         of the level2 entries were wrong.
15640         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
15641         Remove the division-by-2 that is folded into the table now that
15642         gbrkprop.h has been regenerated properly.  Now -1 entries are
15643         handled correctly.
15644
15645         New module 'unigbrk/uc-gbrk-prop-tests'.
15646         * modules/unigbrk/uc-gbrk-prop-tests: New file.
15647         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
15648         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
15649         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
15650
15651 2011-01-01  Bruno Haible  <bruno@clisp.org>
15652
15653         Avoid use of hexadecimal escapes.
15654         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
15655         instead of hexadecimal escapes.
15656
15657 2011-01-01  Jim Meyering  <meyering@redhat.com>
15658
15659         maint: new rule to update copyright year ranges
15660         * Makefile (update-copyright): New rule.
15661
15662         maint: indent with TABs in Makefile
15663         * Makefile: Expand leading sequences of spaces to TABs
15664
15665         version-etc: update the copyright year it reports
15666         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
15667
15668 2010-12-31  Bruno Haible  <bruno@clisp.org>
15669
15670         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
15671         * lib/isfinite.c (zerof, zerod, zerol): New variables.
15672         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
15673         zero.
15674
15675 2010-12-31  Bruno Haible  <bruno@clisp.org>
15676
15677         pwrite: Work around HP-UX 11.11 bug.
15678         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
15679         works and set REPLACE_PWRITE if not.
15680         * lib/pwrite.c (pwrite): Add an implementation that uses the system
15681         function.
15682         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
15683
15684 2010-12-31  Bruno Haible  <bruno@clisp.org>
15685
15686         pread: Work around HP-UX 11 bugs.
15687         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
15688         and set REPLACE_PREAD if not.
15689         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
15690
15691 2010-12-31  Eric Blake  <eblake@redhat.com>
15692
15693         nl_langinfo: fix YESEXPR on Irix 6.5
15694         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
15695         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
15696         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
15697         it.
15698
15699 2010-12-31  Bruno Haible  <bruno@clisp.org>
15700
15701         iconv: Document HP-UX 11 bug.
15702         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
15703
15704 2010-12-31  Bruno Haible  <bruno@clisp.org>
15705
15706         ldexpl: Fix link error on HP-UX 11.
15707         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
15708         LDEXPL_LIBM, using $ISNANL_LIBM.
15709
15710 2010-12-31  Eric Blake  <eblake@redhat.com>
15711
15712         ftello: avoid compilation failure with SunStudio c89
15713         * lib/ftello.c (ftello): Use lseek, not llseek.
15714
15715         tests: avoid failing coreutils tests on cygwin
15716         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
15717         (create_exe_shims_): Return 0 when skipping.
15718
15719 2010-12-31  Bruno Haible  <bruno@clisp.org>
15720
15721         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
15722         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
15723
15724 2010-12-31  Bruno Haible  <bruno@clisp.org>
15725
15726         waitpid: Fix link error in C++ mode.
15727         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
15728
15729 2010-12-31  Bruno Haible  <bruno@clisp.org>
15730
15731         isnan: Use GCC built-ins when possible.
15732         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
15733         __builtin_isnan.
15734         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
15735         (isnan): Define using GCC built-ins for GCC >= 4.0.
15736
15737 2010-12-31  Bruno Haible  <bruno@clisp.org>
15738
15739         isnand: Fix mistake.
15740         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
15741         __builtin_isnand.
15742
15743 2010-12-31  Bruno Haible  <bruno@clisp.org>
15744
15745         open: Avoid C++ error on HP-UX 11.
15746         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
15747
15748 2010-12-31  Bruno Haible  <bruno@clisp.org>
15749
15750         time_r: Add missing declarations on HP-UX 11.
15751         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
15752         instead of HAVE_LOCALTIME_R.
15753         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
15754         HAVE_LOCALTIME_R always.
15755         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
15756         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
15757         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
15758         HAVE_LOCALTIME_R.
15759         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
15760         * doc/posix-functions/localtime_r.texi: Likewise.
15761
15762 2010-12-29  Eric Blake  <eblake@redhat.com>
15763
15764         mountlist: tweak previous commit
15765         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
15766         Reported by Paul Eggert.
15767
15768         mountlist: fix local drive detection on cygwin
15769         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
15770         that works for cygwin.
15771
15772 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15773
15774         ftoastr, snprintf: ftoastr + snprintf module
15775         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
15776         since the snprintf module now should be good enough here.
15777         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
15778         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
15779         and gl_MODULE_INDICATOR([snprintf]), but the former enables
15780         GNULIB_SNPRINTF only for the test directory, and the latter
15781         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
15782         seems to suffice by itself.
15783
15784 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15785
15786         alloca: one step towards thread-safety
15787         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
15788         need for a static variable.  All callers changed.  This does not
15789         make the alloca replacement thread-safe, but it's one step.
15790
15791         tests: minor indenting change
15792         * tests/init.sh: Sync from coreutils housekeeping patch
15793         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
15794         to keep lines within 80 columns.
15795
15796 2010-12-28  Jim Meyering  <meyering@redhat.com>
15797
15798         regex: don't infloop on persistent failing calloc
15799         * lib/regexec.c (build_trtable): Return failure indication upon
15800         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15801         In glibc, this was fixed for version 2.13:
15802         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
15803
15804 2010-12-28  Bruno Haible  <bruno@clisp.org>
15805             Paul Eggert <eggert@cs.ucla.edu>
15806
15807         linkat: Make implementation robust against system behaviour variations.
15808         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
15809         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
15810         way, and to -2 if it needs a generic runtime test.
15811         * lib/linkat.c (solaris_optimized_link_immediate,
15812         solaris_optimized_link_follow): New functions.
15813         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
15814         (check_same_link): Use it.
15815
15816 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
15817
15818         New module 'unigbrk/base'.
15819         * modules/unigbrk/base: New file.
15820         * lib/unigbrk.in.h: New file.
15821
15822         New module 'unigbrk/uc-gbrk-prop'.
15823         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
15824         * modules/unigbrk/uc-gbrk-prop: New file.
15825         * lib/unigbrk/gbrkprop.h: New file.
15826         * lib/unigbrk/uc-gbrk-prop.c: New file.
15827
15828         New module 'unigbrk/uc-is-grapheme-break'.
15829         * modules/unigbrk/uc-is-grapheme-break: New file.
15830         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
15831         * lib/unigbrk/uc-is-grapheme-break.c: New file.
15832         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
15833         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
15834         * tests/unigbrk/GraphemeBreakTest.txt: New file.
15835
15836         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
15837
15838 2010-12-27  Bruno Haible  <bruno@clisp.org>
15839
15840         linkat test: Avoid failure on Solaris 11 2010-11.
15841         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
15842
15843 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15844
15845         utimens: work around glibc rounding bug on more platforms
15846         * lib/utimens.c (fdutimens): Work around rounding bug even if
15847         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
15848         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
15849
15850 2010-12-27  Bruno Haible  <bruno@clisp.org>
15851
15852         select tests: Improve comments.
15853         * tests/test-select.c (do_select): Add comments.
15854
15855 2010-12-27  Bruno Haible  <bruno@clisp.org>
15856
15857         select tests: Safer way of handling timeout.
15858         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
15859         at every invocation.
15860
15861 2010-12-27  Bruno Haible  <bruno@clisp.org>
15862
15863         select tests: Use 'bool' where appropriate.
15864         * tests/test-select.c (connect_to_socket): Change argument type to
15865         'bool'.
15866
15867 2010-12-27  Bruno Haible  <bruno@clisp.org>
15868
15869         select tests: Use existing modules.
15870         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
15871         (configure.ac): Don't test for unistd.h.
15872         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
15873         declared in <unistd.h>.
15874
15875 2010-12-27  Bruno Haible  <bruno@clisp.org>
15876
15877         mbrtowc: Work around a Solaris 7 bug.
15878         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
15879         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
15880         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
15881         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
15882         MBRTOWC_NULL_ARG1_BUG.
15883         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
15884         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
15885         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
15886         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
15887
15888 2010-12-27  Jim Meyering  <meyering@redhat.com>
15889
15890         read-file.c: tweak syntax
15891         * lib/read-file.c (fread_file): Remove space after "*" in function
15892         definitions.
15893
15894 2010-12-27  Bruno Haible  <bruno@clisp.org>
15895
15896         times test: Avoid gcc warnings on OSF/1.
15897         * tests/test-times.c (main): Cast printf arguments from clock_t to
15898         'long int'.
15899
15900 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15901
15902         utimens: work around glibc rounding bug on older Linux kernels
15903         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
15904         on Linux with a glibc whose utimes might not work, then work
15905         around a longstanding glibc bug involving rounding rather than
15906         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
15907         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15908
15909 2010-12-26  Bruno Haible  <bruno@clisp.org>
15910
15911         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
15912         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
15913         _GL_CXXALIAS_SYS.
15914         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15915
15916 2010-12-26  Bruno Haible  <bruno@clisp.org>
15917
15918         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
15919         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
15920         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15921         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
15922         looking for the declaration.
15923         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
15924         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
15925         problem.
15926         * doc/posix-functions/inet_pton.texi: Likewise.
15927
15928 2010-12-26  Bruno Haible  <bruno@clisp.org>
15929
15930         arpa_inet: Use the common idioms with C++ support.
15931         * lib/arpa_inet.in.h: Include c++defs.h.
15932         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
15933         support.
15934         * modules/arpa_inet (Depends-on): Add c++defs.
15935         (Makefile.am): Substitute the contents of c++defs.h.
15936         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
15937         * modules/arpa_inet-c++-tests: New file.
15938         * tests/test-arpa_inet-c++.cc: New file.
15939
15940 2010-12-25  Bruno Haible  <bruno@clisp.org>
15941
15942         Fix more C++ link errors on Solaris 8.
15943         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
15944         $(LIB_EACCESS).
15945         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
15946         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
15947         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
15948         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
15949         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
15950
15951 2010-12-25  Bruno Haible  <bruno@clisp.org>
15952
15953         printf-posix: Fix link error when a non-GCC compiler is used.
15954         * lib/stdio.in.h (printf): When not using GCC, override printf
15955         correctly.
15956         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15957
15958 2010-12-25  Bruno Haible  <bruno@clisp.org>
15959
15960         strerror_r-posix: Update doc.
15961         * doc/posix-functions/strerror_r.texi: Update doc about the return
15962         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
15963
15964 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15965
15966         utimens: simplify the logic of the previous change
15967         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
15968         This should not affect whether the test succeeds or fails.
15969
15970         utimens: configure better on hosts with NFS clock skew
15971         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
15972         uses the clock of the local host.  It might use the clock of the
15973         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
15974         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15975
15976 2010-12-25  Bruno Haible  <bruno@clisp.org>
15977
15978         ptsname test: Avoid failure on Solaris.
15979         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
15980         open a pseudo-terminal; don't use BSD-style ptys.
15981         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
15982
15983 2010-12-25  Bruno Haible  <bruno@clisp.org>
15984
15985         ptsname: Avoid ERANGE failure on some systems.
15986         * lib/ptsname.c (buffer): Increase size.
15987
15988 2010-12-25  Bruno Haible  <bruno@clisp.org>
15989
15990         rename, renameat: Avoid test failures at NFS mounted locations.
15991         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
15992         so that subsequent mkdir calls succeed.
15993
15994 2010-12-25  Bruno Haible  <bruno@clisp.org>
15995
15996         iswblank: Fix C++ link error on Solaris 8.
15997         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
15998         _GL_FUNCDECL_SYS.
15999
16000 2010-12-25  Bruno Haible  <bruno@clisp.org>
16001
16002         unistd: Fix C++ link error on Solaris 8.
16003         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16004
16005 2010-12-25  Bruno Haible  <bruno@clisp.org>
16006
16007         readlink doc: Mention an old glibc bug.
16008         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16009
16010 2010-12-25  Bruno Haible  <bruno@clisp.org>
16011
16012         fcntl-h: Fix for use of C++ on glibc systems.
16013         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16014         also on glibc systems in C++ mode.
16015         Reported by Gary V. Vaughan <gary@gnu.org>.
16016
16017 2010-12-25  Bruno Haible  <bruno@clisp.org>
16018
16019         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16020         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16021
16022 2010-12-25  Bruno Haible  <bruno@clisp.org>
16023
16024         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16025         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16026         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16027         test whether truncl works according to ISO C 99 with IEC 60559.
16028         * m4/truncl-ieee.m4: New file.
16029         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16030         m4/signbit.m4.
16031         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16032
16033 2010-12-25  Bruno Haible  <bruno@clisp.org>
16034
16035         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16036         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16037         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16038         test whether ceill works according to ISO C 99 with IEC 60559.
16039         * m4/ceill-ieee.m4: New file.
16040         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16041         m4/signbit.m4.
16042         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16043
16044 2010-12-25  Bruno Haible  <bruno@clisp.org>
16045
16046         Ensure all prerequisites of <wchar.h> are included.
16047         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16048         before <wchar.h>.
16049         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16050         gl_MBRLEN_NUL_RETVAL): Likewise.
16051         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16052         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16053         AC_FUNC_MBRTOWC): Likewise.
16054         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16055         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16056         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16057         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16058         Likewise.
16059         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16060         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16061         (gl_WCHAR_H): Improve comments.
16062         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16063
16064 2010-12-25  Bruno Haible  <bruno@clisp.org>
16065
16066         strtok_r: Fix C syntax error in autoconf macro.
16067         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16068         characters in test program.
16069
16070 2010-12-24  Bruno Haible  <bruno@clisp.org>
16071
16072         ceil, trunc, round: Fix gcc warnings.
16073         * lib/ceil.c (MIN): Undefine before redefining.
16074         * lib/trunc.c (MIN): Likewise.
16075         * lib/round.c (MIN): Likewise.
16076         Include <math.h> first.
16077
16078 2010-12-24  Bruno Haible  <bruno@clisp.org>
16079
16080         select tests: Avoid failures on OSF/1 5.1.
16081         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16082         failure of closing the last socket; it may fail with ECONNRESET.
16083
16084 2010-12-24  Eric Blake  <eblake@redhat.com>
16085
16086         stdint: avoid HP-UX 10.20 preprocessor bug
16087         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16088         than #if.
16089         * tests/test-floor2.c (main): Likewise.
16090         Reported by Peter O'Gorman.
16091
16092         pipe: make obsoletion transition easier
16093         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16094         * modules/pipe (Files): Include revived file.
16095         (Include): Drop reference, to mirror getdate's behavior.
16096
16097 2010-12-24  Bruno Haible  <bruno@clisp.org>
16098
16099         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16100         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16101         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16102         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16103
16104 2010-12-24  Bruno Haible  <bruno@clisp.org>
16105
16106         gethostname: Ensure declaration on NonStop Kernel.
16107         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16108         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16109
16110 2010-12-24  Bruno Haible  <bruno@clisp.org>
16111
16112         sys_select: Ensure all necessary types on NonStop Kernel.
16113         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16114         include <sys/time.h>.
16115         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16116         NonStop Kernel.
16117         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16118
16119 2010-12-24  Bruno Haible  <bruno@clisp.org>
16120
16121         sys_select: Remove unneeded include.
16122         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16123         have <sys/select.h>.
16124
16125 2010-12-24  Bruno Haible  <bruno@clisp.org>
16126
16127         gethostname: Provide a fallback for HOST_NAME_MAX.
16128         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
16129         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
16130         instead.
16131         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16132
16133 2010-12-24  Bruno Haible  <bruno@clisp.org>
16134
16135         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
16136         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
16137         (SA_RESTART): Likewise.
16138         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16139
16140 2010-12-24  Bruno Haible  <bruno@clisp.org>
16141
16142         signal: Define NSIG.
16143         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
16144         * tests/test-signal.c (nsig): New variable.
16145         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16146
16147 2010-12-24  Bruno Haible  <bruno@clisp.org>
16148
16149         rename, renameat: Avoid test failures on OSF/1 5.1.
16150         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
16151         alternative error codes.
16152         * tests/test-renameat.c (main): Likewise.
16153
16154 2010-12-24  Bruno Haible  <bruno@clisp.org>
16155
16156         *printf: Detect large precisions bug on Solaris 10/SPARC.
16157         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
16158         by Paul Eggert.
16159         * tests/test-snprintf-posix.h (test_function): Add this test code here
16160         too.
16161         * tests/test-sprintf-posix.h (test_function): Likewise.
16162         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16163         * tests/test-vasprintf-posix.c (test_function): Likewise.
16164         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
16165         around by gnulib.
16166         * doc/posix-functions/printf.texi: Likewise.
16167         * doc/posix-functions/snprintf.texi: Likewise.
16168         * doc/posix-functions/sprintf.texi: Likewise.
16169         * doc/posix-functions/vfprintf.texi: Likewise.
16170         * doc/posix-functions/vprintf.texi: Likewise.
16171         * doc/posix-functions/vsnprintf.texi: Likewise.
16172         * doc/posix-functions/vsprintf.texi: Likewise.
16173         * doc/posix-functions/dprintf.texi: Undo last commit.
16174         * doc/posix-functions/vdprintf.texi: Likewise.
16175
16176 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16177
16178         tests: port test-fdutimensat.c to Solaris 8
16179         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16180         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16181         On Solaris 8, it fails with errno == ENOSYS, because there is no
16182         futimens (so it can't use the fd), and there is no lutimens (so it
16183         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16184
16185         vsnprintf: make more consistent with snprintf; doc fixes
16186
16187         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16188         the byte count return problem was promoted from the snprintf-posix
16189         to the snprintf module.
16190         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16191         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16192         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16193         * tests/test-snprintf.c (main): Check the byte count returned.
16194         * tests/test-vsnprintf.c (main): Likewise.
16195
16196 2010-12-23  Eric Blake  <eblake@redhat.com>
16197
16198         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16199         * modules/sigpipe (License): Relax license.
16200
16201 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16202
16203         doc: document Solaris printf bug with large float precisions
16204         * doc/posix-functions/dprintf.texi (dprintf):
16205         * doc/posix-functions/fprintf.texi (fprintf):
16206         * doc/posix-functions/printf.texi (printf):
16207         * doc/posix-functions/snprintf.texi (snprintf):
16208         * doc/posix-functions/sprintf.texi (sprintf):
16209         * doc/posix-functions/vdprintf.texi (vdprintf):
16210         * doc/posix-functions/vfprintf.texi (vfprintf):
16211         * doc/posix-functions/vprintf.texi (vprintf):
16212         * doc/posix-functions/vsnprintf.texi (vsnprintf):
16213         * doc/posix-functions/vsprintf.texi (vsprintf):
16214         Mention that these functions mishandle large floating point
16215         precisions on Solaris 10.  The same bug is also present in Solaris
16216         8, and I assume earlier.  This causes "cd gnulib-tests; make
16217         check" to fail on Solaris 8 (and I assume, later) when building
16218         the latest coreutils, in test-vasprintf-posix's call to
16219         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
16220         the wide flavors (e.g., wprintf) so this patch just updates the
16221         documentation for the narrow ones.
16222
16223         test-posixtm.c: add two tests
16224         * tests/test-posixtm.c: Add two tests, to highlight the
16225         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
16226         around this bug; this is merely to document it.
16227
16228 2010-12-22  Bruno Haible  <bruno@clisp.org>
16229
16230         getlogin_r: Work around portability problem on OSF/1.
16231         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
16232         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
16233         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
16234         test for a truncated result.
16235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
16236         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
16237         * modules/getlogin_r (Depends-on): Add memchr.
16238         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
16239
16240 2010-12-22  Bruno Haible  <bruno@clisp.org>
16241
16242         ptsname: Avoid test failure on OSF/1 5.1.
16243         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
16244         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
16245         (same_slave): New function.
16246         (main): Use it to compare ptsname's result with the expected file name.
16247
16248 2010-12-22  Bruno Haible  <bruno@clisp.org>
16249
16250         Port extended stdio modules to HP NonStop Kernel.
16251         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
16252         macros.
16253         * lib/fbufmode.c: Update comments.
16254         * lib/fflush.c: Likewise.
16255         * lib/fpurge.c: Likewise.
16256         * lib/freadable.c: Likewise.
16257         * lib/freadahead.c: Likewise.
16258         * lib/freading.c: Likewise.
16259         * lib/freadptr.c: Likewise.
16260         * lib/freadseek.c: Likewise.
16261         * lib/fseeko.c: Likewise.
16262         * lib/fseterr.c: Likewise.
16263         * lib/fwritable.c: Likewise.
16264         * lib/fwriting.c: Likewise.
16265         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16266
16267 2010-12-22  Bruno Haible  <bruno@clisp.org>
16268
16269         ttyname_r: Work around bug on OSF/1 5.1.
16270         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
16271         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
16272         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
16273         present.
16274         * lib/ttyname_r.c (ttyname_r): Update comments.
16275
16276 2010-12-22  Bruno Haible  <bruno@clisp.org>
16277
16278         round: Implement result sign according to IEEE 754.
16279         * lib/round.c (MIN, MINUS_ZERO): New macros.
16280         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
16281         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
16282         * tests/test-round-ieee.c (main): Likewise.
16283         * tests/test-roundl-ieee.c (main): Likewise.
16284
16285         trunc: Implement result sign according to IEEE 754.
16286         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
16287         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
16288         * tests/test-trunc2.c: Include minus-zero.h.
16289         (MINUS_ZERO): New macro.
16290         (trunc_reference): Keep in sync with lib/trunc.c.
16291         * tests/test-truncf2.c: Include minus-zero.h.
16292         (MINUS_ZERO): New macro.
16293         (truncf_reference): Keep in sync with lib/trunc.c.
16294         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
16295         * tests/test-trunc-ieee.c (main): Likewise.
16296         * tests/test-truncl-ieee.c (main): Likewise.
16297
16298         ceil: Implement result sign according to IEEE 754.
16299         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
16300         (FUNC): Return -0.0 for -1 < x < 0.
16301         * tests/test-ceil2.c: Include minus-zero.h.
16302         (MINUS_ZERO): New macro.
16303         (ceil_reference): Keep in sync with lib/ceil.c.
16304         * tests/test-ceilf2.c: Include minus-zero.h.
16305         (MINUS_ZERO): New macro.
16306         (ceilf_reference): Keep in sync with lib/ceil.c.
16307         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
16308         * tests/test-ceil-ieee.c (main): Likewise.
16309         * tests/test-ceill-ieee.c (main): Likewise.
16310
16311         floor: Implement result sign according to IEEE 754.
16312         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
16313         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
16314         * tests/test-floorf2.c (floorf_reference): Likewise.
16315         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
16316         * tests/test-floor-ieee.c (main): Likewise.
16317         * tests/test-floorl-ieee.c (main): Likewise.
16318
16319 2010-12-22  Bruno Haible  <bruno@clisp.org>
16320
16321         getaddrinfo: Update doc.
16322         * doc/posix-functions/gai_strerror.texi: Return type is also different
16323         on AIX and HP-UX.
16324
16325 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16326
16327         getaddrinfo, inet_ntop: Update doc for Solaris.
16328         * doc/posix-functions/gai_strerror.texi: Return type is also an
16329         issue on Solaris 9 and earlier.
16330         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
16331         on Solaris 10 and earlier.
16332
16333 2010-12-21  Bruno Haible  <bruno@clisp.org>
16334
16335         New module 'roundl-ieee'.
16336         * modules/roundl-ieee: New file.
16337         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
16338         test whether roundl works according to ISO C 99 with IEC 60559.
16339         * m4/roundl-ieee.m4: New file.
16340         * modules/roundl-ieee-tests: New file.
16341         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
16342         * tests/test-roundl.c (main): Remove signbit tests.
16343         * modules/roundl-tests (Depends-on): Remove signbit.
16344         * doc/posix-functions/roundl.texi: Mention the new module.
16345
16346 2010-12-21  Bruno Haible  <bruno@clisp.org>
16347
16348         New module 'truncl-ieee'.
16349         * modules/truncl-ieee: New file.
16350         * modules/truncl-ieee-tests: New file.
16351         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
16352         * tests/test-truncl.c (main): Remove signbit tests.
16353         * modules/truncl-tests (Depends-on): Remove signbit.
16354         * doc/posix-functions/truncl.texi: Mention the new module.
16355
16356 2010-12-21  Bruno Haible  <bruno@clisp.org>
16357
16358         New module 'ceill-ieee'.
16359         * modules/ceill-ieee: New file.
16360         * modules/ceill-ieee-tests: New file.
16361         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
16362         * tests/test-ceill.c (main): Remove signbit tests.
16363         * modules/ceill-tests (Depends-on): Remove signbit.
16364         * doc/posix-functions/ceill.texi: Mention the new module.
16365
16366 2010-12-21  Bruno Haible  <bruno@clisp.org>
16367
16368         New module 'floorl-ieee'.
16369         * modules/floorl-ieee: New file.
16370         * modules/floorl-ieee-tests: New file.
16371         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
16372         * tests/test-floorl.c (main): Remove signbit tests.
16373         * modules/floorl-tests (Depends-on): Remove signbit.
16374         * doc/posix-functions/floorl.texi: Mention the new module.
16375
16376 2010-12-21  Bruno Haible  <bruno@clisp.org>
16377
16378         New module 'round-ieee'.
16379         * modules/round-ieee: New file.
16380         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
16381         whether round works according to ISO C 99 with IEC 60559.
16382         * m4/round-ieee.m4: New file.
16383         * modules/round-ieee-tests: New file.
16384         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
16385         * tests/test-round1.c (main): Remove signbit tests.
16386         * modules/round-tests (Depends-on): Remove 'signbit'.
16387         * doc/posix-functions/round.texi: Mention the new module.
16388
16389 2010-12-21  Bruno Haible  <bruno@clisp.org>
16390
16391         New module 'trunc-ieee'.
16392         * modules/trunc-ieee: New file.
16393         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
16394         whether trunc works according to ISO C 99 with IEC 60559.
16395         * m4/trunc-ieee.m4: New file.
16396         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
16397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
16398         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
16399         * modules/trunc-ieee-tests: New file.
16400         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
16401         * tests/test-trunc1.c (main): Remove signbit tests.
16402         * modules/trunc-tests (Depends-on): Remove 'signbit'.
16403         * doc/posix-functions/trunc.texi: Mention the new module.
16404
16405 2010-12-21  Bruno Haible  <bruno@clisp.org>
16406
16407         New module 'ceil-ieee'.
16408         * modules/ceil-ieee: New file.
16409         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
16410         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
16411         ISO C 99 with IEC 60559.
16412         * m4/ceil-ieee.m4: New file.
16413         * modules/ceil (Files): Add lib/ceil.c.
16414         (Depends-on): Add 'float'.
16415         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16416         * lib/math.in.h (ceil): New declaration.
16417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
16418         REPLACE_CEIL.
16419         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
16420         * modules/ceil-ieee-tests: New file.
16421         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
16422         * tests/test-math-c++.cc: Check the signature of 'ceil'.
16423         * doc/posix-functions/ceil.texi: Mention the new module.
16424
16425 2010-12-21  Bruno Haible  <bruno@clisp.org>
16426
16427         New module 'floor-ieee'.
16428         * modules/floor-ieee: New file.
16429         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
16430         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
16431         ISO C 99 with IEC 60559.
16432         * m4/floor-ieee.m4: New file.
16433         * modules/floor (Files): Add lib/floor.c.
16434         (Depends-on): Add 'float'.
16435         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16436         * lib/math.in.h (floor): New declaration.
16437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
16438         REPLACE_FLOOR.
16439         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
16440         * modules/floor-ieee-tests: New file.
16441         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
16442         * tests/test-math-c++.cc: Check the signature of 'floor'.
16443         * doc/posix-functions/floor.texi: Mention the new module.
16444
16445 2010-12-21  Bruno Haible  <bruno@clisp.org>
16446
16447         New module 'roundf-ieee'.
16448         * modules/roundf-ieee: New file.
16449         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
16450         test whether roundf works according to ISO C 99 with IEC 60559.
16451         * m4/roundf-ieee.m4: New file.
16452         * modules/roundf-ieee-tests: New file.
16453         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
16454         * tests/test-roundf1.c (main): Remove signbit tests.
16455         * modules/roundf-tests (Depends-on): Remove 'signbit'.
16456         * doc/posix-functions/roundf.texi: Mention the new module.
16457
16458 2010-12-21  Bruno Haible  <bruno@clisp.org>
16459
16460         New module 'truncf-ieee'.
16461         * modules/truncf-ieee: New file.
16462         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
16463         test whether truncf works according to ISO C 99 with IEC 60559.
16464         * m4/truncf-ieee.m4: New file.
16465         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
16466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
16467         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
16468         * modules/truncf-ieee-tests: New file.
16469         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
16470         * tests/test-truncf1.c (main): Remove signbit tests.
16471         * modules/truncf-tests (Depends-on): Remove 'signbit'.
16472         * doc/posix-functions/truncf.texi: Mention the new module.
16473
16474 2010-12-21  Bruno Haible  <bruno@clisp.org>
16475
16476         New module 'ceilf-ieee'.
16477         * modules/ceilf-ieee: New file.
16478         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
16479         test whether ceilf works according to ISO C 99 with IEC 60559.
16480         * m4/ceilf-ieee.m4: New file.
16481         * modules/ceilf-ieee-tests: New file.
16482         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
16483         * tests/test-ceilf1.c (main): Remove signbit tests.
16484         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
16485         * doc/posix-functions/ceilf.texi: Mention the new module.
16486
16487 2010-12-21  Bruno Haible  <bruno@clisp.org>
16488
16489         New module 'floorf-ieee'.
16490         * modules/floorf-ieee: New file.
16491         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
16492         test whether floorf works according to ISO C 99 with IEC 60559.
16493         * m4/floorf-ieee.m4: New file.
16494         * modules/floorf-ieee-tests: New file.
16495         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
16496         * tests/test-floorf1.c (main): Remove signbit tests.
16497         * modules/floorf-tests (Depends-on): Remove 'signbit'.
16498         * doc/posix-functions/floorf.texi: Mention the new module.
16499
16500 2010-12-21  Bruno Haible  <bruno@clisp.org>
16501
16502         Support for minus zero in autoconf macros.
16503         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
16504         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
16505         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
16506         * tests/minus-zero.h: Update comments.
16507
16508 2010-12-21  Bruno Haible  <bruno@clisp.org>
16509
16510         Tests for module 'ceil'.
16511         * modules/ceil-tests: New file.
16512         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
16513         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
16514
16515 2010-12-21  Bruno Haible  <bruno@clisp.org>
16516
16517         Tests for module 'floor'.
16518         * modules/floor-tests: New file.
16519         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
16520         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
16521
16522 2010-12-21  Bruno Haible  <bruno@clisp.org>
16523
16524         math: Fix indentation.
16525         * lib/math.in.h (floorf): Fix indentation.
16526
16527 2010-12-21  Bruno Haible  <bruno@clisp.org>
16528
16529         Fix cross-compilation guesses on Solaris.
16530         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
16531         not match "solaris2.10".
16532         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16533         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
16534         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
16535
16536 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16537
16538         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
16539         This fixes a problem observed with the latest coreutils snapshot
16540         that caused a test to fail on Solaris 8.  src/csplit.c's call
16541         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
16542         earlier, instead of returning the number of bytes that would have
16543         been generated; this causes csplit to incorrectly report memory
16544         exhaustion.
16545         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
16546         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
16547         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
16548         comments to match.
16549         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
16550         Fix typo in matching older versions of Solaris: "solaris2.10"
16551         is matched by the shell pattern "solaris2.[0-9]*".  This matters
16552         only for guessing while cross-compiling.
16553         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
16554
16555 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16556
16557         ftoastr: fix comment again
16558         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16559         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
16560         Also, simplify example a bit by using flags = 0.
16561
16562 2010-12-20  Bruno Haible  <bruno@clisp.org>
16563
16564         round*, trunc*: Update documentation regarding glibc.
16565         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
16566         * doc/posix-functions/round.texi: Likewise.
16567         * doc/posix-functions/roundl.texi: Likewise.
16568         * doc/posix-functions/truncf.texi: Likewise.
16569         * doc/posix-functions/trunc.texi: Likewise.
16570         * doc/posix-functions/truncl.texi: Likewise.
16571
16572 2010-12-20  Bruno Haible  <bruno@clisp.org>
16573
16574         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
16575         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
16576         * doc/posix-functions/round.texi: Likewise.
16577         * doc/posix-functions/roundl.texi: Likewise.
16578
16579 2010-12-20  Bruno Haible  <bruno@clisp.org>
16580
16581         ttyname_r: Add missing declaration on HP-UX 11.
16582         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
16583         HAVE_TTYNAME_R.
16584         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
16585         declared. Set HAVE_TTYNAME_R always.
16586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16587         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
16588         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
16589         HAVE_TTYNAME_R.
16590         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
16591
16592 2010-12-20  Bruno Haible  <bruno@clisp.org>
16593
16594         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
16595         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
16596         * doc/posix-functions/getlogin_r.texi: Likewise.
16597         * tests/test-getlogin.c: Include <errno.h>.
16598         (main): Avoid test failure on HP-UX 11.11.
16599         * tests/test-getlogin_r.c (main): Likewise.
16600
16601 2010-12-20  Bruno Haible  <bruno@clisp.org>
16602
16603         getlogin_r: Add missing declaration on HP-UX 11.
16604         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
16605         declared also when it exists as a function.
16606         * doc/posix-functions/getlogin_r.texi: Document this workaround.
16607
16608 2010-12-20  Bruno Haible  <bruno@clisp.org>
16609
16610         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
16611         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
16612         through wcrtomb.
16613
16614 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16615
16616         ftoastr: fix comment
16617         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16618         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
16619
16620 2010-12-19  Bruno Haible  <bruno@clisp.org>
16621
16622         isnan: Ensure it is a macro.
16623         * lib/math.in.h (isnan): Define as a macro if not already a macro.
16624         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
16625         Solaris.
16626
16627 2010-12-19  Bruno Haible  <bruno@clisp.org>
16628
16629         ldexpl test: Fix link error on OSF/1 5.1.
16630         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
16631
16632 2010-12-19  Bruno Haible  <bruno@clisp.org>
16633
16634         wctype: Make it work in C++ mode on OSF/1 5.1.
16635         * lib/wctype.in.h (iswblank): Declare but not define here.
16636         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
16637         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
16638         * modules/wctype (Files): Add lib/iswblank.c.
16639
16640 2010-12-19  Bruno Haible  <bruno@clisp.org>
16641
16642         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
16643         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
16644         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
16645
16646 2010-12-19  Bruno Haible  <bruno@clisp.org>
16647
16648         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
16649         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
16650         _POSIX_PII_SOCKET.
16651         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
16652         * doc/posix-functions/recvfrom.texi: Likewise.
16653         * doc/posix-functions/send.texi: Likewise.
16654         * doc/posix-functions/sendto.texi: Likewise.
16655
16656 2010-12-19  Bruno Haible  <bruno@clisp.org>
16657
16658         tcgetsid: Add missing declaration on OSF/1 5.1.
16659         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
16660         HAVE_TCGETSID.
16661         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
16662         Don't set HAVE_TCGETSID.
16663         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
16664         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
16665         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
16666         HAVE_TCGETSID.
16667         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
16668
16669 2010-12-19  Bruno Haible  <bruno@clisp.org>
16670
16671         stdio: Fix problem with popen() declaration on OSF/1 5.1.
16672         * lib/stdio.in.h: During the include_next statement, let recursive
16673         includes of this file include only the system header file.
16674
16675 2010-12-19  Bruno Haible  <bruno@clisp.org>
16676
16677         iconv_open: Fix regression from 2010-12-04.
16678         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
16679         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
16680
16681 2010-12-19  Bruno Haible  <bruno@clisp.org>
16682
16683         stdbool test: Avoid a gcc warning.
16684         * tests/test-stdbool.c (main): Fail if e1 is false.
16685         Reported by Jim Meyering.
16686
16687 2010-12-19  Jim Meyering  <meyering@redhat.com>
16688
16689         setenv: restore to working order
16690         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
16691         mistakenly removed.
16692         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
16693         HAVE_SETENV.
16694         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
16695         HAVE_SETENV.
16696
16697 2010-12-19  Bruno Haible  <bruno@clisp.org>
16698
16699         Document some different function declarations on OSF/1 5.1.
16700         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
16701         * doc/posix-functions/inet_ntop.texi: Likewise.
16702         * doc/posix-functions/gethostname.texi: Likewise.
16703         * lib/unistd.in.h (gethostname): Update comment.
16704
16705 2010-12-19  Bruno Haible  <bruno@clisp.org>
16706
16707         doc: Mention vasprintf-posix module.
16708         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
16709         the 'vasprintf-posix' module.
16710         * doc/glibc-functions/vasprintf.texi: Likewise.
16711
16712 2010-12-19  Bruno Haible  <bruno@clisp.org>
16713
16714         unsetenv: Add missing declaration on OSF/1 5.1.
16715         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
16716         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
16717         Don't set HAVE_UNSETENV. In the test program, set _BSD.
16718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
16719         not HAVE_UNSETENV.
16720         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
16721         HAVE_UNSETENV.
16722         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
16723
16724 2010-12-19  Bruno Haible  <bruno@clisp.org>
16725
16726         setenv: Add missing declaration on OSF/1 5.1.
16727         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
16728         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
16729         declared. Don't set HAVE_SETENV.
16730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
16731         not HAVE_SETENV.
16732         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
16733         HAVE_SETENV.
16734         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
16735
16736 2010-12-19  Bruno Haible  <bruno@clisp.org>
16737
16738         nl_langinfo tests: Avoid gcc warning.
16739         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
16740
16741 2010-12-19  Bruno Haible  <bruno@clisp.org>
16742
16743         mknod: Avoid error in C++ mode on OSF/1 with GCC.
16744         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
16745         _GL_CXXALIAS_SYS.
16746
16747 2010-12-19  Bruno Haible  <bruno@clisp.org>
16748
16749         stdbool: Relax test.
16750         * tests/test-stdbool.c (e): Don't require that casts from a variable's
16751         address to 'bool' work in static initializer, for compilers other than
16752         GCC.
16753
16754 2010-12-19  Bruno Haible  <bruno@clisp.org>
16755
16756         ftello: Add missing declaration on OSF/1 5.1.
16757         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
16758         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
16759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
16760         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
16761         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
16762
16763 2010-12-19  Bruno Haible  <bruno@clisp.org>
16764
16765         fseeko: Add missing declaration on OSF/1 5.1.
16766         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
16767         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
16768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
16769         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
16770         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
16771
16772 2010-12-19  Bruno Haible  <bruno@clisp.org>
16773
16774         fchdir: Add missing declaration on OSF/1 5.1.
16775         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
16776         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
16777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
16778         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
16779         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
16780
16781 2010-12-19  Bruno Haible  <bruno@clisp.org>
16782
16783         relocatable-prog-wrapper: Separate from relocatable-prog.
16784         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
16785         uninstall-relocwrapper rule here.
16786         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
16787         Reported by Ian Beckwith <ianb@erislabs.net>.
16788
16789 2010-12-19  Bruno Haible  <bruno@clisp.org>
16790
16791         unistr/u8-mbsnlen: Add missing dependency.
16792         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
16793         Reported by Ian Beckwith <ianb@erislabs.net>.
16794
16795 2010-12-19  Bruno Haible  <bruno@clisp.org>
16796
16797         iconv: Make it possible again to use this module without 'iconv-h'.
16798         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
16799         if it is not defined.
16800         Reported by Ian Beckwith <ianb@erislabs.net>.
16801
16802 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16803
16804         acl: port to Solaris 8 when copying from tmpfs to ufs
16805         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
16806         error number.  Problem observed on Solaris 8 with latest
16807         coreutils, with "mv A B", where A is on a tmpfs file system and B
16808         is on a ufs file system.  This caused coreutils' mv/part-symlink
16809         test to fail.
16810
16811         tests: set fail=0 at start
16812         * tests/init.sh (setup_): Move fail=0 initialization here ...
16813         (mktempd_): ... from here, so that tests can rely on fail being
16814         set to 0 initially.  This fixes a problem in coreutils; see:
16815         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
16816
16817 2010-12-18  Bruno Haible  <bruno@clisp.org>
16818
16819         memmem-simple: Stylistic changes.
16820         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
16821         Fix preprocessor directive indentation.
16822
16823 2010-12-15  Pádraig Brady <P@draigBrady.com>
16824
16825         memmem, memmem-simple: reorganize and expand empty needle check
16826         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
16827         functional checks to memmem-simple so that one has a fully functional
16828         memmem by using just this module.
16829         Restrict the performance only check to the memmem module.
16830         Also expand the empty needle check to ensure the correct
16831         pointer is returned, not just a non NULL pointer.
16832         * doc/glibc-functions/memmem.texi: Rearrange the portability
16833         documentation to correlate with the rearranged checks.
16834         Clarify exactly how the memmem and memmem-simple modules
16835         relate to each other.
16836
16837 2010-12-15  Pádraig Brady <P@draigBrady.com>
16838             Bruno Haible  <bruno@clisp.org>
16839
16840         Improve cross-compilation guesses for uClibc.
16841         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
16842         that uClibc does not have the glibc bug.
16843         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
16844         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
16845
16846 2010-12-14  Eric Blake  <eblake@redhat.com>
16847
16848         configmake: provide fallbacks for oldest supported autotools
16849         * m4/configmake.m4: New file.
16850         * modules/configmake (Files): Ship it.
16851         (configure.ac): Use it to guarantee fallbacks.
16852
16853 2010-12-13  Pádraig Brady <P@draigBrady.com>
16854
16855         read-file: Improve handling of large files
16856         * lib/read-file.c (fread_file): Minimize realloc()s
16857         for regular files, and better manage sizes around SIZE_MAX.
16858
16859 2010-12-13  Eric Blake  <eblake@redhat.com>
16860
16861         cloexec, fcntl: relax license
16862         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
16863         consent from all contributors.
16864         * modules/fcntl (License): Likewise.
16865
16866 2010-12-10  Bruno Haible  <bruno@clisp.org>
16867
16868         Tests for module 'pipe-posix'.
16869         * modules/pipe-posix-tests: New file.
16870         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
16871
16872 2010-12-10  Bruno Haible  <bruno@clisp.org>
16873
16874         pipe-posix: Make it work in C++ mode.
16875         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
16876         (pipe): Use common idiom, not a macro definition.
16877         * lib/pipe.c: New file.
16878         * m4/pipe.m4: New file.
16879         * modules/pipe-posix (Description): Enhance.
16880         (Files): Add lib/pipe.c, m4/pipe.m4.
16881         (configure.ac): Invoke gl_FUNC_PIPE.
16882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
16883         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
16884         * tests/test-unistd-c++.cc: Check the signature of pipe.
16885
16886 2010-12-10  Bruno Haible  <bruno@clisp.org>
16887
16888         Rename module 'pipe' to 'spawn-pipe'.
16889         * modules/spawn-pipe: New file, renamed from modules/pipe.
16890         (Files, configure.ac, Makefile.am): Update.
16891         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
16892         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
16893         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
16894         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
16895         "spawn-pipe.h" instead of "pipe.h".
16896         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
16897         to gl_SPAWN_PIPE.
16898         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
16899         (Files, Makefile.am): Update.
16900         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
16901         Update.
16902         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
16903         Include "spawn-pipe.h" instead of "pipe.h".
16904         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
16905         * lib/javacomp.c: Likewise.
16906         * lib/javaversion.c: Likewise.
16907         * lib/pipe-filter-gi.c: Likewise.
16908         * lib/pipe-filter-ii.c: Likewise.
16909         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
16910         * modules/javacomp (Depends-on): Likewise.
16911         * modules/javaversion (Depends-on): Likewise.
16912         * modules/pipe-filter-gi (Depends-on): Likewise.
16913         * modules/pipe-filter-ii (Depends-on): Likewise.
16914         * MODULES.html.sh (Executing programs): Update.
16915         * NEWS: Mention the change.
16916
16917 2010-12-10  Eric Blake  <eblake@redhat.com>
16918
16919         pipe-posix: new module
16920         * modules/pipe-posix: New file.
16921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
16922         (gl_UNISTD_H): Check for declaration.
16923         * modules/unistd (Makefile.am): Substitute it.
16924         * lib/unistd.in.h (pipe): Provide it for mingw.
16925         * doc/posix-functions/pipe.texi (pipe): Update documentation.
16926         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
16927
16928 2010-12-07  Bruno Haible  <bruno@clisp.org>
16929
16930         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
16931         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
16932         u8_strcmp_gnu.
16933         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
16934
16935 2010-12-06  Bruno Haible  <bruno@clisp.org>
16936
16937         Update internal documentation.
16938         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
16939
16940 2010-12-04  Bruno Haible  <bruno@clisp.org>
16941
16942         Put more information about failed tests into the test return codes.
16943         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
16944         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
16945         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16946         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16947         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16948         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16949         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16950         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16951         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
16952         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16953         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
16954         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16955         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16956         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16957         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
16958         returns a bit mask.
16959         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16960         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
16961         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
16962         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16963         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16964         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16965         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16966         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16967         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16968         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16969         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16970         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16971         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16972         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16973         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16974         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16975         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
16976         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
16977         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16978         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
16979         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16980         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16981         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
16982         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16983         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16984         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16985         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
16986         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16987         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16988         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
16989         gl_PRINTF_PRECISION): Likewise.
16990         * m4/regex.m4 (gl_REGEX): Likewise.
16991         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16992         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16993         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
16994         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16995         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16996         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16997         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16998         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
16999         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17000         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17001         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17002         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17003         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17004         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17005         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17006         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17007         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17008         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17009         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17010         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17011         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17012         enumerated value.
17013         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17014
17015 2010-12-04  Bruno Haible  <bruno@clisp.org>
17016
17017         Update for Solaris 11 2010-11.
17018         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17019         Express, released in November 2010.
17020
17021 2010-12-04  Bruno Haible  <bruno@clisp.org>
17022
17023         nproc: Relax license.
17024         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17025         and Paul Eggert.
17026         Requested by Ludovic Courtès <ludo@gnu.org>.
17027
17028 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17029
17030         utimecmp: fine-grained src to nearby coarse-grained dest
17031
17032         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17033         and the source is on a file system with higher-resolution time
17034         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17035         not work, and the time stamps are close together, the algorithm to
17036         determine the exact resolution from the read-back mtime was buggy:
17037         it had a "!=" where it should have had an "==".  This bug has been
17038         in the code ever since it was introduced to gnulib.
17039         Problem reported by Dan Jacobson in
17040         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17041
17042 2010-11-30  Bruno Haible  <bruno@clisp.org>
17043
17044         strerror_r-posix: Fix autoconf test.
17045         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17046
17047 2010-11-28  Bruno Haible  <bruno@clisp.org>
17048             Paul Eggert  <eggert@cs.ucla.edu>
17049
17050         Tests for module 'getdomainname'.
17051         * modules/getdomainname-tests: New file.
17052         * tests/test-getdomainname.c: New file, based on
17053         tests/test-gethostname.c.
17054
17055 2010-11-28  Bruno Haible  <bruno@clisp.org>
17056             Paul Eggert  <eggert@cs.ucla.edu>
17057
17058         getdomainname: Use the system function when possible.
17059         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17060         (getdomainname): Replace if needed. Provide the declaration if it is
17061         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17062         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17063         (getdomainname): When the system has getdomainname, call the system
17064         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17065         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17066         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17067         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17068         the function if its second argument is of type 'int' or if it is found
17069         in libnsl.
17070         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17071         <sys/systeminfo.h> and sysinfo().
17072         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17074         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17075         HAVE_GETDOMAINNAME.
17076         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17077         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17078         * doc/glibc-functions/getdomainname.texi: Document the problems with
17079         the getdomainname declaration.
17080
17081 2010-11-28  Bruno Haible  <bruno@clisp.org>
17082
17083         sys_socket: Ensure ss_family field on AIX.
17084         * lib/sys_socket.in.h (ss_family): New macro definition.
17085         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17086         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17087         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17088         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17089         * modules/sys_socket (Makefile.am): Substitute
17090         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17091         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17092
17093 2010-11-27  Bruno Haible  <bruno@clisp.org>
17094
17095         readline: Improve configure output.
17096         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17097         "checking for readline..." result understandable.
17098
17099 2010-11-27  Bruno Haible  <bruno@clisp.org>
17100
17101         *printf-posix: Detect a bug on Solaris 10/x86.
17102         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17103         for floating-point output.
17104         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17105         directive.
17106         * tests/test-snprintf-posix.h (test_function): Likewise.
17107         * tests/test-sprintf-posix.h (test_function): Likewise.
17108         * tests/test-vasprintf-posix.c (test_function): Likewise.
17109         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17110         * doc/posix-functions/printf.texi: Likewise.
17111         * doc/posix-functions/snprintf.texi: Likewise.
17112         * doc/posix-functions/sprintf.texi: Likewise.
17113         * doc/posix-functions/vfprintf.texi: Likewise.
17114         * doc/posix-functions/vprintf.texi: Likewise.
17115         * doc/posix-functions/vsnprintf.texi: Likewise.
17116         * doc/posix-functions/vsprintf.texi: Likewise.
17117         * doc/glibc-functions/obstack_printf.texi: Likewise.
17118         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17119
17120 2010-11-27  Bruno Haible  <bruno@clisp.org>
17121
17122         Fix link error when module libunistring-optional is in use.
17123         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17124         * modules/striconveha-tests (Makefile.am): Likewise.
17125
17126 2010-11-27  Bruno Haible  <bruno@clisp.org>
17127
17128         regex: Mention link dependencies.
17129         * modules/regex (Link): New section.
17130         * modules/rpmatch (Link): Likewise.
17131         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
17132
17133 2010-11-27  Bruno Haible  <bruno@clisp.org>
17134
17135         ftoastr: Fix compilation error on Solaris.
17136         * lib/ftoastr.c: Include <config.h>.
17137
17138 2010-11-27  Bruno Haible  <bruno@clisp.org>
17139
17140         getloadavg: Update documentation.
17141         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
17142
17143 2010-11-27  Bruno Haible  <bruno@clisp.org>
17144
17145         sys_socket: Fix test whether the functions are declared.
17146         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
17147         not <sys/select.h>.
17148
17149 2010-11-27  Bruno Haible  <bruno@clisp.org>
17150
17151         getpass: Make sure to get system declaration on some platforms.
17152         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
17153         gl_USE_SYSTEM_EXTENSIONS.
17154         * modules/getpass (Depends-on): Add extensions.
17155
17156 2010-11-26  Bruno Haible  <bruno@clisp.org>
17157
17158         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
17159         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
17160         'iconv' module is present.
17161         (ICONV_CONST): New macro.
17162         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
17163         ICONV_CONST.
17164         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
17165         set ICONV_CONST.
17166         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
17167         here.
17168         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
17169         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
17170         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
17171         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
17172         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
17173         present.
17174
17175 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17176
17177         ftoastr: comment fix
17178         * lib/ftoastr.c: "little" -> "little or no" in comment
17179
17180 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17181
17182         stdint: port to GCC 4.3 + OSX + Octave
17183         On this platform, stdint.h is buggy and defines int64_t to long
17184         long int.  The replacement defined it to long int, causing
17185         problems with C++ style name mangling.  Instead, trust the system
17186         definition if INT64_MAX is defined, and likewise for the unsigned
17187         variant.   Problem reported by Jarno Rajahalme in
17188         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17189         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17190         and don't mess with int64_t and INT64_MAX in this case.
17191         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17192
17193 2010-11-24  Bruno Haible  <bruno@clisp.org>
17194
17195         doc: Corrections regarding MacOS X 10.4 and 10.5.
17196         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17197         MacOS X.
17198         Reported by Simon Josefsson.
17199
17200 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17201
17202         Uninstall ".bin" files installed by relocwrapper.
17203         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17204         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17205         unless it is already there.
17206
17207 2010-11-21  Bruno Haible  <bruno@clisp.org>
17208
17209         Update for NetBSD 5.0.
17210         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17211         NetBSD; the test fails on NetBSD 5.0.
17212         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17213         about NetBSD.
17214
17215 2010-11-21  Bruno Haible  <bruno@clisp.org>
17216
17217         Update for HP-UX 11.23 and HP-UX 11.31.
17218         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
17219         HP-UX.
17220
17221 2010-11-21  Bruno Haible  <bruno@clisp.org>
17222
17223         Update for MacOS X 10.5.
17224         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17225         MacOS X; the test fails on MacOS X 10.5.8.
17226         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17227         about MacOS X.
17228
17229 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
17230
17231         bootstrap: add bootstrap_sync option.
17232         See discussion at
17233         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
17234         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
17235         * build-aux/bootstrap: Accept --bootstrap-sync to update
17236         bootstrap if it is not identical to the local gnulib's
17237         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
17238         enable this by default.  Accept --no-bootstrap-sync to disable
17239         it.
17240
17241 2010-11-20  Bruno Haible  <bruno@clisp.org>
17242
17243         Ensure that <features.h> is included before __GLIBC__ is tested.
17244         * lib/printf-parse.h: Include <features.h>.
17245         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
17246         Reported by Mike Frysinger <vapier@gentoo.org>.
17247
17248         Ensure that <features.h> is included before __GLIBC__ is tested.
17249         * lib/wchar.in.h: Include <features.h>.
17250         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
17251         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
17252         Reported by Mike Frysinger <vapier@gentoo.org>.
17253
17254         Ensure that <features.h> is included before __GLIBC__ is tested.
17255         * lib/arpa_inet.in.h: Include <features.h>.
17256         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
17257         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
17258         Reported by Mike Frysinger <vapier@gentoo.org>.
17259
17260         Ensure that <features.h> is included before __GLIBC__ is tested.
17261         * build-aux/link-warning.h: Include <features.h>.
17262         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
17263         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
17264         Reported by Mike Frysinger <vapier@gentoo.org>.
17265
17266         Ensure that <features.h> is included before __GLIBC__ is tested.
17267         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
17268         Reported by Mike Frysinger <vapier@gentoo.org>.
17269
17270 2010-11-20  Bruno Haible  <bruno@clisp.org>
17271
17272         memmem: Fix autoconf test.
17273         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
17274
17275 2010-11-20  Bruno Haible  <bruno@clisp.org>
17276
17277         Port to uClibc.
17278         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
17279         * lib/fcntl.in.h: Likewise.
17280         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
17281         * lib/mbrtowc.c (mbrtowc): Likewise.
17282         * lib/relocatable.c (find_shared_library_fullname): Likewise.
17283         * lib/strerror_r.c: Likewise.
17284         * lib/unistr/u8-strnlen.c: Likewise.
17285         * lib/vasnprintf.c (decimal_point_char): Likewise.
17286         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17287         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17288         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17289         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17290         * tests/test-sigaction.c (handler, main): Likewise.
17291         * lib/freading.h: Treat uClibc like a non-glibc platform.
17292         * lib/freading.c: Likewise.
17293         * lib/gettext.h: Likewise.
17294         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
17295         Likewise.
17296         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
17297         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
17298         * lib/propername.c (proper_name_utf8): Likewise.
17299         * lib/spawn.in.h: Likewise.
17300         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
17301         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
17302         mem_cd_iconveh_internal): Likewise.
17303         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
17304         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17305         strstr, strcasestr): Likewise.
17306         * lib/unicodeio.c (unicode_to_mb): Likewise.
17307         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
17308         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
17309         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
17310         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
17311         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
17312         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
17313         * lib/unistr/u8-stpncpy.c: Likewise.
17314         * lib/vasnprintf.c (VASNPRINTF): Likewise.
17315         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
17316         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17317         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17318         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17319         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
17320         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
17321         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
17322         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17323         Likewise.
17324         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17325         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17326         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17327         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17328         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17329         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17330         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17331         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17332         * tests/test-getopt.h (OPTIND_MIN): Likewise.
17333         * tests/test-striconveha.c (main): Likewise.
17334         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17335         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
17336         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
17337         * doc/posix-functions/getline.texi: Likewise.
17338         Reported by Mike Frysinger <vapier@gentoo.org>.
17339
17340 2010-11-20  Bruno Haible  <bruno@clisp.org>
17341
17342         nproc: Fix condition.
17343         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
17344         HAVE_PTHREAD_AFFINITY_NP.
17345
17346 2010-11-20  Bruno Haible  <bruno@clisp.org>
17347
17348         Fix a comment.
17349         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
17350
17351 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
17352
17353         ftoastr: don't assume snprintf
17354         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
17355         Implement a subset of snprintf here, by using sprintf safely.
17356         * modules/ftoastr (Depends-on): Remove snprintf.
17357
17358 2010-11-19  Jim Meyering  <meyering@redhat.com>
17359
17360         test-rename.h: fix compilation failure
17361         * tests/test-rename.h (test_rename): Add omitted "}".
17362
17363 2010-11-17  Jim Meyering  <meyering@redhat.com>
17364
17365         maint.mk: add a URL discussing the no-@acronym policy
17366         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
17367
17368 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
17369
17370         ftoastr: depend on snprintf, improve comments
17371         * lib/ftoastr.c: Also mention Loitsch's draft.
17372         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
17373         needed in the current implementation, but it might simplify
17374         speeding up the code later.
17375         * modules/ftoastr: Depend on snprintf; this improves portability.
17376         Suggested by Bruno Haible in the same email.
17377
17378         ftoastr: port to hosts lacking strtof and strtold
17379         Problem reported by Bruno Haible in
17380         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
17381         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
17382         environment and strtold (and presumably strtof) are not available.
17383         * modules/ftoastr (Files): Add m4/c-strtod.m4.
17384         (configure.ac): Require gl_C99_STRTOLD.
17385
17386 2010-11-18  Bruno Haible  <bruno@clisp.org>
17387
17388         c-strtold: Avoid link error on AIX 7.
17389         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
17390         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
17391         (gl_C_STRTOLD): Test whether strtold_l exists.
17392         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17393
17394 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17395
17396         intprops: new macro INT_BITS_STRLEN_BOUND
17397         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
17398         ftoastr.h.  This exposes an internal of intprops.h that was formerly
17399         not exposed.  Also, it uses a slightly tighter bound than before;
17400         though this makes no practical difference, we might as well be as
17401         tight as we easily can.
17402
17403         ftoastr: new module, for lossless conversion of floats to short strings
17404         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
17405         * modules/ftoastr: New files.
17406
17407 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17408
17409         bootstrap: port to Solaris sed
17410         * build-aux/bootstrap (get_version): Port to Solaris sed.
17411         See Ralf Wildenhues's note in
17412         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
17413
17414 2010-11-14  Jim Meyering  <meyering@redhat.com>
17415
17416         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
17417         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
17418         and move definition closer to sole use.
17419
17420 2010-11-13  Jim Meyering  <meyering@redhat.com>
17421
17422         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
17423         Now we require at least autoconf-2.59, which means the work-around
17424         is no longer needed.
17425         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
17426         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17427         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17428         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17429         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17430
17431 2010-11-13  Bruno Haible  <bruno@clisp.org>
17432
17433         rename, renameat: Avoid test failures at NFS mounted locations.
17434         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
17435         functions.
17436         (test_rename): Use assert_nonexistent.
17437         * tests/test-rename.c: Include <dirent.h>.
17438         * tests/test-renameat.c: Likewise.
17439         Reported by Gary V. Vaughan <gary@gnu.org>.
17440
17441         rename, renameat: Document Linux bug with NFS
17442         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
17443         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
17444         * doc/posix-functions/renameat.texi: Likewise.
17445         Suggested by Eric Blake.
17446
17447 2010-11-13  Bruno Haible  <bruno@clisp.org>
17448
17449         rename test: Add comments.
17450         * tests/test-rename.h (test_rename): Add structure and comments.
17451
17452 2010-11-13  Eric Blake  <eblake@redhat.com>
17453
17454         maintainer-makefile: cover a few more files
17455         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
17456         scripts generated within C files, for libvirt.
17457
17458 2010-11-13  Bruno Haible  <bruno@clisp.org>
17459
17460         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
17461         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
17462         character, return the number of bytes that belong together, not always
17463         1.
17464         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
17465         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
17466         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
17467         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
17468         number of bytes of an invalid character.
17469         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
17470         (main): Invoke it.
17471         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
17472         results.
17473         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
17474         malformed byte sequences.
17475         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
17476         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
17477         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
17478         Reported by Ben Pfaff and Paolo Bonzini.
17479
17480 2010-11-13  Bruno Haible  <bruno@clisp.org>
17481
17482         openat: Work around glibc bug with fchownat() and empty file names.
17483         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
17484         (gl_FUNC_FCHOWNAT): Invoke it.
17485         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
17486         * doc/posix-functions/fchownat.texi: Document the glibc bug.
17487         Reported by Gary V. Vaughan <gary@gnu.org>.
17488
17489 2010-11-13  Bruno Haible  <bruno@clisp.org>
17490
17491         openat: Ensure autoconf macro ordering.
17492         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
17493         gl_USE_SYSTEM_EXTENSIONS.
17494         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
17495
17496 2010-11-13  Bruno Haible  <bruno@clisp.org>
17497
17498         Update comments.
17499         * lib/unistr/u8-check.c: Update file name in comments.
17500         * lib/unistr/u8-mblen.c: Likewise.
17501         * lib/unistr/u8-prev.c: Likewise.
17502         * lib/unistr/u8-strmblen.c: Likewise.
17503         * lib/unistr/u8-strmbtouc.c: Likewise.
17504
17505 2010-11-13  Jim Meyering  <meyering@redhat.com>
17506
17507         tests: avoid test failure on Solaris 10 due to lack of PATH export
17508         * tests/test-update-copyright.sh: Don't forget to export PATH.
17509
17510         init.sh: ensure that IFS is defined, just in case...
17511         * tests/init.sh (setup_): Ensure that IFS is defined,
17512         so that saving and restoring it works as expected.  This
17513         appears to be useful at least for an old version of dash
17514         from a long time ago (RH 6).  See here for details:
17515         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
17516
17517         maint.mk: tighten "test a == b" check
17518         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
17519         test to files that contain something like #!/bin/sh.
17520         Without this, coreutils would get two false positives in
17521         the comments of C source files.
17522
17523 2010-11-12  Eric Blake  <eblake@redhat.com>
17524
17525         bootstrap: fix typo in previous attempt
17526         * build-aux/bootstrap (buildreq): Correct the grouping.
17527         Reported by Paul Eggert.
17528
17529         maintainer-makefile: prohibit test x == x
17530         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
17531         Based on a report by Matthias Bolte.
17532
17533         bootstrap: allow FreeBSD gzip
17534         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
17535         which has no '.' and goes to stderr.
17536         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
17537         Reported by Matthias Bolte.
17538
17539         maintainer-makefile: check for i18n setup
17540         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
17541         will likely work.
17542
17543 2010-11-12  Bruno Haible  <bruno@clisp.org>
17544
17545         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
17546         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
17547         * lib/nanosleep.c (nanosleep): Likewise.
17548
17549 2010-11-11  Bruno Haible  <bruno@clisp.org>
17550
17551         fcntl-h: Fix for use of C++ on glibc systems.
17552         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17553         also on glibc systems in C++ mode.
17554         Reported by Gary V. Vaughan <gary@gnu.org>.
17555
17556 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17557
17558         mknod: avoid false failure with dash
17559         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
17560
17561 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17562
17563         unlink: Fix "is it should" typo in diagnostic.
17564         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
17565         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
17566
17567 2010-11-11  Bruno Haible  <bruno@clisp.org>
17568
17569         Tests for module 'strerror_r-posix'.
17570         * modules/strerror_r-posix-tests: New file.
17571         * tests/test-strerror_r.c: New file.
17572         * tests/test-string-c++.cc: Check the signature of strerror_r.
17573
17574         New module 'strerror_r-posix'.
17575         * lib/string.in.h (strerror_r): New declaration.
17576         * lib/strerror_r.c: New file.
17577         * m4/strerror_r.m4: New file.
17578         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
17579         of strerror_r.
17580         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
17581         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17582         * modules/strerror_r-posix: New file.
17583         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
17584         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17585         * doc/posix-functions/strerror_r.texi: Mention the new module and the
17586         portability problems.
17587
17588 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
17589
17590         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
17591         line is also considered for output. Quoted function name in shell
17592         command, so temporary files for functions like MyClass::operator()
17593         are removed correctly without errors.
17594
17595 2010-11-09  Bruno Haible  <bruno@clisp.org>
17596
17597         * doc/posix-functions/strerror.texi: List more failing platforms.
17598
17599         * doc/posix-functions/strerror.texi: Add a comment.
17600
17601 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17602
17603         fdopendir: fix bug on MacOS X when low on file descriptors
17604
17605         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
17606         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
17607         All callers changed.
17608         (fdopendir): Invoke save_cwd at the top level, not after using
17609         multiple dup() calls to use up file descriptors.  Then retry
17610         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
17611         less than the maximum number of open file descriptors, because
17612         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
17613         on Mac OS X 10.6.4 for tar 1.24
17614         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
17615         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
17616         and for tar 1.25
17617         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
17618
17619 2010-11-07  Bruno Haible  <bruno@clisp.org>
17620
17621         vasnprintf: Support I flag on glibc systems.
17622         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
17623         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
17624         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
17625         snprintf function.
17626         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
17627         glibc systems.
17628         * tests/test-vasnprintf-posix3.c: New file.
17629         * modules/vasnprintf-posix-tests (Files): Add it.
17630         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
17631
17632 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17633
17634         [html] Fix copy/paste bug: Use unique name for compiler warnings.
17635         * MODULES.html.sh: For compiler warnings, use name
17636         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
17637
17638 2010-11-05  Eric Blake  <eblake@redhat.com>
17639
17640         ceil, floor: avoid spurious failure with icc
17641         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
17642         [denormals-as-zero] when optimizing without -mieee-fp option.
17643         * tests/test-floorf2.c (floorf_reference): Likewise.
17644         * tests/test-ceilf1.c (dummy): New function.
17645         (main): Use it to outsmart icc's optimization.
17646         * tests/test-floorf1.c (dummy, main): Likewise.
17647
17648         tests: require working signbit
17649         * modules/ceilf-tests (Depends-on): Add signbit.
17650         * modules/ceill-tests (Depends-on): Likewise.
17651         * modules/floorf-tests (Depends-on): Likewise.
17652         * modules/floorl-tests (Depends-on): Likewise.
17653         * modules/round-tests (Depends-on): Likewise.
17654         * modules/roundf-tests (Depends-on): Likewise.
17655         * modules/roundl-tests (Depends-on): Likewise.
17656         * modules/trunc-tests (Depends-on): Likewise.
17657         * modules/truncf-tests (Depends-on): Likewise.
17658         * modules/truncl-tests (Depends-on): Likewise.
17659
17660         strtod: work around icc bug
17661         * lib/strtod.c (minus_zero): Define to working value.
17662         (strtod): Use it to avoid icc bug.
17663
17664         copysign: enhance tests
17665         * modules/copysign-tests (Files): Add minus-zero.h.
17666         * tests/test-copysign.c (main): Also test zeros.
17667
17668 2010-11-04  Eric Blake  <eblake@redhat.com>
17669
17670         ceil, floor, round, trunc: enhance tests of -0
17671         * tests/test-ceilf1.c (main): Ensure correct sign of result.
17672         * tests/test-ceill.c (main): Likewise.
17673         * tests/test-floorf1.c (main): Likewise.
17674         * tests/test-floorl.c (main): Likewise.
17675         * tests/test-round1.c (main): Likewise.
17676         * tests/test-roundf1.c (main): Likewise.
17677         * tests/test-roundl.c (main): Likewise.
17678         * tests/test-trunc1.c (main): Likewise.
17679         * tests/test-truncf1.c (main): Likewise.
17680         * tests/test-truncl.c (main): Likewise.
17681
17682 2010-11-04  Eric Blake  <eblake@redhat.com>
17683
17684         frexp, tests: work around ICC bug with -zero
17685         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
17686         works with more compilers.
17687         * tests/minus-zero.h: New file.
17688         * modules/ceilf-tests (Files): Include it.
17689         * modules/ceill-tests (Files): Likewise.
17690         * modules/floorf-tests (Files): Likewise.
17691         * modules/floorl-tests (Files): Likewise.
17692         * modules/frexp-nolibm-tests (Files): Likewise.
17693         * modules/frexp-tests (Files): Likewise.
17694         * modules/frexpl-nolibm-tests (Files): Likewise.
17695         * modules/frexpl-tests (Files): Likewise.
17696         * modules/isnan-tests (Files): Likewise.
17697         * modules/isnand-nolibm-tests (Files): Likewise.
17698         * modules/isnand-tests (Files): Likewise.
17699         * modules/isnanf-nolibm-tests (Files): Likewise.
17700         * modules/isnanf-tests (Files): Likewise.
17701         * modules/isnanl-nolibm-tests (Files): Likewise.
17702         * modules/isnanl-tests (Files): Likewise.
17703         * modules/round-tests (Files): Likewise.
17704         * modules/roundf-tests (Files): Likewise.
17705         * modules/roundl-tests (Files): Likewise.
17706         * modules/ldexpl-tests (Files): Likewise.
17707         * modules/signbit-tests (Files): Likewise.
17708         * modules/snprintf-posix-tests (Files): Likewise.
17709         * modules/sprintf-posix-tests (Files): Likewise.
17710         * modules/strtod-tests (Files): Likewise.
17711         * modules/trunc-tests (Files): Likewise.
17712         * modules/truncf-tests (Files): Likewise.
17713         * modules/truncl-tests (Files): Likewise.
17714         * modules/vsnprintf-posix-tests (Files): Likewise.
17715         * modules/vsprintf-posix-tests (Files): Likewise.
17716         * modules/vasnprintf-posix-tests (Files): Likewise.
17717         * modules/vasprintf-posix-tests (Files): Likewise.
17718         * tests/test-ceilf1.c (main): Use it.
17719         * tests/test-ceill.c (main): Likewise.
17720         * tests/test-floorf1.c (main): Likewise.
17721         * tests/test-floorl.c (main): Likewise.
17722         * tests/test-frexp.c (main): Likewise.
17723         * tests/test-frexpl.c (main): Likewise.
17724         * tests/test-isnan.c (main): Likewise.
17725         * tests/test-isnand.h (main): Likewise.
17726         * tests/test-isnanf.h (main): Likewise.
17727         * tests/test-isnanl.h (main): Likewise.
17728         * tests/test-ldexpl.c (main): Likewise.
17729         * tests/test-round.c (main): Likewise.
17730         * tests/test-roundf.c (main): Likewise.
17731         * tests/test-roundl.c (main): Likewise.
17732         * tests/test-signbit.c (test_signbitf, test_signbitd)
17733         (test_signbitl): Likewise.
17734         * tests/test-snprintf-posix.h (test_function): Likewise.
17735         * tests/test-sprintf-posix.h (test_function): Likewise.
17736         * tests/test-strtod.c (main): Likewise.
17737         * tests/test-trunc1.c (main): Likewise.
17738         * tests/test-truncf1.c (main): Likewise.
17739         * tests/test-truncl.c (main): Likewise.
17740
17741         isnanl: work around icc bug
17742         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
17743
17744 2010-11-03  Eric Blake  <eblake@redhat.com>
17745
17746         tests: fix compiler warnings
17747         * tests/test-getopt.h (test_getopt): Fix condition.
17748         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17749         * tests/test-pipe2.c (main): Likewise.
17750         * tests/test-quotearg-simple.c (main): Avoid icc warning.
17751
17752         utimens: fix broken m4 test
17753         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
17754
17755 2010-10-28  Bruno Haible  <bruno@clisp.org>
17756
17757         posix_spawn*, getdtablesize: Relax license.
17758         * modules/posix_spawn (License): Change to LGPLv2+.
17759         * modules/posix_spawnp (License): Likewise.
17760         * modules/posix_spawn-internal (License): Likewise.
17761         * modules/posix_spawnattr_init (License): Likewise.
17762         * modules/posix_spawnattr_getflags (License): Likewise.
17763         * modules/posix_spawnattr_setflags (License): Likewise.
17764         * modules/posix_spawnattr_getpgroup (License): Likewise.
17765         * modules/posix_spawnattr_setpgroup (License): Likewise.
17766         * modules/posix_spawnattr_getschedparam (License): Likewise.
17767         * modules/posix_spawnattr_setschedparam (License): Likewise.
17768         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
17769         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
17770         * modules/posix_spawnattr_getsigdefault (License): Likewise.
17771         * modules/posix_spawnattr_setsigdefault (License): Likewise.
17772         * modules/posix_spawnattr_getsigmask (License): Likewise.
17773         * modules/posix_spawnattr_setsigmask (License): Likewise.
17774         * modules/posix_spawnattr_destroy (License): Likewise.
17775         * modules/posix_spawn_file_actions_init (License): Likewise.
17776         * modules/posix_spawn_file_actions_addclose (License): Likewise.
17777         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
17778         * modules/posix_spawn_file_actions_addopen (License): Likewise.
17779         * modules/posix_spawn_file_actions_destroy (License): Likewise.
17780         * modules/getdtablesize (License): Likewise.
17781         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
17782
17783 2010-10-26  Bruno Haible  <bruno@clisp.org>
17784
17785         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
17786         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
17787         Cygwin and mingw.
17788         Suggested by Eric Blake.
17789
17790 2010-10-26  Bruno Haible  <bruno@clisp.org>
17791
17792         stdio: Work around compilation error due to renameat() on Solaris 10.
17793         * lib/stdio.in.h: Include <unistd.h> on Solaris.
17794         * lib/renameat.c: Don't include <unistd.h> here.
17795         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
17796         Reported by Paul Eggert and Eric Blake.
17797
17798 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17799
17800         renameat: port to Solaris 10, which declares renameat in unistd.h
17801
17802         * lib/renameat.c: Include unistd.h before stdio.h, because
17803         Solaris 10 declares renameat in unistd.h.  Problem encountered
17804         when building GNU tar 1.24 on Solaris 10.
17805
17806 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17807
17808         fdopendir: fix C89 compilation
17809         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
17810         compilers.
17811
17812 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17813
17814         inttostr: simplify by removing unnecessary redundancy
17815         * lib/anytostr.c: Don't include verify.h.
17816         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
17817         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
17818         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
17819         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
17820         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
17821         Likewise.
17822         * modules/inttostr (Depends-on): Remove 'verify'.
17823
17824 2010-10-23  Bruno Haible  <bruno@clisp.org>
17825
17826         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
17827         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
17828         Reported by Eric Blake.
17829
17830 2010-10-23  Bruno Haible  <bruno@clisp.org>
17831
17832         Tests: Fix LOCALE_JA on MirBSD 10.
17833         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
17834         to an UTF-8 locale.
17835         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
17836         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17837         Reported by Eric Blake.
17838
17839 2010-10-21  Bruno Haible  <bruno@clisp.org>
17840
17841         nl_langinfo test: Avoid test failure on NetBSD 5.
17842         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
17843         Reported by Eric Blake.
17844
17845 2010-10-21  Eric Blake  <eblake@redhat.com>
17846
17847         c-stack: work around libsigsegv 2.8 bug
17848         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
17849         overflow on at least PowerPC64.
17850
17851 2010-10-17  Bruno Haible  <bruno@clisp.org>
17852
17853         userspec: Drop redundant file.
17854         * modules/userspec (Files): Remove lib/inttostr.h.
17855
17856 2010-10-17  Bruno Haible  <bruno@clisp.org>
17857
17858         nl_langinfo tests: Silence some warnings.
17859         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
17860         Reported by Jim Meyering.
17861
17862 2010-10-17  Bruno Haible  <bruno@clisp.org>
17863
17864         Make use of GCC's attribute __alloc_size__.
17865         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
17866         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
17867         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
17868         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
17869         __alloc_size__.
17870         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
17871         Suggested by Jim Meyering.
17872
17873 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
17874
17875         bootstrap: anchor .gitignore entries.
17876         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
17877         with...
17878         (insert_vc_ignore): ... this new function, which prepends `/' to
17879         all .gitignore entries before passing them to
17880         insert_sorted_if_absent.
17881
17882 2010-10-16  Bruno Haible  <bruno@clisp.org>
17883
17884         nextafter: Fix configure check.
17885         * modules/nextafter (configure.ac): Correct expected prototype.
17886
17887 2010-10-16  Bruno Haible  <bruno@clisp.org>
17888
17889         termios: Update documentation.
17890         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
17891
17892 2010-10-16  Bruno Haible  <bruno@clisp.org>
17893
17894         tests: Make them compile with TinyCC.
17895         * tests/test-strstr.c (main): Remove parentheses around array
17896         initializer.
17897
17898 2010-10-15  Eric Blake  <eblake@redhat.com>
17899
17900         ignore-value: make header idempotent
17901         * lib/ignore-value.h: Add double-inclusion guards.
17902         Reported by Stefan Berger.
17903
17904 2010-10-15  Jim Meyering  <meyering@redhat.com>
17905
17906         GNUmakefile: handle "stable" target, not "major"
17907         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
17908         lists in maint.mk and announce-gen.  Without this, "make stable"
17909         would fail to ensure that $(VERSION) is up to date.
17910
17911 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
17912
17913         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
17914         & co.
17915
17916 2010-10-14  Bruno Haible  <bruno@clisp.org>
17917
17918         vasnprintf: Don't set errno to 0.
17919         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
17920         block that sets it to 0.
17921         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
17922
17923 2010-10-14  Bruno Haible  <bruno@clisp.org>
17924
17925         socketlib: Fix.
17926         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
17927         gl_PREREQ_SYS_H_WINSOCK2.
17928         Reported by Ian Beckwith <ianb@erislabs.net>.
17929
17930 2010-10-13  Jim Meyering  <meyering@redhat.com>
17931
17932         test-select-stdin.c: avoid warn_unused_result warnings
17933         * tests/test-select-stdin.c: Include "macros.h".
17934         ASSERT that read and fflush succeed.
17935
17936 2010-10-13  Jim Meyering  <meyering@redhat.com>
17937
17938         git-version-gen: do require git-VC'd files in cwd
17939         * build-aux/git-version-gen: Reject a git version string
17940         if there are no commits associated with the current directory.
17941         This avoids an unlikely false-positive (unrelated dir whose parent
17942         repository also contains a tag matching v*), as pointed out
17943         by Giuseppe Scrivano in
17944         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
17945
17946 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17947
17948         argv-iter: omit nonconforming declaration
17949         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
17950         enum arg_iter_err declaration, which doesn't conform to C99.
17951         Solaris 10 cc warns about this.
17952
17953 2010-10-13  Eric Blake  <eblake@redhat.com>
17954
17955         termios: fix compilation on mingw
17956         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
17957         (gl_TERMIOS_H): Adjust it on mingw.
17958         * modules/termios (Makefile.am): Substitute new key.
17959         * lib/termios.in.h (includes): Make include_next conditional.
17960         * doc/posix-headers/termios.texi (termios.h): Update
17961         documentation.
17962         Reported by Daniel P. Berrange.
17963
17964 2010-10-13  Jim Meyering  <meyering@redhat.com>
17965
17966         git-version-gen: don't require that .git/ be in the current dir
17967         * build-aux/git-version-gen: Adjust this script so that it works
17968         when run from any working directory beneath the top-level .git/-
17969         containing directory.  Inspired by a patch from Giuseppe Scrivano,
17970         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
17971
17972         test-select: avoid warn_unused_result warnings
17973         * tests/test-select.c: Include "macros.h".
17974         ASSERT that each call to read, write, and pipe succeeds.
17975         While not technically required, also check each "close".
17976         * modules/select-tests (Files): Add tests/macros.h.
17977
17978         test-symlinkat: remove declaration of unused local
17979         * tests/test-symlinkat.c (main): Remove unused local, "buf".
17980
17981         test-inttostr: avoid shadowing warnings
17982         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
17983         and use malloc rather than the stack for the same reason as
17984         mentioned in the comment justifying the other allocation.
17985
17986 2010-10-11  Bruno Haible  <bruno@clisp.org>
17987
17988         stdlib: Allow multiple gnulib generated replacements to coexist.
17989         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
17990         Reported by Sam Steingold <sds@gnu.org>.
17991
17992 2010-10-11  Jim Meyering  <meyering@redhat.com>
17993
17994         fix a documentation typo
17995         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
17996
17997 2010-10-11  Eric Blake  <eblake@redhat.com>
17998
17999         futimens: work around Solaris 11 bug
18000         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18001         * tests/test-futimens.h (test_futimens): Enhance, rather than
18002         weaken test.
18003         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18004
18005 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18006
18007         Indentation.
18008         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18009         higher-level operators more to the left.
18010
18011 2010-10-11  Jim Meyering  <meyering@redhat.com>
18012
18013         test-futimens: avoid unwarranted test failure on Solaris 5.11
18014         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18015         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18016         because it tries to dereference the NULL name argument.
18017
18018 2010-10-11  Bruno Haible  <bruno@clisp.org>
18019
18020         Indentation.
18021         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18022         indentation.
18023
18024 2010-10-11  Jim Meyering  <meyering@redhat.com>
18025
18026         spawn.in.h: make indentation consistent with parentheses
18027         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18028         Make indentation consistent with parentheses.
18029
18030 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18031
18032         Fix mismatched parens in previous commit
18033         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18034         parens.
18035
18036 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18037
18038         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18039
18040         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18041         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18042         * lib/malloca.c: Include "verify.h".
18043         (verify1): Remove, replacing with a verify call.
18044         * lib/relocwrapper.c (verify1): Likewise.
18045         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18046         Likewise.
18047         * modules/malloca (Depends-on): Add 'verify'.
18048         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18049         * modules/vasnprintf (Depends-on): Add 'verify'.
18050         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18051         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18052         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18053         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18054         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18055         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18056         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18057
18058         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18059
18060         Formerly the style was sometimes 2*X - 1, because the C standard
18061         was wrongly thought to disallow ?: in integral constant expressions.
18062         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18063         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18064         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18065         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18066         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18067         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18068         verify that time_t cannot be floating.
18069
18070 2010-10-08  Eric Blake  <eblake@redhat.com>
18071
18072         time: enforce recent POSIX ruling that time_t is integral
18073         * lib/time.in.h (__time_t_must_be_integral): Detect any
18074         problematic systems, allowing the rest of gnulib to assume POSIX.
18075
18076 2010-10-08  Jim Meyering  <meyering@redhat.com>
18077
18078         fdopendir: fix a bug on systems lacking openat and /proc support
18079         OpenBSD 4.7 is one such system.  The most noticeable effect was
18080         failure of any application making nontrivial use of fts: rm, du,
18081         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18082           ./rm: traversal failed: `a': Bad file descriptor
18083         Debugging that, you see that even though FD 6 was closed just
18084         prior to the opendir call in fd_clone_opendir, its resulting
18085         dir->dd_fd was 8, rather than the expected value of 6:
18086
18087         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18088         93                close (fd);
18089         (gdb) n
18090         94                dir = fd_clone_opendir (dupfd);
18091         (gdb) n
18092         95                saved_errno = errno;
18093         (gdb) p dir->dd_fd
18094         $11 = 8
18095
18096         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18097         The problem is that on OpenBSD, fd_clone_opendir has to resort
18098         to using the old-style save/restore CWD mechanism, due to its
18099         lack of openat/proc support, and *that* would steal the FD (6)
18100         that opendir was supposed to use.
18101
18102         The fix is to squirrel away the desired FD so that save_cwd uses a
18103         different one, and then free the dest FD right before calling opendir.
18104         That guarantees opendir will use the required file descriptor.
18105
18106         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18107
18108 2010-10-08  Bruno Haible  <bruno@clisp.org>
18109
18110         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18111         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18112
18113 2010-10-08  Bruno Haible  <bruno@clisp.org>
18114
18115         nanosleep: Make replacement POSIX compliant.
18116         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18117         is out of range.
18118         Reported by Jim Meyering.
18119
18120 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18121
18122         bootstrap: add hook for altering gnulib.mk, for Bison
18123         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18124         the Bison bootstrapping process can rewrite file names and variables
18125         in this file before later parts of 'bootstrap' use the file.
18126         Bison wants to include lib/gnulib.mk from the top-level makefile,
18127         so it needs the file names in this file to be relative to the top
18128         level, not relative to lib; plus it needs variable names to be
18129         rewritten.
18130         (slurp): Use the new function.
18131
18132         bootstrap: reformat for readability
18133         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
18134
18135 2010-10-08  Eric Blake  <eblake@redhat.com>
18136
18137         docs: update cygwin progress
18138         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
18139         1.7.7.
18140         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
18141         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
18142         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
18143         * doc/posix-functions/carg.texi (carg): Likewise.
18144         * doc/posix-functions/cargf.texi (cargf): Likewise.
18145         * doc/posix-functions/casin.texi (casin): Likewise.
18146         * doc/posix-functions/casinf.texi (casinf): Likewise.
18147         * doc/posix-functions/casinh.texi (casinh): Likewise.
18148         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
18149         * doc/posix-functions/catan.texi (catan): Likewise.
18150         * doc/posix-functions/catanf.texi (catanf): Likewise.
18151         * doc/posix-functions/catanh.texi (catanh): Likewise.
18152         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
18153         * doc/posix-functions/ccos.texi (ccos): Likewise.
18154         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
18155         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
18156         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
18157         * doc/posix-functions/cexp.texi (cexp): Likewise.
18158         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
18159         * doc/posix-functions/cimag.texi (cimag): Likewise.
18160         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
18161         * doc/posix-functions/clog.texi (clog): Likewise.
18162         * doc/posix-functions/clogf.texi (clogf): Likewise.
18163         * doc/posix-functions/conj.texi (conj): Likewise.
18164         * doc/posix-functions/conjf.texi (conjf): Likewise.
18165         * doc/posix-functions/cpow.texi (cpow): Likewise.
18166         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
18167         * doc/posix-functions/cproj.texi (cproj): Likewise.
18168         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
18169         * doc/posix-functions/creal.texi (creal): Likewise.
18170         * doc/posix-functions/crealf.texi (crealf): Likewise.
18171         * doc/posix-functions/csin.texi (csin): Likewise.
18172         * doc/posix-functions/csinf.texi (csinf): Likewise.
18173         * doc/posix-functions/csinh.texi (csinh): Likewise.
18174         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
18175         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18176         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18177         * doc/posix-functions/ctan.texi (ctan): Likewise.
18178         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18179         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18180         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18181         * doc/posix-headers/complex.texi (complex.h): Likewise.
18182
18183 2010-10-07  Jim Meyering  <meyering@redhat.com>
18184
18185         parse-datetime: avoid compilation failure on OpenBSD 4.7
18186         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18187         This works around a compilation failure on OpenBSD 4.7:
18188         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18189
18190 2010-10-07  Eric Blake  <eblake@redhat.com>
18191
18192         docs: update cygwin progress
18193         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18194         1.7.6.
18195         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18196         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18197         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18198         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18199         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18200         Likewise.
18201         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18202         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18203         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18204         Likewise.
18205         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
18206         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
18207         Likewise.
18208         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
18209         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
18210         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
18211         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
18212         Likewise.
18213         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
18214         Likewise.
18215         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
18216
18217         docs: update parse-datetime history
18218         * doc/parse-datetime.texi (Authors of parse_datetime): Better
18219         documentation of this function's history and alternatives.
18220
18221         cygwin: use more robust version check
18222         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
18223         exclude an eventual cygwin 1.9.1.
18224         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18225         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18226         (gl_FUNC_STRCASESTR): Likewise.
18227         Reported by Bruno Haible.
18228
18229 2010-10-06  Bruno Haible  <bruno@clisp.org>
18230
18231         string, sys_select: Avoid #including large headers unless necessary.
18232         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
18233         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
18234         OSF/1, BeOS, Haiku.
18235         Reported by Jim Meyering.
18236
18237 2010-10-05  Eric Blake  <eblake@redhat.com>
18238
18239         memmem, strstr, strcasestr: fix bug with long periodic needle
18240         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
18241         periodic needle having false positive.
18242         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
18243         and cygwin 1.7.7.
18244         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
18245         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18246         (gl_FUNC_STRCASESTR): Likewise.
18247         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18248         * tests/test-memmem.c (main): Expose the bug.
18249         * tests/test-strcasestr.c (main): Likewise.
18250         * tests/test-strstr.c (main): Likewise.
18251         * tests/test-c-strcasestr.c (main): Likewise.
18252         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
18253         * doc/posix-functions/strstr.texi (strstr): Likewise.
18254         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18255         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
18256
18257 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18258
18259         parse-datetime: do some more renaming
18260         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
18261         parse_datetime, not get_date.  Mention the renaming.
18262         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
18263         in comments.
18264         * m4/bison.m4: Likewise.
18265
18266 2010-10-05  Eric Blake  <eblake@redhat.com>
18267
18268         parse-datetime: better name than get_date
18269         * NEWS: Reword the deprecation notice.
18270         * modules/get_date: Rename to modules/parse-datetime.
18271         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
18272         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
18273         * lib/get_date.y: Rename to lib/parse-datetime.y.
18274         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
18275         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
18276         * doc/getdate.texi: Provide fallback wrapper.
18277         * lib/getdate.h: Move guts, and wrap...
18278         * lib/parse-datetime.h: ...new file.
18279         * lib/parse-datetime.y (get_date): Rename...
18280         (parse_datetime): ...to this.
18281         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
18282         (gl_PARSE_DATETIME): ...to this.
18283         * doc/posix-functions/getdate.texi (get_date): Provide fallback
18284         documentation.
18285         * modules/getdate (Files): Provide fallback docs and header.
18286         (Notice, Depends-on): Update references.
18287         * tests/test-parse-datetime.c: Likewise.
18288         * DEPENDENCIES: Likewise.
18289         * MODULES.html.sh (Date and time <time.h>): Likewise.
18290         * doc/parse-datetime.texi (Date input formats)
18291         (Authors of parse_datetime): Likewise.
18292         * modules/parse-datetime (Files, configure.ac, Makefile.am)
18293         (Include): Likewise.
18294         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
18295         * gnulib-tool: Likewise.
18296         * m4/bison.m4 (gl_BISON): Likewise.
18297         Suggested by Bruno Haible.
18298
18299 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18300
18301         more ports to Solaris tr, which needs [] around ranges
18302         * gnulib-tool: Solaris tr needs [] around ranges.
18303         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18304         * tests/test-pipe-filter-gi1.c (main): Likewise.
18305         * tests/test-pipe-filter-ii1.c (main): Likewise.
18306
18307 2010-10-05  Eric Blake  <eblake@redhat.com>
18308
18309         bootstrap: fix Solaris regression
18310         * build-aux/bootstrap (check_versions): Solaris tr still needs []
18311         around ranges.
18312         Reported by Pádraig Brady.
18313
18314         bootstrap: work with pkg-config
18315         * build-aux/bootstrap (check_versions): Also transliterate - in
18316         prerequisite name.
18317         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
18318         prerequisites that were already found, to avoid confusion.
18319         Reported by Justin Clift.
18320
18321         faccessat: remove unused wrappers
18322         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
18323         presence of these wrappers dragged in -lgen on Solaris.
18324         Reported by Clemens Brogi; fix suggested by Paul Eggert.
18325
18326 2010-10-05  Jim Meyering  <meyering@redhat.com>
18327
18328         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
18329         * Makefile (sc_pragma_columns): New syntax-check rule.
18330
18331 2010-10-04  Bruno Haible  <bruno@clisp.org>
18332
18333         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
18334         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
18335         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
18336         Reported by Bruce Korb and Eric Blake.
18337
18338 2010-10-04  Bruno Haible  <bruno@clisp.org>
18339
18340         threadlib: Make option --with-libpth-prefix work.
18341         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
18342         use $LIBPTH, not just -lpth.
18343
18344 2010-10-04  Bruno Haible  <bruno@clisp.org>
18345
18346         Avoid line length limitation from HP NonStop system header files.
18347         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
18348         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
18349         * lib/ctype.in.h: Likewise.
18350         * lib/dirent.in.h: Likewise.
18351         * lib/errno.in.h: Likewise.
18352         * lib/fcntl.in.h: Likewise.
18353         * lib/float.in.h: Likewise.
18354         * lib/getopt.in.h: Likewise.
18355         * lib/iconv.in.h: Likewise.
18356         * lib/inttypes.in.h: Likewise.
18357         * lib/langinfo.in.h: Likewise.
18358         * lib/locale.in.h: Likewise.
18359         * lib/math.in.h: Likewise.
18360         * lib/netdb.in.h: Likewise.
18361         * lib/netinet_in.in.h: Likewise.
18362         * lib/poll.in.h: Likewise.
18363         * lib/pthread.in.h: Likewise.
18364         * lib/pty.in.h: Likewise.
18365         * lib/sched.in.h: Likewise.
18366         * lib/se-selinux.in.h: Likewise.
18367         * lib/search.in.h: Likewise.
18368         * lib/signal.in.h: Likewise.
18369         * lib/spawn.in.h: Likewise.
18370         * lib/stdarg.in.h: Likewise.
18371         * lib/stddef.in.h: Likewise.
18372         * lib/stdint.in.h: Likewise.
18373         * lib/stdio.in.h: Likewise.
18374         * lib/stdlib.in.h: Likewise.
18375         * lib/string.in.h: Likewise.
18376         * lib/strings.in.h: Likewise.
18377         * lib/sys_file.in.h: Likewise.
18378         * lib/sys_ioctl.in.h: Likewise.
18379         * lib/sys_select.in.h: Likewise.
18380         * lib/sys_socket.in.h: Likewise.
18381         * lib/sys_stat.in.h: Likewise.
18382         * lib/sys_time.in.h: Likewise.
18383         * lib/sys_times.in.h: Likewise.
18384         * lib/sys_utsname.in.h: Likewise.
18385         * lib/sys_wait.in.h: Likewise.
18386         * lib/sysexits.in.h: Likewise.
18387         * lib/termios.in.h: Likewise.
18388         * lib/time.in.h: Likewise.
18389         * lib/unistd.in.h: Likewise.
18390         * lib/wchar.in.h: Likewise.
18391         * lib/wctype.in.h: Likewise.
18392         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
18393         * modules/ctype (Makefile.am): Likewise.
18394         * modules/dirent (Makefile.am): Likewise.
18395         * modules/errno (Makefile.am): Likewise.
18396         * modules/fcntl-h (Makefile.am): Likewise.
18397         * modules/float (Makefile.am): Likewise.
18398         * modules/getopt-posix (Makefile.am): Likewise.
18399         * modules/iconv-h (Makefile.am): Likewise.
18400         * modules/inttypes (Makefile.am): Likewise.
18401         * modules/langinfo (Makefile.am): Likewise.
18402         * modules/locale (Makefile.am): Likewise.
18403         * modules/math (Makefile.am): Likewise.
18404         * modules/netdb (Makefile.am): Likewise.
18405         * modules/netinet_in (Makefile.am): Likewise.
18406         * modules/poll-h (Makefile.am): Likewise.
18407         * modules/pthread (Makefile.am): Likewise.
18408         * modules/pty (Makefile.am): Likewise.
18409         * modules/sched (Makefile.am): Likewise.
18410         * modules/search (Makefile.am): Likewise.
18411         * modules/selinux-h (Makefile.am): Likewise.
18412         * modules/signal (Makefile.am): Likewise.
18413         * modules/spawn (Makefile.am): Likewise.
18414         * modules/stdarg (Makefile.am): Likewise.
18415         * modules/stddef (Makefile.am): Likewise.
18416         * modules/stdint (Makefile.am): Likewise.
18417         * modules/stdio (Makefile.am): Likewise.
18418         * modules/stdlib (Makefile.am): Likewise.
18419         * modules/string (Makefile.am): Likewise.
18420         * modules/strings (Makefile.am): Likewise.
18421         * modules/sys_file (Makefile.am): Likewise.
18422         * modules/sys_ioctl (Makefile.am): Likewise.
18423         * modules/sys_select (Makefile.am): Likewise.
18424         * modules/sys_socket (Makefile.am): Likewise.
18425         * modules/sys_stat (Makefile.am): Likewise.
18426         * modules/sys_time (Makefile.am): Likewise.
18427         * modules/sys_times (Makefile.am): Likewise.
18428         * modules/sys_utsname (Makefile.am): Likewise.
18429         * modules/sys_wait (Makefile.am): Likewise.
18430         * modules/sysexits (Makefile.am): Likewise.
18431         * modules/termios (Makefile.am): Likewise.
18432         * modules/time (Makefile.am): Likewise.
18433         * modules/unistd (Makefile.am): Likewise.
18434         * modules/wchar (Makefile.am): Likewise.
18435         * modules/wctype (Makefile.am): Likewise.
18436
18437 2010-10-04  Bruno Haible  <bruno@clisp.org>
18438
18439         read-file tests: Avoid a test failure on NonStop Kernel.
18440         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
18441         a regular file.
18442         Reported by Joachim Schmitz <schmitz@hp.com>.
18443
18444 2010-10-03  Bruno Haible  <bruno@clisp.org>
18445
18446         gnulib-tool: Fixes for --create-testdir with --libtool.
18447         * gnulib-tool (func_get_automake_snippet): Don't augment
18448         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
18449         an executable.
18450         (func_create_testdir): Handle module 'alloca' like func_import.
18451         Reported by Bruce Korb <bruce.korb@gmail.com>.
18452
18453 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18454
18455         Avoid some lines longer than 80 characters.
18456         * lib/stdint.in.h: Break long comment lines.
18457         * lib/math.in.h: Likewise.
18458         (_GL_NUM_UINT_WORDS): New macro, for readability.
18459         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
18460         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
18461         * lib/stdlib.in.h: Likewise.
18462         * lib/spawn.in.h: Likewise.
18463         * lib/sys_socket.in.h: Update an URL.
18464         * lib/sys_stat.in.h: Break long line.
18465
18466 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
18467
18468         Improve pmccabe2html.
18469         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
18470         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
18471         when the sources change. Remove the line in the HTML about "Used
18472         ranges" (which implied that there might be other unused ranges),
18473         rename "Resume" to "Summary" (easier to understand for more users).
18474         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
18475         styles, and some unnecessary blank lines.
18476
18477 2010-10-03  Bruno Haible  <bruno@clisp.org>
18478             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
18479
18480         acl: Add support for ACLs on NonStop Kernel.
18481         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
18482         Check whether the function aclsort() exists.
18483         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
18484         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
18485         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18486         (acl_nontrivial [HAVE_ACLSORT]: New function.
18487         (file_has_acl): Implement for NonStop Kernel.
18488         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18489         (qset_acl): Implement for NonStop Kernel.
18490         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
18491         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18492         (main): Implement for NonStop Kernel.
18493         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
18494         Kernel. Handle this flavor.
18495         * tests/test-set-mode-acl.sh: Likewise.
18496         * tests/test-copy-acl.sh: Likewise.
18497         * tests/test-copy-file.sh: Likewise.
18498
18499 2010-10-03  Bruno Haible  <bruno@clisp.org>
18500
18501         Info about ACLs on NonStop Kernel.
18502         * doc/acl-resources.txt: Add info about NonStop Kernel.
18503         References by Joachim Schmitz <schmitz@hp.com>.
18504
18505 2010-10-02  Bruno Haible  <bruno@clisp.org>
18506
18507         Define missing EDQUOT on NonStop Kernel.
18508         * lib/errno.in.h (EDQUOT): Assign a value if missing.
18509         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
18510         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
18511         missing.
18512         * doc/posix-headers/errno.texi: Mention the NSK bug.
18513         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
18514         Reported by Joachim Schmitz <schmitz@hp.com>.
18515
18516 2010-10-02  Bruno Haible  <bruno@clisp.org>
18517
18518         Update doc for POSIX:2008.
18519         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
18520         Update URL of POSIX specification.
18521
18522 2010-10-02  Bruno Haible  <bruno@clisp.org>
18523
18524         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
18525         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
18526         from gnulib, not from Automake.
18527
18528 2010-10-02  Bruno Haible  <bruno@clisp.org>
18529
18530         New module 'system-posix'.
18531         * modules/system-posix: New file.
18532         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
18533         module is present.
18534         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18535         GNULIB_SYSTEM_POSIX.
18536         * modules/stdlib (Depends-on): Remove sys_wait.
18537         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
18538         * doc/posix-functions/system.texi: Mention the new module.
18539         * doc/posix-headers/stdlib.texi: Likewise.
18540         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
18541         define test_sys_wait_macros to a no-op.
18542         Reported by Sam Steingold <sds@gnu.org>.
18543
18544 2010-09-30  Bruno Haible  <bruno@clisp.org>
18545
18546         More renaming from 'getdate' to 'get_date'.
18547         * doc/get_date.texi: Renamed from doc/getdate.texi.
18548         * modules/get_date (Files): Update.
18549         * MODULES.html.sh (Date and time <time.h>): Update.
18550         * DEPENDENCIES: Update.
18551         * gnulib-tool: Update comment.
18552         * m4/bison.m4 (gl_BISON): Likewise.
18553         * m4/get_date.m4 (gl_GET_DATE): Likewise.
18554
18555 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
18556
18557         bootstrap: support ACLOCAL_FLAGS during aclocal
18558         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
18559         can add additional -I dir for third-party .m4 files.
18560
18561 2010-09-30  Eric Blake  <eblake@redhat.com>
18562
18563         bootstrap: use glibtoolize on MacOS
18564         * build-aux/bootstrap (check_versions): Convert libtool into
18565         libtoolize.
18566         (tool search): Move libtool check earlier, and look for
18567         glibtoolize for MacOS.
18568         (gnulib_tool_options): Auto-add --libtool when appropriate.
18569         Reported by Justin Clift.
18570
18571         poll: fix typo that broke test on MacOS
18572         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
18573         Reported by Justin Clift.
18574
18575         getdate: rename to get_date
18576         Note: getdate.h is not renamed, to minimize client impact.
18577         * modules/getdate: Mark obsolete.  Move old contents...
18578         * modules/get_date: ...to new module name.
18579         * modules/getdate-tests: Move...
18580         * modules/get_date-tests: ...here.
18581         * m4/getdate.m4: Move...
18582         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
18583         * lib/getdate.y: Move...
18584         * lib/get_date.y: ...here.
18585         * tests/test-getdate.c: Move...
18586         * tests/test-get_date.c: ...here.
18587         * doc/posix-functions/getdate.texi (getdate): Update name.
18588         * NEWS: Mention the change.
18589
18590 2010-09-29  Bruno Haible  <bruno@clisp.org>
18591
18592         Separate the module 'waitpid' from the module 'sys_wait'.
18593         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
18594         present.
18595         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
18596         gl_MODULE_INDICATOR_FOR_TESTS.
18597         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
18598         * modules/sys_wait (Depends-on): Remove waitpid.
18599         (Makefile.am): Substitute GNULIB_WAITPID.
18600         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
18601         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
18602         signature only if the 'waitpid' module is present.
18603         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
18604         * NEWS: Mention the change.
18605         * modules/grantpt (Depends-on): Add waitpid.
18606         * modules/wait-process (Depends-on): Likewise.
18607
18608 2010-09-29  Bruno Haible  <bruno@clisp.org>
18609
18610         More tests for module 'sys_wait'.
18611         * modules/sys_wait-c++-tests: New file.
18612         * tests/test-sys_wait-c++.cc: New file.
18613         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
18614         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18615
18616 2010-09-29  Bruno Haible  <bruno@clisp.org>
18617
18618         New module 'waitpid'.
18619         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
18620         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
18621         Don't include <process.h>.
18622         (waitpid): Declare only, using modern idiom.
18623         * m4/waitpid.m4: New file.
18624         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
18625         * modules/waitpid: New file.
18626         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
18627         (Makefile.am): Update.
18628         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18629
18630 2010-09-28  Bruno Haible  <bruno@clisp.org>
18631
18632         poll: Assume ANSI C.
18633         * lib/poll.c (poll): Use an ANSI C declaration.
18634
18635 2010-09-28  Bruno Haible  <bruno@clisp.org>
18636
18637         poll-h: Create poll.h on all platforms.
18638         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
18639         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
18640         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
18641         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
18642         (gl_REPLACE_POLL_H): Don't set POLL_H.
18643         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
18644         * modules/poll-h (Depends-on): Add include_next.
18645         (Makefile.am): Create poll.h unconditionally. Substitute also
18646         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
18647
18648 2010-09-28  Bruno Haible  <bruno@clisp.org>
18649
18650         Tests for module 'poll-h'.
18651         * modules/poll-h-c++-tests: New file.
18652         * tests/test-poll-h-c++.cc: New file.
18653
18654         Tests for module 'poll-h'.
18655         * modules/poll-h-tests: New file.
18656         * tests/test-poll-h.c: New file.
18657
18658 2010-09-28  Bruno Haible  <bruno@clisp.org>
18659
18660         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
18661         * modules/poll-h (Depends-on): Add 'extensions'.
18662
18663 2010-09-28  Bruno Haible  <bruno@clisp.org>
18664
18665         New module 'poll-h'.
18666         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
18667         (poll): Use modern idiom.
18668         * modules/poll-h: New file.
18669         * modules/poll (Files): Remove lib/poll.in.h.
18670         (Depends-on): Add poll-h.
18671         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
18672         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
18673         * m4/poll_h.m4: New file.
18674         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
18675         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
18676         and invoke gl_REPLACE_POLL_H.
18677         * lib/poll.c: Use common idiom.
18678         * tests/test-poll.c: Likewise.
18679         * doc/posix-headers/poll.texi: Mention the poll-h module.
18680         Suggested by Eric Blake.
18681
18682 2010-09-26  Bruno Haible  <bruno@clisp.org>
18683
18684         sys_wait: Implement WSTOPSIG.
18685         * lib/sys_wait.in.h (WSTOPSIG): New macro.
18686         Reported by Simon Josefsson.
18687
18688 2010-09-26  Simon Josefsson  <simon@josefsson.org>
18689
18690         stdlib, sys_wait: Avoid compilation error on mingw.
18691         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
18692
18693 2010-09-26  Bruno Haible  <bruno@clisp.org>
18694
18695         stdlib tests: Avoid code duplication.
18696         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
18697         * modules/sys_wait-tests (Files): Likewise.
18698         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
18699         * tests/test-stdlib.c: Include test-sys_wait.h.
18700         (main): Invoke test_sys_wait_macros.
18701         * tests/test-sys_wait.c: Include test-sys_wait.h.
18702         (main): Invoke test_sys_wait_macros.
18703
18704 2010-09-25  Simon Josefsson  <simon@josefsson.org>
18705
18706         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
18707         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
18708         sure Windows sockets are working before calling getaddrinfo.
18709         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
18710         * doc/gnulib.texi (Windows sockets): Fix typo.
18711
18712 2010-09-25  Bruno Haible  <bruno@clisp.org>
18713
18714         Tests for module 'regex-quote'.
18715         * modules/regex-quote-tests: New file.
18716         * tests/test-regex-quote.c: New file.
18717
18718         New module 'regex-quote'.
18719         * lib/regex-quote.h: New file.
18720         * lib/regex-quote.c: New file.
18721         * modules/regex-quote: New file.
18722         Suggested by Reuben Thomas <rrt@sc3d.org>.
18723
18724 2010-09-24  Bruno Haible  <bruno@clisp.org>
18725
18726         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
18727         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
18728
18729 2010-09-23  Bruno Haible  <bruno@clisp.org>
18730
18731         setenv: Relax license.
18732         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
18733         Blake.
18734         Requested by Eric Blake.
18735
18736 2010-09-22  Bruno Haible  <bruno@clisp.org>
18737
18738         termios: Relax license.
18739         * modules/termios (License): Change to LGPLv2+.
18740         Requested by Eric Blake.
18741
18742 2010-09-22  Bruno Haible  <bruno@clisp.org>
18743
18744         threadlib: Allow the package to change the default to 'no'.
18745         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
18746         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
18747         Reported by Paul Eggert.
18748
18749 2010-09-22  Pádraig Brady  <P@draigbrady.com>
18750             Bruno Haible  <bruno@clisp.org>
18751
18752         Fix endless loop in mbmemcasecoll.
18753         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
18754         byte.
18755         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
18756
18757 2010-09-22  Bruno Haible  <bruno@clisp.org>
18758
18759         Tests for module 'memcoll'.
18760         * modules/memcoll-tests: New file.
18761         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
18762
18763         memcoll, xmemcoll: Clarify size vs. length.
18764         * modules/memcoll.c (memcoll0): Clarify specification.
18765         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
18766         passed to collate_error.
18767
18768 2010-09-22  Bruno Haible  <bruno@clisp.org>
18769
18770         Tests for module 'memcasecmp'.
18771         * modules/memcasecmp-tests: New file.
18772         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
18773
18774 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18775
18776         * lib/pthread.in.h: Add split double-inclusion guard, and include
18777         system <pthread.h> if there is one.  Use @@-style as in other
18778         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
18779         pthread.h doesn't.
18780         (pthread_mutexattr_destroy, pthread_mutexattr_init):
18781         (pthread_mutexattr_settype, pthread_mutex_trylock):
18782         New static inline functions, if there's no system <pthread.h>.
18783         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
18784         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
18785         Approximate with mutexes if the system lacks spinlocks, as in
18786         MacOS.
18787         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
18788         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
18789         @@-style.  Check for spinlocks separately.
18790         (gl_PTHREAD_DEFAULTS): New macro.
18791         * modules/pthread: Redo to use a more typical style for in.h files.
18792
18793 2010-09-21  Eric Blake  <eblake@redhat.com>
18794
18795         net_if: enhance tests
18796         * tests/test-net_if.c (main): Move signature checks earlier.
18797         Print failures to stderr.
18798         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
18799         Document the bug that we do not yet fix.
18800
18801 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18802
18803         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
18804         about gnulib, not GSS.
18805
18806 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18807
18808         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
18809         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
18810         for Emacs.
18811         * build-aux/pmccabe2html: Make Makefile.am example code more
18812         cut-and-paste friendly.
18813
18814 2010-09-21  Simon Josefsson  <simon@josefsson.org>
18815
18816         * tests/test-net_if.c: New file.
18817         * modules/net_if-tests: New file.
18818
18819 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
18820
18821         pthread: add pthread_spin_destroy
18822         * lib/pthread.in.h (pthread_spin_destroy): New function.
18823
18824 2010-09-19  Bruno Haible  <bruno@clisp.org>
18825
18826         gnulib-tool: Fix --help output.
18827         * gnulib-tool (func_usage): Fix help message.
18828         Reported by Reuben Thomas <rrt@sc3d.org>.
18829
18830 2010-09-18  Jim Meyering  <meyering@redhat.com>
18831
18832         maint.mk: avoid unexpanded \n in two diagnostics
18833         * top/maint.mk (sc_prohibit_always_true_header_tests):
18834         Don't use a literal \n in a halt=... assignment.  It would not be
18835         expanded, and the two \n bytes would appear in the diagnostic output
18836         rather than the desired newline.  Use halt=$$(printf ... instead.
18837         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18838
18839 2010-09-18  Bruno Haible  <bruno@clisp.org>
18840
18841         netinet_in: Doc tweak.
18842         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
18843         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18844
18845 2010-09-18  Jim Meyering  <meyering@redhat.com>
18846
18847         init.sh: correct an outdated comment
18848         * tests/init.sh (create_exe_shims_):  s/function/alias/
18849
18850         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
18851         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
18852         a file named "*.exe" is removed between the glob expansion and the
18853         processing of that oddly named file.
18854
18855 2010-09-17  Eric Blake  <eblake@redhat.com>
18856
18857         mirbsd: add some more support
18858         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
18859         in BSD family.
18860         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
18861         devices as OpenBSD.
18862         * m4/host-os.m4 (mirbsd): Add MirBSD.
18863
18864         tests: fix unportable assumption on sys/wait.h
18865         * tests/test-sys_wait.c (main): Relax test.
18866         * tests/test-stdlib.c (main): Likewise.
18867
18868         init.sh: accomodate directory with no .exes
18869         * tests/init.sh: Accomodate directory containing only scripts.
18870
18871         tests: avoid compiler warning
18872         * tests/test-stdlib.c (main): Use the variable.
18873
18874         fdutimens, fdutimensat: update signature, again
18875         * lib/utimens.h (gl_futimens): Delete, and move signature...
18876         (fdutimens): ...here.
18877         (fdutimensat): Rearrange signature.
18878         (lutimensat): Rename variable for clarity.
18879         * lib/fdutimensat.c (fdutimensat): Update signature.
18880         * lib/utimens.c (fdutimens): Likewise.
18881         (gl_futimens): Delete.
18882         (utimens, lutimens): Update callers.
18883         * lib/futimens.c (futimens): Likewise.
18884         * tests/test-fdutimensat.c: Likewise.
18885         * tests/test-utimens.c: Likewise.
18886         * tests/test-futimens.h: Update comment.
18887         * NEWS: Mention this.
18888         Suggested by Paul Eggert.
18889
18890 2010-09-17  Bruno Haible  <bruno@clisp.org>
18891
18892         Take over the maintenance of some older macros from Autoconf.
18893         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
18894         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
18895         GNU Autoconf.
18896         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
18897         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
18898
18899 2010-09-17  Eric Blake  <eblake@redhat.com>
18900
18901         fdutimensat: drop atflag validation
18902         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
18903         with valid fd, to close a race scenario where futimens is
18904         unsupported and FILE was replaced by a symlink.
18905         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
18906         accordingly.
18907         Suggested by Paul Eggert.
18908
18909 2010-09-16  Bruno Haible  <bruno@clisp.org>
18910
18911         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
18912         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
18913
18914 2010-09-16  Bruno Haible  <bruno@clisp.org>
18915
18916         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
18917         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
18918         login_tty exists.
18919         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18920
18921 2010-09-16  Bruno Haible  <bruno@clisp.org>
18922
18923         login_tty: Make the replacement code work on BSD systems.
18924         * lib/login_tty.c: Include <sys/ioctl.h>.
18925         (login_tty): Use ioctl TIOCSCTTY when available.
18926         * modules/login_tty (Depends-on): Add sys_ioctl.
18927         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18928
18929 2010-09-16  Bruno Haible  <bruno@clisp.org>
18930
18931         login_tty: Stricter unit test.
18932         * modules/login_tty-tests (Depends-on): Add tcgetsid.
18933         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
18934         and tcgetsid() after login_tty.
18935         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18936
18937 2010-09-16  Bruno Haible  <bruno@clisp.org>
18938
18939         New module 'tcgetsid'.
18940         * lib/tcgetsid.c: New file.
18941         * m4/tcgetsid.m4: New file.
18942         * modules/tcgetsid: New file.
18943         * modules/termios (Depends-on): Add c++defs, warn-on-use.
18944         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
18945         GNULIB_TCGETSID, HAVE_TCGETSID.
18946         * lib/termios.in.h: Include <sys/types.h>.
18947         (tcgetsid): New declaration.
18948         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
18949         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
18950         * doc/posix-functions/tcgetsid.texi: Mention the new module.
18951         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
18952
18953 2010-09-16  Bruno Haible  <bruno@clisp.org>
18954
18955         Tests for module 'termios'.
18956         * modules/termios-c++-tests: New file.
18957         * modules/termios-tests: New file.
18958         * tests/test-termios-c++.cc: New file.
18959         * tests/test-termios.c: New file.
18960
18961         New module 'termios'.
18962         * modules/termios: New file.
18963         * lib/termios.in.h: New file.
18964         * m4/termios_h.m4: New file.
18965         * doc/posix-headers/termios.texi: Mention the new module.
18966
18967 2010-09-16  Eric Blake  <eblake@redhat.com>
18968
18969         fdutimensat: add an atflag parameter
18970         * lib/fdutimensat.c (fdutimensat): Add new parameter.
18971         * lib/utimens.h (fdutimensat): Update prototype.
18972         * tests/test-fdutimensat.c: Adjust test to match.
18973         * NEWS: Document the change.
18974         Suggested by Paul Eggert.
18975
18976 2010-09-16  Bruno Haible  <bruno@clisp.org>
18977
18978         Fix typos in comments.
18979         * lib/striconveh.h: Fix typo in comment.
18980         * lib/login_tty.c (login_tty): Likewise.
18981
18982 2010-09-15  Bruno Haible  <bruno@clisp.org>
18983
18984         stdlib: clarify MirBSD WEXITSTATUS bug
18985         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
18986         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18987
18988 2010-09-15  Eric Blake  <eblake@redhat.com>
18989
18990         stdlib: work around MirBSD WEXITSTATUS bug
18991         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
18992         * modules/stdlib (Depends-on): Add sys_wait.
18993         * tests/test-sys_wait.c (main): Enhance test.
18994         * tests/test-stdlib.c (main): Likewise.
18995         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
18996
18997         docs: mention MacOS issue with WEXITSTATUS(constant)
18998         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
18999         issue.
19000         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19001
19002         strnlen: add tests
19003         * modules/strnlen-tests: New file.
19004         * tests/test-strnlen.c: Likewise.
19005
19006 2010-09-14  Bruno Haible  <bruno@clisp.org>
19007
19008         unistr/base: Avoid link errors when module 'libunistring' is also used.
19009         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19010         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19011         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19012         Declare also when HAVE_LIBUNISTRING is set.
19013         Reported by Pádraig Brady <P@draigbrady.com>.
19014
19015 2010-09-14  Eric Blake  <eblake@redhat.com>
19016
19017         test-rawmemchr: make more robust
19018         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19019         (Depends-on, configure.ac): Add needed prerequisites to use it.
19020         * modules/memchr-tests (Files, Depends-on, configure.ac):
19021         Likewise, to avoid implicit reliance on memchr module prereqs.
19022         * tests/test-memchr.c (main): Ensure proper masking.
19023         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19024         reads.
19025
19026         memchr: detect glibc Alpha bug
19027         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19028         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19029         Alpha.
19030         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19031         * tests/test-memchr.c (main): Enhance test.
19032         Reported by Nelson H. F. Beebe.
19033
19034 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19035
19036         fts, getcwd, glob: audit for dirfd returning -1
19037         * lib/fts.c (opendir): Remove #define; no longer used.
19038         (opendirat): New arg PDIR_FD.  All callers changed.
19039         (fts_build, _opendir2): Use new opendirat to avoid the need for
19040         dirfd, or for checking whether dirfd returns a negative value.
19041         Don't use opendir; always use openat followed by fdopendir.
19042         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19043         it.
19044         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19045         returns -1 here.
19046         * modules/fts (Depends-on): Remove dirfd.
19047         * modules/getcwd (Depends-on): Likewise.
19048
19049 2010-09-13  Eric Blake  <eblake@redhat.com>
19050
19051         float: fix broken MirBSD header
19052         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19053         * doc/posix-headers/float.texi (float.h): Document it.
19054
19055 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19056
19057         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19058         * lib/fts.c (opendirat): New arg extra_flags.
19059         (__opendir2): Use it to avoid following symlinks when opening
19060         a directory, if symlinks are not supposed to be followed.  See
19061         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19062
19063         fdopendir: preserve argument fd before returning
19064         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19065         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19066         (fdopendir): Use them, arranging for FD to be open to the same
19067         directory that it was when it started.  (It might be temporarily
19068         closed while fdopendir is running, so this not thread- or
19069         signal-safe.)  Be careful to do the right thing even when file
19070         descriptors are scarce and dup fails with errno == EMFILE.  See
19071         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19072
19073 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19074
19075         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19076         * NEWS: Document change.
19077         * m4/regex.m4: Disable test for regoff_t size.
19078
19079 2010-09-13  Jim Meyering  <meyering@redhat.com>
19080
19081         fts: don't operate on an invalid file descriptor after failed dup
19082         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19083         negative file descriptor.
19084
19085 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19086
19087         savedir: add streamsavedir, deprecate fdsavedir
19088         * NEWS: Mention deprecation of fdsavedir.
19089         * lib/savedir.c (streamsavedir): New extern function, whose name
19090         ends in "savedir" to be consistent with the others.  This differs
19091         from savedirstream in that it doesn't close its argument.  The
19092         next version of GNU tar will use this instead of fdsavedir, to
19093         avoid some race conditions and conserve file descriptors.
19094         (savedirstream): Reimplement as a wrapper around streamsavedir.
19095         (fdsavedir): Add a comment deprecating this function.  As far as
19096         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19097         * lib/savedir.h (streamsavedir): New decl.
19098         (fdsavedir): Add a comment deprecating this.
19099
19100 2010-09-10  Bruno Haible  <bruno@clisp.org>
19101
19102         langinfo: Fix last commit.
19103         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19104         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19105         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19106
19107 2010-09-10  Bruno Haible  <bruno@clisp.org>
19108
19109         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19110         * lib/progreloc.c (O_EXEC): Define fallback.
19111
19112 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19113
19114         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19115         * NEWS: Document recent changes to fcntl-h.
19116         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19117         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19118         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19119         Similarly for O_SEARCH; this last was already true, but not documented.
19120         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19121         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19122         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19123         Likewise.
19124         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
19125         is zero, not whether it is defined.
19126         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
19127         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
19128         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
19129
19130 2010-09-10  Bruno Haible  <bruno@clisp.org>
19131
19132         langinfo, nl_langinfo: Fix for IRIX 5.3.
19133         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
19134         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
19135         HAVE_LANGINFO_YESEXPR.
19136         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
19137         HAVE_LANGINFO_YESEXPR.
19138         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
19139         HAVE_LANGINFO_T_FMT_AMPM is 0.
19140         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
19141         HAVE_LANGINFO_YESEXPR is 0.
19142         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
19143         NOEXPR.
19144         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
19145         * doc/posix-functions/nl_langinfo.texi: Likewise.
19146         Reported by Eric Blake.
19147
19148 2010-09-10  Bruno Haible  <bruno@clisp.org>
19149
19150         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
19151         * doc/glibc-functions/login_tty.texi: Mention the include file problem
19152         on FreeBSD 8.0 and OpenBSD 4.6.
19153         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
19154         * m4/pty_h.m4 (gl_PTY_H): Likewise.
19155         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
19156         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
19157         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
19158         ac_includes_default.
19159         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19160
19161 2010-09-09  Eric Blake  <eblake@redhat.com>
19162
19163         strsignal: work around NetBSD bug
19164         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
19165         * lib/string.in.h (includes): Likewise.
19166         * doc/posix-functions/strsignal.texi (strsignal): Document the
19167         bug.
19168         Reported by Nelson H. F. Beebe.
19169
19170         gnulib-tool: work with NetBSD /bin/sh
19171         * gnulib-tool (func_cache_var, func_cache_lookup_module)
19172         (func_get_description, func_get_comment, func_get_status)
19173         (func_get_notice, func_get_applicability, func_get_filelist)
19174         (func_get_dependencies, func_get_autoconf_early_snippet)
19175         (func_get_autoconf_snippet, func_get_automake_snippet)
19176         (func_get_include_directive, func_get_link_directive)
19177         (func_get_license, func_get_maintainer, func_import): Avoid
19178         shell syntax errors from parsing syntax extensions.
19179
19180 2010-09-09  Bruno Haible  <bruno@clisp.org>
19181
19182         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19183         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19184         a reliable way to determine whether the 'alias' command works.
19185
19186 2010-09-08  Jim Meyering  <meyering@redhat.com>
19187
19188         init.sh: penalize a set-x-impaired shell; don't disqualify it
19189         * tests/init.sh: Too many shells corrupt application stderr when
19190         you set -x, so we can't afford to disqualify them, since at least
19191         on Irix-6.5, that would disqualify all bourne shells.
19192         Instead, use a two-pass approach.
19193         On the first pass, try to find a shell that meets the stricter
19194         condition that set -x does not corrupt stderr.
19195         If no shell meets the stricter condition, retest each candidate
19196         shell, but without that extra condition.  Finally, when
19197         VERBOSE=yes is requested and set -x might cause trouble, simply
19198         issue a warning and refrain from enabling debug output.
19199
19200 2010-09-08  Eric Blake  <eblake@redhat.com>
19201
19202         unsetenv: fix OpenBSD bug
19203         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19204         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19205         documentation.
19206         Reported by Jim Meyering.
19207
19208         strtod: work around IRIX 6.5 bug
19209         * lib/strtod.c (strtod): Reparse number on shorter string if
19210         exponent parse was invalid.
19211         * tests/test-strtod.c (main): Add check for "0x1p 2".
19212         Reported by Tom G. Christensen.
19213
19214         getopt: optimize previous patch
19215         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
19216         empty variable.  Speed up awk script.
19217         Reported by Paolo Bonzini.
19218
19219 2010-09-08  Jim Meyering  <meyering@redhat.com>
19220
19221         test.sh: disqualify shells for which set -x corrupts stderr
19222         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
19223         and OpenBSD 4.7.  They make it so with "set -x", environment settings
19224         appear in stderr output.  For example, this command:
19225             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
19226         prints "P=1" on those two systems:
19227
19228 2010-09-08  Bruno Haible  <bruno@clisp.org>
19229
19230         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19231         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
19232         commands, because some shells ignore redirections when there is an
19233         error in the command lookup.
19234         Reported by Eric Blake.
19235
19236 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
19237
19238         * lib/regex.h: Fix a mention of `regex_compile' (should be
19239         `re_compile_pattern').
19240         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
19241         (re_set_registers): Correct name of parameter in comment.
19242
19243         * doc/regex.texi: Add documentation for missing syntax flags.
19244         Remove commented-out documentation of defunct syntax option
19245         RE_NO_EMPTY_ALTS.
19246         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
19247         Add documentation of re_set_registers.
19248         Document trick to re-use a pattern buffer by setting fastmap manually.
19249         Update documentation of struct re_pattern_buffer per public members.
19250         Uncomment documentation of equivalence class operators and
19251         collating symbol operators, since they are now implemented,
19252         Explain leftmost-longest matching in relation to alternatives.
19253         Tidy documentation of substring matching.
19254         Remove POSIX documentation, which is done better in
19255         glibc, and refer the reader there. Keep BSD API documentation, as
19256         that is not readily available elsewhere.
19257
19258 2010-09-07  Eric Blake  <eblake@redhat.com>
19259
19260         getopt: handle POSIXLY_CORRECT set but not exported
19261         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
19262         export state of POSIXLY_CORRECT, due to bash set -o posix.
19263         Reported by Dustin J. Mitchell.
19264
19265 2010-09-05  Bruno Haible  <bruno@clisp.org>
19266
19267         gnulib-tool: Highlight the changed options.
19268         * gnulib-tool (func_usage): Display the --import, --add-import,
19269         --remove-import explanations in bold font.
19270
19271 2010-09-06  Karl Berry  <karl@gnu.org>
19272
19273         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
19274
19275 2010-09-05  Bruno Haible  <bruno@clisp.org>
19276
19277         uniwidth/width: Update comment.
19278         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
19279         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
19280
19281 2010-09-05  Bruno Haible  <bruno@clisp.org>
19282
19283         isinf, isnan: Relax license.
19284         * modules/isinf (License): Change from GPL to LGPL, with consent from
19285         Ben Pfaff.
19286         * modules/isnan (License): Likewise.
19287         Requested by Ludovic Courtès.
19288
19289 2010-09-04  Bruno Haible  <bruno@clisp.org>
19290
19291         gnulib-tool: Help migration from --import to --add-import or --update.
19292         * gnulib-tool: Emit a verbose error message when --import is used
19293         without any module name.
19294
19295 2010-09-04  Bruno Haible  <bruno@clisp.org>
19296
19297         Update doc about gnulib-tool.
19298         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
19299         'gnulib-tool --update' in more detail.
19300         Reported by Eric Blake.
19301
19302 2010-09-04  Bruno Haible  <bruno@clisp.org>
19303
19304         gnulib-tool: Change --import. New options --add/remove-import.
19305         * gnulib-tool: New options --add-import, --remove-import.
19306         (func_usage): Document them.
19307         (have_associative): Define always.
19308         (func_import): In import mode, don't merge the specified settings with
19309         the cached settings. Implement remove-import mode.
19310         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
19311         Explain when to use them versus --import.
19312         (Simple update): Use --add-import instead of --import.
19313         * NEWS: Mention the change.
19314
19315 2010-09-04  Bruno Haible  <bruno@clisp.org>
19316
19317         * doc/gnulib-tool.texi (Initial import): Update paragraph about
19318         separate gnulib.mk.
19319
19320 2010-09-04  Bruno Haible  <bruno@clisp.org>
19321
19322         gnulib-tool: Don't talk about CVS any more.
19323         * gnulib-tool (func_usage, func_import): Write "version control"
19324         instead of CVS.
19325
19326 2010-09-04  Jim Meyering  <meyering@redhat.com>
19327
19328         maint.mk: avoid obscure sc_copyright_check failure in coreutils
19329         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
19330         false positives (whose names may be ill-chosen) when searching
19331         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
19332         would cause a false-positive.
19333
19334         avoid coreutils "make distcheck" failure
19335         Coreutils tests with an absolute build directory name that contains
19336         a space.  Not quoting this directory name caused a failure.
19337         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
19338         * tests/test-vc-list-files-cvs.sh: Likewise.
19339
19340 2010-09-04  Bruno Haible  <bruno@clisp.org>
19341
19342         gnulib-tool: Avoid error when run in a package without Makefile.am.
19343         * gnulib-tool: When collecting the m4dirs in a package that does not
19344         have a Makefile.am, eliminate those directories that contain no
19345         gnulib-cache.m4. Fix expression that counts these directories.
19346
19347 2010-09-04  Bruno Haible  <bruno@clisp.org>
19348
19349         update-copyright test: Improve output when perl is missing or too old.
19350         * tests/test-update-copyright.sh: Move test of Perl version down after
19351         the test whether Perl exists. Provide an explanation relating Perl's
19352         error message to Automake's SKIP: message.
19353
19354 2010-09-04  Bruno Haible  <bruno@clisp.org>
19355
19356         Don't augment PATH in TESTS_ENVIRONMENT.
19357         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
19358         set abs_aux_dir instead of augmenting PATH.
19359         * modules/vc-list-files-tests (Makefile.am): Likewise.
19360         * tests/test-update-copyright.sh: Augment PATH here.
19361         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
19362         path_prepend_.
19363         * tests/test-vc-list-files-git.sh: Likewise.
19364
19365 2010-09-04  Jim Meyering  <meyering@redhat.com>
19366
19367         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
19368         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
19369
19370 2010-09-04  Bruno Haible  <bruno@clisp.org>
19371
19372         strdup: Fix compilation error in C++ mode.
19373         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
19374         the macro.
19375
19376 2010-09-04  Bruno Haible  <bruno@clisp.org>
19377
19378         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
19379         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
19380         macro into a function.
19381         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19382
19383 2010-09-04  Bruno Haible  <bruno@clisp.org>
19384
19385         Set PATH_SEPARATOR the same way autoconf does.
19386         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
19387         the value of PATH_SEPARATOR the same way autoconf-generated configure
19388         scripts do.
19389         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
19390         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19391
19392 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19393
19394         Set PATH_SEPARATOR the same way autoconf does.
19395         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
19396         the same way autoconf-generated configure scripts do.
19397         * posix-modules: Likewise.
19398
19399 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19400
19401         hash: fix safe_hasher const typo
19402         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
19403         const; otherwise, there is a type error later.
19404
19405 2010-09-02  Jim Meyering  <meyering@redhat.com>
19406
19407         test-update-copyright.sh: require perl 5.8.0
19408         * tests/test-update-copyright.sh: Require 5.8.0,
19409         which Tom G. Christensen has confirmed is adequate,
19410         while 5.6.1 is not.
19411
19412 2010-09-02  Eric Blake  <eblake@redhat.com>
19413
19414         tests: init.sh improvements for re-exec'ing with zsh
19415         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
19416         -vx through shell re-exec.
19417         Reported by Tom G. Christensen.
19418
19419         wctype: fix typo in previous commit
19420         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
19421         Reported by Ludovic Courtès.
19422
19423 2010-09-02  Jim Meyering  <meyering@redhat.com>
19424
19425         test-update-copyright.sh: skip test if Perl is too old
19426         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
19427         Reported by Tom G. Christensen.
19428
19429 2010-09-02  Bruno Haible  <bruno@clisp.org>
19430
19431         wctype: Avoid compilation error on IRIX 6.5.30.
19432         * lib/wctype.in.h (iswblank): Declare with a replacement if
19433         REPLACE_ISWBLANK is set.
19434         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
19435         declared. Set REPLACE_ISWBLANK.
19436         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
19437         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
19438         * doc/posix-headers/wctype.texi: Likewise.
19439         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19440
19441 2010-09-01  Bruno Haible  <bruno@clisp.org>
19442
19443         New module 'socketlib'.
19444         * modules/socketlib: New file.
19445         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
19446         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
19447         * modules/sockets (Depends-on): Add socketlib.
19448         Suggested by Sam Steingold <sds@gnu.org>.
19449
19450 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19451
19452         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
19453
19454         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
19455         when one needs search access to a directory but not read access.
19456         On systems where it is available, it works in some cases where
19457         O_RDONLY does not, namely on directories that are searchable but
19458         not readable, and which need only to be searchable.  If O_SEARCH
19459         is not available, fall back to the traditional method of using
19460         O_RDONLY.
19461
19462         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
19463         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
19464         when opening a directory that needs only to be searchable.
19465         * lib/chdir-safer.c (chdir_no_follow): Likewise.
19466         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
19467         * lib/openat-proc.c (openat_proc_name): Likewise.
19468         * lib/openat.c (openat_needs_fchdir): Likewise.
19469         * lib/save-cwd.c (save_cwd): Likewise.
19470         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
19471
19472 2010-08-28  Bruno Haible  <bruno@clisp.org>
19473
19474         New module 'host-cpu-c-abi'.
19475         * modules/host-cpu-c-abi: New file.
19476         * m4/host-cpu-c-abi.m4: New file, based on part of
19477         clisp/src/m4/general.m4.
19478         Requested by Sam Steingold <sds@gnu.org>.
19479
19480 2010-08-31  Eric Blake  <eblake@redhat.com>
19481         and Jim Meyering  <meyering@redhat.com>
19482
19483         hash: factor, and guard against misbehaving hasher function
19484         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
19485         of table->hasher's return value.  Also protect against a hash value
19486         so large that adding it to table->bucket results in a NULL pointer.
19487         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
19488         Use it in place of open-coded check-and-abort.
19489
19490 2010-08-30  Bruno Haible  <bruno@clisp.org>
19491
19492         hash: silence spurious clang warning
19493         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
19494         Reported by Eric Blake.
19495
19496 2010-08-30  Eric Blake  <eblake@redhat.com>
19497
19498         strstr, memmem, strcasestr: avoid leaked shell message
19499         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
19500         FreeBSD.
19501         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19502         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19503
19504         tests: silence clang warning
19505         * tests/test-malloca.c (do_allocation): Avoid dead store.
19506
19507 2010-08-29  Bruno Haible  <bruno@clisp.org>
19508
19509         gettext: Fix recent mistake.
19510         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
19511
19512 2010-08-29  Bruno Haible  <bruno@clisp.org>
19513
19514         selinux-h: Offer a --without-selinux option.
19515         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
19516         --without-selinux was specified, skip all tests and define
19517         HAVE_SELINUX_SELINUX_H to 0.
19518         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
19519         set LIB_SELINUX to empty.
19520         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
19521         gl_LIBSELINUX. If --without-selinux was specified, replace
19522         selinux/context.h.
19523         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
19524
19525 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19526             Bruno Haible  <bruno@clisp.org>
19527
19528         Make the module 'realloc-gnu' work again on AIX and OSF/1.
19529         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
19530         of HAVE_REALLOC.
19531         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
19532         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
19533         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
19534         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19535
19536 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19537             Bruno Haible  <bruno@clisp.org>
19538
19539         Make the module 'calloc-gnu' work again on AIX and OSF/1.
19540         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
19541         HAVE_CALLOC.
19542         * lib/xmalloc.c: Update accordingly.
19543         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
19544         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
19545         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19546
19547 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19548             Bruno Haible  <bruno@clisp.org>
19549
19550         Make the module 'malloc-gnu' work again on AIX and OSF/1.
19551         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
19552         HAVE_MALLOC.
19553         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
19554         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
19555         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19556
19557 2010-08-29  Bruno Haible  <bruno@clisp.org>
19558
19559         Update modules list.
19560         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19561         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
19562         (String handling <string.h>): Add astrxfrm.
19563         (File system functions): Add readlinkat.
19564
19565 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19566
19567         Tests for module 'realloc-gnu'.
19568         * modules/realloc-gnu-tests: New file.
19569         * tests/test-realloc-gnu.c: New file.
19570
19571         Tests for module 'calloc-gnu'.
19572         * modules/calloc-gnu-tests: New file.
19573         * tests/test-calloc-gnu.c: New file.
19574
19575         Tests for module 'malloc-gnu'.
19576         * modules/malloc-gnu-tests: New file.
19577         * tests/test-malloc-gnu.c: New file.
19578
19579 2010-08-28  Bruno Haible  <bruno@clisp.org>
19580
19581         Rename module 'realloc' -> 'realloc-gnu'.
19582         * modules/realloc-gnu: New file, copied from modules/realloc.
19583         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
19584         obsolete.
19585         * modules/mgetgroups (Depends-on): Update.
19586         * doc/posix-functions/realloc.texi: Update.
19587         * NEWS: Mention the change.
19588
19589         Rename module 'calloc' -> 'calloc-gnu'.
19590         * modules/calloc-gnu: New file, copied from modules/calloc.
19591         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
19592         obsolete.
19593         * doc/posix-functions/calloc.texi: Update.
19594         * NEWS: Mention the change.
19595
19596         Rename module 'malloc' -> 'malloc-gnu'.
19597         * modules/malloc-gnu: New file, copied from modules/malloc.
19598         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
19599         obsolete.
19600         * modules/argp (Depends-on): Update.
19601         * modules/regex (Depends-on): Update.
19602         * doc/posix-functions/malloc.texi: Update.
19603         * NEWS: Mention the change.
19604
19605 2010-08-28  Eric Blake  <eblake@redhat.com>
19606
19607         pread, pwrite: add missing dependency
19608         * modules/pread (Depends-on): Add extensions.
19609         * modules/pwrite (Depends-on): Likewise.
19610
19611 2010-08-28  Bruno Haible  <bruno@clisp.org>
19612
19613         unistr/u*-strchr: Fix tests dependencies.
19614         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
19615         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
19616         Reported by Ian Beckwith <ianb@erislabs.net>.
19617
19618 2010-08-28  Bruno Haible  <bruno@clisp.org>
19619
19620         read-file: Don't occupy too much unused memory.
19621         * lib/read-file.c (fread_file): Shrink the buffer at the end.
19622
19623 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
19624             Eric Blake  <eblake@redhat.com>
19625             Bruno Haible  <bruno@clisp.org>
19626
19627         read-file: Avoid memory reallocations with regular files.
19628         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
19629         (fread_file): With regular files, use the remaining length as the
19630         initial buffer size.  Check against overflow.
19631         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
19632         sys_stat.
19633
19634 2010-08-28  Bruno Haible  <bruno@clisp.org>
19635
19636         ftello: Relax license.
19637         * modules/ftello (License): Relax to LGPLv2+.
19638         Reported by Eric Blake.
19639
19640 2010-08-28  Bruno Haible  <bruno@clisp.org>
19641
19642         Avoid relocwrapper link errors due to gnulib replacement functions.
19643         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
19644         function.
19645         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19646
19647 2010-08-28  Bruno Haible  <bruno@clisp.org>
19648
19649         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
19650         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
19651         defined.
19652         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
19653         Suggested by Eric Blake.
19654
19655 2010-08-28  Bruno Haible  <bruno@clisp.org>
19656
19657         sys_socket, netdb: Ensure socklen_t gets defined.
19658         * modules/sys_socket (Depends-on): Add socklen.
19659         * modules/netdb (Depends-on): Likewise.
19660         * modules/getaddrinfo (Depends-on): Remove socklen.
19661         * modules/getsockopt (Depends-on): Likewise.
19662         * modules/setsockopt (Depends-on): Likewise.
19663         * tests/test-sys_socket.c: Check that socklen_t is defined.
19664         * tests/test-netdb.c: Likewise.
19665         * m4/socklen.m4: Update comments.
19666         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19667
19668 2010-08-27  Eric Blake  <eblake@redhat.com>
19669
19670         login_tty: add missing dependency
19671         * modules/login_tty (Depends-on): Add pty.
19672
19673 2010-08-26  Eric Blake  <eblake@redhat.com>
19674
19675         lib-symbol-versions: fix m4 quoting
19676         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
19677         format for AC_LINK_IFELSE.
19678
19679         glob: fix compile test
19680         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
19681
19682         btowc: fix missing file
19683         * modules/btowc (Files): Also ship locale-fr.m4.
19684
19685         lseek: fix link test
19686         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
19687         AC_LINK_IFELSE.
19688
19689         include_next: silence autoconf 2.68 warning
19690         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
19691         AC_COMPILE_IFELSE as special.
19692         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
19693         autoconf < 2.68.
19694
19695         acl: fix compilation test
19696         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
19697         AC_COMPILE_IFELSE.
19698
19699 2010-08-26  Bruno Haible  <bruno@clisp.org>
19700
19701         Modernize AC_TRY_RUN invocations.
19702         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
19703         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19704         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
19705         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
19706         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19707         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19708         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19709         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19710         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19711         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19712         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19713         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19714         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19715         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19716         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19717         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19718         gl_MBRLEN_NUL_RETVAL): Likewise.
19719         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19720         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19721         Likewise.
19722         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19723         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19724         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19725         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19726         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19727         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19728         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
19729         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19730         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
19731         Likewise.
19732         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
19733         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19734         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19735         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19736         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19737         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19738         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19739         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
19740         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19742
19743 2010-08-26  Bruno Haible  <bruno@clisp.org>
19744
19745         Modernize AC_TRY_LINK invocations.
19746         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
19747         AC_TRY_LINK.
19748         * m4/argp.m4 (gl_ARGP): Likewise.
19749         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
19750         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19751         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
19752         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19753         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19754         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
19755         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
19756         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19757         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19758         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19759         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19760         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
19761         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
19762         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19763         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
19764         * m4/hostent.m4 (gl_HOSTENT): Likewise.
19765         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19766         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
19767         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
19768         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
19769         Likewise.
19770         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
19771         Likewise.
19772         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
19773         Likewise.
19774         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
19775         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
19776         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
19777         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
19778         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
19779         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19780         * m4/servent.m4 (gl_SERVENT): Likewise.
19781         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19782         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
19783         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
19784         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
19785         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19786         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19787         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19788         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19789         * modules/tsearch-tests (configure.ac): Likewise.
19790
19791 2010-08-26  Bruno Haible  <bruno@clisp.org>
19792
19793         Modernize AC_TRY_COMPILE invocations.
19794         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
19795         AC_TRY_COMPILE.
19796         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
19797         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
19798         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
19799         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
19800         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
19801         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
19802         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19803         * m4/lock.m4 (gl_LOCK): Likewise.
19804         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19805         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19806         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
19807         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19808         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
19809         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
19810         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19811         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
19812         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
19813         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
19814         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
19815         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19816         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
19817         extraneous semicolon.
19818
19819 2010-08-26  Jim Meyering  <meyering@redhat.com>
19820
19821         stat-time: relax license LGPL
19822         * modules/stat-time (License): Change from GPL to LGPL,
19823         with consent from all contributors, for use in libguile.
19824         Requested by Ludovic Courtès.
19825
19826 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
19827
19828         poll: return immediately on POLLHUP.
19829         * lib/poll.c (poll): Always set timeout before wait_timeout is
19830         computed.
19831
19832 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19833
19834         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
19835         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
19836         rmdir ("dir/.//"), unlinkat.
19837
19838 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19839
19840         stdbool: avoid spurious failure with modern xlc
19841         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19842
19843 2010-08-24  Bruno Haible  <bruno@clisp.org>
19844
19845         getloadavg: simplify code
19846         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
19847         gl_have_func. Update comments.
19848
19849 2010-08-24  Eric Blake  <eblake@redhat.com>
19850
19851         getloadavg: don't define SVR4 on cygwin
19852         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
19853         only define SVR4 when -lkvm is required.
19854         Reported by Yaakov Selkowitz.
19855
19856 2010-08-24  Bruno Haible  <bruno@clisp.org>
19857
19858         priv-set: fix comment
19859         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
19860
19861 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19862
19863         priv-set: fix comments
19864         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
19865         to match code, as suggested by David Bartley in:
19866         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
19867
19868 2010-08-23  Eric Blake  <eblake@redhat.com>
19869
19870         stdbool: avoid rejecting clang
19871         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19872         * tests/test-stdbool.c: Enable more tests if using the system
19873         <stdbool.h> instead of the gnulib replacement.
19874         (main): Move xlc bug test to a runtime test for all compilers.
19875         Reported by Anders Kaseorg.
19876
19877         argz: fix shell quoting issue
19878         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
19879         Reported by Charles Wilson.
19880
19881 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
19882             Erik Faye-Lund <kusmabite@gmail.com>
19883
19884         poll, select: handle ERROR_BROKEN_PIPE.
19885         * lib/poll.c (win32_compute_revents): Return POLLHUP when
19886         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19887         * lib/select.c (win32_compute_revents): Do not mark a pipe
19888         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19889
19890 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
19891
19892         fts: allow compilation with C++
19893         * lib/fts_.h: Specify extern "C" linkage with C++.
19894
19895 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19896
19897         Fix gnulib-tool sed script de-commentation for AIX sed.
19898         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
19899         sed.
19900
19901 2010-08-17  Eric Blake  <eblake@redhat.com>
19902
19903         test-stddef: test for (some) offsetof bugs
19904         * tests/test-stddef.c: Enhance test to ensure correct type of
19905         offsetof.
19906         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
19907         that we are not fixing at this time.
19908
19909 2010-08-15  Bruno Haible  <bruno@clisp.org>
19910
19911         stpncpy: Allow stpncpy to be defined as a macro.
19912         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
19913         if it's already correctly declared.
19914         * lib/string.in.h (stpncpy): Undefine before redefining.
19915         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
19916
19917 2010-08-14  Bruno Haible  <bruno@clisp.org>
19918
19919         Rename module 'memxfrm' to 'amemxfrm'.
19920         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
19921         (amemxfrm): Renamed from memxfrm.
19922         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
19923         (amemxfrm): Renamed from memxfrm.
19924         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
19925         * NEWS: Mention the change.
19926         * MODULES.html.sh (String handling <string.h>): Update.
19927         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
19928         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
19929         * lib/unicase/u16-casexfrm.c: Likewise.
19930         * lib/unicase/u32-casexfrm.c: Likewise.
19931         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
19932         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
19933         * lib/uninorm/u16-normxfrm.c: Likewise.
19934         * lib/uninorm/u32-normxfrm.c: Likewise.
19935         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
19936         memxfrm.
19937         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
19938         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
19939         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
19940         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
19941         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
19942         Suggested by Paul Eggert.
19943
19944 2010-08-14  Bruno Haible  <bruno@clisp.org>
19945
19946         Tests for module 'astrxfrm'.
19947         * modules/astrxfrm-tests: New file.
19948         * tests/test-astrxfrm.c: New file.
19949
19950         New module 'astrxfrm'.
19951         * lib/astrxfrm.h: New file.
19952         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
19953         * modules/astrxfrm: New file.
19954
19955 2010-08-14  Reuben Thomas <rrt@sc3d.org>
19956
19957         regex: Tweak doc.
19958         * doc/regex.texi (Overview): Don't mention regex.c.
19959         (GNU Regular Expression Compiling): Likewise.
19960         (Match-end-of-line Operator): Mention 'not_eol'.
19961
19962 2010-08-14  Brian Gough  <bjg@gnu.org>
19963             Bruno Haible  <bruno@clisp.org>
19964
19965         git-merge-changelog: add doc relating to use with bzr and hg.
19966         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
19967
19968 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
19969
19970         pthread: fix pthread.h creation for srcdir != builddir
19971         * modules/pthread (Makefile.am): Fix the rule to work also in a
19972         non-srcdir build.
19973
19974 2010-08-13  Karl Berry  <karl@gnu.org>
19975
19976         * doc/regex.texi (Predefined Syntaxes): @smallexample.
19977         * doc/posix-*/*: force line break before @url of POSIX
19978         specifications.
19979         Suggested by Werner Lemberg.
19980
19981 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19982
19983         strtod: fix const diagnostic
19984         * lib/strtod.c (strtod): Don't assign const char * to char *,
19985         as this elicits a warning from GCC when warnings are enabled.
19986
19987 2010-08-10  Pádraig Brady <P@draigbrady.com>
19988         and Eric Blake  <eblake@redhat.com>
19989
19990         copy-acl: ignore ENOTSUP on HP-UX
19991         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
19992         so that it is available for HP-UX.
19993         * lib/copy-acl.c (qcopy_acl): Use it.
19994         Reported by Patrick M. Callahan.
19995
19996 2010-08-10  Eric Blake  <eblake@redhat.com>
19997
19998         open, chown: relax license
19999         * modules/open (License): Change to LGPLv2+, with consent by all
20000         authors, for use in augeas.
20001         * modules/chown (License): Likewise.
20002         * modules/lchown (Likewise): Likewise.
20003         Requested by Adam Stokes.
20004
20005 2010-08-09  Karl Berry  <karl@gnu.org>
20006
20007         * build-aux/ar-lib: new file, import from Automake.
20008         * config/srclist.txt: autocheck for updates.
20009
20010 2010-08-09  Eric Blake  <eblake@redhat.com>
20011
20012         readlinkat: adjust client modules
20013         * modules/areadlinkat (Depends-on): Use readlinkat, not
20014         symlinkat.
20015         * modules/areadlinkat-with-size (Depends-on): Likewise.
20016
20017         mknod: be more vocal about danger of running tests as root
20018         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20019         root, since that is just asking for problems.
20020         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20021
20022         readlinkat: split into its own module
20023         * modules/symlinkat: Split readlinkat...
20024         * modules/readlinkat: ...into separate module.
20025         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20026         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20027         * lib/symlinkat.c (readlinkat): Move...
20028         * lib/readlinkat.c: ...into new file.
20029         * modules/symlinkat-tests: Split readlinkat test...
20030         * modules/readlinkat-tests: ...into separate module.
20031         * tests/test-symlinkat.c: Split...
20032         * tests/test-readlinkat.c: ...into new file.
20033         * NEWS: Document the split.
20034         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20035         * lib/unistd.in.h (readlinkat): Likewise.
20036         Suggested by Bruno Haible.
20037
20038 2010-08-08  Bruno Haible  <bruno@clisp.org>
20039
20040         memxfrm: Speed up.
20041         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20042         that usually only one call to strxfrm is necessary for each string
20043         part.
20044         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20045
20046 2010-08-07  Karl Berry  <karl@gnu.org>
20047
20048         * doc/posix-headers/limits.texi,
20049         * doc/posix-functions/malloc.texi,
20050         * doc/posix-functions/strsignal.texi: missing @item.
20051         * doc/ld-version-script.texi: spurious leading i.
20052         * doc/regex.texi (Interval Operators): no commas inside @var.
20053
20054 2010-08-01  Bruno Haible  <bruno@clisp.org>
20055
20056         Integrate the regex documentation.
20057         * doc/gnulib.texi: Define 'cn' index.
20058         (Regular expressions): New a chapter that includes regex.texi and
20059         regexprops-generic.texi.
20060         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20061         syntax.
20062
20063         Whitespace cleanup.
20064         * doc/regex.texi: Remove trailing spaces.
20065
20066         Add regex documentation.
20067         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20068         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20069         Written by Kathy A. Hargreaves and Karl Berry.
20070
20071 2010-08-01  Bruno Haible  <bruno@clisp.org>
20072
20073         link: Update documentation.
20074         * doc/posix-functions/link.texi: Update regarding Solaris.
20075
20076 2010-07-31  Bruno Haible  <bruno@clisp.org>
20077
20078         Update modules list.
20079         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20080         (String handling <string.h>): Add memcmp2, memxfrm.
20081         (Container data structures): Add xlist, xsublist, xoset.
20082         (Core language properties): Add alignof, unused-parameter.
20083         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20084         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20085         (Unibyte characters <ctype.h>): New section.
20086         (String handling <string.h>): New section.
20087         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20088         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20089         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20090         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20091         tan, tanh, tanl, y0, y1, yn.
20092         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20093         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20094         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20095         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20096         unlockpt, vdprintf, vdprintf-posix.
20097         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20098         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20099         xconcat-filename.
20100         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20101         getdtablesize, pipe2, pipe2-safer.
20102         (Security): New section.
20103         (Networking functions): Add accept4.
20104         (Signal handling): Add sigpipe.
20105         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20106         mbmemcasecoll.
20107         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20108         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20109         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20110         pipe-filter-ii.
20111         (Misc): Add argp-version-etc, login_tty, parse-duration.
20112
20113 2010-07-31  Bruno Haible  <bruno@clisp.org>
20114
20115         Improve doc in MODULES.html.
20116         * modules/linkat (Description): Add the word "function".
20117         * modules/mkfifo (Description): Likewise.
20118         * modules/mknod (Description): Likewise.
20119         * modules/remove (Description): Likewise.
20120         * modules/renameat (Description): Likewise.
20121         * modules/stat (Description): Likewise.
20122         * modules/symlink (Description): Likewise.
20123         * modules/unlink (Description): Likewise.
20124
20125 2010-07-31  Bruno Haible  <bruno@clisp.org>
20126
20127         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
20128         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
20129         option --enable/disable-c++ instead of --enable/disable-cxx.
20130         * NEWS: Mention the change.
20131
20132 2010-07-31  Bruno Haible  <bruno@clisp.org>
20133
20134         readlink, areadlink: Relax test a bit.
20135         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
20136         alternative to ENOTDIR.
20137         * tests/test-areadlink.h (test_areadlink): Likewise.
20138         Reported by Rainer Tammer.
20139
20140 2010-07-31  Bruno Haible  <bruno@clisp.org>
20141
20142         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
20143         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
20144         character, perform the search using U_STRCHR.
20145         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
20146         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
20147         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
20148         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
20149         Suggested by Paolo Bonzini.
20150
20151 2010-07-31  Bruno Haible  <bruno@clisp.org>
20152
20153         unistr/u*-strstr: Fix dependencies.
20154         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
20155         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
20156         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
20157
20158 2010-07-31  Bruno Haible  <bruno@clisp.org>
20159
20160         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
20161         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
20162         the beginning of the loop.
20163         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
20164         cases in 'switch' statement.
20165
20166         unistr/u8-strchr: Fix several bugs.
20167         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
20168         the string. When not found, return NULL, not a pointer near the end.
20169
20170         More tests for unistr/u8-strchr.
20171         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
20172         that the function does not read past the first occurrence of the byte
20173         being searched.
20174         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
20175         * tests/unistr/test-u16-strchr.c (main): New function.
20176         * tests/unistr/test-u32-strchr.c (main): New function.
20177
20178 2010-07-31  Bruno Haible  <bruno@clisp.org>
20179
20180         posix-modules: Ignore backup files of documentation files.
20181         * posix-modules: grep only through files named *.texi.
20182
20183 2010-07-31  Bruno Haible  <bruno@clisp.org>
20184
20185         symlinkat: Fix documentation.
20186         * doc/posix-functions/readlinkat.texi: Fix module name.
20187
20188 2010-07-31  Bruno Haible  <bruno@clisp.org>
20189
20190         fchownat: Replace also when chown has the trailing slash bug.
20191         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20192         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20193         introduced on 2010-04-10.
20194         Reported by Rainer Tammer.
20195
20196 2010-07-31  Bruno Haible  <bruno@clisp.org>
20197
20198         linkat: Work around AIX 7.1 bug.
20199         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20200         whether linkat handles trailing slash correctly. If not, replace linkat
20201         and define LINKAT_TRAILING_SLASH_BUG.
20202         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20203         check whether (fd1,file1) points to a directory if file1 or file2 ends
20204         in a slash. Code taken from lib/link.c.
20205         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
20206         Reported by Rainer Tammer.
20207
20208 2010-07-31  Bruno Haible  <bruno@clisp.org>
20209
20210         Correctly determine whether pow is available in libc on AIX 7 with xlc.
20211         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
20212         This disables an xlc optimization that was causing wrong test results.
20213         Reported by Rainer Tammer.
20214
20215 2010-07-31  Bruno Haible  <bruno@clisp.org>
20216
20217         iconv: Work around AIX 6.1..7.1 bug.
20218         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
20219         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
20220         cross-compiling, guess no on all versions of AIX.
20221         Reported by Rainer Tammer.
20222
20223 2010-07-31  Bruno Haible  <bruno@clisp.org>
20224
20225         readlink: Relax test a bit.
20226         * tests/test-readlink.h (test_readlink): Allow different errno value
20227         when readlink is called with a file name that ends in / and refers to
20228         a file.
20229         Suggested by Eric Blake.
20230         Reported by Rainer Tammer.
20231
20232 2010-07-31  Bruno Haible  <bruno@clisp.org>
20233
20234         copysign: Does not require -lm on glibc systems.
20235         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
20236         gl_COMMON_DOUBLE_MATHFUNC.
20237         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
20238
20239 2010-07-31  Bruno Haible  <bruno@clisp.org>
20240
20241         duplocale: Work around AIX 7.1 bug.
20242         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
20243         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
20244         * lib/duplocale.c (rpl_duplocale): Update comment.
20245         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
20246         Reported by Rainer Tammer.
20247
20248 2010-07-30  Bruno Haible  <bruno@clisp.org>
20249
20250         dirfd: Avoid link error on AIX 7.1.
20251         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
20252         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
20253         exist, set REPLACE_DIRFD.
20254         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
20255         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
20256         * doc/posix-functions/dirfd.texi: Update.
20257         Reported by Rainer Tammer.
20258
20259 2010-07-30  Eric Blake  <eblake@redhat.com>
20260
20261         strtod: next round of AIX fixes
20262         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
20263         exponent.
20264         * tests/test-strtod.c (main): Enhance tests.
20265         * doc/posix-functions/strtod.texi (strtod): Document next bug.
20266         Reported by Rainer Tammer.
20267
20268         futimens: fix configure check
20269         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
20270         Reported by Bruno Haible.
20271
20272 2010-07-30  Bruno Haible  <bruno@clisp.org>
20273
20274         getline: Update regarding AIX.
20275         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
20276         Reported by Rainer Tammer.
20277
20278 2010-07-30  Bruno Haible  <bruno@clisp.org>
20279
20280         wcwidth: Drop replacement on AIX 7.
20281         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
20282         AIX 7.
20283         Reported by Rainer Tammer.
20284
20285 2010-07-30  Bruno Haible  <bruno@clisp.org>
20286
20287         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
20288         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
20289         a 'char *'.
20290         Reported by Rainer Tammer.
20291
20292 2010-07-30  Bruno Haible  <bruno@clisp.org>
20293
20294         unlink: Update regarding AIX.
20295         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
20296         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
20297         Reported by Rainer Tammer.
20298
20299 2010-07-30  Bruno Haible  <bruno@clisp.org>
20300
20301         symlink: Update regarding AIX.
20302         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
20303         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
20304         Reported by Rainer Tammer.
20305
20306 2010-07-30  Bruno Haible  <bruno@clisp.org>
20307
20308         strndup: Update regarding AIX.
20309         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
20310         AIX 7.
20311         Reported by Rainer Tammer.
20312
20313 2010-07-30  Bruno Haible  <bruno@clisp.org>
20314
20315         stat: Update regarding AIX.
20316         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
20317         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
20318         Reported by Rainer Tammer.
20319
20320 2010-07-30  Bruno Haible  <bruno@clisp.org>
20321
20322         truncl: Fix autoconf test.
20323         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
20324         whether truncl works.
20325         Reported by Rainer Tammer.
20326
20327 2010-07-30  Bruno Haible  <bruno@clisp.org>
20328
20329         round: Update regarding AIX.
20330         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
20331         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
20332         Reported by Rainer Tammer.
20333
20334 2010-07-30  Bruno Haible  <bruno@clisp.org>
20335
20336         rename: Update regarding AIX.
20337         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
20338         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
20339         Reported by Rainer Tammer.
20340
20341 2010-07-30  Bruno Haible  <bruno@clisp.org>
20342
20343         printf.m4: Update regarding AIX.
20344         * m4/printf.m4: Update comments regarding AIX.
20345         Reported by Rainer Tammer.
20346
20347 2010-07-30  Bruno Haible  <bruno@clisp.org>
20348
20349         iconv: Update regarding AIX.
20350         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
20351         AIX 7.
20352         Reported by Rainer Tammer.
20353
20354 2010-07-30  Bruno Haible  <bruno@clisp.org>
20355
20356         getopt: Update regarding AIX.
20357         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
20358         no on AIX.
20359         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
20360         Reported by Rainer Tammer.
20361
20362 2010-07-30  Bruno Haible  <bruno@clisp.org>
20363
20364         ldexpl; Update regarding AIX.
20365         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
20366         on AIX 7.
20367         Reported by Rainer Tammer.
20368
20369 2010-07-30  Bruno Haible  <bruno@clisp.org>
20370
20371         frexpl: Update regarding AIX.
20372         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
20373         on AIX 7.
20374         Reported by Rainer Tammer.
20375
20376 2010-07-30  Bruno Haible  <bruno@clisp.org>
20377
20378         open, fopen: Update regarding AIX.
20379         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
20380         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20381         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
20382         * doc/posix-functions/fopen.texi: Likewise.
20383         Reported by Rainer Tammer.
20384
20385 2010-07-30  Bruno Haible  <bruno@clisp.org>
20386
20387         chown: Update doc regarding AIX.
20388         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
20389         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
20390         Reported by Rainer Tammer.
20391
20392 2010-07-30  Eric Blake  <eblake@redhat.com>
20393
20394         strtod: fix bug in replacement function on AIX
20395         * lib/strtod.c (strtod): Special case broken "0x" parse in
20396         underlying strtod.
20397         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
20398         * doc/posix-functions/strtod.texi (strtod): Likewise.
20399         Reported by Rainer Tammer.
20400
20401 2010-07-30  Bruno Haible  <bruno@clisp.org>
20402
20403         mbrlen: Fix cross-compilation guess for AIX.
20404         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
20405         guess. Leftover from 2008-12-22.
20406
20407 2010-07-30  Bruno Haible  <bruno@clisp.org>
20408
20409         mbrtowc: Fix cross-compilation guess for AIX.
20410         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
20411         guess. Leftover from 2008-12-21.
20412
20413 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
20414
20415         init.sh: work around trap limitation of some shells
20416         * tests/init.sh (setup_): Move exit trap outside of shell function.
20417
20418 2010-07-29  Eric Blake  <eblake@redhat.com>
20419
20420         strtod: aid debugging
20421         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
20422         understanding why strtod is rejected.
20423
20424 2010-07-28  Bruno Haible  <bruno@clisp.org>
20425
20426         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
20427         * lib/unistr/u8-chr.c: Include <string.h>.
20428         * tests/unistr/test-u8-chr.c: Likewise.
20429         * tests/unistr/test-u16-chr.c: Likewise.
20430         * tests/unistr/test-u32-chr.c: Likewise.
20431         * tests/unistr/test-u8-strchr.c: Likewise.
20432         * tests/unistr/test-u16-strchr.c: Likewise.
20433         * tests/unistr/test-u32-strchr.c: Likewise.
20434         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
20435         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
20436         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
20437         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
20438
20439 2010-07-28  Bruno Haible  <bruno@clisp.org>
20440
20441         Use spaces for indentation, not tabs.
20442         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20443
20444 2010-07-27  Bruno Haible  <bruno@clisp.org>
20445
20446         mbspcasecmp: Fix function specification.
20447         * lib/string.in.h (mbspcasecmp): Fix specification comment.
20448         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
20449         Reported by Eric Blake <eblake@redhat.com>.
20450
20451 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
20452
20453         timespec: use cast and not conditional, as truncation isn't possible
20454         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
20455         instead of a conditional.  Comment about the situation in more detail.
20456         This undoes most of the 2009-10-29 patch.
20457
20458 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
20459
20460         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
20461         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
20462         * lib/unistr/u8-strchr.c: Likewise.
20463         * modules/unistr/u8-chr: Depend on memchr.
20464
20465         unistr/u*-strchr: add tests
20466         * modules/unistr/u8-strchr-tests: New file.
20467         * modules/unistr/u16-strchr-tests: New file.
20468         * modules/unistr/u32-strchr-tests: New file.
20469         * tests/unistr/test-strchr.h: New file.
20470         * tests/unistr/test-u8-strchr.c: New file.
20471         * tests/unistr/test-u16-strchr.c: New file.
20472         * tests/unistr/test-u32-strchr.c: New file.
20473
20474         unistr/u*-chr: test multibyte sequences more
20475         * tests/unistr/test-chr.h: Do complete testing of the characters in the
20476         test vector.
20477         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
20478         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
20479         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
20480
20481         unistr/u*-chr: test multibyte sequences
20482         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
20483
20484         unistr/u*-chr: prepare for multibyte tests
20485         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
20486         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
20487         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
20488         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
20489         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
20490         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
20491
20492 2010-07-18  Bruno Haible  <bruno@clisp.org>
20493
20494         unistr/u8-strchr: Optimize non-ASCII argument case.
20495         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
20496         because the first byte often matches anyway.
20497         Reported by Pádraig Brady <P@draigbrady.com>.
20498
20499 2010-07-15  Karl Berry  <karl@gnu.org>
20500
20501         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
20502
20503 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
20504
20505         getcwd: on Solaris, work better if ancestors are inaccessible
20506         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
20507         buffer and size, try again with a large buffer.  This works better
20508         on Solaris, since its getcwd succeeds even if the path to the root
20509         is inaccessible, and this is helpful in common cases such as .zfs
20510         hidden directories.  Problem reported by J Chapman Flack in
20511         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
20512         Use system getcwd if it's declared, not merely if it's partly
20513         working; use the partly-working test only to avoid needless effort
20514         if the system getcwd fails.
20515         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
20516         comment that was already obsolete and is now even more obsolete.
20517         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
20518         now might call strdup.
20519
20520 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
20521
20522         pthread: Add enough so that coreutils/src/sort.c compiles.
20523         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
20524         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
20525         gnulib. Include <sched.h> and <time.h>, as per POSIX.
20526         Include <sys/types.h>, in case it defines pthread_t.
20527         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
20528         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
20529         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
20530         (pthread_rwlockattr_t, pthread_spinlock_t):
20531         New typedefs, if HAVE_PTHREAD_T is not defined.
20532         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
20533         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
20534         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
20535         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
20536         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
20537         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
20538         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
20539         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
20540         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
20541         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
20542         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
20543         New macros.
20544         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
20545         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
20546         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
20547         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
20548         (pthread_spin_unlock): New dummy functions.
20549         (pthread_create): Return EAGAIN; don't set errno.
20550         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
20551         require AC_C_INLINE.
20552         * modules/pthread (Depends-on): Add sched, time.
20553         (pthread.h): Use AM_V_GEN.
20554
20555 2010-07-13  Bruno Haible  <bruno@clisp.org>
20556
20557         striconveh: Don't malloc memory if the result buffer is sufficient.
20558         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
20559         buffer if its size is sufficient.
20560         Reported by Ludovic Courtès <ludo@gnu.org>.
20561
20562 2010-07-13  Bruno Haible  <bruno@clisp.org>
20563
20564         strtod: Add safety check.
20565         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
20566
20567 2010-07-12  Bruno Haible  <bruno@clisp.org>
20568
20569         Unify tests that set gl_cv_func_ldexpl_no_libm.
20570         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
20571         gl_FUNC_LDEXPL.
20572         (gl_FUNC_LDEXPL): Invoke it.
20573         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20574
20575 2010-07-12  Bruno Haible  <bruno@clisp.org>
20576
20577         Unify tests that set gl_cv_func_ldexp_no_libm.
20578         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
20579         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
20580         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
20581         (configure.ac): Simply invoke gl_FUNC_LDEXP.
20582         * modules/strtod (Files): Add m4/ldexp.m4.
20583
20584 2010-07-12  Bruno Haible  <bruno@clisp.org>
20585
20586         Unify tests that set gl_cv_func_frexpl_no_libm.
20587         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
20588         gl_FUNC_FREXPL_NO_LIBM.
20589         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
20590         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20591
20592 2010-07-12  Bruno Haible  <bruno@clisp.org>
20593
20594         Unify tests that set gl_cv_func_frexp_no_libm.
20595         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
20596         gl_FUNC_FREXP_NO_LIBM.
20597         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
20598         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20599
20600 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20601
20602         memcoll: clarify sizes versus lengths, document better, and tweak perf
20603         * lib/memcoll.c (strcoll_loop, memcoll0):
20604         Improve quality of descriptive comments.  Name variables
20605         consistently as to whether they are lengths (which do not include
20606         terminating null) versus sizes (which do).
20607         * lib/xmemcoll.c (xmemcoll0): Likewise.
20608         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
20609         returned when s1size == 0; this is easier to compile and saves
20610         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
20611
20612 2010-07-12  Bruno Haible  <bruno@clisp.org>
20613
20614         Tests for module '_Exit'.
20615         * modules/_Exit-tests: New file.
20616         * tests/test-_Exit.sh: New file.
20617         * tests/test-_Exit.c: New file.
20618
20619         New module '_Exit'.
20620         * lib/stdlib.in.h (__attribute__): New macro.
20621         (_Exit): New declaration.
20622         * lib/_Exit.c: New file.
20623         * m4/_Exit.m4: New file.
20624         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
20625         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
20626         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
20627         * modules/_Exit: New file.
20628         * tests/test-stdlib-c++.cc (_Exit): Check signature.
20629         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
20630
20631 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20632
20633         strtod: make it more-accurate typically, and don't require libm
20634         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
20635         Include limits.h.  Don't include string.h.
20636         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
20637         (locale_isspace): New function, so that no casts are needed to
20638         check whether *s is a space.
20639         (ldexp): Provide an unused dummy if not available.
20640         (scale_radix_exp, parse_number, underlying_strtod): New functions.
20641         (strtod): Use them.  This implementation prefers to use the
20642         underlying strtod if available, falling back on our own code
20643         only to fix known bugs.  This is more likely to produce an
20644         accurate result.  Also, it avoids the use of libm functions.
20645         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
20646         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
20647         was absent, but it caused a test failure with coreutils.
20648         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
20649         with libm.
20650         * modules/strtod (Makefile.am, Link): libm is no longer needed.
20651         * modules/strtod-tests (Makefile.am): Likewise.
20652
20653 2010-07-11  Pádraig Brady  <P@draigBrady.com>
20654             Bruno Haible  <bruno@clisp.org>
20655
20656         unistr/u8-strchr: Optimize ASCII argument case.
20657         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
20658
20659 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20660
20661         (x)memcoll: minor tweaks
20662         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
20663         is after the type that it qualifies.
20664         (memcoll0): Likewise.
20665         * lib/memcoll.h (memcoll0): Likewise.
20666         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
20667         * lib/xmemcoll.h (xmemcoll0): Likewise.
20668         * lib/memcoll.c (memcoll0): Correct the comment.  This function
20669         differs from memcoll in that the NUL byte is part of the argument.
20670         Omit the abort-checks, as performance is a real issue here.  Plus,
20671         the checks were wrong anyway (an off-by-one error).  Omit local
20672         variable 'diff', as it's a bit clearer that way.
20673         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
20674         no longer needed.
20675
20676 2010-07-08  Chen Guo <chenguo4@yahoo.com>
20677
20678         (x)memcoll: speedup when input is known to be NUL delimited
20679         * lib/memcoll.c: Include stdlib.
20680         (memcoll0): New function.
20681         (strcoll_loop): New function, refactored for use in both memcoll
20682         and memcoll0.
20683         * lib/memcoll.h (memcoll0): Add prototype.
20684         * lib/xmemcoll.c (xmemcoll0): New function.
20685         (collate_error): New function, refactored for use in both xmemcoll
20686         and xmemcoll0.
20687         * lib/xmemcoll.h (xmemcoll0): Add prototype.
20688         * m4/memcoll.m4: add inline invocation.
20689
20690 2010-07-06  Pádraig Brady  <P@draigBrady.com>
20691
20692         * build-aux/bootstrap: Remove any local translations
20693         from the translation project synchronization directory,
20694         so that local only translations are not distributed.
20695
20696 2010-07-04  Bruno Haible  <bruno@clisp.org>
20697
20698         fsusage: Clarify which code applies to which platforms.
20699         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
20700         platform.
20701         * lib/fsusage.c (get_fs_usage): Likewise.
20702
20703 2010-07-04  Bruno Haible  <bruno@clisp.org>
20704
20705         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
20706         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
20707         Reported by Martin Lambers <marlam@marlam.de>.
20708
20709 2010-07-04  Jim Meyering  <meyering@redhat.com>
20710
20711         hash: once again explicitly disallow insertion of NULL
20712         * lib/hash.c (hash_insert0): Reinstate just-removed test:
20713         inserting a NULL pointer cannot work with these functions.
20714         Add a comment with details.
20715         This reverts part of the 2010-07-01 commit, 5bef1a35
20716         "hash: extend module to deal with non-pointer keys".
20717
20718 2010-07-01  Bruno Haible  <bruno@clisp.org>
20719
20720         stdbool: Update doc.
20721         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
20722         Info from Christian Weisgerber <naddy@mips.inka.de>.
20723
20724 2010-07-01  Jim Meyering  <meyering@redhat.com>
20725
20726         hash: extend module to deal with non-pointer keys
20727         * lib/hash.c (hash_insert0): New interface, much like hash_insert
20728         but that allows insertion of non-pointer entries.
20729         Do not disallow an ENTRY value of NULL.
20730         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
20731         * lib/hash.h (hash_insert0): Declare.
20732
20733 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20734
20735         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
20736         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
20737         not present (i.e. with autoconf 2.59 and when using gettextize, not
20738         gnulib), require AC_GNU_SOURCE instead.
20739
20740 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
20741
20742         idpriv-drop: Fix tests.
20743         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
20744         not to the test-idpriv-droptemp program.
20745
20746 2010-06-29  Bruno Haible  <bruno@clisp.org>
20747
20748         string: Fix syntax error with g++ 2.96.
20749         * lib/string.in.h (__pure__): Remove definition.
20750         (_GL_ATTRIBUTE_PURE): New macro.
20751         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
20752         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
20753         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20754
20755 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
20756
20757         unitypes: Fix bug introduced on 2010-05-18.
20758         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
20759
20760 2010-06-22  Eric Blake  <eblake@redhat.com>
20761
20762         memmem: slight optimization
20763         * lib/str-two-way.h (critical_factorization): Update comments.
20764         Reduce work during factorization phase.
20765         Reported by Carlos Bueno <carlos@bueno.org>.
20766
20767 2010-06-21  Bruno Haible  <bruno@clisp.org>
20768
20769         Fix HAVE_CALLOC_POSIX misnomer.
20770         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
20771         !HAVE_CALLOC_POSIX.
20772         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
20773         HAVE_CALLOC_POSIX.
20774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
20775         instead of HAVE_CALLOC_POSIX.
20776         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
20777         HAVE_CALLOC_POSIX.
20778
20779         Use modern idiom for calloc() replacement.
20780         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
20781         AC_FUNC_CALLOC.
20782         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
20783         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
20784         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20785         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
20786         (gl_REPLACE_CALLOC): New macro.
20787
20788 2010-06-21  Bruno Haible  <bruno@clisp.org>
20789
20790         Fix HAVE_REALLOC_POSIX misnomer.
20791         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
20792         !HAVE_REALLOC_POSIX.
20793         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
20794         HAVE_REALLOC_POSIX.
20795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
20796         instead of HAVE_REALLOC_POSIX.
20797         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
20798         HAVE_REALLOC_POSIX.
20799
20800         Use modern idiom for realloc() replacement.
20801         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
20802         AC_FUNC_REALLOC.
20803         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
20804         Autoconf's AC_FUNC_REALLOC.
20805         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20806         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
20807         (gl_REPLACE_REALLOC): New macro.
20808         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20809
20810 2010-06-21  Bruno Haible  <bruno@clisp.org>
20811
20812         Fix HAVE_MALLOC_POSIX misnomer.
20813         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
20814         !HAVE_MALLOC_POSIX.
20815         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
20816         HAVE_MALLOC_POSIX.
20817         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
20818         instead of HAVE_MALLOC_POSIX.
20819         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
20820         HAVE_MALLOC_POSIX.
20821
20822         Use modern idiom for malloc() replacement.
20823         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
20824         AC_FUNC_MALLOC.
20825         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
20826         Autoconf's AC_FUNC_MALLOC.
20827         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20828         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
20829         (gl_REPLACE_MALLOC): New macro.
20830         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20831
20832 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
20833
20834         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
20835         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
20836         This macro takes 3 arguments, not 4.
20837
20838 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
20839
20840         ipv6: fix detection under mingw
20841         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
20842         in6_addr.
20843
20844 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
20845
20846         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
20847         that strtod() works when cross-compiling to a glibc version known
20848         to work.
20849
20850 2010-06-15  Bruno Haible  <bruno@clisp.org>
20851
20852         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
20853
20854 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
20855
20856         select: Correct timeout.
20857         * lib/select.c (rpl_select): Compute wait_timeout correctly.
20858
20859 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20860
20861         git-version-gen: init shell var to avoid env var influence
20862         * build-aux/git-version-gen (v): Init shell var to empty.
20863
20864 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
20865
20866         priv-set: Don't assume that priv.h exists merely because getppriv does.
20867         See Jan Andersen's bug report about AIX 5L in
20868         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
20869         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
20870         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
20871         * lib/priv-set.h: Likewise.
20872         * tests/test-priv-set.c: Likewise.
20873
20874 2010-06-13  Bruno Haible  <bruno@clisp.org>
20875
20876         relocatable: Make it easier to test whether to install wrappers.
20877         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
20878         RELOCATABLE_VIA_WRAPPER.
20879
20880 2010-06-13  Bruno Haible  <bruno@clisp.org>
20881
20882         gnulib-tool: Display specified modules and dependencies differently.
20883         * gnulib-tool (func_show_module_list): New function.
20884         (func_import, func_create_testdir): Invoke it.
20885         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20886
20887 2010-06-13  Bruno Haible  <bruno@clisp.org>
20888
20889         gnulib-tool: Align code of func_import and func_create_testdir.
20890         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
20891         specified_modules.
20892
20893 2010-06-12  Jim Meyering  <meyering@redhat.com>
20894
20895         test-inttostr: avoid spurious failure on Solaris 9
20896         * tests/test-inttostr.c (main): Skip the test when snprintf fails
20897         to accept "%ju".  Reported by Bruno Haible.
20898
20899 2010-06-11  Jim Meyering  <meyering@redhat.com>
20900
20901         test-sys_socket: mark variables as used more readably
20902         * tests/test-sys_socket.c (main): Mark otherwise unused variables
20903         as "used" explicitly via (void) statement casts.  This is more
20904         readable than using them in an artificial return expression.
20905         Suggestion from Bruno Haible.
20906
20907 2010-06-11  Bruno Haible  <bruno@clisp.org>
20908
20909         Avoid some more warnings from "gcc -Wwrite-strings".
20910         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
20911         to 'const char *'.
20912         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
20913         * tests/test-c-strcasestr.c (main): Likewise.
20914         * tests/test-mbscasestr1.c (main): Likewise.
20915         * tests/test-mbscasestr2.c (main): Likewise.
20916         * tests/test-memmem.c (main): Likewise.
20917         * tests/test-strstr.c (main): Likewise.
20918         * tests/test-strcasestr.c (main): Likewise.
20919
20920 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20921
20922         init.sh: change framework_failure_ to fail with status 99, not 1
20923         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
20924         automake's parallel-tests rule that this is an unexpected failure,
20925         even if the test is listed in XFAIL_TESTS.
20926
20927 2010-06-11  Jim Meyering  <meyering@redhat.com>
20928
20929         test-inttostr: avoid warnings about 4-6KB literal strings
20930         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
20931         Include "macros.h", for its definition of ASSERT.
20932         (CK): s/assert/ASSERT/
20933         * modules/inttostr-tests (Files): Add macros.h.
20934
20935         init.sh: don't use $ME_ or skip_ before they are defined
20936         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
20937         their first uses.  Also hoist their companions: warn_, fail_,
20938         framework_failure_, $stderr_fileno.  Prompted by a patch from
20939         Stefano Lattarini.
20940
20941         test-sys_socket: avoid set-but-not-used warnings from gcc
20942         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
20943         avoid warning about set-but-not-used variables.
20944
20945         test-xvasprintf: avoid 'const' discard warnings
20946         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
20947         "const" when assigning from literal strings.
20948         (test_xasprintf): Add "void" in function argument list to placate
20949         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
20950
20951         tests: avoid compilation warnings in argmatch and exclude tests...
20952         in packages that define ARGMATCH_DIE_DECL, like coreutils.
20953         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
20954         Since it always exits, declare with the "noreturn" attribute.
20955         * tests/test-argmatch.c: Likewise.
20956
20957         tests: avoid 'const' discard warnings in mbsstr tests
20958         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
20959         * tests/test-mbsstr2.c (main): Likewise.
20960
20961         test-verify: avoid warning from gcc's -Wmissing-declarations
20962         * tests/test-verify.c (function): Declare to be static.
20963
20964         test-inttostr.c: include <string.h> for use of strcmp
20965         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
20966
20967         test-linkat: avoid failed assertion on "other" architectures
20968         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
20969         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
20970         sparc: https://bugs.launchpad.net/bugs/591968
20971
20972 2010-06-11  Jim Meyering  <meyering@redhat.com>
20973
20974         printf.m4: avoid autoconf's "Expanded Before Required" warning
20975         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
20976         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
20977         autoconf warning.
20978
20979 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
20980
20981         Replacement header templates are now named with ".in", not "_".
20982         * doc/gnulib-intro.texi: Correct.
20983
20984 2010-06-10  Jim Meyering  <meyering@redhat.com>
20985
20986         inttostr-tests: depend on snprintf, not snprintf-posix
20987         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
20988         snprintf-posix, to avoid this aclocal failure:
20989           missing file gnulib-tests/vasnprintf.c
20990           configure.ac:45: error: expected source file, required through \
20991           AC_LIBSOURCES, not found
20992
20993 2010-06-10  Jim Meyering  <meyering@redhat.com>
20994
20995         inttostr: add a new function, inttostr, and tests
20996         The namesake function was not available.  The existence of the
20997         template file, inttostr.c makes its addition nontrivial.
20998         * lib/anytostr.c: Rename from inttostr.c.
20999         (anytostr): Rename from inttostr.
21000         * lib/inttostr.c: New file.
21001         * modules/inttostr (Files): Add anytostr.c.
21002         (Makefile.am): Set lib_SOURCES instead of ...
21003         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21004         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21005         * lib/offtostr.c: Likewise.
21006         * lib/uinttostr.c: Likewise.
21007         * lib/umaxtostr.c: Likewise.
21008         * modules/inttostr-tests: New file.
21009         * tests/test-inttostr.c: New file.  Test these functions.
21010
21011 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21012             Bruno Haible  <bruno@clisp.org>
21013
21014         Add "Extending Gnulib" chapter to manual.
21015         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21016         chapter.
21017         (Extending Gnulib): New chapter.
21018         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21019         chapter.
21020
21021 2010-06-09  Bruno Haible  <bruno@clisp.org>
21022
21023         Avoid relocwrapper link errors due to gnulib replacement functions.
21024         * lib/areadlink.c: Use the system's malloc, realloc functions.
21025         (areadlink): Set errno to ENOMEM explicitly.
21026         * modules/areadlink (Depends-on): Remove malloc-posix.
21027         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21028
21029 2010-06-09  Bruno Haible  <bruno@clisp.org>
21030
21031         Avoid relocwrapper link errors due to gnulib replacement functions.
21032         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21033         * lib/malloca.c: Likewise.
21034         * lib/relocatable.c: Likewise.
21035         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21036         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21037         * lib/setenv.c: Use the system's malloc, realloc functions.
21038         * lib/strerror.c: Use the system's sprintf function.
21039         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21040
21041 2010-06-04  Bruno Haible  <bruno@clisp.org>
21042
21043         Prefer documented low-level autoconf macro names.
21044         * m4/lib-link.m4: Use m4_translit instead of translit.
21045         * m4/environ.m4: Likewise.
21046         * m4/mathfunc.m4: Likewise.
21047         * m4/onceonly.m4: Likewise.
21048         * m4/stdint.m4: Likewise.
21049         Suggested by Eric Blake.
21050
21051 2010-06-04  Martin Lambers  <marlam@marlam.de>
21052             Bruno Haible  <bruno@clisp.org>
21053
21054         havelib: Allow library names with '+' characters.
21055         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21056         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21057
21058 2010-06-09  Bruno Haible  <bruno@clisp.org>
21059
21060         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21061         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21062         realloc failed.
21063
21064 2010-06-08  Peter Simons  <simons@cryp.to>
21065
21066         maint.mk: make the news-check rule more configurable
21067         * top/maint.mk (news-check-lines-spec): New variable.
21068         (news-check): Use "sed -n 1,10p" in place of "head".
21069
21070 2010-06-07  Jim Meyering  <meyering@redhat.com>
21071
21072         do-release-commit-and-tag: fix typo in --help
21073         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21074
21075         regex: avoid new dead-code warning with gcc-4.6.0
21076         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21077         if-block containing a while-loop.  It's been unused for at least
21078         5 years.
21079
21080 2010-06-05  Bruno Haible  <bruno@clisp.org>
21081
21082         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21083         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21084
21085 2010-06-04  Bruno Haible  <bruno@clisp.org>
21086
21087         Update to GNU gettext 0.18.1.
21088         * modules/gettext (configure.ac): Require gettext infrastructure from
21089         version 0.18.1.
21090
21091 2010-06-03  Bruno Haible  <bruno@clisp.org>
21092
21093         Don't use AC_LIBOBJ with file names in subdirectories.
21094         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21095         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21096         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21097         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21098         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21099         gl_LIBUNISTRING_LIBSOURCE.
21100         (Makefile.am): Augment lib_SOURCES here, conditionally.
21101         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21102
21103 2010-06-03  Bruno Haible  <bruno@clisp.org>
21104
21105         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21106         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21107         expansion does not end with a newline.
21108         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21109         unnecessary newline.
21110
21111 2010-06-03  Bruno Haible  <bruno@clisp.org>
21112
21113         Reduce dependencies.
21114         * tests/test-quotearg.h: New file, extracted from
21115         tests/test-quotearg.c.
21116         * tests/test-quotearg-simple.c: New file, extracted from
21117         tests/test-quotearg.c.
21118         * tests/test-quotearg.c: Don't include <ctype.h>.
21119         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21120         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21121         use_quote_double_quotes, use_quotearg_colon): Moved to
21122         tests/test-quotearg.h.
21123         (results_g, flag_results, custom_quotes, custom_results): Moved
21124         to tests/test-quotearg-simple.c.
21125         (main): Moved the part that does not depend on gettext to
21126         tests/test-quotearg-simple.c. Return 77 if the test cannot be
21127         performed.
21128         * modules/quotearg-simple: New file.
21129         * modules/quotearg-simple-tests: New file.
21130         * modules/quotearg (Depends-on): Add quotearg-simple.
21131         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
21132         (Files): Add tests/test-quotearg.h.
21133         Reported by Paolo Bonzini.
21134
21135 2010-06-03  Bruno Haible  <bruno@clisp.org>
21136
21137         Reduce dependencies.
21138         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
21139
21140 2010-06-03  Bruno Haible  <bruno@clisp.org>
21141
21142         time: Undefine more broken macros.
21143         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
21144         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
21145         Reported by Eric Blake.
21146
21147 2010-06-03  Bruno Haible  <bruno@clisp.org>
21148
21149         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
21150         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
21151         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
21152         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
21153         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
21154         Reported by Ludovic Courtès <ludo@gnu.org>.
21155
21156 2010-06-02  Eric Blake  <eblake@redhat.com>
21157
21158         time: work with mingw + pthreads-win32 library
21159         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
21160         if timespec is defined only in pthread.h.
21161         * modules/time (Makefile.am): Substitute it.
21162         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
21163         <pthread.h>, when needed.
21164         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
21165         from the library.
21166
21167 2010-05-31  Bruno Haible  <bruno@clisp.org>
21168
21169         Avoid expanding two macros in the wrong order.
21170         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
21171         gl_LIBUNISTRING if it is defined.
21172         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
21173         autoconf >= 2.64.
21174         Reported by Ludovic Courtès <ludo@gnu.org>.
21175
21176 2010-05-27  Jim Meyering  <meyering@redhat.com>
21177
21178         maint.mk: also prohibit "#undef" of always-defined symbols
21179         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21180         Allow more than one space before the symbol name.
21181         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21182         the regexp uses alternation.
21183
21184 2010-05-26  Eric Blake  <eblake@redhat.com>
21185
21186         maint.mk: avoid echo -e
21187         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21188         Convert all uses of echo -* to printf.
21189         Reported by Matthias Bolte.
21190
21191 2010-05-25  Bruno Haible  <bruno@clisp.org>
21192
21193         Update to GNU gettext 0.18, part 2.
21194         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21195         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21196
21197 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21198
21199         Add missing include in test-pwrite.c.
21200         * tests/test-pwrite.c: Include string.h, for strcmp.
21201
21202 2010-05-24  Bruno Haible  <bruno@clisp.org>
21203
21204         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21205
21206 2010-05-24  Bruno Haible  <bruno@clisp.org>
21207
21208         Don't use conversion with transliteration in u{8,16,32}_strcoll.
21209         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
21210         iconveh_error argument.
21211         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
21212         U_STRCONV_TO_LOCALE.
21213         * lib/unistr/u16-strcoll.c: Likewise.
21214         * lib/unistr/u32-strcoll.c: Likewise.
21215         * modules/unistr/u8-strcoll (Depends-on): Add
21216         uniconv/u8-strconv-to-enc, localcharset. Remove
21217         uniconv/u8-strconv-to-locale.
21218         (configure.ac): Bump version number.
21219         * modules/unistr/u16-strcoll (Depends-on): Add
21220         uniconv/u16-strconv-to-enc, localcharset. Remove
21221         uniconv/u16-strconv-to-locale.
21222         (configure.ac): Bump version number.
21223         * modules/unistr/u32-strcoll (Depends-on): Add
21224         uniconv/u32-strconv-to-enc, localcharset. Remove
21225         uniconv/u32-strconv-to-locale.
21226         (configure.ac): Bump version number.
21227
21228 2010-05-24  Bruno Haible  <bruno@clisp.org>
21229
21230         Avoid a test failure on NetBSD 5.0.
21231         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
21232         an iconv() bug.
21233
21234 2010-05-24  Bruno Haible  <bruno@clisp.org>
21235
21236         Adjust #include directive style.
21237         * modules/regex (Includes): Recommend to write <regex.h>.
21238
21239 2010-05-24  Bruno Haible  <bruno@clisp.org>
21240
21241         regex: Don't require alloca.
21242         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
21243         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
21244         only inside if (0).
21245
21246 2010-05-23  Jim Meyering  <meyering@redhat.com>
21247
21248         test-renameat.c: include <sys/stat.h>
21249         * tests/test-renameat.c: Include <sys/stat.h>; required for
21250         definition of S_IS* macros.
21251
21252 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
21253
21254         Update maintainer documentation for 'relocatable-prog' module.
21255         * doc/relocatable-maint.texi: Update.
21256         Comments by Bruno Haible.
21257
21258 2010-05-23  Bruno Haible  <bruno@clisp.org>
21259
21260         git-merge-changelog: Enable --split-merged-entry by default.
21261         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
21262         (usage): Don't mention this option any more.
21263         Reported by Ralf Wildenhues.
21264
21265 2010-05-23  Jim Meyering  <meyering@redhat.com>
21266
21267         test-pwrite: do not leave behind a test file named "out"
21268         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
21269         The trivial-looking use of init.sh is really necessary.
21270         It ensures that the temporary file, "out", is created in
21271         a temporary directory, and removed upon termination.
21272         * tests/test-pwrite.sh: Re-add file.
21273         * modules/pwrite-tests: Reference it.
21274
21275 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21276
21277         Fix output redirection buglet in init.sh.
21278         * tests/init.sh: Fix redirection of stderr.
21279
21280 2010-05-20  Simon Josefsson  <simon@josefsson.org>
21281
21282         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
21283
21284 2010-05-17  Simon Josefsson  <simon@josefsson.org>
21285
21286         * modules/valgrind-tests: New file.
21287         * m4/valgrind-tests.m4: New file.
21288         * doc/valgrind-tests.texi: New file.
21289         * doc/gnulib.texi (Running self-tests under valgrind): New
21290         section.
21291
21292 2010-05-19  Bruno Haible  <bruno@clisp.org>
21293
21294         Clean up dead code in recent commit.
21295         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
21296         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
21297         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
21298         Suggested by Paolo Bonzini.
21299
21300 2010-05-19  Bruno Haible  <bruno@clisp.org>
21301
21302         Avoid valgrind error reports from libunistring.
21303         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
21304         * modules/libunistring (Files): Add it.
21305         * modules/libunistring-optional (Files): Likewise.
21306
21307 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
21308             Bruno Haible  <bruno@clisp.org>
21309
21310         New module 'libunistring-optional'.
21311         * modules/libunistring-optional: New file.
21312         * m4/libunistring-base.m4: New file.
21313         * m4/libunistring-optional.m4: New file.
21314         * lib/unicase.in.h: Renamed from lib/unicase.h.
21315         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
21316         * lib/unictype.in.h: Renamed from lib/unictype.h.
21317         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
21318         * lib/uniname.in.h: Renamed from lib/uniname.h.
21319         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
21320         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
21321         * lib/unistr.in.h: Renamed from lib/unistr.h.
21322         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
21323         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
21324         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
21325         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
21326         gl_LIBUNISTRING. If the library was found, determine the installed
21327         version and set LIBUNISTRING_VERSION.
21328         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
21329         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
21330         handle a configuration option --with-included-libunistring.
21331         * modules/libunistring (Files): Add m4/absolute-header.m4.
21332         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
21333         Add m4/libunistring-base.m4.
21334         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21335         (Makefile.am): Build unicase.h from unicase.in.h.
21336         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
21337         Add m4/libunistring-base.m4.
21338         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21339         (Makefile.am): Build uniconv.h from uniconv.in.h.
21340         * modules/unictype/base (Files): Use unictype.in.h instead of
21341         unictype.h. Add m4/libunistring-base.m4.
21342         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21343         (Makefile.am): Build unictype.h from unictype.in.h.
21344         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
21345         Add m4/libunistring-base.m4.
21346         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21347         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
21348         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
21349         Add m4/libunistring-base.m4.
21350         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21351         (Makefile.am): Build uniname.h from uniname.in.h.
21352         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
21353         Add m4/libunistring-base.m4.
21354         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21355         (Makefile.am): Build uninorm.h from uninorm.in.h.
21356         * modules/unistdio/base (Files): Use unistdio.in.h instead of
21357         unistdio.h. Add m4/libunistring-base.m4.
21358         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21359         (Makefile.am): Build unistdio.h from unistdio.in.h.
21360         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
21361         Add m4/libunistring-base.m4.
21362         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21363         (Makefile.am): Build unistr.h from unistr.in.h.
21364         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
21365         Add m4/libunistring-base.m4.
21366         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21367         (Makefile.am): Build unitypes.h from unitypes.in.h.
21368         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
21369         Add m4/libunistring-base.m4.
21370         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21371         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
21372         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
21373         uniwidth.h. Add m4/libunistring-base.m4.
21374         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21375         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
21376         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
21377         instead of augmenting lib_SOURCES.
21378         * modules/unicase/empty-suffix-context: Likewise.
21379         * modules/unicase/locale-language: Likewise.
21380         * modules/unicase/tolower: Likewise.
21381         * modules/unicase/totitle: Likewise.
21382         * modules/unicase/toupper: Likewise.
21383         * modules/unicase/u8-casecmp: Likewise.
21384         * modules/unicase/u8-casecoll: Likewise.
21385         * modules/unicase/u8-casefold: Likewise.
21386         * modules/unicase/u8-casexfrm: Likewise.
21387         * modules/unicase/u8-ct-casefold: Likewise.
21388         * modules/unicase/u8-ct-tolower: Likewise.
21389         * modules/unicase/u8-ct-totitle: Likewise.
21390         * modules/unicase/u8-ct-toupper: Likewise.
21391         * modules/unicase/u8-is-cased: Likewise.
21392         * modules/unicase/u8-is-casefolded: Likewise.
21393         * modules/unicase/u8-is-lowercase: Likewise.
21394         * modules/unicase/u8-is-titlecase: Likewise.
21395         * modules/unicase/u8-is-uppercase: Likewise.
21396         * modules/unicase/u8-prefix-context: Likewise.
21397         * modules/unicase/u8-suffix-context: Likewise.
21398         * modules/unicase/u8-tolower: Likewise.
21399         * modules/unicase/u8-totitle: Likewise.
21400         * modules/unicase/u8-toupper: Likewise.
21401         * modules/unicase/u16-casecmp: Likewise.
21402         * modules/unicase/u16-casecoll: Likewise.
21403         * modules/unicase/u16-casefold: Likewise.
21404         * modules/unicase/u16-casexfrm: Likewise.
21405         * modules/unicase/u16-ct-casefold: Likewise.
21406         * modules/unicase/u16-ct-tolower: Likewise.
21407         * modules/unicase/u16-ct-totitle: Likewise.
21408         * modules/unicase/u16-ct-toupper: Likewise.
21409         * modules/unicase/u16-is-cased: Likewise.
21410         * modules/unicase/u16-is-casefolded: Likewise.
21411         * modules/unicase/u16-is-lowercase: Likewise.
21412         * modules/unicase/u16-is-titlecase: Likewise.
21413         * modules/unicase/u16-is-uppercase: Likewise.
21414         * modules/unicase/u16-prefix-context: Likewise.
21415         * modules/unicase/u16-suffix-context: Likewise.
21416         * modules/unicase/u16-tolower: Likewise.
21417         * modules/unicase/u16-totitle: Likewise.
21418         * modules/unicase/u16-toupper: Likewise.
21419         * modules/unicase/u32-casecmp: Likewise.
21420         * modules/unicase/u32-casecoll: Likewise.
21421         * modules/unicase/u32-casefold: Likewise.
21422         * modules/unicase/u32-casexfrm: Likewise.
21423         * modules/unicase/u32-ct-casefold: Likewise.
21424         * modules/unicase/u32-ct-tolower: Likewise.
21425         * modules/unicase/u32-ct-totitle: Likewise.
21426         * modules/unicase/u32-ct-toupper: Likewise.
21427         * modules/unicase/u32-is-cased: Likewise.
21428         * modules/unicase/u32-is-casefolded: Likewise.
21429         * modules/unicase/u32-is-lowercase: Likewise.
21430         * modules/unicase/u32-is-titlecase: Likewise.
21431         * modules/unicase/u32-is-uppercase: Likewise.
21432         * modules/unicase/u32-prefix-context: Likewise.
21433         * modules/unicase/u32-suffix-context: Likewise.
21434         * modules/unicase/u32-tolower: Likewise.
21435         * modules/unicase/u32-totitle: Likewise.
21436         * modules/unicase/u32-toupper: Likewise.
21437         * modules/unicase/ulc-casecmp: Likewise.
21438         * modules/unicase/ulc-casecoll: Likewise.
21439         * modules/unicase/ulc-casexfrm: Likewise.
21440         * modules/uniconv/u8-conv-from-enc: Likewise.
21441         * modules/uniconv/u8-conv-to-enc: Likewise.
21442         * modules/uniconv/u8-strconv-from-enc: Likewise.
21443         * modules/uniconv/u8-strconv-from-locale: Likewise.
21444         * modules/uniconv/u8-strconv-to-enc: Likewise.
21445         * modules/uniconv/u8-strconv-to-locale: Likewise.
21446         * modules/uniconv/u16-conv-from-enc: Likewise.
21447         * modules/uniconv/u16-conv-to-enc: Likewise.
21448         * modules/uniconv/u16-strconv-from-enc: Likewise.
21449         * modules/uniconv/u16-strconv-from-locale: Likewise.
21450         * modules/uniconv/u16-strconv-to-enc: Likewise.
21451         * modules/uniconv/u16-strconv-to-locale: Likewise.
21452         * modules/uniconv/u32-conv-from-enc: Likewise.
21453         * modules/uniconv/u32-conv-to-enc: Likewise.
21454         * modules/uniconv/u32-strconv-from-enc: Likewise.
21455         * modules/uniconv/u32-strconv-from-locale: Likewise.
21456         * modules/uniconv/u32-strconv-to-enc: Likewise.
21457         * modules/uniconv/u32-strconv-to-locale: Likewise.
21458         * modules/unictype/bidicategory-byname: Likewise.
21459         * modules/unictype/bidicategory-name: Likewise.
21460         * modules/unictype/bidicategory-of: Likewise.
21461         * modules/unictype/bidicategory-test: Likewise.
21462         * modules/unictype/block-list: Likewise.
21463         * modules/unictype/block-test: Likewise.
21464         * modules/unictype/category-C: Likewise.
21465         * modules/unictype/category-Cc: Likewise.
21466         * modules/unictype/category-Cf: Likewise.
21467         * modules/unictype/category-Cn: Likewise.
21468         * modules/unictype/category-Co: Likewise.
21469         * modules/unictype/category-Cs: Likewise.
21470         * modules/unictype/category-L: Likewise.
21471         * modules/unictype/category-Ll: Likewise.
21472         * modules/unictype/category-Lm: Likewise.
21473         * modules/unictype/category-Lo: Likewise.
21474         * modules/unictype/category-Lt: Likewise.
21475         * modules/unictype/category-Lu: Likewise.
21476         * modules/unictype/category-M: Likewise.
21477         * modules/unictype/category-Mc: Likewise.
21478         * modules/unictype/category-Me: Likewise.
21479         * modules/unictype/category-Mn: Likewise.
21480         * modules/unictype/category-N: Likewise.
21481         * modules/unictype/category-Nd: Likewise.
21482         * modules/unictype/category-Nl: Likewise.
21483         * modules/unictype/category-No: Likewise.
21484         * modules/unictype/category-P: Likewise.
21485         * modules/unictype/category-Pc: Likewise.
21486         * modules/unictype/category-Pd: Likewise.
21487         * modules/unictype/category-Pe: Likewise.
21488         * modules/unictype/category-Pf: Likewise.
21489         * modules/unictype/category-Pi: Likewise.
21490         * modules/unictype/category-Po: Likewise.
21491         * modules/unictype/category-Ps: Likewise.
21492         * modules/unictype/category-S: Likewise.
21493         * modules/unictype/category-Sc: Likewise.
21494         * modules/unictype/category-Sk: Likewise.
21495         * modules/unictype/category-Sm: Likewise.
21496         * modules/unictype/category-So: Likewise.
21497         * modules/unictype/category-Z: Likewise.
21498         * modules/unictype/category-Zl: Likewise.
21499         * modules/unictype/category-Zp: Likewise.
21500         * modules/unictype/category-Zs: Likewise.
21501         * modules/unictype/category-and: Likewise.
21502         * modules/unictype/category-and-not: Likewise.
21503         * modules/unictype/category-byname: Likewise.
21504         * modules/unictype/category-name: Likewise.
21505         * modules/unictype/category-none: Likewise.
21506         * modules/unictype/category-of: Likewise.
21507         * modules/unictype/category-or: Likewise.
21508         * modules/unictype/category-test: Likewise.
21509         * modules/unictype/combining-class: Likewise.
21510         * modules/unictype/ctype-alnum: Likewise.
21511         * modules/unictype/ctype-alpha: Likewise.
21512         * modules/unictype/ctype-blank: Likewise.
21513         * modules/unictype/ctype-cntrl: Likewise.
21514         * modules/unictype/ctype-digit: Likewise.
21515         * modules/unictype/ctype-graph: Likewise.
21516         * modules/unictype/ctype-lower: Likewise.
21517         * modules/unictype/ctype-print: Likewise.
21518         * modules/unictype/ctype-punct: Likewise.
21519         * modules/unictype/ctype-space: Likewise.
21520         * modules/unictype/ctype-upper: Likewise.
21521         * modules/unictype/ctype-xdigit: Likewise.
21522         * modules/unictype/decimal-digit: Likewise.
21523         * modules/unictype/digit: Likewise.
21524         * modules/unictype/mirror: Likewise.
21525         * modules/unictype/numeric: Likewise.
21526         * modules/unictype/property-alphabetic: Likewise.
21527         * modules/unictype/property-ascii-hex-digit: Likewise.
21528         * modules/unictype/property-bidi-arabic-digit: Likewise.
21529         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
21530         * modules/unictype/property-bidi-block-separator: Likewise.
21531         * modules/unictype/property-bidi-boundary-neutral: Likewise.
21532         * modules/unictype/property-bidi-common-separator: Likewise.
21533         * modules/unictype/property-bidi-control: Likewise.
21534         * modules/unictype/property-bidi-embedding-or-override: Likewise.
21535         * modules/unictype/property-bidi-eur-num-separator: Likewise.
21536         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
21537         * modules/unictype/property-bidi-european-digit: Likewise.
21538         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
21539         * modules/unictype/property-bidi-left-to-right: Likewise.
21540         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
21541         * modules/unictype/property-bidi-other-neutral: Likewise.
21542         * modules/unictype/property-bidi-pdf: Likewise.
21543         * modules/unictype/property-bidi-segment-separator: Likewise.
21544         * modules/unictype/property-bidi-whitespace: Likewise.
21545         * modules/unictype/property-byname: Likewise.
21546         * modules/unictype/property-combining: Likewise.
21547         * modules/unictype/property-composite: Likewise.
21548         * modules/unictype/property-currency-symbol: Likewise.
21549         * modules/unictype/property-dash: Likewise.
21550         * modules/unictype/property-decimal-digit: Likewise.
21551         * modules/unictype/property-default-ignorable-code-point: Likewise.
21552         * modules/unictype/property-deprecated: Likewise.
21553         * modules/unictype/property-diacritic: Likewise.
21554         * modules/unictype/property-extender: Likewise.
21555         * modules/unictype/property-format-control: Likewise.
21556         * modules/unictype/property-grapheme-base: Likewise.
21557         * modules/unictype/property-grapheme-extend: Likewise.
21558         * modules/unictype/property-grapheme-link: Likewise.
21559         * modules/unictype/property-hex-digit: Likewise.
21560         * modules/unictype/property-hyphen: Likewise.
21561         * modules/unictype/property-id-continue: Likewise.
21562         * modules/unictype/property-id-start: Likewise.
21563         * modules/unictype/property-ideographic: Likewise.
21564         * modules/unictype/property-ids-binary-operator: Likewise.
21565         * modules/unictype/property-ids-trinary-operator: Likewise.
21566         * modules/unictype/property-ignorable-control: Likewise.
21567         * modules/unictype/property-iso-control: Likewise.
21568         * modules/unictype/property-join-control: Likewise.
21569         * modules/unictype/property-left-of-pair: Likewise.
21570         * modules/unictype/property-line-separator: Likewise.
21571         * modules/unictype/property-logical-order-exception: Likewise.
21572         * modules/unictype/property-lowercase: Likewise.
21573         * modules/unictype/property-math: Likewise.
21574         * modules/unictype/property-non-break: Likewise.
21575         * modules/unictype/property-not-a-character: Likewise.
21576         * modules/unictype/property-numeric: Likewise.
21577         * modules/unictype/property-other-alphabetic: Likewise.
21578         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
21579         * modules/unictype/property-other-grapheme-extend: Likewise.
21580         * modules/unictype/property-other-id-continue: Likewise.
21581         * modules/unictype/property-other-id-start: Likewise.
21582         * modules/unictype/property-other-lowercase: Likewise.
21583         * modules/unictype/property-other-math: Likewise.
21584         * modules/unictype/property-other-uppercase: Likewise.
21585         * modules/unictype/property-paired-punctuation: Likewise.
21586         * modules/unictype/property-paragraph-separator: Likewise.
21587         * modules/unictype/property-pattern-syntax: Likewise.
21588         * modules/unictype/property-pattern-white-space: Likewise.
21589         * modules/unictype/property-private-use: Likewise.
21590         * modules/unictype/property-punctuation: Likewise.
21591         * modules/unictype/property-quotation-mark: Likewise.
21592         * modules/unictype/property-radical: Likewise.
21593         * modules/unictype/property-sentence-terminal: Likewise.
21594         * modules/unictype/property-soft-dotted: Likewise.
21595         * modules/unictype/property-space: Likewise.
21596         * modules/unictype/property-terminal-punctuation: Likewise.
21597         * modules/unictype/property-test: Likewise.
21598         * modules/unictype/property-titlecase: Likewise.
21599         * modules/unictype/property-unassigned-code-value: Likewise.
21600         * modules/unictype/property-unified-ideograph: Likewise.
21601         * modules/unictype/property-uppercase: Likewise.
21602         * modules/unictype/property-variation-selector: Likewise.
21603         * modules/unictype/property-white-space: Likewise.
21604         * modules/unictype/property-xid-continue: Likewise.
21605         * modules/unictype/property-xid-start: Likewise.
21606         * modules/unictype/property-zero-width: Likewise.
21607         * modules/unictype/scripts: Likewise.
21608         * modules/unictype/syntax-c-ident: Likewise.
21609         * modules/unictype/syntax-c-whitespace: Likewise.
21610         * modules/unictype/syntax-java-ident: Likewise.
21611         * modules/unictype/syntax-java-whitespace: Likewise.
21612         * modules/unilbrk/u8-possible-linebreaks: Likewise.
21613         * modules/unilbrk/u8-width-linebreaks: Likewise.
21614         * modules/unilbrk/u16-possible-linebreaks: Likewise.
21615         * modules/unilbrk/u16-width-linebreaks: Likewise.
21616         * modules/unilbrk/u32-possible-linebreaks: Likewise.
21617         * modules/unilbrk/u32-width-linebreaks: Likewise.
21618         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
21619         * modules/unilbrk/ulc-width-linebreaks: Likewise.
21620         * modules/uniname/uniname: Likewise.
21621         * modules/uninorm/canonical-decomposition: Likewise.
21622         * modules/uninorm/composition: Likewise.
21623         * modules/uninorm/decomposing-form: Likewise.
21624         * modules/uninorm/decomposition: Likewise.
21625         * modules/uninorm/filter: Likewise.
21626         * modules/uninorm/nfc: Likewise.
21627         * modules/uninorm/nfd: Likewise.
21628         * modules/uninorm/nfkc: Likewise.
21629         * modules/uninorm/nfkd: Likewise.
21630         * modules/uninorm/u8-normalize: Likewise.
21631         * modules/uninorm/u8-normcmp: Likewise.
21632         * modules/uninorm/u8-normcoll: Likewise.
21633         * modules/uninorm/u8-normxfrm: Likewise.
21634         * modules/uninorm/u16-normalize: Likewise.
21635         * modules/uninorm/u16-normcmp: Likewise.
21636         * modules/uninorm/u16-normcoll: Likewise.
21637         * modules/uninorm/u16-normxfrm: Likewise.
21638         * modules/uninorm/u32-normalize: Likewise.
21639         * modules/uninorm/u32-normcmp: Likewise.
21640         * modules/uninorm/u32-normcoll: Likewise.
21641         * modules/uninorm/u32-normxfrm: Likewise.
21642         * modules/unistdio/u8-asnprintf: Likewise.
21643         * modules/unistdio/u8-asprintf: Likewise.
21644         * modules/unistdio/u8-snprintf: Likewise.
21645         * modules/unistdio/u8-sprintf: Likewise.
21646         * modules/unistdio/u8-u8-asnprintf: Likewise.
21647         * modules/unistdio/u8-u8-asprintf: Likewise.
21648         * modules/unistdio/u8-u8-snprintf: Likewise.
21649         * modules/unistdio/u8-u8-sprintf: Likewise.
21650         * modules/unistdio/u8-u8-vasnprintf: Likewise.
21651         * modules/unistdio/u8-u8-vasprintf: Likewise.
21652         * modules/unistdio/u8-u8-vsnprintf: Likewise.
21653         * modules/unistdio/u8-u8-vsprintf: Likewise.
21654         * modules/unistdio/u8-vasnprintf: Likewise.
21655         * modules/unistdio/u8-vasprintf: Likewise.
21656         * modules/unistdio/u8-vsnprintf: Likewise.
21657         * modules/unistdio/u8-vsprintf: Likewise.
21658         * modules/unistdio/u16-asnprintf: Likewise.
21659         * modules/unistdio/u16-asprintf: Likewise.
21660         * modules/unistdio/u16-snprintf: Likewise.
21661         * modules/unistdio/u16-sprintf: Likewise.
21662         * modules/unistdio/u16-u16-asnprintf: Likewise.
21663         * modules/unistdio/u16-u16-asprintf: Likewise.
21664         * modules/unistdio/u16-u16-snprintf: Likewise.
21665         * modules/unistdio/u16-u16-sprintf: Likewise.
21666         * modules/unistdio/u16-u16-vasnprintf: Likewise.
21667         * modules/unistdio/u16-u16-vasprintf: Likewise.
21668         * modules/unistdio/u16-u16-vsnprintf: Likewise.
21669         * modules/unistdio/u16-u16-vsprintf: Likewise.
21670         * modules/unistdio/u16-vasnprintf: Likewise.
21671         * modules/unistdio/u16-vasprintf: Likewise.
21672         * modules/unistdio/u16-vsnprintf: Likewise.
21673         * modules/unistdio/u16-vsprintf: Likewise.
21674         * modules/unistdio/u32-asnprintf: Likewise.
21675         * modules/unistdio/u32-asprintf: Likewise.
21676         * modules/unistdio/u32-snprintf: Likewise.
21677         * modules/unistdio/u32-sprintf: Likewise.
21678         * modules/unistdio/u32-u32-asnprintf: Likewise.
21679         * modules/unistdio/u32-u32-asprintf: Likewise.
21680         * modules/unistdio/u32-u32-snprintf: Likewise.
21681         * modules/unistdio/u32-u32-sprintf: Likewise.
21682         * modules/unistdio/u32-u32-vasnprintf: Likewise.
21683         * modules/unistdio/u32-u32-vasprintf: Likewise.
21684         * modules/unistdio/u32-u32-vsnprintf: Likewise.
21685         * modules/unistdio/u32-u32-vsprintf: Likewise.
21686         * modules/unistdio/u32-vasnprintf: Likewise.
21687         * modules/unistdio/u32-vasprintf: Likewise.
21688         * modules/unistdio/u32-vsnprintf: Likewise.
21689         * modules/unistdio/u32-vsprintf: Likewise.
21690         * modules/unistdio/ulc-asnprintf: Likewise.
21691         * modules/unistdio/ulc-asprintf: Likewise.
21692         * modules/unistdio/ulc-fprintf: Likewise.
21693         * modules/unistdio/ulc-snprintf: Likewise.
21694         * modules/unistdio/ulc-sprintf: Likewise.
21695         * modules/unistdio/ulc-vasnprintf: Likewise.
21696         * modules/unistdio/ulc-vasprintf: Likewise.
21697         * modules/unistdio/ulc-vfprintf: Likewise.
21698         * modules/unistdio/ulc-vsnprintf: Likewise.
21699         * modules/unistdio/ulc-vsprintf: Likewise.
21700         * modules/unistr/u8-check: Likewise.
21701         * modules/unistr/u8-chr: Likewise.
21702         * modules/unistr/u8-cmp: Likewise.
21703         * modules/unistr/u8-cmp2: Likewise.
21704         * modules/unistr/u8-cpy: Likewise.
21705         * modules/unistr/u8-cpy-alloc: Likewise.
21706         * modules/unistr/u8-endswith: Likewise.
21707         * modules/unistr/u8-mblen: Likewise.
21708         * modules/unistr/u8-mbsnlen: Likewise.
21709         * modules/unistr/u8-mbtouc: Likewise.
21710         * modules/unistr/u8-mbtouc-unsafe: Likewise.
21711         * modules/unistr/u8-mbtoucr: Likewise.
21712         * modules/unistr/u8-move: Likewise.
21713         * modules/unistr/u8-next: Likewise.
21714         * modules/unistr/u8-prev: Likewise.
21715         * modules/unistr/u8-set: Likewise.
21716         * modules/unistr/u8-startswith: Likewise.
21717         * modules/unistr/u8-stpcpy: Likewise.
21718         * modules/unistr/u8-stpncpy: Likewise.
21719         * modules/unistr/u8-strcat: Likewise.
21720         * modules/unistr/u8-strchr: Likewise.
21721         * modules/unistr/u8-strcmp: Likewise.
21722         * modules/unistr/u8-strcoll: Likewise.
21723         * modules/unistr/u8-strcpy: Likewise.
21724         * modules/unistr/u8-strcspn: Likewise.
21725         * modules/unistr/u8-strdup: Likewise.
21726         * modules/unistr/u8-strlen: Likewise.
21727         * modules/unistr/u8-strmblen: Likewise.
21728         * modules/unistr/u8-strmbtouc: Likewise.
21729         * modules/unistr/u8-strncat: Likewise.
21730         * modules/unistr/u8-strncmp: Likewise.
21731         * modules/unistr/u8-strncpy: Likewise.
21732         * modules/unistr/u8-strnlen: Likewise.
21733         * modules/unistr/u8-strpbrk: Likewise.
21734         * modules/unistr/u8-strrchr: Likewise.
21735         * modules/unistr/u8-strspn: Likewise.
21736         * modules/unistr/u8-strstr: Likewise.
21737         * modules/unistr/u8-strtok: Likewise.
21738         * modules/unistr/u8-to-u16: Likewise.
21739         * modules/unistr/u8-to-u32: Likewise.
21740         * modules/unistr/u8-uctomb: Likewise.
21741         * modules/unistr/u16-check: Likewise.
21742         * modules/unistr/u16-chr: Likewise.
21743         * modules/unistr/u16-cmp: Likewise.
21744         * modules/unistr/u16-cmp2: Likewise.
21745         * modules/unistr/u16-cpy: Likewise.
21746         * modules/unistr/u16-cpy-alloc: Likewise.
21747         * modules/unistr/u16-endswith: Likewise.
21748         * modules/unistr/u16-mblen: Likewise.
21749         * modules/unistr/u16-mbsnlen: Likewise.
21750         * modules/unistr/u16-mbtouc: Likewise.
21751         * modules/unistr/u16-mbtouc-unsafe: Likewise.
21752         * modules/unistr/u16-mbtoucr: Likewise.
21753         * modules/unistr/u16-move: Likewise.
21754         * modules/unistr/u16-next: Likewise.
21755         * modules/unistr/u16-prev: Likewise.
21756         * modules/unistr/u16-set: Likewise.
21757         * modules/unistr/u16-startswith: Likewise.
21758         * modules/unistr/u16-stpcpy: Likewise.
21759         * modules/unistr/u16-stpncpy: Likewise.
21760         * modules/unistr/u16-strcat: Likewise.
21761         * modules/unistr/u16-strchr: Likewise.
21762         * modules/unistr/u16-strcmp: Likewise.
21763         * modules/unistr/u16-strcoll: Likewise.
21764         * modules/unistr/u16-strcpy: Likewise.
21765         * modules/unistr/u16-strcspn: Likewise.
21766         * modules/unistr/u16-strdup: Likewise.
21767         * modules/unistr/u16-strlen: Likewise.
21768         * modules/unistr/u16-strmblen: Likewise.
21769         * modules/unistr/u16-strmbtouc: Likewise.
21770         * modules/unistr/u16-strncat: Likewise.
21771         * modules/unistr/u16-strncmp: Likewise.
21772         * modules/unistr/u16-strncpy: Likewise.
21773         * modules/unistr/u16-strnlen: Likewise.
21774         * modules/unistr/u16-strpbrk: Likewise.
21775         * modules/unistr/u16-strrchr: Likewise.
21776         * modules/unistr/u16-strspn: Likewise.
21777         * modules/unistr/u16-strstr: Likewise.
21778         * modules/unistr/u16-strtok: Likewise.
21779         * modules/unistr/u16-to-u32: Likewise.
21780         * modules/unistr/u16-to-u8: Likewise.
21781         * modules/unistr/u16-uctomb: Likewise.
21782         * modules/unistr/u32-check: Likewise.
21783         * modules/unistr/u32-chr: Likewise.
21784         * modules/unistr/u32-cmp: Likewise.
21785         * modules/unistr/u32-cmp2: Likewise.
21786         * modules/unistr/u32-cpy: Likewise.
21787         * modules/unistr/u32-cpy-alloc: Likewise.
21788         * modules/unistr/u32-endswith: Likewise.
21789         * modules/unistr/u32-mblen: Likewise.
21790         * modules/unistr/u32-mbsnlen: Likewise.
21791         * modules/unistr/u32-mbtouc: Likewise.
21792         * modules/unistr/u32-mbtouc-unsafe: Likewise.
21793         * modules/unistr/u32-mbtoucr: Likewise.
21794         * modules/unistr/u32-move: Likewise.
21795         * modules/unistr/u32-next: Likewise.
21796         * modules/unistr/u32-prev: Likewise.
21797         * modules/unistr/u32-set: Likewise.
21798         * modules/unistr/u32-startswith: Likewise.
21799         * modules/unistr/u32-stpcpy: Likewise.
21800         * modules/unistr/u32-stpncpy: Likewise.
21801         * modules/unistr/u32-strcat: Likewise.
21802         * modules/unistr/u32-strchr: Likewise.
21803         * modules/unistr/u32-strcmp: Likewise.
21804         * modules/unistr/u32-strcoll: Likewise.
21805         * modules/unistr/u32-strcpy: Likewise.
21806         * modules/unistr/u32-strcspn: Likewise.
21807         * modules/unistr/u32-strdup: Likewise.
21808         * modules/unistr/u32-strlen: Likewise.
21809         * modules/unistr/u32-strmblen: Likewise.
21810         * modules/unistr/u32-strmbtouc: Likewise.
21811         * modules/unistr/u32-strncat: Likewise.
21812         * modules/unistr/u32-strncmp: Likewise.
21813         * modules/unistr/u32-strncpy: Likewise.
21814         * modules/unistr/u32-strnlen: Likewise.
21815         * modules/unistr/u32-strpbrk: Likewise.
21816         * modules/unistr/u32-strrchr: Likewise.
21817         * modules/unistr/u32-strspn: Likewise.
21818         * modules/unistr/u32-strstr: Likewise.
21819         * modules/unistr/u32-strtok: Likewise.
21820         * modules/unistr/u32-to-u16: Likewise.
21821         * modules/unistr/u32-to-u8: Likewise.
21822         * modules/unistr/u32-uctomb: Likewise.
21823         * modules/uniwbrk/u8-wordbreaks: Likewise.
21824         * modules/uniwbrk/u16-wordbreaks: Likewise.
21825         * modules/uniwbrk/u32-wordbreaks: Likewise.
21826         * modules/uniwbrk/ulc-wordbreaks: Likewise.
21827         * modules/uniwbrk/wordbreak-property: Likewise.
21828         * modules/uniwidth/u8-strwidth: Likewise.
21829         * modules/uniwidth/u8-width: Likewise.
21830         * modules/uniwidth/u16-strwidth: Likewise.
21831         * modules/uniwidth/u16-width: Likewise.
21832         * modules/uniwidth/u32-strwidth: Likewise.
21833         * modules/uniwidth/u32-width: Likewise.
21834         * modules/uniwidth/width: Likewise.
21835         * modules/unicase/cased-tests (Makefile.am): Link all test programs
21836         with $(LIBUNISTRING).
21837         * modules/unicase/ignorable-tests: Likewise.
21838         * modules/unicase/locale-language-tests: Likewise.
21839         * modules/unicase/tolower-tests: Likewise.
21840         * modules/unicase/totitle-tests: Likewise.
21841         * modules/unicase/toupper-tests: Likewise.
21842         * modules/unicase/u8-casecmp-tests: Likewise.
21843         * modules/unicase/u8-casecoll-tests: Likewise.
21844         * modules/unicase/u8-casefold-tests: Likewise.
21845         * modules/unicase/u8-is-cased-tests: Likewise.
21846         * modules/unicase/u8-is-casefolded-tests: Likewise.
21847         * modules/unicase/u8-is-lowercase-tests: Likewise.
21848         * modules/unicase/u8-is-titlecase-tests: Likewise.
21849         * modules/unicase/u8-is-uppercase-tests: Likewise.
21850         * modules/unicase/u8-tolower-tests: Likewise.
21851         * modules/unicase/u8-totitle-tests: Likewise.
21852         * modules/unicase/u8-toupper-tests: Likewise.
21853         * modules/unicase/u16-casecmp-tests: Likewise.
21854         * modules/unicase/u16-casecoll-tests: Likewise.
21855         * modules/unicase/u16-casefold-tests: Likewise.
21856         * modules/unicase/u16-is-cased-tests: Likewise.
21857         * modules/unicase/u16-is-casefolded-tests: Likewise.
21858         * modules/unicase/u16-is-lowercase-tests: Likewise.
21859         * modules/unicase/u16-is-titlecase-tests: Likewise.
21860         * modules/unicase/u16-is-uppercase-tests: Likewise.
21861         * modules/unicase/u16-tolower-tests: Likewise.
21862         * modules/unicase/u16-totitle-tests: Likewise.
21863         * modules/unicase/u16-toupper-tests: Likewise.
21864         * modules/unicase/u32-casecmp-tests: Likewise.
21865         * modules/unicase/u32-casecoll-tests: Likewise.
21866         * modules/unicase/u32-casefold-tests: Likewise.
21867         * modules/unicase/u32-is-cased-tests: Likewise.
21868         * modules/unicase/u32-is-casefolded-tests: Likewise.
21869         * modules/unicase/u32-is-lowercase-tests: Likewise.
21870         * modules/unicase/u32-is-titlecase-tests: Likewise.
21871         * modules/unicase/u32-is-uppercase-tests: Likewise.
21872         * modules/unicase/u32-tolower-tests: Likewise.
21873         * modules/unicase/u32-totitle-tests: Likewise.
21874         * modules/unicase/u32-toupper-tests: Likewise.
21875         * modules/unicase/ulc-casecmp-tests: Likewise.
21876         * modules/unicase/ulc-casecoll-tests: Likewise.
21877         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
21878         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
21879         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
21880         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
21881         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
21882         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
21883         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
21884         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
21885         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
21886         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
21887         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
21888         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
21889         * modules/unictype/bidicategory-byname-tests: Likewise.
21890         * modules/unictype/bidicategory-name-tests: Likewise.
21891         * modules/unictype/bidicategory-of-tests: Likewise.
21892         * modules/unictype/bidicategory-test-tests: Likewise.
21893         * modules/unictype/block-list-tests: Likewise.
21894         * modules/unictype/block-of-tests: Likewise.
21895         * modules/unictype/block-test-tests: Likewise.
21896         * modules/unictype/category-C-tests: Likewise.
21897         * modules/unictype/category-Cc-tests: Likewise.
21898         * modules/unictype/category-Cf-tests: Likewise.
21899         * modules/unictype/category-Cn-tests: Likewise.
21900         * modules/unictype/category-Co-tests: Likewise.
21901         * modules/unictype/category-Cs-tests: Likewise.
21902         * modules/unictype/category-L-tests: Likewise.
21903         * modules/unictype/category-Ll-tests: Likewise.
21904         * modules/unictype/category-Lm-tests: Likewise.
21905         * modules/unictype/category-Lo-tests: Likewise.
21906         * modules/unictype/category-Lt-tests: Likewise.
21907         * modules/unictype/category-Lu-tests: Likewise.
21908         * modules/unictype/category-M-tests: Likewise.
21909         * modules/unictype/category-Mc-tests: Likewise.
21910         * modules/unictype/category-Me-tests: Likewise.
21911         * modules/unictype/category-Mn-tests: Likewise.
21912         * modules/unictype/category-N-tests: Likewise.
21913         * modules/unictype/category-Nd-tests: Likewise.
21914         * modules/unictype/category-Nl-tests: Likewise.
21915         * modules/unictype/category-No-tests: Likewise.
21916         * modules/unictype/category-P-tests: Likewise.
21917         * modules/unictype/category-Pc-tests: Likewise.
21918         * modules/unictype/category-Pd-tests: Likewise.
21919         * modules/unictype/category-Pe-tests: Likewise.
21920         * modules/unictype/category-Pf-tests: Likewise.
21921         * modules/unictype/category-Pi-tests: Likewise.
21922         * modules/unictype/category-Po-tests: Likewise.
21923         * modules/unictype/category-Ps-tests: Likewise.
21924         * modules/unictype/category-S-tests: Likewise.
21925         * modules/unictype/category-Sc-tests: Likewise.
21926         * modules/unictype/category-Sk-tests: Likewise.
21927         * modules/unictype/category-Sm-tests: Likewise.
21928         * modules/unictype/category-So-tests: Likewise.
21929         * modules/unictype/category-Z-tests: Likewise.
21930         * modules/unictype/category-Zl-tests: Likewise.
21931         * modules/unictype/category-Zp-tests: Likewise.
21932         * modules/unictype/category-Zs-tests: Likewise.
21933         * modules/unictype/category-and-not-tests: Likewise.
21934         * modules/unictype/category-and-tests: Likewise.
21935         * modules/unictype/category-byname-tests: Likewise.
21936         * modules/unictype/category-name-tests: Likewise.
21937         * modules/unictype/category-none-tests: Likewise.
21938         * modules/unictype/category-of-tests: Likewise.
21939         * modules/unictype/category-or-tests: Likewise.
21940         * modules/unictype/category-test-withtable-tests: Likewise.
21941         * modules/unictype/combining-class-tests: Likewise.
21942         * modules/unictype/ctype-alnum-tests: Likewise.
21943         * modules/unictype/ctype-alpha-tests: Likewise.
21944         * modules/unictype/ctype-blank-tests: Likewise.
21945         * modules/unictype/ctype-cntrl-tests: Likewise.
21946         * modules/unictype/ctype-digit-tests: Likewise.
21947         * modules/unictype/ctype-graph-tests: Likewise.
21948         * modules/unictype/ctype-lower-tests: Likewise.
21949         * modules/unictype/ctype-print-tests: Likewise.
21950         * modules/unictype/ctype-punct-tests: Likewise.
21951         * modules/unictype/ctype-space-tests: Likewise.
21952         * modules/unictype/ctype-upper-tests: Likewise.
21953         * modules/unictype/ctype-xdigit-tests: Likewise.
21954         * modules/unictype/decimal-digit-tests: Likewise.
21955         * modules/unictype/digit-tests: Likewise.
21956         * modules/unictype/mirror-tests: Likewise.
21957         * modules/unictype/numeric-tests: Likewise.
21958         * modules/unictype/property-alphabetic-tests: Likewise.
21959         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
21960         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
21961         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
21962         * modules/unictype/property-bidi-block-separator-tests: Likewise.
21963         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
21964         * modules/unictype/property-bidi-common-separator-tests: Likewise.
21965         * modules/unictype/property-bidi-control-tests: Likewise.
21966         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
21967         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
21968         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
21969         * modules/unictype/property-bidi-european-digit-tests: Likewise.
21970         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
21971         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
21972         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
21973         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
21974         * modules/unictype/property-bidi-pdf-tests: Likewise.
21975         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
21976         * modules/unictype/property-bidi-whitespace-tests: Likewise.
21977         * modules/unictype/property-byname-tests: Likewise.
21978         * modules/unictype/property-combining-tests: Likewise.
21979         * modules/unictype/property-composite-tests: Likewise.
21980         * modules/unictype/property-currency-symbol-tests: Likewise.
21981         * modules/unictype/property-dash-tests: Likewise.
21982         * modules/unictype/property-decimal-digit-tests: Likewise.
21983         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
21984         * modules/unictype/property-deprecated-tests: Likewise.
21985         * modules/unictype/property-diacritic-tests: Likewise.
21986         * modules/unictype/property-extender-tests: Likewise.
21987         * modules/unictype/property-format-control-tests: Likewise.
21988         * modules/unictype/property-grapheme-base-tests: Likewise.
21989         * modules/unictype/property-grapheme-extend-tests: Likewise.
21990         * modules/unictype/property-grapheme-link-tests: Likewise.
21991         * modules/unictype/property-hex-digit-tests: Likewise.
21992         * modules/unictype/property-hyphen-tests: Likewise.
21993         * modules/unictype/property-id-continue-tests: Likewise.
21994         * modules/unictype/property-id-start-tests: Likewise.
21995         * modules/unictype/property-ideographic-tests: Likewise.
21996         * modules/unictype/property-ids-binary-operator-tests: Likewise.
21997         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
21998         * modules/unictype/property-ignorable-control-tests: Likewise.
21999         * modules/unictype/property-iso-control-tests: Likewise.
22000         * modules/unictype/property-join-control-tests: Likewise.
22001         * modules/unictype/property-left-of-pair-tests: Likewise.
22002         * modules/unictype/property-line-separator-tests: Likewise.
22003         * modules/unictype/property-logical-order-exception-tests: Likewise.
22004         * modules/unictype/property-lowercase-tests: Likewise.
22005         * modules/unictype/property-math-tests: Likewise.
22006         * modules/unictype/property-non-break-tests: Likewise.
22007         * modules/unictype/property-not-a-character-tests: Likewise.
22008         * modules/unictype/property-numeric-tests: Likewise.
22009         * modules/unictype/property-other-alphabetic-tests: Likewise.
22010         * modules/unictype/property-other-default-ignorable-code-point-tests:
22011         Likewise.
22012         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22013         * modules/unictype/property-other-id-continue-tests: Likewise.
22014         * modules/unictype/property-other-id-start-tests: Likewise.
22015         * modules/unictype/property-other-lowercase-tests: Likewise.
22016         * modules/unictype/property-other-math-tests: Likewise.
22017         * modules/unictype/property-other-uppercase-tests: Likewise.
22018         * modules/unictype/property-paired-punctuation-tests: Likewise.
22019         * modules/unictype/property-paragraph-separator-tests: Likewise.
22020         * modules/unictype/property-pattern-syntax-tests: Likewise.
22021         * modules/unictype/property-pattern-white-space-tests: Likewise.
22022         * modules/unictype/property-private-use-tests: Likewise.
22023         * modules/unictype/property-punctuation-tests: Likewise.
22024         * modules/unictype/property-quotation-mark-tests: Likewise.
22025         * modules/unictype/property-radical-tests: Likewise.
22026         * modules/unictype/property-sentence-terminal-tests: Likewise.
22027         * modules/unictype/property-soft-dotted-tests: Likewise.
22028         * modules/unictype/property-space-tests: Likewise.
22029         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22030         * modules/unictype/property-test-tests: Likewise.
22031         * modules/unictype/property-titlecase-tests: Likewise.
22032         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22033         * modules/unictype/property-unified-ideograph-tests: Likewise.
22034         * modules/unictype/property-uppercase-tests: Likewise.
22035         * modules/unictype/property-variation-selector-tests: Likewise.
22036         * modules/unictype/property-white-space-tests: Likewise.
22037         * modules/unictype/property-xid-continue-tests: Likewise.
22038         * modules/unictype/property-xid-start-tests: Likewise.
22039         * modules/unictype/property-zero-width-tests: Likewise.
22040         * modules/unictype/scripts-tests: Likewise.
22041         * modules/unictype/syntax-c-ident-tests: Likewise.
22042         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22043         * modules/unictype/syntax-java-ident-tests: Likewise.
22044         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22045         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22046         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22047         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22048         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22049         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22050         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22051         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22052         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22053         * modules/uniname/uniname-tests: Likewise.
22054         * modules/uninorm/canonical-decomposition-tests: Likewise.
22055         * modules/uninorm/compat-decomposition-tests: Likewise.
22056         * modules/uninorm/composition-tests: Likewise.
22057         * modules/uninorm/decomposing-form-tests: Likewise.
22058         * modules/uninorm/decomposition-tests: Likewise.
22059         * modules/uninorm/filter-tests: Likewise.
22060         * modules/uninorm/nfc-tests: Likewise.
22061         * modules/uninorm/nfd-tests: Likewise.
22062         * modules/uninorm/nfkc-tests: Likewise.
22063         * modules/uninorm/nfkd-tests: Likewise.
22064         * modules/uninorm/u8-normcmp-tests: Likewise.
22065         * modules/uninorm/u8-normcoll-tests: Likewise.
22066         * modules/uninorm/u16-normcmp-tests: Likewise.
22067         * modules/uninorm/u16-normcoll-tests: Likewise.
22068         * modules/uninorm/u32-normcmp-tests: Likewise.
22069         * modules/uninorm/u32-normcoll-tests: Likewise.
22070         * modules/unistdio/u8-asnprintf-tests: Likewise.
22071         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22072         * modules/unistdio/u8-vasprintf-tests: Likewise.
22073         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22074         * modules/unistdio/u8-vsprintf-tests: Likewise.
22075         * modules/unistdio/u16-asnprintf-tests: Likewise.
22076         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22077         * modules/unistdio/u16-vasprintf-tests: Likewise.
22078         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22079         * modules/unistdio/u16-vsprintf-tests: Likewise.
22080         * modules/unistdio/u32-asnprintf-tests: Likewise.
22081         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22082         * modules/unistdio/u32-vasprintf-tests: Likewise.
22083         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22084         * modules/unistdio/u32-vsprintf-tests: Likewise.
22085         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22086         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22087         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22088         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22089         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22090         * modules/unistr/u8-check-tests: Likewise.
22091         * modules/unistr/u8-chr-tests: Likewise.
22092         * modules/unistr/u8-cmp-tests: Likewise.
22093         * modules/unistr/u8-cmp2-tests: Likewise.
22094         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22095         * modules/unistr/u8-cpy-tests: Likewise.
22096         * modules/unistr/u8-mblen-tests: Likewise.
22097         * modules/unistr/u8-mbsnlen-tests: Likewise.
22098         * modules/unistr/u8-mbtouc-tests: Likewise.
22099         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22100         * modules/unistr/u8-mbtoucr-tests: Likewise.
22101         * modules/unistr/u8-move-tests: Likewise.
22102         * modules/unistr/u8-next-tests: Likewise.
22103         * modules/unistr/u8-prev-tests: Likewise.
22104         * modules/unistr/u8-set-tests: Likewise.
22105         * modules/unistr/u8-stpcpy-tests: Likewise.
22106         * modules/unistr/u8-stpncpy-tests: Likewise.
22107         * modules/unistr/u8-strcat-tests: Likewise.
22108         * modules/unistr/u8-strcmp-tests: Likewise.
22109         * modules/unistr/u8-strcoll-tests: Likewise.
22110         * modules/unistr/u8-strcpy-tests: Likewise.
22111         * modules/unistr/u8-strdup-tests: Likewise.
22112         * modules/unistr/u8-strlen-tests: Likewise.
22113         * modules/unistr/u8-strmblen-tests: Likewise.
22114         * modules/unistr/u8-strmbtouc-tests: Likewise.
22115         * modules/unistr/u8-strncat-tests: Likewise.
22116         * modules/unistr/u8-strncmp-tests: Likewise.
22117         * modules/unistr/u8-strncpy-tests: Likewise.
22118         * modules/unistr/u8-strnlen-tests: Likewise.
22119         * modules/unistr/u8-to-u16-tests: Likewise.
22120         * modules/unistr/u8-to-u32-tests: Likewise.
22121         * modules/unistr/u8-uctomb-tests: Likewise.
22122         * modules/unistr/u16-check-tests: Likewise.
22123         * modules/unistr/u16-chr-tests: Likewise.
22124         * modules/unistr/u16-cmp-tests: Likewise.
22125         * modules/unistr/u16-cmp2-tests: Likewise.
22126         * modules/unistr/u16-cpy-alloc-tests: Likewise.
22127         * modules/unistr/u16-cpy-tests: Likewise.
22128         * modules/unistr/u16-mblen-tests: Likewise.
22129         * modules/unistr/u16-mbsnlen-tests: Likewise.
22130         * modules/unistr/u16-mbtouc-tests: Likewise.
22131         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
22132         * modules/unistr/u16-mbtoucr-tests: Likewise.
22133         * modules/unistr/u16-move-tests: Likewise.
22134         * modules/unistr/u16-next-tests: Likewise.
22135         * modules/unistr/u16-prev-tests: Likewise.
22136         * modules/unistr/u16-set-tests: Likewise.
22137         * modules/unistr/u16-stpcpy-tests: Likewise.
22138         * modules/unistr/u16-stpncpy-tests: Likewise.
22139         * modules/unistr/u16-strcat-tests: Likewise.
22140         * modules/unistr/u16-strcmp-tests: Likewise.
22141         * modules/unistr/u16-strcoll-tests: Likewise.
22142         * modules/unistr/u16-strcpy-tests: Likewise.
22143         * modules/unistr/u16-strdup-tests: Likewise.
22144         * modules/unistr/u16-strlen-tests: Likewise.
22145         * modules/unistr/u16-strmblen-tests: Likewise.
22146         * modules/unistr/u16-strmbtouc-tests: Likewise.
22147         * modules/unistr/u16-strncat-tests: Likewise.
22148         * modules/unistr/u16-strncmp-tests: Likewise.
22149         * modules/unistr/u16-strncpy-tests: Likewise.
22150         * modules/unistr/u16-strnlen-tests: Likewise.
22151         * modules/unistr/u16-to-u32-tests: Likewise.
22152         * modules/unistr/u16-to-u8-tests: Likewise.
22153         * modules/unistr/u16-uctomb-tests: Likewise.
22154         * modules/unistr/u32-check-tests: Likewise.
22155         * modules/unistr/u32-chr-tests: Likewise.
22156         * modules/unistr/u32-cmp-tests: Likewise.
22157         * modules/unistr/u32-cmp2-tests: Likewise.
22158         * modules/unistr/u32-cpy-alloc-tests: Likewise.
22159         * modules/unistr/u32-cpy-tests: Likewise.
22160         * modules/unistr/u32-mblen-tests: Likewise.
22161         * modules/unistr/u32-mbsnlen-tests: Likewise.
22162         * modules/unistr/u32-mbtouc-tests: Likewise.
22163         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
22164         * modules/unistr/u32-mbtoucr-tests: Likewise.
22165         * modules/unistr/u32-move-tests: Likewise.
22166         * modules/unistr/u32-next-tests: Likewise.
22167         * modules/unistr/u32-prev-tests: Likewise.
22168         * modules/unistr/u32-set-tests: Likewise.
22169         * modules/unistr/u32-stpcpy-tests: Likewise.
22170         * modules/unistr/u32-stpncpy-tests: Likewise.
22171         * modules/unistr/u32-strcat-tests: Likewise.
22172         * modules/unistr/u32-strcmp-tests: Likewise.
22173         * modules/unistr/u32-strcoll-tests: Likewise.
22174         * modules/unistr/u32-strcpy-tests: Likewise.
22175         * modules/unistr/u32-strdup-tests: Likewise.
22176         * modules/unistr/u32-strlen-tests: Likewise.
22177         * modules/unistr/u32-strmblen-tests: Likewise.
22178         * modules/unistr/u32-strmbtouc-tests: Likewise.
22179         * modules/unistr/u32-strncat-tests: Likewise.
22180         * modules/unistr/u32-strncmp-tests: Likewise.
22181         * modules/unistr/u32-strncpy-tests: Likewise.
22182         * modules/unistr/u32-strnlen-tests: Likewise.
22183         * modules/unistr/u32-to-u16-tests: Likewise.
22184         * modules/unistr/u32-to-u8-tests: Likewise.
22185         * modules/unistr/u32-uctomb-tests: Likewise.
22186         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22187         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22188         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22189         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22190         * modules/uniwidth/u8-strwidth-tests: Likewise.
22191         * modules/uniwidth/u8-width-tests: Likewise.
22192         * modules/uniwidth/u16-strwidth-tests: Likewise.
22193         * modules/uniwidth/u16-width-tests: Likewise.
22194         * modules/uniwidth/u32-strwidth-tests: Likewise.
22195         * modules/uniwidth/u32-width-tests: Likewise.
22196         * modules/uniwidth/width-tests: Likewise.
22197
22198 2010-05-18  Richard Jones  <rjones@redhat.com>
22199
22200         doc: users.txt: list hivex
22201         * users.txt: Add hivex.
22202
22203 2010-05-18  Richard Jones  <rjones@redhat.com>
22204
22205         doc: users.txt: list febootstrap
22206         * users.txt: Add febootstrap.
22207
22208 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
22209
22210         bootstrap: fix an error when gnulib is not used as a git submodule
22211         * build-aux/bootstrap (gnulib_path): If its length is zero then
22212         assign "gnulib" to it.
22213         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
22214
22215 2010-05-16  Bruno Haible  <bruno@clisp.org>
22216
22217         Avoid autoconf warnings about AM_ICONV.
22218         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
22219         2.64.
22220
22221 2010-05-16  Bruno Haible  <bruno@clisp.org>
22222
22223         absolute-header: Make the macro usable in more situations.
22224         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
22225         from gl_ABSOLUTE_HEADER.
22226         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
22227
22228 2010-05-16  James Youngman  <jay@gnu.org>
22229
22230         doc: update users.txt
22231         * users.txt: Add CSSC.
22232
22233 2010-05-16  Jim Meyering  <meyering@redhat.com>
22234
22235         init.sh: fix an error in the previous change; add more comments
22236         * tests/init.sh: Compare exit code in loop against 9, not 2.
22237         Patch by Bruno Haible.
22238         Make the two tests more similar by adding an empty "then" clause.
22239         Add comments.
22240
22241         init.sh: avoid unnecessary shell re-exec
22242         * tests/init.sh: Improve the re-exec-required check to first test the
22243         current shell.  If it passes the test, do not search for a shell that
22244         does pass, and do not re-exec.  This test is particularly contorted to
22245         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
22246         of $(...) evokes a syntax error and causes immediate shell exit with
22247         status 2.  Bruno Haible reported that the re-exec made it impossible
22248         to single-step through any init.sh-using script.
22249
22250 2010-05-16  Bruno Haible  <bruno@clisp.org>
22251
22252         Fix collision between gnulib's and libintl's printf replacements.
22253         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
22254         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
22255         (printf): When using GNU C, map the __printf__ function to rpl_printf
22256         via __asm__. When not using GNU C, define rpl_printf instead of
22257         __printf__.
22258         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
22259         commit.
22260         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
22261         commit.
22262         * m4/asm-underscore.m4: New file.
22263         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
22264         * modules/stdio (Files): Add m4/asm-underscore.m4.
22265         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
22266         Reported by Ben Pfaff.
22267
22268 2010-05-16  Bruno Haible  <bruno@clisp.org>
22269
22270         verify: Avoid skipping the test on openSUSE 11.0.
22271         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
22272
22273 2010-05-13  Bruno Haible  <bruno@clisp.org>
22274
22275         Avoid useless warnings from G++.
22276         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
22277         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
22278         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22279
22280 2010-05-11  Jim Meyering  <meyering@redhat.com>
22281
22282         maint.mk: tweak preceding change
22283         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
22284         regexps tighter by anchoring at EOL, and make the new group "shy"
22285         for slightly decreased overhead.
22286
22287 2010-05-11  Eric Blake  <eblake@redhat.com>
22288
22289         maint.mk: gnulib doesn't guarantee NSIG
22290         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
22291
22292 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22293
22294         test-pwrite.c: Remove unused variable declaration.
22295         * tests/test-pwrite.c (main): Remove read_buf declaration.
22296
22297         Remove useless test-pwrite.sh file.
22298         * tests/test-pwrite.sh: Delete file.
22299         * modules/pwrite-tests: Remove references.
22300         Reported by Bruno Haible.
22301
22302 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22303
22304         init.sh: fix a typo
22305         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
22306
22307 2010-05-10  Jim Meyering  <meyering@redhat.com>
22308
22309         maint.mk: avoid using a temporary file in the always-defined-macros check
22310         * top/maint.mk (.re-defmac): Remove rule.
22311         (gl_trap_): Remove definition.
22312         (sc_prohibit_always-defined_macros): Rewrite not to create and
22313         depend on a temporary file.  Instead, depend on GNU grep's ability
22314         to read a list of regular expressions from stdin when given "-f -".
22315
22316 2010-05-09  Bruno Haible  <bruno@clisp.org>
22317
22318         Update to GNU gettext 0.18, part 1.
22319         * m4/gettext.m4: Update to GNU gettext 0.18.
22320         * m4/intl.m4: Likewise.
22321         * m4/po.m4: Likewise.
22322         * modules/gettext (Files): Add m4/fcntl-o.m4.
22323         (configure.ac): Require gettext infrastructure from version 0.18.
22324
22325 2010-05-09  Jim Meyering  <meyering@redhat.com>
22326
22327         init.sh: enable MALLOC_PERTURB_
22328         * tests/init.sh: Enable glibc's malloc-perturbing option.
22329
22330         maint.mk: improve sc_cross_check_PATH_usage_in_tests
22331         With my recent change in init.sh from the two-line form:
22332             -#   : ${srcdir=.}
22333             -#   . "$srcdir/init.sh"; path_prepend_ .
22334             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
22335         I noticed that using the one-line form would cause this test
22336         to fail with a false-positive, or to stop working altogether,
22337         depending on whether help-version changed or all the tests did.
22338         * top/maint.mk (_hv_regex): Remove this definition.
22339         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
22340         (_hv_regex_strong): Use a stronger regex to check for conformance.
22341         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
22342         Give a separate diagnostic for lack of conforming use.
22343
22344         maint.mk: prohibit definition of symbols defined by gnulib
22345         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
22346         definition of symbols defined by gnulib.
22347
22348 2010-05-09  Bruno Haible  <bruno@clisp.org>
22349
22350         acl: Avoid test failure on Cygwin-hosted mingw.
22351         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
22352
22353 2010-05-09  Bruno Haible  <bruno@clisp.org>
22354
22355         error: Use system's fcntl function.
22356         * lib/error.c (fcntl): Undefine.
22357
22358 2010-05-09  Jim Meyering  <meyering@redhat.com>
22359
22360         verify: adjust formatting to be more consistent
22361         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
22362         argument-list '('s, and after one comma.
22363
22364 2010-05-09  Bruno Haible  <bruno@clisp.org>
22365
22366         error: More reliable output on mingw.
22367         * lib/error.c: Include <windows.h>.
22368         (is_open): New function.
22369         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
22370         defined.
22371
22372 2010-05-09  Bruno Haible  <bruno@clisp.org>
22373
22374         vasnprintf: Fix syntax errors in libintl build on mingw.
22375         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
22376         pad_ourselves and prec_ourselves after use.
22377
22378 2010-05-08  Bruno Haible  <bruno@clisp.org>
22379
22380         * lib/config.charset: Update comments for Cygwin 1.7.
22381         * lib/localcharset.c: Likewise.
22382
22383 2010-05-07  Jim Meyering  <meyering@redhat.com>
22384
22385         init.sh: improve comments
22386         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
22387         . "${srcdir=.}/init.sh"; path_prepend_ .
22388         Add a note about path_prepend_ and the alternative of using
22389         TESTS_ENVIRONMENT.
22390
22391 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22392
22393         exclude: Unescape hashed patterns in wildcard mode.
22394         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
22395         to the hash list.
22396         * tests/test-exclude8.sh: New test case.
22397         * modules/exclude-tests: Add new test.
22398
22399 2010-05-05  Eric Blake  <eblake@redhat.com>
22400
22401         verify: automate tests
22402         * modules/verify-tests: New module.
22403         * tests/test-verify.sh: New file.
22404         * tests/test-verify.c: Guard each negative test with a unique id.
22405         Also avoid warning about unused left hand of comma expressions.
22406
22407 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22408
22409         Further improvements to verify.h, suggested by Eric Blake.
22410         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
22411         the GL_* versions, to avoid collision with OpenGL.
22412         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
22413         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
22414         than testing merely whether it's defined.
22415
22416         Modify verify.h to pacify gcc -Wredundant_decls.
22417         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
22418         These use the prefix "GL_" since they're likely to be useful elsewhere.
22419         We may need to break them out into a different .h file.
22420         (__COUNTER__): Define to 0 if the compiler doesn't support it.
22421         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
22422         of verify_function__.
22423
22424 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22425
22426         Tests for module pwrite.
22427         * modules/pwrite-tests: New file.
22428         * tests/test-pwrite.sh: New file.
22429         * tests/test-pwrite.c: New file.
22430
22431         New module pwrite.
22432         * lib/unistd.in.h (pwrite): New declaration.
22433         * lib/pwrite.c: New file, from glibc with modifications.
22434         * m4/pwrite.m4: New file.
22435         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
22436         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
22437         REPLACE_PWRITE.
22438         * modules/pwrite: New file.
22439         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
22440         REPLACE_PWRITE.
22441         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
22442         * doc/posix-functions/pwrite.texi: Mention the new module.
22443
22444 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22445
22446         pread: Update documentation.
22447         * doc/posix-functions/pread.texi: Mention the 'pread' module.
22448
22449 2010-05-04  Eric Blake  <eblake@redhat.com>
22450
22451         docs: update cygwin progress
22452         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
22453         this bug.
22454         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
22455         Added in cygwin 1.7.2.
22456         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
22457         Likewise.
22458         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
22459         Likewise.
22460         * doc/glibc-functions/dup3.texi (dup3): Likewise.
22461         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
22462         * doc/glibc-functions/accept4.texi (accept4): Likewise.
22463         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
22464         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
22465         Mention nproc module.
22466         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
22467         bug in cygwin 1.7.5 addition.
22468         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
22469         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
22470         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
22471         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
22472         1.7.5.
22473         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
22474         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
22475         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
22476         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
22477         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
22478         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
22479         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
22480         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
22481         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
22482         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
22483         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
22484         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
22485         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
22486         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
22487         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
22488         Likewise.
22489         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
22490         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
22491         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
22492         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
22493         Likewise.
22494         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
22495         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
22496         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
22497         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
22498         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
22499         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
22500         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
22501         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
22502         Likewise.
22503         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
22504         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
22505         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
22506         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
22507         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
22508         Likewise.
22509         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
22510         Likewise.
22511         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
22512         Likewise.
22513         * doc/glibc-functions/xdrrec_endofrecord.texi
22514         (xdrrec_endofrecord): Likewise.
22515         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
22516         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
22517         Likewise.
22518         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
22519         Likewise.
22520
22521 2010-05-04  Jim Meyering  <meyering@redhat.com>
22522
22523         gendocs.sh: make its "-s FILE" option more useful
22524         * build-aux/gendocs.sh: When honoring the -s FILE option, update
22525         $PACKAGE to reflect the probably-different basename of "FILE".
22526
22527 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22528
22529         bootstrap: don't ignore download_po_files failure
22530         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
22531         failure.
22532
22533 2010-05-03  Jim Meyering  <meyering@redhat.com>
22534
22535         maint.mk: allow to pass options to gendocs.sh
22536         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
22537         (gendocs_options_): New overridable variable.
22538
22539         gnu-web-doc-update: don't ignore configure or build failure
22540         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
22541
22542         announce-gen: backslash-escape '@'s in --help output
22543         * build-aux/announce-gen: Fix syntax errors.
22544
22545         maint.mk, announce-gen: allow project-specific announcement mail headers
22546         * top/maint.mk (translation_project_): Define default.
22547         (announcement_Cc_, announcement_mail_headers_): Likewise.
22548         (announcement): Invoke announce-gen with new --mail-headers option.
22549         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
22550
22551         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
22552         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
22553         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
22554         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
22555         line in the "err2" output file when running "make check" in verbose
22556         mode (i.e., with set -x enabled).
22557
22558 2010-05-03  Bruno Haible  <bruno@clisp.org>
22559
22560         wctob: Fix for weird platforms.
22561         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
22562         argument value.
22563
22564 2010-05-03  Jim Meyering  <meyering@redhat.com>
22565
22566         maint.mk: prohibit unwarranted use of <strings.h>
22567         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
22568         strings.h in a file that does not also use strcasecmp, strncasecmp,
22569         ffs or ffsll.
22570
22571         maint.mk: remove obsolete comments
22572         * top/maint.mk: Remove stale, commented-out rules.
22573
22574 2010-05-02  Bruno Haible  <bruno@clisp.org>
22575
22576         wcwidth: Declare also when it's aliased.
22577         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
22578         macro.
22579
22580 2010-05-02  Bruno Haible  <bruno@clisp.org>
22581
22582         Fix regression from 2010-04-25.
22583         * gnulib-tool (func_modules_transitive_closure): Check the status of
22584         all modules, not only of the tests that are of the form foo-tests where
22585         foo is a module.
22586
22587 2010-05-02  Bruno Haible  <bruno@clisp.org>
22588
22589         wctob: Work around nasty Cygwin 1.7.2 bug.
22590         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
22591         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
22592
22593 2010-05-01  Bruno Haible  <bruno@clisp.org>
22594
22595         fpurge: Sharper test.
22596         * tests/test-fpurge.c (main): Add one more ftell check.
22597         * modules/fpurge-tests (Depends-on): Add ftell.
22598         Suggested by Eric Blake.
22599
22600 2010-05-01  Bruno Haible  <bruno@clisp.org>
22601
22602         ftello: Another test.
22603         * tests/test-ftello3.c: New file.
22604         * modules/ftello-tests (Files): Add it.
22605         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22606         MOSTLYCLEANFILES.
22607
22608         ftell: Another test.
22609         * tests/test-ftell3.c: New file.
22610         * modules/ftell-tests (Files): Add it.
22611         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22612         MOSTLYCLEANFILES.
22613
22614 2010-05-01  Bruno Haible  <bruno@clisp.org>
22615
22616         ftell, ftello: Work around Solaris bug.
22617         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
22618         * lib/ftello.c: Include stdio-impl.h.
22619         (ftello): On Solaris, when _IOWRT is set, compute the result without
22620         looking at _IOREAD.
22621         * modules/ftello (Files): Add lib/stdio-impl.h.
22622         * doc/posix-functions/ftell.texi: Mention Solaris bug.
22623         * doc/posix-functions/ftello.texi: Likewise.
22624         Reported by Eric Blake.
22625
22626 2010-05-01  Bruno Haible  <bruno@clisp.org>
22627
22628         freading: Adapt to special meaning of _IOREAD flag on Solaris.
22629         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
22630         the _IOWRT flag is also set.
22631
22632 2010-05-01  Bruno Haible  <bruno@clisp.org>
22633
22634         Fix doc about a HP-UX stdio bug.
22635         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
22636         * doc/posix-functions/ftello.texi: Likewise.
22637
22638 2010-05-01  Bruno Haible  <bruno@clisp.org>
22639
22640         lseek test: Fix failure on Solaris.
22641         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
22642         output.
22643
22644 2010-04-30  Jim Meyering  <meyering@redhat.com>
22645
22646         bootstrap: don't ignore failure to generate po*/Makevars
22647         * build-aux/bootstrap (with_gettext): Don't ignore failure
22648         to create po/Makevars or runtime-po/Makevars.
22649
22650 2010-04-29  Eric Blake  <eblake@redhat.com>
22651
22652         headers: relax license to LGPLv2+
22653         * modules/fcntl-h (License): Relax license.
22654         * modules/getopt-posix (License): Likewise.
22655         * modules/locale (License): Likewise.
22656         * modules/math (License): Likewise.
22657         * modules/pty (License): Likewise.
22658         * modules/sched (License): Likewise.
22659         * modules/search (License): Likewise.
22660         * modules/spawn (License): Likewise.
22661         * modules/stdarg (License): Likewise.
22662         * modules/sysexits (License): Likewise.
22663
22664 2010-04-29  Jim Meyering  <meyering@redhat.com>
22665
22666         inttypes: relax license to LGPLv2+
22667         * modules/inttypes (License): Relax license.
22668
22669 2010-04-29  Simon Josefsson  <simon@josefsson.org>
22670
22671         * top/maint.mk (indent): Run twice to produce idempotent results.
22672
22673 2010-04-28  Bruno Haible  <bruno@clisp.org>
22674
22675         getdate: Generate getdate.c in the source directory.
22676         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
22677         MOSTLYCLEANFILES.
22678         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
22679
22680 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
22681
22682         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
22683         is not declared as a const *; avoid warnings in that case.
22684
22685 2010-04-28  Eric Blake  <eblake@redhat.com>
22686
22687         canonicalize-lgpl: avoid compiler warning
22688         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
22689         declaration' / 'extraneous semicolon' warning with some compilers.
22690         Reported by Andreas Gruenbacher.
22691
22692 2010-04-28  Jim Meyering  <meyering@redhat.com>
22693
22694         init.sh: ensure a more reliable exit status when exiting via trap
22695         * tests/init.sh (setup_): Don't rely on $? in signal handler.
22696         Inspired by patches from Dmitry V. Levin.
22697         Also trap on signal 3 (SIGQUIT).
22698
22699 2010-04-27  Bruno Haible  <bruno@clisp.org>
22700
22701         Update doc about utimes().
22702         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
22703         'utimens' module.
22704         Reported by Andreas Gruenbacher <agruen@suse.de>.
22705
22706 2010-04-27  Eric Blake  <eblake@redhat.com>
22707
22708         full-read, full-write: relax license
22709         * modules/full-read (License): Drop to LGPLv2+.
22710         * modules/full-write (License): Likewise.
22711         * modules/safe-read (License): Likewise.
22712         * modules/safe-write (License): Likewise.
22713
22714         pthread: mention library for linking
22715         * modules/pthread (Link): Mention $(LIB_PTHREAD).
22716
22717 2010-04-27  Jim Meyering  <meyering@redhat.com>
22718
22719         maint.mk: fix a bug introduced in last change
22720         * top/maint.mk (gl_assured_headers_): Now that all names are on
22721         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
22722         is not anchored to end of word, it should be adequate.
22723
22724         maint.mk: avoid side-effect in latest syntax-check
22725         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
22726         to run commands via $(shell...), and hence to incur cost only when
22727         the new rule is actually run.
22728
22729         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
22730         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
22731         and use that to create a regexp used to detect all #if HAVE_..._H uses.
22732         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
22733         (gl_assured_headers_, az_, AZ_): Define.
22734         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
22735
22736 2010-04-26  Jim Meyering  <jim@meyering.net>
22737             Bruno Haible  <bruno@clisp.org>
22738
22739         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
22740         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
22741         Prompted by an exchange with Gilles Espinasse.
22742
22743 2010-04-26  Jim Meyering  <meyering@redhat.com>
22744
22745         git-version-gen: aesthetic tweak
22746         * build-aux/git-version-gen: Use "$nl" rather than a literal,
22747         so that the command remains on a single line.
22748
22749 2010-04-26  Eric Blake  <eblake@redhat.com>
22750
22751         git-version-gen: allow use on EBCDIC hosts
22752         * build-aux/git-version-gen (dirty): Use literal rather than tying
22753         ourselves to ascii.
22754         Reported by Steve Goetze.
22755
22756 2010-04-25  Bruno Haible  <bruno@clisp.org>
22757
22758         netdb: Add support for GNULIB_POSIXCHECK.
22759         * lib/netdb.in.h: Include warn-on-use.h.
22760         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
22761         functions are used when GNULIB_POSIXCHECK is defined and the
22762         getaddrinfo module is not in use.
22763         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
22764         freeaddrinfo, gai_strerror, getnameinfo are declared.
22765         * modules/netdb (Depends-on): Add warn-on-use.
22766         (Makefile.am): Include warn-on-use.h in netdb.h.
22767
22768 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
22769
22770         build: avoid "make check" failure without .git/ directory
22771         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
22772         there is no .git/ directory.
22773
22774 2010-04-25  Bruno Haible  <bruno@clisp.org>
22775
22776         ptsname: Fix misuse of ttyname_r.
22777         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
22778         of errno.
22779
22780 2010-04-25  Bruno Haible  <bruno@clisp.org>
22781
22782         ttyname_r: Make it work on Solaris 10.
22783         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
22784         if the system function has the POSIX declaration. Test whether the
22785         function fails if the buffer is less than 128 bytes large.
22786         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
22787         system's ttyname_r function. Provide a reasonably large buffer.
22788         * modules/ttyname_r (Depends-on): Add extensions.
22789         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
22790
22791 2010-04-25  Bruno Haible  <bruno@clisp.org>
22792
22793         Use the 'extensions' module for some more functions on Solaris.
22794         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
22795         module.
22796         * doc/posix-functions/ctime_r.texi: Likewise.
22797         * doc/posix-functions/getgrgid_r.texi: Likewise.
22798         * doc/posix-functions/getgrnam_r.texi: Likewise.
22799         * doc/posix-functions/getpwnam_r.texi: Likewise.
22800         * doc/posix-functions/getpwuid_r.texi: Likewise.
22801         * doc/posix-functions/readdir_r.texi: Likewise.
22802         * doc/posix-functions/sigwait.texi: Likewise.
22803         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
22804         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
22805
22806 2010-04-25  Bruno Haible  <bruno@clisp.org>
22807
22808         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
22809         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
22810         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
22811         * lib/ttyname_r.c: Include <limits.h>.
22812         (ttyname_r): Define using the system's ttyname_r function, if it exists
22813         and not on Solaris.
22814         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
22815         set.
22816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
22817         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
22818         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
22819         Reported by Simon Josefsson.
22820
22821 2010-04-25  Bruno Haible  <bruno@clisp.org>
22822
22823         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
22824         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
22825         * doc/posix-functions/ctime_r.texi: Likewise.
22826         * doc/posix-functions/getgrgid_r.texi: Likewise.
22827         * doc/posix-functions/getgrnam_r.texi: Likewise.
22828         * doc/posix-functions/getlogin_r.texi: Likewise.
22829         * doc/posix-functions/getpwnam_r.texi: Likewise.
22830         * doc/posix-functions/getpwuid_r.texi: Likewise.
22831         * doc/posix-functions/readdir_r.texi: Likewise.
22832         * doc/posix-functions/sigwait.texi: Likewise.
22833         * doc/posix-functions/ttyname_r.texi: Likewise.
22834         Reported by Simon Josefsson.
22835
22836 2010-04-25  Bruno Haible  <bruno@clisp.org>
22837
22838         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
22839         * gnulib-tool (func_usage): Document that --with-*-tests options apply
22840         also to --create-testdir.
22841         (func_acceptable): Don't consider the status of *-tests modules here.
22842         (func_modules_transitive_closure): Consider it here, before including a
22843         test module.
22844         (func_import, func_create_testdir): Set inc_all_direct_tests,
22845         inc_all_indirect_tests.
22846         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
22847         --create-testdir and --create-megatestdir.
22848
22849 2010-04-25  Bruno Haible  <bruno@clisp.org>
22850
22851         gnulib-tool: Add --without-*-tests options.
22852         * gnulib-tool (func_usage): Document the --without-*-tests options.
22853         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
22854         excl_unportable_tests): New variables.
22855         Fail if they are specified with --import or --update.
22856         (func_acceptable): Respect the excl_*_tests variables.
22857         (func_import): Set the excl_*_tests variables to empty.
22858
22859 2010-04-25  Simon Josefsson  <simon@josefsson.org>
22860             Bruno Haible  <bruno@clisp.org>
22861
22862         Work around a MacOS X 10.4 bug with openpty.
22863         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
22864         * tests/test-openpty.c (main): Close the master side explicitly.
22865
22866 2010-04-25  Bruno Haible  <bruno@clisp.org>
22867
22868         strnlen: Fix a C++ test error on MacOS X and Solaris.
22869         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
22870         the function is not declared.
22871         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
22872         Simon Josefsson.
22873
22874 2010-04-24  Bruno Haible  <bruno@clisp.org>
22875
22876         Avoid a gcc warning.
22877         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
22878         of correct type for %08lx directive.
22879         Reported by Eric Blake.
22880
22881 2010-04-24  Bruno Haible  <bruno@clisp.org>
22882
22883         vasnprintf: Correct errno value in case of out-of-memory.
22884         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
22885         or sprintf. Use the errno value from SNPRINTF or sprintf.
22886         Reported by Ian Beckwith <ianb@erislabs.net>.
22887
22888 2010-04-24  Bruno Haible  <bruno@clisp.org>
22889
22890         ansi-c++-opt: Find correct compiler when cross-compiling.
22891         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
22892         AC_CHECK_PROGS.
22893         Reported by Simon Josefsson.
22894
22895 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
22896
22897         vc-list-files: Add support for subversion
22898         * build-aux/vc-list-files: Use "svn list" to generate the list of
22899         files controlled by subversion.
22900
22901 2010-04-23  Jim Meyering  <meyering@redhat.com>
22902
22903         vc-list-files tests: convert to use init.sh
22904         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
22905         path_prepend_.
22906         Use Exit, not exit.
22907         Use skip_ rather than open coding it.
22908         Remove trap set-up and compare definitions.
22909         * tests/test-vc-list-files-git.sh: Likewise.
22910         * modules/vc-list-files-tests (Files): Add tests/init.sh.
22911
22912 2010-04-22  Simon Josefsson  <simon@josefsson.org>
22913
22914         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
22915         backup files.
22916
22917 2010-04-21  Simon Josefsson  <simon@josefsson.org>
22918
22919         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
22920
22921 2010-04-20  Eric Blake  <eblake@redhat.com>
22922
22923         tests: be robust to ignored SIGPIPE
22924         * tests/test-select-in.sh: Consume all output.
22925         * tests/test-lseek.sh: Check correct exit status, while avoiding
22926         EPIPE.
22927
22928 2010-04-20  Simon Josefsson  <simon@josefsson.org>
22929             Bruno Haible  <bruno@clisp.org>
22930
22931         visibility: Don't use -fvisibility if it leads to a warning.
22932         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
22933         yes, don't pretend that visibility works if it leads to a warning.
22934         Reported by Mike Gran <spk121@yahoo.com>.
22935
22936 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
22937
22938         * build-aux/bootstrap: Use "git -h" for testing for supported options
22939         instead of "git --help".  The short-form option only shows a summary,
22940         and doesn't layout the full man page.  Grep for the full option name
22941         in the summary, too.
22942
22943 2010-04-19  Bruno Haible  <bruno@clisp.org>
22944
22945         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
22946         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
22947         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
22948         mention of RELOCATABLE_STRIP.
22949         Reported by Sylvain Beucler <beuc@beuc.net>.
22950
22951 2010-04-19  Bruno Haible  <bruno@clisp.org>
22952
22953         * lib/diffseq.h: Fix typo in comment.
22954         Reported by Eric Blake.
22955
22956 2010-04-19  Bruno Haible  <bruno@clisp.org>
22957
22958         ioctl: Move autoconf macro to a .m4 file.
22959         * m4/ioctl.m4: New file, extracted from modules/ioctl.
22960         * modules/ioctl (Files): Add it.
22961         (configure.ac): Simply invoke gl_FUNC_IOCTL.
22962         Reported by Ian Beckwith <ianb@erislabs.net>.
22963
22964 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
22965             Bruno Haible  <bruno@clisp.org>
22966
22967         diffseq: Accommodate use-case with abstract arrays.
22968         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
22969         is not defined.
22970         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
22971         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
22972
22973 2010-04-18  Bruno Haible  <bruno@clisp.org>
22974
22975         * doc/posix-headers/stdbool.texi: More precise wording.
22976
22977 2010-04-17  Jim Meyering  <meyering@redhat.com>
22978
22979         maint.mk: use gnu-style indentation in an embedded perl script
22980         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
22981         Rename variable: s/two/last_two_bytes/
22982
22983 2010-04-16  Eric Blake  <eblake@redhat.com>
22984
22985         test-stdbool: skip test that fails with Solaris CC
22986         * tests/test-stdbool.c (f): Skip test that causes compilation
22987         error under buggy C++ compiler.
22988         * lib/stdbool.in.h: Document the limitation.
22989         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
22990
22991         setenv: allow compilation with C++
22992         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
22993         register keyword.
22994
22995         stdint: allow test to pass with C++
22996         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
22997
22998         getopt: allow compilation with C++
22999         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23000         struct.
23001         * lib/getopt.c (_getopt_internal_r): Use correct type.
23002         Reported by Dagobert Michelson, via Joel E. Denny.
23003
23004 2010-04-16  Bruno Haible  <bruno@clisp.org>
23005
23006         Override netdb.h always.
23007         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23008         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23009         Reported by Ludovic Courtès <ludo@gnu.org>.
23010
23011 2010-04-15  Bruno Haible  <bruno@clisp.org>
23012
23013         openpty: Fix mistake from 2010-03-21.
23014         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23015         Reported by Simon Josefsson.
23016
23017 2010-04-15  Eric Blake  <eblake@redhat.com>
23018
23019         test-forkpty: fix expected signature
23020         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23021         Reported by Simon Josefsson.
23022
23023 2010-04-15  Jim Meyering  <meyering@redhat.com>
23024
23025         maint.mk: texinfo_suffix_re_: correct the default regexp
23026         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23027
23028         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23029         make it configurable via texinfo_suffix_re_.
23030
23031 2010-04-14  Eric Blake  <eblake@redhat.com>
23032
23033         strtok_r: relax license to LGPLv2+
23034         * modules/strtok_r (License): Relax license.
23035         Reported by Matthias Bolte.
23036
23037 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23038
23039         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23040         version 1.4.4 by default instead of requiring the libgcrypt
23041         version used during build.  This makes it possible to use the
23042         application with older but still binary compatible libgcrypt
23043         versions.
23044
23045 2010-04-13  Eric Blake  <eblake@redhat.com>
23046
23047         getopt-gnu: match recent glibc fixes and posix ruling
23048         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23049         '+' handling, when requesting extensions.
23050         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23051         'W;' handling.
23052         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23053         * doc/posix-functions/getopt.texi (getopt): Document this.
23054         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23055         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23056         Likewise.
23057
23058         getopt: merge bug fixes from glibc
23059         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23060         diagnostics.  Honor '+:' correctly.  Reject ';'.
23061
23062         getopt-posix: detect MacOS bug
23063         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23064         optind when missing a required argument.
23065         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23066         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23067         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23068         Likewise.
23069
23070         getopt-posix: avoid spurious failure on Solaris
23071         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23072         an indicator that setting optind=1 is sufficient for reset.
23073
23074         getopt-posix: avoid spurious failure on FreeBSD
23075         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23076         in POSIX mode, since the m4 test uses it.
23077
23078         gnulib-tool: silence warning on BSD sh
23079         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23080
23081 2010-04-13  Jim Meyering  <meyering@redhat.com>
23082
23083         doc: users.txt: GNU patch now uses gnulib
23084         * users.txt: Add patch.
23085
23086 2010-04-12  Jim Meyering  <meyering@redhat.com>
23087
23088         maint.mk: generate more concise timing data for syntax-check rules
23089         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23090         " done" from each line that reports a syntax-check test duration.
23091
23092 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23093
23094         git-version-gen: use "git update-index..." rather than "git status"
23095         * build-aux/git-version-gen: Use git update-index --refresh, not
23096         "git status".  With some versions of git, "git status" would fail
23097         to update the index and result in an unwarranted "-dirty" suffix.
23098
23099 2010-04-11  Jim Meyering  <meyering@redhat.com>
23100
23101         openat: correct formatting (no semantic change)
23102         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23103         Suggested by Bruno Haible.
23104
23105 2010-04-11  Bruno Haible  <bruno@clisp.org>
23106
23107         Stricter declaration checking in testdirs.
23108         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23109         If for_tests is true, augment AM_CPPFLAGS to define
23110         GNULIB_STRICT_CHECKING.
23111         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23112         GNULIB_STRICT_CHECKING is defined, verify that the function is
23113         declared.
23114
23115 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23116             Bruno Haible  <bruno@clisp.org>
23117
23118         libunistring: Improve configure output.
23119         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23120         Don't say "consider installing GNU libunistring" when checking again
23121         with libiconv.
23122
23123 2010-04-11  Bruno Haible  <bruno@clisp.org>
23124
23125         libunistring: Correct value of $LTLIBUNISTRING.
23126         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23127         correct the value of $LTLIBUNISTRING.
23128
23129 2010-04-11  Bruno Haible  <bruno@clisp.org>
23130
23131         havelib: Add static libraries to LIBS in the right order.
23132         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
23133         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
23134
23135 2010-04-11  Bruno Haible  <bruno@clisp.org>
23136
23137         libunistring: Detect libunistring also when it depends on libiconv.
23138         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
23139         the second AC_LIB_HAVE_LINKFLAGS invocation.
23140
23141 2010-04-11  James Youngman  <jay@gnu.org>
23142
23143         close-stream: declare local scalars to be "const"
23144         * lib/close-stream.c (close_stream): Make boolean variables const
23145         to document the fact that we set but do not change them.
23146
23147 2010-04-11  Bruno Haible  <bruno@clisp.org>
23148
23149         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
23150
23151 2010-04-11  Jim Meyering  <meyering@redhat.com>
23152
23153         maint.mk: don't include dist-check.mk
23154         * top/maint.mk: Remove bogus include directive.
23155
23156         maint.mk: improve empty-line-at-EOF check
23157         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
23158         solution, rather than tail+Perl-based one.  The latter would read
23159         a few kilobytes from the end of each file, and did not handle empty
23160         files properly.
23161
23162         maint.mk: print the elapsed time for each syntax-check rule
23163         * top/maint.mk (sc_m_rules_): Save start time in a file.
23164         (sc_z_rules_): New rules: remove temp file and print elapsed time.
23165         (local-check): Interpose the .z rules
23166
23167 2010-04-11  Jim Meyering  <meyering@redhat.com>
23168
23169         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
23170         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
23171         empty file with one that ends in an empty line.
23172
23173 2010-04-10  Bruno Haible  <bruno@clisp.org>
23174
23175         mkdir: Make it work on mingw64.
23176         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23177         * lib/mkdir.c: Update comment.
23178         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
23179
23180 2010-04-10  Bruno Haible  <bruno@clisp.org>
23181
23182         Don't override improved macro from newer autoconf.
23183         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23184         autoconf >= 2.62.
23185         Reported by Joel E. Denny <jdenny@clemson.edu>.
23186
23187 2010-04-10  Jim Meyering  <meyering@redhat.com>
23188
23189         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23190         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23191
23192         maint.mk: correct a diagnostic
23193         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23194         in diagnostic; now use $prohibit.
23195
23196 2010-04-10  Bruno Haible  <address@hidden>
23197
23198         fchownat: Fix a C++ test error on Solaris 8.
23199         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23200         the function does not exist.
23201
23202 2010-04-10  Bruno Haible  <bruno@clisp.org>
23203
23204         vasnprintf: Add more tests.
23205         * tests/test-vasnprintf-posix.c: Include <errno.h>.
23206         (test_function): Test converting an invalid wide string.
23207
23208         vasnprintf: Correct handling of unconvertible wide string arguments.
23209         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
23210         VASNPRINTF.
23211         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23212         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
23213         smaller than the expected maximum need for the directive. Set errno to
23214         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
23215         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
23216         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
23217         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
23218         * modules/vasnprintf (Files): Add m4/printf.m4.
23219         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23220
23221 2010-04-10  Bruno Haible  <bruno@clisp.org>
23222
23223         vasnprintf: Fix crash in %ls directive.
23224         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
23225         string is passed as argument to %ls, with no precision and no width.
23226         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23227
23228 2010-04-10  Bruno Haible  <bruno@clisp.org>
23229
23230         vasnprintf: Fix multiple test failures on mingw.
23231         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
23232         _snprintf, or snwprintf, not _snwprintf.
23233
23234 2010-04-10  Bruno Haible  <bruno@clisp.org>
23235
23236         write: Fix a C++ test error on mingw.
23237         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
23238
23239 2010-04-10  Bruno Haible  <bruno@clisp.org>
23240
23241         vasnprintf test: Reduce code duplication.
23242         * tests/test-vasnprintf.c (test_function): New function, extracted from
23243         test_vasnprintf.
23244         (test_vasnprintf, test_asnprintf): Invoke it.
23245
23246 2010-04-10  Bruno Haible  <bruno@clisp.org>
23247
23248         strnlen: Fix warning in C++ mode on MacOS X.
23249         * lib/string.in.h (strnlen): Use the modern idiom.
23250         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
23251         defining strnlen as a macro already in <config.h>.
23252         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23253         REPLACE_STRNLEN.
23254         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
23255         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23256
23257 2010-04-08  James Youngman  <jay@gnu.org>
23258
23259         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
23260         the example.
23261
23262 2010-04-09  Jim Meyering  <meyering@redhat.com>
23263
23264         maint.mk: print better diagnostic when there is no $(_hv_file)
23265         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
23266         announce that when $(_hv_file) (aka help-version) does not exist.
23267
23268         init.sh: run tr in the "C" locale to avoid multibyte interpretation
23269         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
23270         not try to interpret its random input bytes.  Jarno Rajahalme reported
23271         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
23272         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
23273         (mktempd_): Likewise, just in case.
23274
23275         ftruncate: add two years to projected module removal date: 2012
23276         * m4/ftruncate.m4: Adjust comments.
23277
23278         ftruncate: mark module as obsolete; even MinGW provides it, now
23279         * modules/ftruncate (Status): Obsolete.
23280         (Notice): Say that.
23281         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
23282         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
23283
23284 2010-04-08  Bruno Haible  <bruno@clisp.org>
23285
23286         Fix side effects from tests-related modules.
23287         * modules/dprintf-posix (Comment): New section.
23288         * modules/fprintf-posix (Comment): Likewise.
23289         * modules/obstack-printf-posix (Comment): Likewise.
23290         * modules/printf-posix (Comment): Likewise.
23291         * modules/snprintf-posix (Comment): Likewise.
23292         * modules/sprintf-posix (Comment): Likewise.
23293         * modules/vasnprintf-posix (Comment): Likewise.
23294         * modules/vasprintf-posix (Comment): Likewise.
23295         * modules/vdprintf-posix (Comment): Likewise.
23296         * modules/vfprintf-posix (Comment): Likewise.
23297         * modules/vprintf-posix (Comment): Likewise.
23298         * modules/vsnprintf-posix (Comment): Likewise.
23299         * modules/vsprintf-posix (Comment): Likewise.
23300         * modules/xprintf-posix (Comment): Likewise.
23301         * modules/xvasprintf-posix (Comment): Likewise.
23302         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
23303         * modules/floorf-tests (Depends-on): Likewise.
23304         * modules/round-tests (Depends-on): Likewise.
23305         * modules/roundf-tests (Depends-on): Likewise.
23306         * modules/trunc-tests (Depends-on): Likewise.
23307         * modules/truncf-tests (Depends-on): Likewise.
23308         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
23309         'fprintf-posix' module is not present.
23310         * tests/test-floorf2.c (check): Likewise.
23311         * tests/test-trunc2.c (check): Likewise.
23312         * tests/test-truncf2.c (check): Likewise.
23313         * tests/test-round2.c (equal): Likewise.
23314         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23315
23316 2010-04-07  Karl Berry  <karl@gnu.org>
23317
23318         * config/srclist.txt,
23319         * config/srclistvars.sh,
23320         * config/srclist-update: doc fixes.
23321
23322 2010-04-07  Jim Meyering  <meyering@redhat.com>
23323
23324         maint.mk: add a PATH crosschecking syntax-check rule
23325         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
23326         Useful if you use a test like the one in help-version (coreutils,
23327         diffutils, grep, gzip) that ensures $(VERSION) matches what is
23328         printed by prog --version.
23329
23330 2010-04-06  Bruno Haible  <bruno@clisp.org>
23331
23332         Fix link error on mingw.
23333         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
23334         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
23335
23336 2010-04-06  Bruno Haible  <bruno@clisp.org>
23337
23338         Assume rmdir exists.
23339         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
23340
23341 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
23342
23343         doc: update users.txt
23344         * users.txt: Add gcal.
23345
23346 2010-04-06  Jim Meyering  <meyering@redhat.com>
23347
23348         init.sh: simply unset TMPDIR rather than risking env -i
23349         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
23350         although it probably works fine on all Unix-based systems, some
23351         systems (Cygwin?) cannot tolerate a totally cleared environment.
23352         Suggestion from Eric Blake.
23353
23354 2010-04-06  Jim Meyering  <meyering@redhat.com>
23355
23356         init.sh: portability fix: use env's POSIX-specified -i option not -u
23357         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
23358         than unportable env -u.  Solaris 5.11's env lacks support for -u.
23359
23360 2010-04-05  Bruno Haible  <bruno@clisp.org>
23361
23362         btowc: Work around Cygwin 1.7.2 bug.
23363         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
23364         does not map NUL to 0.
23365         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
23366
23367 2010-04-05  Bruno Haible  <bruno@clisp.org>
23368
23369         Make the multithread modules work on Cygwin 1.7.2.
23370         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
23371         imported symbols can be declared weak, so that it returns "no" on
23372         Cygwin 1.7.2.
23373
23374 2010-04-05  Bruno Haible  <bruno@clisp.org>
23375
23376         Use the module 'strncat'.
23377         * modules/unistr/u8-strncat (Depends-on): Add strncat.
23378
23379         Tests for module 'strncat'.
23380         * modules/strncat-tests: New file.
23381         * tests/test-strncat.c: New file.
23382
23383         New module 'strncat'.
23384         * lib/string.in.h (strncat): New declaration.
23385         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
23386         * m4/strncat.m4: New file, based on m4/memchr.m4.
23387         * modules/strncat: New file.
23388         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
23389         is declared.
23390         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
23391         REPLACE_STRNCAT.
23392         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
23393         REPLACE_STRNCAT.
23394         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
23395         module.
23396         * tests/test-string-c++.cc: Check signature of strncat.
23397
23398 2010-04-05  Jim Meyering  <meyering@redhat.com>
23399
23400         xstrtoumax-tests: convert to use init.sh
23401         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
23402         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23403         Use Exit, not exit.
23404         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23405
23406         xstrtoimax-tests: convert to use init.sh
23407         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
23408         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23409         Use Exit, not exit.
23410         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23411
23412 2010-04-05  Bruno Haible  <bruno@clisp.org>
23413
23414         sys_socket: Avoid #define replacements in C++ mode.
23415         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
23416         warning to the function if possible, rather than #defining the symbol
23417         to a dysfunctional alias.
23418
23419 2010-04-05  Bruno Haible  <bruno@clisp.org>
23420
23421         fseeko: Fix C++ test error on mingw.
23422         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
23423         gl_FUNC_FSEEKO.
23424         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
23425         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
23426         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
23427         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
23428
23429 2010-04-05  Bruno Haible  <bruno@clisp.org>
23430
23431         duplocale: Improve test output.
23432         * tests/test-duplocale.c (main): Print reason for skipped test.
23433
23434 2010-04-05  Bruno Haible  <bruno@clisp.org>
23435
23436         Assume rmdir exists.
23437         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
23438         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
23439
23440 2010-04-05  Bruno Haible  <bruno@clisp.org>
23441
23442         Fix link error on Solaris 8 with cc.
23443         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
23444
23445 2010-04-05  Bruno Haible  <bruno@clisp.org>
23446
23447         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23448         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
23449
23450 2010-04-05  Bruno Haible  <bruno@clisp.org>
23451
23452         vasprintf: Update documentation.
23453         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
23454
23455 2010-04-05  Bruno Haible  <bruno@clisp.org>
23456
23457         ptsname: Improve test.
23458         * tests/test-ptsname.c (main): Also try the various master names of BSD
23459         systems.
23460
23461 2010-04-05  Bruno Haible  <bruno@clisp.org>
23462
23463         memchr: Avoid a possible C++ test error.
23464         * lib/string.in.h (memchr): Provide declaration if function is missing.
23465         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
23466         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
23467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
23468         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
23469
23470 2010-04-05  Bruno Haible  <bruno@clisp.org>
23471
23472         strtok_r: Improve idiom.
23473         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
23474         AC_LIBOBJ is used.
23475
23476 2010-04-05  Bruno Haible  <bruno@clisp.org>
23477
23478         strdup: Improve idiom.
23479         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
23480         AC_LIBOBJ is used.
23481         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
23482         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
23483         when AC_LIBOBJ is used.
23484
23485 2010-04-05  Bruno Haible  <bruno@clisp.org>
23486
23487         mbsinit, mbrtowc, wcrtomb: Improve idioms.
23488         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
23489         don't set REPLACE_MBSINIT to 1.
23490         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
23491         don't set REPLACE_MBRTOWC to 1.
23492         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
23493         exist, don't set REPLACE_MBSRTOWCS to 1.
23494         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
23495         exist, don't set REPLACE_MBSNRTOWCS to 1.
23496         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
23497         don't set REPLACE_WCRTOMB to 1.
23498         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
23499         exist, don't set REPLACE_WCSRTOMBS to 1.
23500         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
23501         exist, don't set REPLACE_WCSNRTOMBS to 1.
23502
23503 2010-04-05  Bruno Haible  <bruno@clisp.org>
23504
23505         ldexpl: Improve idiom.
23506         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
23507         make sure to set HAVE_DECL_LDEXPL to 0.
23508
23509 2010-04-05  Jim Meyering  <meyering@redhat.com>
23510
23511         xstrtol-tests: convert to use init.sh
23512         * modules/xstrtol-tests (Files): Add tests/init.sh.
23513         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23514         Use Exit, not exit.
23515         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23516
23517         atexit-tests: convert to use init.sh
23518         * modules/atexit-tests (Files): Add tests/init.sh.
23519         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23520         Use Exit, not exit.
23521         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23522
23523         init.sh: fix typo
23524         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
23525
23526         init.sh: make it easier for a test script to write to the tty, ...
23527         when using automake's parallel-tests mode.
23528         * tests/init.sh (stderr_fileno_): Define overridable variable.
23529         (warn_): New function, to use it.
23530         (fail_, skip_, framework_failure_): Use warn_.
23531
23532 2010-04-04  Bruno Haible  <bruno@clisp.org>
23533
23534         btowc: Avoid warning.
23535         * lib/btowc.c: Include <stdlib.h>.
23536         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
23537
23538 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23539             Bruno Haible  <bruno@clisp.org>
23540
23541         wchar: Port to NetBSD 1.5.
23542         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
23543         * lib/wctype.in.h (WEOF): Likewise.
23544
23545 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23546             Bruno Haible  <bruno@clisp.org>
23547
23548         Port extended stdio to NetBSD 1.5.
23549         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
23550         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
23551         older.
23552
23553 2010-04-04  Bruno Haible  <bruno@clisp.org>
23554
23555         string: Remove unused substitution.
23556         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
23557         HAVE_DECL_STRERROR.
23558         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
23559
23560 2010-04-04  Bruno Haible  <bruno@clisp.org>
23561
23562         strtod: Avoid a possible C++ test error.
23563         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
23564         set REPLACE_STRTOD.
23565
23566 2010-04-04  Bruno Haible  <bruno@clisp.org>
23567
23568         strerror: Update documentation.
23569         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
23570
23571 2010-04-04  Bruno Haible  <bruno@clisp.org>
23572
23573         stdio: Fix some C++ test errors on Solaris 8 with GCC.
23574         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
23575         _GL_CXXALIAS_SYS_CAST.
23576
23577 2010-04-04  Bruno Haible  <bruno@clisp.org>
23578
23579         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23580         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
23581         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
23582         REPLACE_FREXPL to 1.
23583         * doc/posix-functions/frexpl.texi: Update documentation.
23584
23585 2010-04-04  Bruno Haible  <bruno@clisp.org>
23586
23587         math: Fix some C++ test errors on Solaris 8 and Cygwin.
23588         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
23589
23590 2010-04-04  Bruno Haible  <bruno@clisp.org>
23591
23592         Implement nanosleep for native Windows.
23593         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
23594
23595 2010-04-04  Bruno Haible  <bruno@clisp.org>
23596
23597         math: Fix some C++ test errors on Solaris 8.
23598         * lib/math.in.h (truncf, trunc): Use simpler idiom.
23599
23600 2010-04-04  Bruno Haible  <bruno@clisp.org>
23601
23602         math: Fix some C++ test errors on Cygwin.
23603         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
23604         truncl): Provide declaration if the system does not have it.
23605         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
23606         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
23607         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
23608         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
23609         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
23610         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
23611         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
23612         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
23613         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
23614         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
23615         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
23616         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
23617         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
23618         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
23619         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
23620         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
23621         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
23622         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23623         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23624         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
23625         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23626         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23627
23628 2010-04-04  Bruno Haible  <bruno@clisp.org>
23629
23630         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
23631         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23632         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23633         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23634         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23635         * m4/isinf.m4 (gl_ISINF): Likewise.
23636         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23637
23638 2010-04-04  Bruno Haible  <bruno@clisp.org>
23639
23640         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
23641         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23642
23643 2010-04-04  Bruno Haible  <bruno@clisp.org>
23644
23645         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
23646         * modules/tmpfile (configure.ac): Update.
23647
23648         tmpfile: Fix C++ test error on mingw.
23649         * lib/stdio.in.h (tmpfile): New declaration.
23650         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
23651         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
23652         * modules/tmpfile (Depends-on): Add stdio.
23653         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23654         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
23655         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
23656         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
23657         REPLACE_TMPFILE.
23658         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
23659
23660 2010-04-04  Bruno Haible  <bruno@clisp.org>
23661
23662         ioctl: Fix C++ test error on mingw.
23663         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
23664         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
23665         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
23666
23667 2010-04-03  Bruno Haible  <bruno@clisp.org>
23668
23669         wcwidth: Fix C++ test error on mingw.
23670         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
23671         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
23672         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
23673
23674 2010-04-03  Bruno Haible  <bruno@clisp.org>
23675
23676         nanosleep: Fix C++ test error on mingw.
23677         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
23678         * lib/time.in.h (nanosleep): Use modern idiom.
23679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
23680         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
23681         REPLACE_NANOSLEEP to 1.
23682         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
23683         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
23684
23685 2010-04-03  Bruno Haible  <bruno@clisp.org>
23686
23687         strptime: Fix C++ test error on mingw.
23688         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
23689         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
23690         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
23691         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
23692         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
23693         not REPLACE_STRPTIME.
23694         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
23695         REPLACE_STRPTIME.
23696
23697 2010-04-03  Bruno Haible  <bruno@clisp.org>
23698
23699         timegm: Fix C++ test error on mingw.
23700         * lib/time.in.h (timegm): Use modern idiom.
23701         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
23702         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
23703         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
23704         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
23705
23706 2010-04-03  Bruno Haible  <bruno@clisp.org>
23707
23708         timegm: Assume declaration if function exists.
23709         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
23710         if it exists. Don't clobber ac_cv_func_timegm.
23711
23712 2010-04-03  Bruno Haible  <bruno@clisp.org>
23713
23714         time_r: Fix C++ test error on mingw.
23715         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
23716         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
23717         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
23718         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
23719         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
23720
23721 2010-04-03  Bruno Haible  <bruno@clisp.org>
23722
23723         time_r: Minor updates.
23724         * modules/time_r (Description): Mention the provided functions.
23725         * lib/time_r.c: Don't include <string.h>.
23726         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
23727         * doc/posix-functions/localtime_r.texi: Likewise.
23728
23729 2010-04-03  Bruno Haible  <bruno@clisp.org>
23730
23731         time: Fix regression introduced on 2010-03-08.
23732         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
23733         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
23734
23735 2010-04-03  Jim Meyering  <meyering@redhat.com>
23736
23737         maint.mk: don't silently disable project-specific syntax-check rules
23738         * top/maint.mk (_prohibit_regexp): Define, to help people realize
23739         that they need to convert their project-specific syntax-check rules
23740         to use the new _sc_search_regexp.
23741
23742 2010-04-03  Bruno Haible  <bruno@clisp.org>
23743
23744         fchdir: Fix regression introduced on 2010-03-08.
23745         * lib/unistd.in.h (fchdir): Fix declaration.
23746         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
23747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
23748         REPLACE_FCHDIR.
23749         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
23750         REPLACE_FCHDIR.
23751
23752 2010-04-03  Bruno Haible  <bruno@clisp.org>
23753
23754         getpagesize: Fix C++ test error on mingw.
23755         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
23756         system does not declare the function.
23757         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
23758         declared.
23759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23760         HAVE_DECL_GETPAGESIZE.
23761         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
23762
23763 2010-04-03  Bruno Haible  <bruno@clisp.org>
23764
23765         stdio: Make C++ tests work on mingw.
23766         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
23767         does not declare the function.
23768
23769 2010-04-03  Bruno Haible  <bruno@clisp.org>
23770
23771         ftello: Fix C++ test error on mingw.
23772         * lib/stdio.in.h (ftello): Use modern idiom.
23773         * lib/ftello.c (ftello): Renamed from rpl_ftello.
23774         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
23775         is missing and that it needs to be replaced.
23776         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
23777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
23778         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
23779
23780 2010-04-03  Bruno Haible  <bruno@clisp.org>
23781
23782         fseeko: Fix C++ test error on mingw.
23783         * lib/stdio.in.h (fseeko): Use modern idiom.
23784         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
23785         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
23786         is missing and that it needs to be replaced.
23787         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
23788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
23789         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
23790
23791 2010-04-03  Bruno Haible  <bruno@clisp.org>
23792
23793         mkstemp: Fix C++ test error on mingw.
23794         * lib/stdlib.in.h (mkstemp): Use modern idiom.
23795         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
23796         function is missing and that it needs to be replaced.
23797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
23798         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
23799
23800 2010-04-03  Bruno Haible  <bruno@clisp.org>
23801
23802         stpncpy: Fix C++ test error on mingw.
23803         * lib/string.in.h (stpncpy): Use modern idiom.
23804         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
23805         function is missing and that it needs to be replaced.
23806         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23807         REPLACE_STPNCPY.
23808         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
23809
23810 2010-04-03  Bruno Haible  <bruno@clisp.org>
23811
23812         sys_stat: Fix C++ test error on mingw.
23813         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
23814         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
23815
23816 2010-04-03  Bruno Haible  <bruno@clisp.org>
23817
23818         pty: Update doc.
23819         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
23820
23821 2010-04-03  Bruno Haible  <bruno@clisp.org>
23822
23823         unistd: Fix C++ test error on mingw.
23824         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
23825
23826 2010-04-03  Bruno Haible  <bruno@clisp.org>
23827
23828         Update doc regarding mingw.
23829         * doc/glibc-functions/openpty.texi: Update regarding mingw.
23830         * doc/glibc-functions/login_tty.texi: Likewise.
23831         * doc/glibc-functions/forkpty.texi: Likewise.
23832
23833 2010-04-03  Bruno Haible  <bruno@clisp.org>
23834
23835         stdlib: Avoid compilation failure of c-strtold on mingw.
23836         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
23837
23838 2010-04-03  Bruno Haible  <bruno@clisp.org>
23839
23840         locale: Make C++ tests work on Cygwin and mingw.
23841         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
23842         cannot provide the function.
23843         Reported by Simon Josefsson.
23844
23845 2010-04-03  Bruno Haible  <bruno@clisp.org>
23846
23847         localename: Port to MacOS X 10.6.
23848         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
23849         memory layout of the locales in MacOS X 10.6 as well.
23850         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
23851
23852 2010-04-02  Bruno Haible  <bruno@clisp.org>
23853
23854         gnulib-tool: Ensure that long-running tests are executed last.
23855         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
23856         running tests after the one for the other tests.
23857
23858 2010-04-02  Bruno Haible  <bruno@clisp.org>
23859
23860         gnulib-tool: Ensure the tests in the main directory are executed first.
23861         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
23862         start with the current directory.
23863
23864 2010-04-02  Bruno Haible  <bruno@clisp.org>
23865
23866         Tests for module 'havelib', moved here from GNU gettext.
23867         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
23868         modifications.
23869         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
23870         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
23871         with modifications.
23872         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
23873         modifications.
23874         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
23875         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
23876         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
23877         with modifications.
23878         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
23879         with modifications.
23880         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
23881         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
23882         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
23883         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
23884         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
23885         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
23886         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
23887         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
23888         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
23889         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
23890         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
23891         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
23892         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
23893         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
23894         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
23895         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
23896         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
23897         with modifications.
23898         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
23899         with modifications.
23900         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
23901         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
23902         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
23903         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
23904         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
23905         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
23906         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
23907         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
23908         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
23909         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
23910         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
23911         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
23912         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
23913         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
23914         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
23915         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
23916         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
23917         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
23918         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
23919         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
23920         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
23921         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
23922         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
23923         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
23924         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
23925         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
23926         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
23927         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
23928         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
23929         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
23930         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
23931         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
23932         * tests/havelib/rpathx/rpathx.c: New file, from
23933         gettext/autoconf-lib-link.
23934         * tests/havelib/rpathx/Makefile.am: New file, from
23935         gettext/autoconf-lib-link.
23936         * tests/havelib/rpathx/configure.ac: New file, from
23937         gettext/autoconf-lib-link with modifications.
23938         * tests/havelib/rpathy/rpathy.c: New file, from
23939         gettext/autoconf-lib-link.
23940         * tests/havelib/rpathy/Makefile.am: New file, from
23941         gettext/autoconf-lib-link.
23942         * tests/havelib/rpathy/configure.ac: New file, from
23943         gettext/autoconf-lib-link with modifications.
23944         * tests/havelib/rpathz/rpathz.c: New file, from
23945         gettext/autoconf-lib-link.
23946         * tests/havelib/rpathz/Makefile.am: New file, from
23947         gettext/autoconf-lib-link.
23948         * tests/havelib/rpathz/configure.ac: New file, from
23949         gettext/autoconf-lib-link with modifications.
23950         * tests/havelib/rpathlx/usex.c: New file, from
23951         gettext/autoconf-lib-link.
23952         * tests/havelib/rpathlx/Makefile.am: New file, from
23953         gettext/autoconf-lib-link.
23954         * tests/havelib/rpathlx/configure.ac: New file, from
23955         gettext/autoconf-lib-link with modifications.
23956         * tests/havelib/rpathly/usey.c: New file, from
23957         gettext/autoconf-lib-link.
23958         * tests/havelib/rpathly/Makefile.am: New file, from
23959         gettext/autoconf-lib-link.
23960         * tests/havelib/rpathly/configure.ac: New file, from
23961         gettext/autoconf-lib-link with modifications.
23962         * tests/havelib/rpathlz/usez.c: New file, from
23963         gettext/autoconf-lib-link.
23964         * tests/havelib/rpathlz/Makefile.am: New file, from
23965         gettext/autoconf-lib-link.
23966         * tests/havelib/rpathlz/configure.ac: New file, from
23967         gettext/autoconf-lib-link with modifications.
23968         * tests/havelib/rpathlyx/usey.c: New file, from
23969         gettext/autoconf-lib-link.
23970         * tests/havelib/rpathlyx/Makefile.am: New file, from
23971         gettext/autoconf-lib-link.
23972         * tests/havelib/rpathlyx/configure.ac: New file, from
23973         gettext/autoconf-lib-link with modifications.
23974         * tests/havelib/rpathlzyx/usez.c: New file, from
23975         gettext/autoconf-lib-link.
23976         * tests/havelib/rpathlzyx/Makefile.am: New file, from
23977         gettext/autoconf-lib-link.
23978         * tests/havelib/rpathlzyx/configure.ac: New file, from
23979         gettext/autoconf-lib-link with modifications.
23980         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
23981         with modifications.
23982
23983 2010-04-02  Bruno Haible  <bruno@clisp.org>
23984
23985         gnulib-tool: Create distributed built sources also for the tests.
23986         * gnulib-tool (func_create_testdir): Also generate distributed built
23987         sources in the tests directory.
23988
23989 2010-04-02  Bruno Haible  <bruno@clisp.org>
23990
23991         gnulib-tool: Obey user's environment variables.
23992         * gnulib-tool (func_create_testdir): When creating built sources,
23993         respect the environment variables for autoconf, automake, etc. given by
23994         the user.
23995
23996 2010-04-02  Bruno Haible  <bruno@clisp.org>
23997
23998         gnulib-tool: Provide the value of --m4-base to modules.
23999         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24000         of gl_m4_base.
24001
24002 2010-04-02  Eric Blake  <eblake@redhat.com>
24003
24004         maint.mk: fix some fallout
24005         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24006         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24007
24008 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24009
24010         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24011         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24012         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24013         (sc_cast_of_x_alloc_return_value): Likewise.
24014         (sc_cast_of_alloca_return_value): Likewise.
24015         (sc_space_tab): Likewise.
24016         (sc_prohibit_atoi_atof): Likewise.
24017         (sc_prohibit_magic_number_exit): Likewise.
24018         (sc_error_exit_success): Likewise.
24019         (sc_file_system): Likewise.
24020         (sc_prohibit_have_config_h): Likewise.
24021         (sc_require_config_h): Likewise.
24022         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24023         (sc_obsolete_symbols): Likewise.
24024         (sc_changelog): Likewise.
24025         (sc_program_name): Likewise.
24026         (sc_the_the): Likewise.
24027         (sc_trailing_blank): Likewise.
24028         (sc_two_space_separator_in_usage): Likewise.
24029         (sc_useless_cpp_parens): Likewise.
24030         (sc_GPL_version): Likewise.
24031         (sc_GFDL_version): Likewise.
24032         (sc_texinfo_acronym): Likewise.
24033         (sc_prohibit_cvs_keyword): Likewise.
24034         (sc_prohibit_stat_st_blocks): Likewise.
24035         (sc_prohibit_S_IS_definition): Likewise.
24036         (sc_redundant_const): Likewise.
24037         (sc_makefile_TAB_only_indentation): Likewise.
24038         (sc_m4_quote_check): Likewise.
24039         (sc_makefile_path_separator_check): Likewise.
24040         (sc_copyright_check): Likewise.
24041         (sc_Wundef_boolean): Likewise.
24042         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24043
24044         maint.mk: match 0 or more whitespace-before-function-call '('
24045         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24046         that have zero or two-and-more spaces between the function name
24047         and the open parenthesis.
24048         (sc_error_message_warn_fatal): Likewise.
24049         (sc_error_message_uppercase): Likewise.
24050         (sc_error_message_period): Likewise.
24051
24052 2010-03-31  Eric Blake  <eblake@redhat.com>
24053
24054         maint.mk: check for [ as well as test
24055         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24056         Based on a libvirt report by Matthias Bolte.
24057
24058         gnumakefile: don't squelch _version output
24059         * top/GNUmakefile (_version): Create one-shot dependency rather
24060         than using $(shell) when version must be regenerated.
24061         (_autoreconf): Run verbosely, by default.
24062
24063         sys_time: avoid compiler warnings
24064         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24065         unconditional, fixing regression from 2010-03-29.
24066         Reported by Simon Josefsson.
24067
24068 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24069
24070         maint.mk: s/_header_without_use/_sc_header_without_use/
24071         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24072         (sc_prohibit_assert_without_use): Use the new name.
24073         (sc_prohibit_close_stream_without_use): Likewise.
24074         (sc_prohibit_getopt_without_use): Likewise.
24075         (sc_prohibit_quotearg_without_use): Likewise.
24076         (sc_prohibit_quote_without_use): Likewise.
24077         (sc_prohibit_long_options_without_use): Likewise.
24078         (sc_prohibit_inttostr_without_use): Likewise.
24079         (sc_prohibit_ignore_value_without_use): Likewise.
24080         (sc_prohibit_error_without_use): Likewise.
24081         (sc_prohibit_xalloc_without_use): Likewise.
24082         (sc_prohibit_hash_without_use): Likewise.
24083         (sc_prohibit_hash_pjw_without_use): Likewise.
24084         (sc_prohibit_safe_read_without_use): Likewise.
24085         (sc_prohibit_argmatch_without_use): Likewise.
24086         (sc_prohibit_canonicalize_without_use): Likewise.
24087         (sc_prohibit_root_dev_ino_without_use): Likewise.
24088         (sc_prohibit_openat_without_use): Likewise.
24089         (sc_prohibit_c_ctype_without_use): Likewise.
24090         (sc_prohibit_signal_without_use): Likewise.
24091         (sc_prohibit_intprops_without_use): Likewise.
24092
24093 2010-03-30  Eric Blake  <eblake@redhat.com>
24094
24095         maint: improve module indicators
24096         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24097         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24098         columns, and avoid extra macro expansion.
24099
24100         fdopendir: work around FreeBSD bug
24101         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24102         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24103         * modules/dirent (Makefile.am): Substitute it.
24104         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24105         declaration.
24106         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24107         fix.
24108         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24109
24110 2010-03-29  Bruno Haible  <bruno@clisp.org>
24111
24112         Emit #pragma system_header after the inclusion guard, not before.
24113         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24114         guard that spans the entire file, not before. This enables an
24115         optimization in GCC's preprocessor.
24116         * lib/ctype.in.h: Likewise.
24117         * lib/dirent.in.h: Likewise.
24118         * lib/errno.in.h: Likewise.
24119         * lib/float.in.h: Likewise.
24120         * lib/getopt.in.h: Likewise.
24121         * lib/iconv.in.h: Likewise.
24122         * lib/langinfo.in.h: Likewise.
24123         * lib/locale.in.h: Likewise.
24124         * lib/math.in.h: Likewise.
24125         * lib/netdb.in.h: Likewise.
24126         * lib/netinet_in.in.h: Likewise.
24127         * lib/pty.in.h: Likewise.
24128         * lib/sched.in.h: Likewise.
24129         * lib/se-selinux.in.h: Likewise.
24130         * lib/search.in.h: Likewise.
24131         * lib/spawn.in.h: Likewise.
24132         * lib/stdarg.in.h: Likewise.
24133         * lib/stdint.in.h: Likewise.
24134         * lib/string.in.h: Likewise.
24135         * lib/strings.in.h: Likewise.
24136         * lib/sys_file.in.h: Likewise.
24137         * lib/sys_ioctl.in.h: Likewise.
24138         * lib/sys_time.in.h: Likewise.
24139         * lib/sys_times.in.h: Likewise.
24140         * lib/sys_utsname.in.h: Likewise.
24141         * lib/sys_wait.in.h: Likewise.
24142         * lib/sysexits.in.h: Likewise.
24143         * lib/wctype.in.h: Likewise.
24144
24145 2010-03-28  James Youngman  <jay@gnu.org>
24146
24147         save-cwd: don't leak a file descriptor when the caller execs.
24148         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
24149         saved file descriptor.
24150         * modules/save-cwd (Depends-on): Depend on cloexec.
24151
24152 2010-03-29  Bruno Haible  <bruno@clisp.org>
24153
24154         Remove vestiges of fts-lgpl module.
24155         * lib/fts_.h: Assume GNULIB_FTS is 1.
24156         * lib/fts.c: Likewise.
24157         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24158
24159 2010-03-28  Bruno Haible  <bruno@clisp.org>
24160
24161         Fix definition of tests witness macro.
24162         * gnulib-tool (func_import): Fix definition of witness macro.
24163
24164 2010-03-28  Bruno Haible  <bruno@clisp.org>
24165
24166         Fix ioctl's protoype on glibc systems.
24167         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
24168         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
24169         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
24170         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
24171         signature. If not, arrange to replace the ioctl function.
24172         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24173         REPLACE_IOCTL.
24174         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24175         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24176         Reported by Ludovic Courtès <ludo@gnu.org>.
24177
24178 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24179
24180         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24181         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24182         made it so grep -r --include=GLOB* ... did not work.
24183
24184 2010-03-26  Jim Meyering  <meyering@redhat.com>
24185             Eric Blake  <eblake@redhat.com>
24186
24187         maint.mk: prohibit use of test's -o and -a operators
24188         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24189
24190 2010-03-28  Bruno Haible  <bruno@clisp.org>
24191
24192         Remove unused GNULIB_XYZ macro definitions.
24193         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24194         invocation.
24195
24196 2010-03-28  Bruno Haible  <bruno@clisp.org>
24197
24198         Mark privileged tests modules.
24199         * modules/idpriv-drop-tests (Status): New section.
24200         * modules/idpriv-droptemp-tests (Status): New section.
24201
24202 2010-03-28  Bruno Haible  <bruno@clisp.org>
24203
24204         Split C++ tests into separate tests modules.
24205         * modules/dirent-c++-tests: New file, extracted from
24206         modules/dirent-tests.
24207         * modules/dirent-tests: Depend on it.
24208         * modules/fcntl-h-c++-tests: New file, extracted from
24209         modules/fcntl-h-tests.
24210         * modules/fcntl-h-tests: Depend on it.
24211         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
24212         * modules/glob-tests: Depend on it.
24213         * modules/iconv-h-c++-tests: New file, extracted from
24214         modules/iconv-h-tests.
24215         * modules/iconv-h-tests: Depend on it.
24216         * modules/langinfo-c++-tests: New file, extracted from
24217         modules/langinfo-tests.
24218         * modules/langinfo-tests: Depend on it.
24219         * modules/locale-c++-tests: New file, extracted from
24220         modules/locale-tests.
24221         * modules/locale-tests: Depend on it.
24222         * modules/math-c++-tests: New file, extracted from modules/math-tests.
24223         * modules/math-tests: Depend on it.
24224         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24225         * modules/pty-tests: Depend on it.
24226         * modules/search-c++-tests: New file, extracted from
24227         modules/search-tests.
24228         * modules/search-tests: Depend on it.
24229         * modules/signal-c++-tests: New file, extracted from
24230         modules/signal-tests.
24231         * modules/signal-tests: Depend on it.
24232         * modules/spawn-c++-tests: New file, extracted from
24233         modules/spawn-tests.
24234         * modules/spawn-tests: Depend on it.
24235         * modules/stdio-c++-tests: New file, extracted from
24236         modules/stdio-tests.
24237         * modules/stdio-tests: Depend on it.
24238         * modules/stdlib-c++-tests: New file, extracted from
24239         modules/stdlib-tests.
24240         * modules/stdlib-tests: Depend on it.
24241         * modules/string-c++-tests: New file, extracted from
24242         modules/string-tests.
24243         * modules/string-tests: Depend on it.
24244         * modules/sys_ioctl-c++-tests: New file, extracted from
24245         modules/sys_ioctl-tests.
24246         * modules/sys_ioctl-tests: Depend on it.
24247         * modules/sys_select-c++-tests: New file, extracted from
24248         modules/sys_select-tests.
24249         * modules/sys_select-tests: Depend on it.
24250         * modules/sys_socket-c++-tests: New file, extracted from
24251         modules/sys_socket-tests.
24252         * modules/sys_socket-tests: Depend on it.
24253         * modules/sys_stat-c++-tests: New file, extracted from
24254         modules/sys_stat-tests.
24255         * modules/sys_stat-tests: Depend on it.
24256         * modules/sys_time-c++-tests: New file, extracted from
24257         modules/sys_time-tests.
24258         * modules/sys_time-tests: Depend on it.
24259         * modules/time-c++-tests: New file, extracted from modules/time-tests.
24260         * modules/time-tests: Depend on it.
24261         * modules/unistd-c++-tests: New file, extracted from
24262         modules/unistd-tests.
24263         * modules/unistd-tests: Depend on it.
24264         * modules/wchar-c++-tests: New file, extracted from
24265         modules/wchar-tests.
24266         * modules/wchar-tests: Depend on it.
24267         * modules/wctype-c++-tests: New file, extracted from
24268         modules/wctype-tests.
24269         * modules/wctype-tests: Depend on it.
24270         Reported by Simon Josefsson.
24271
24272 2010-03-28  Bruno Haible  <bruno@clisp.org>
24273
24274         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
24275         * gnulib-tool (func_exists_module): New function, extracted from
24276         func_verify_module.
24277         (func_verify_module): Use it.
24278         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
24279         'foo' only if 'foo' exists.
24280         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
24281         module.
24282
24283 2010-03-28  Bruno Haible  <bruno@clisp.org>
24284
24285         gnulib-tool: Add support for special categories of tests.
24286         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
24287         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
24288         (func_usage): Document them.
24289         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
24290         inc_unportable_tests, inc_all_tests): New variables.
24291         (func_acceptable): Consider these variables.
24292         (func_modules_transitive_closure): Make it work when the 'Status' field
24293         consists of multiple words.
24294         (func_import): Store and restore the values of inc_cxx_tests,
24295         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
24296         inc_all_tests in gnulib-comp.m4.
24297         (func_create_testdir): Set inc_all_tests to true.
24298         * doc/gnulib.texi (Extra tests modules): New section.
24299         Suggested by Jim Meyering.
24300
24301 2010-03-28  Bruno Haible  <bruno@clisp.org>
24302
24303         ansi-c++-opt: Allow turning off the C++ build by default.
24304         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
24305         gl_CXX_CHOICE_DEFAULT_NO is defined.
24306         Requested by Eric Blake.
24307
24308 2010-03-28  Bruno Haible  <bruno@clisp.org>
24309
24310         unistd: Avoid #define replacements in C++ mode.
24311         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
24312         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
24313         setsockopt, shutdown, select): In C++, attach a warning to the function
24314         if possible, rather than #defining the symbol to a dysfunctional alias.
24315         Reported by John W. Eaton <jwe@gnu.org>.
24316
24317 2010-03-28  Bruno Haible  <bruno@clisp.org>
24318
24319         Fix link errors on mingw.
24320         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
24321         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
24322         $(LIBSOCKET).
24323         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
24324         $(LIBSOCKET).
24325
24326 2010-03-28  Bruno Haible  <bruno@clisp.org>
24327             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24328
24329         lib-ignore: Determine different options for different compilers.
24330         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
24331         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
24332         Add comments.
24333         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
24334         * NEWS: Mention the change.
24335
24336 2010-03-27  Bruno Haible  <bruno@clisp.org>
24337
24338         Remove unused GNULIB_XYZ macro definitions.
24339         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24340         * modules/fseek (configure.ac): Likewise.
24341         * modules/ioctl (configure.ac): Likewise.
24342         * modules/open (configure.ac): Likewise.
24343         * modules/stdlib-safer (configure.ac): Likewise.
24344
24345 2010-03-27  Bruno Haible  <bruno@clisp.org>
24346
24347         Add a remark about certain modules.
24348         * modules/malloc (Comment): New section.
24349         * modules/realloc (Comment): Likewise.
24350         * modules/sigpipe (Comment): Likewise.
24351
24352 2010-03-27  Bruno Haible  <bruno@clisp.org>
24353
24354         Resolve conflict between the two kinds of module indicators.
24355         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
24356         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
24357         * modules/canonicalize (configure.ac): Invoke
24358         gl_MODULE_INDICATOR_FOR_TESTS.
24359         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
24360         GNULIB_XYZ.
24361         * tests/test-dirent-c++.cc: Likewise.
24362         * tests/test-dirent-safer.c: Likewise.
24363         * tests/test-dup2.c: Likewise.
24364         * tests/test-fchdir.c: Likewise.
24365         * tests/test-fcntl-h-c++.cc: Likewise.
24366         * tests/test-getopt.c: Likewise.
24367         * tests/test-getopt.h: Likewise.
24368         * tests/test-langinfo-c++.cc: Likewise.
24369         * tests/test-locale-c++.cc: Likewise.
24370         * tests/test-math-c++.cc: Likewise.
24371         * tests/test-pty-c++.cc: Likewise.
24372         * tests/test-search-c++.cc: Likewise.
24373         * tests/test-signal-c++.cc: Likewise.
24374         * tests/test-spawn-c++.cc: Likewise.
24375         * tests/test-stdio-c++.cc: Likewise.
24376         * tests/test-stdlib-c++.cc: Likewise.
24377         * tests/test-string-c++.cc: Likewise.
24378         * tests/test-sys_ioctl-c++.cc: Likewise.
24379         * tests/test-sys_select-c++.cc: Likewise.
24380         * tests/test-sys_socket-c++.cc: Likewise.
24381         * tests/test-sys_stat-c++.cc: Likewise.
24382         * tests/test-sys_time-c++.cc: Likewise.
24383         * tests/test-time-c++.cc: Likewise.
24384         * tests/test-unistd-c++.cc: Likewise.
24385         * tests/test-wchar-c++.cc: Likewise.
24386         * tests/uninorm/test-u8-nfc.c: Likewise.
24387         * tests/uninorm/test-u8-nfd.c: Likewise.
24388         * tests/uninorm/test-u8-nfkc.c: Likewise.
24389         * tests/uninorm/test-u8-nfkd.c: Likewise.
24390         * tests/uninorm/test-u16-nfc.c: Likewise.
24391         * tests/uninorm/test-u16-nfd.c: Likewise.
24392         * tests/uninorm/test-u16-nfkc.c: Likewise.
24393         * tests/uninorm/test-u16-nfkd.c: Likewise.
24394         * tests/uninorm/test-u32-nfc.c: Likewise.
24395         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24396         * tests/uninorm/test-u32-nfd.c: Likewise.
24397         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24398         * tests/uninorm/test-u32-nfkc.c: Likewise.
24399         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24400         * tests/uninorm/test-u32-nfkd.c: Likewise.
24401         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24402         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24403
24404 2010-03-27  Bruno Haible  <bruno@clisp.org>
24405
24406         Distinguish two kinds of module indicators.
24407         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
24408         gl_MODULE_INDICATOR.
24409         (gl_MODULE_INDICATOR): New macro.
24410         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24411         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
24412         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24413         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24414         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24415         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24416         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24417         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24418         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24419         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24420         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24421         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24422         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24423         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24424         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24425         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24426         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24427         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24428         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24429         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24430         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24431         * modules/cloexec (configure.ac): Likewise.
24432         * modules/getopt-gnu (configure.ac): Likewise.
24433         * modules/uninorm/u8-normalize (configure.ac): Likewise.
24434         * modules/uninorm/u16-normalize (configure.ac): Likewise.
24435         * modules/uninorm/u32-normalize (configure.ac): Likewise.
24436         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
24437
24438 2010-03-27  Bruno Haible  <bruno@clisp.org>
24439
24440         New module description field 'Comment'.
24441         * gnulib-tool: New option --extract-comment.
24442         (func_usage): Document it.
24443         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
24444         (func_get_comment): New function.
24445         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
24446
24447 2010-03-27  Bruno Haible  <bruno@clisp.org>
24448
24449         Addendum to 2010-02-07 commit.
24450         * gnulib-tool (func_usage): Document --extract-applicability option.
24451
24452 2010-03-27  Bruno Haible  <bruno@clisp.org>
24453
24454         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
24455         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
24456         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
24457         rather than link errors.
24458
24459 2010-03-27  Bruno Haible  <bruno@clisp.org>
24460
24461         Avoid side effects from tests-related modules on the compilation of lib.
24462         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
24463         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
24464         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
24465         parameter. Emit into AM_CPPFLAGS a definition of the designated C
24466         macro.
24467         (func_import): Define a witness macro. Assign it a value that depends
24468         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
24469         tests-related modules.
24470         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
24471         Reported by Jim Meyering.
24472
24473 2010-03-27  Bruno Haible  <bruno@clisp.org>
24474
24475         Factorize common .m4 code.
24476         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
24477         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
24478         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
24479         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
24480         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24481         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
24482         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
24483         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24484         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24485         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24486         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
24487         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24488         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24489         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24490         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24491         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
24492         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24493         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24494         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24495         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
24496         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
24497         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24498         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24499         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24500         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24501         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24502         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
24503         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
24504         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
24505         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24506         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24507         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24508
24509 2010-03-27  Bruno Haible  <bruno@clisp.org>
24510
24511         Fix a compilation error on Cygwin with g++ >= 4.3.
24512         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
24513         if it is undefined or if we alias it to chmod.
24514         (lstat): Don't warn about the use of this function if it is undefined
24515         or if we alias it to stat.
24516         Reported by Simon Josefsson.
24517
24518 2010-03-27  Bruno Haible  <bruno@clisp.org>
24519
24520         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
24521         * modules/getlogin (configure.ac): Update.
24522
24523         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
24524         * modules/getlogin_r (configure.ac): Update.
24525
24526         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
24527         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
24528         * modules/inet_ntop (configure.ac): Update.
24529
24530         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
24531         * modules/inet_pton (configure.ac): Update.
24532
24533         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
24534         * modules/mbslen (configure.ac): Update.
24535
24536         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
24537         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
24538         * modules/forkpty (configure.ac): Update.
24539         * modules/openpty (configure.ac): Update.
24540
24541 2010-03-26  Simon Josefsson  <simon@josefsson.org>
24542
24543         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
24544         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
24545
24546 2010-03-25  Eric Blake  <eblake@redhat.com>
24547
24548         maint: use pragma consistently across replacement headers
24549         * lib/ctype.in.h (system_header): Hoist for consistent placement.
24550         * lib/dirent.in.h (system_header): Likewise.
24551         * lib/errno.in.h (system_header): Likewise.
24552         * lib/float.in.h (system_header): Likewise.
24553         * lib/getopt.in.h (system_header): Likewise.
24554         * lib/iconv.in.h (system_header): Likewise.
24555         * lib/inttypes.in.h (system_header): Likewise.
24556         * lib/langinfo.in.h (system_header): Likewise.
24557         * lib/locale.in.h (system_header): Likewise.
24558         * lib/math.in.h (system_header): Likewise.
24559         * lib/netdb.in.h (system_header): Likewise.
24560         * lib/netinet_in.in.h (system_header): Likewise.
24561         * lib/pty.in.h (system_header): Likewise.
24562         * lib/sched.in.h (system_header): Likewise.
24563         * lib/se-selinux.in.h (system_header): Likewise.
24564         * lib/search.in.h (system_header): Likewise.
24565         * lib/spawn.in.h (system_header): Likewise.
24566         * lib/stdarg.in.h (system_header): Likewise.
24567         * lib/stdint.in.h (system_header): Likewise.
24568         * lib/string.in.h (system_header): Likewise.
24569         * lib/strings.in.h (system_header): Likewise.
24570         * lib/sys_file.in.h (system_header): Likewise.
24571         * lib/sys_ioctl.in.h (system_header): Likewise.
24572         * lib/sys_socket.in.h (system_header): Likewise.
24573         * lib/sys_times.in.h (system_header): Likewise.
24574         * lib/sys_utsname.in.h (system_header): Likewise.
24575         * lib/sys_wait.in.h (system_header): Likewise.
24576         * lib/sysexits.in.h (system_header): Likewise.
24577         * lib/unistd.in.h (system_header): Likewise.
24578         * lib/wctype.in.h (system_header): Likewise.
24579
24580         arpa/inet: fix mingw compilation warning
24581         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
24582         Reported by Matthew Bolte.
24583
24584 2010-03-25  Bruno Haible  <bruno@clisp.org>
24585
24586         Avoid collision between gnulib wrapper and libintl wrapper.
24587         * lib/printf.c (printf): Don't define if a printf wrapper is already
24588         defined in intl/printf.c.
24589         Reported by Michel Boaventura <michel@michelboaventura.com>.
24590
24591 2010-03-25  Bruno Haible  <bruno@clisp.org>
24592
24593         Use ANSI C.
24594         * lib/readutmp.h (getutent): Provide ANSI C prototype.
24595
24596 2010-03-25  Bruno Haible  <bruno@clisp.org>
24597
24598         Minor formatting changes.
24599         * lib/acosl.c: Insert space before function argument list.
24600         * lib/argz.c: Likewise.
24601         * lib/asinl.c: Likewise.
24602         * lib/expl.c: Likewise.
24603         * lib/gen-uni-tables.c: Likewise.
24604         * lib/gettext.h: Likewise.
24605         * lib/glthread/lock.h: Likewise.
24606         * lib/tanl.c: Likewise.
24607         * lib/uniname/uniname.c: Likewise.
24608         * tests/test-idpriv-drop.c: Likewise.
24609         * tests/test-idpriv-droptemp.c: Likewise.
24610         * tests/test-lock.c: Likewise.
24611         * tests/test-tls.c: Likewise.
24612         * lib/argp-help.c: Insert space before function-like macro argument
24613         list.
24614         * lib/memcmp.c: Likewise.
24615         * tests/test-base64.c: Likewise.
24616         * lib/localename.c: Insert space before sizeof's argument list.
24617         * lib/safe-alloc.h: Likewise.
24618         * lib/file-set.h: Insert space before macro argument list.
24619         * tests/test-argp.c: Likewise.
24620         * lib/argp-namefrob.h: Insert space before function parameter list.
24621         * lib/getaddrinfo.c: Likewise.
24622         * lib/netdb.in.h: Likewise.
24623         * lib/parse-duration.h: Likewise.
24624         * lib/parse-duration.c: Likewise.
24625         * lib/poll.c: Likewise.
24626         * lib/select.c: Likewise.
24627         * lib/trim.h: Likewise.
24628         * tests/test-usleep.c: Likewise.
24629         * lib/ldexpl.c: Insert space before function parameter list and before
24630         function argument list.
24631         * lib/logl.c: Likewise.
24632         * lib/sqrtl.c: Likewise.
24633         * lib/trim.c: Likewise.
24634         * lib/cosl.c: Use GNU style indentation. Insert space before function
24635         argument list.
24636         * lib/sinl.c: Likewise.
24637         * lib/tsearch.c: Insert space after 'for'.
24638         Reported by Jim Meyering.
24639
24640 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
24641
24642         * maint.mk (sc_Wundef_boolean): Check for the presence of the
24643         config header before grepping, as it's not present before
24644         autoreconf/configure are run.  Reported by Simon Josefsson.
24645
24646 2010-03-23  Bruno Haible  <bruno@clisp.org>
24647
24648         pt_chown: Make it work with automake < 1.11.
24649         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
24650         Reported by Simon Josefsson.
24651
24652 2010-03-23  Bruno Haible  <bruno@clisp.org>
24653
24654         pt_chown: Don't depend on GPLed modules.
24655         * lib/pt_chown.c: Don't include idpriv.h.
24656         (main): Don't drop privileges.
24657         * modules/pt_chown (Depends-on): Remove idpriv-drop.
24658         Reported by Simon Josefsson.
24659
24660 2010-03-24  Simon Josefsson  <simon@josefsson.org>
24661
24662         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
24663         suggestions from karl@freefriends.org (Karl Berry).
24664
24665 2010-03-22  Eric Blake  <eblake@redhat.com>
24666
24667         gethostname: further tweaks
24668         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
24669         are overriding gethostname.
24670         Suggested by Bruno Haible.
24671
24672 2010-03-21  Bruno Haible  <bruno@clisp.org>
24673
24674         Fix comments.
24675         * lib/forkpty.c (rpl_forkpty): Fix comment.
24676         * lib/openpty.c (rpl_openpty): Likewise.
24677         Reported by Eric Blake.
24678
24679 2010-03-22  Eric Blake  <eblake@redhat.com>
24680
24681         gethostname: fix build on mingw
24682         * lib/unistd.in.h (includes): Work around fact that mingw
24683         <winsock2.h> re-includes <unistd.h>, by avoiding any
24684         redeclarations if we are being included by <winsock2.h>.
24685         Reported by Matthias Bolte.
24686
24687 2010-03-21  Bruno Haible  <bruno@clisp.org>
24688
24689         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24690         * lib/forkpty.c (forkpty): New replacement function, from glibc with
24691         modifications.
24692         * lib/pty.in.h (forkpty): Update declaration. Add comments.
24693         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
24694         provide the replacement.
24695         * modules/forkpty (Depends-on): Add openpty, login_tty.
24696         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
24697         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
24698         * doc/glibc-functions/forkpty.texi: More supported platforms.
24699         * config/srclist.txt: Add forkpty.c (commented).
24700
24701 2010-03-21  Bruno Haible  <bruno@clisp.org>
24702
24703         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
24704         (Makefile.am): Verify that PTY_LIB is defined.
24705
24706         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
24707
24708 2010-03-21  Bruno Haible  <bruno@clisp.org>
24709
24710         Tests for module 'login_tty'.
24711         * modules/login_tty-tests: New file.
24712         * tests/test-login_tty.c: New file.
24713
24714         New module 'login_tty'.
24715         * lib/login_tty.c: New file.
24716         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
24717         * modules/login_tty: New file.
24718         * doc/glibc-functions/login_tty.texi: Mention the new module.
24719
24720 2010-03-21  Bruno Haible  <bruno@clisp.org>
24721
24722         login_tty: Documentation.
24723         * doc/glibc-functions/login_tty.texi: New file.
24724         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
24725
24726 2010-03-21  Bruno Haible  <bruno@clisp.org>
24727
24728         pty: Consistent macro naming.
24729         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
24730         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
24731         * modules/pty (configure.ac): Update.
24732
24733 2010-03-21  Bruno Haible  <bruno@clisp.org>
24734
24735         Tests for openpty: Make stricter.
24736         * tests/test-openpty.c (main): Add test of canonical processing and
24737         erase.
24738         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
24739
24740         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24741         * lib/openpty.c (openpty): New replacement function.
24742         * lib/pty.in.h: Include <termios.h>.
24743         (openpty): Update declaration. Add comments.
24744         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
24745         is not declared, arrange to provide the replacement. Check for _getpty
24746         and posix_openpt.
24747         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
24748         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
24749         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
24750         * modules/pty-tests (test_pty_c___LDADD): New variable.
24751         * doc/glibc-functions/openpty.texi: More supported platforms.
24752
24753 2010-03-21  Bruno Haible  <bruno@clisp.org>
24754
24755         setenv: Tweaks.
24756         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
24757         the test program.
24758         * doc/posix-functions/setenv.texi: Update platforms list.
24759
24760 2010-03-21  Bruno Haible  <bruno@clisp.org>
24761
24762         New module 'unlockpt'.
24763         * lib/unlockpt.c: New file, from glibc with modifications.
24764         * m4/unlockpt.m4: New file.
24765         * modules/unlockpt: New file.
24766         * lib/stdlib.in.h (unlockpt): New declaration.
24767         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
24768         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
24769         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
24770         HAVE_UNLOCKPT.
24771         * doc/posix-functions/unlockpt.texi: Mention the new module.
24772         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
24773         * config/srclist.txt: Add unlockpt.c (commented).
24774
24775 2010-03-21  Jim Meyering  <meyering@redhat.com>
24776
24777         maint.mk: prohibit inclusion of "intprops.h" without use
24778         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
24779
24780 2010-03-21  Bruno Haible  <bruno@clisp.org>
24781
24782         New module 'grantpt'.
24783         * lib/grantpt.c: New file, from glibc with modifications.
24784         * m4/grantpt.m4: New file.
24785         * modules/grantpt: New file.
24786         * lib/stdlib.in.h (grantpt): New declaration.
24787         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
24788         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
24789         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
24790         HAVE_GRANTPT.
24791         * doc/posix-functions/grantpt.texi: Mention the new module.
24792         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
24793         * config/srclist.txt: Add grantpt.c (commented).
24794
24795 2010-03-21  Bruno Haible  <bruno@clisp.org>
24796
24797         New module 'pt_chown'.
24798         * lib/pt_chown.c: New file, from glibc with modifications.
24799         * lib/pty-private.h: New file, from glibc with modifications.
24800         * modules/pt_chown: New file.
24801         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
24802
24803 2010-03-21  Bruno Haible  <bruno@clisp.org>
24804
24805         Tests for module 'ptsname'.
24806         * modules/ptsname-tests: New file.
24807         * tests/test-ptsname.c: New file.
24808
24809         New module 'ptsname'.
24810         * lib/ptsname.c: New file, from glibc with modifications.
24811         * m4/ptsname.m4: New file.
24812         * modules/ptsname: New file.
24813         * lib/stdlib.in.h (ptsname): New declaration.
24814         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
24815         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
24816         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
24817         HAVE_PTSNAME.
24818         * doc/posix-functions/ptsname.texi: Mention the new module.
24819         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
24820         * config/srclist.txt: Add ptsname.c (commented).
24821
24822 2010-03-21  Bruno Haible  <bruno@clisp.org>
24823
24824         Tests for module 'ttyname_r'.
24825         * modules/ttyname_r-tests: New file.
24826         * tests/test-ttyname_r.c: New file.
24827
24828         New module 'ttyname_r'.
24829         * lib/ttyname_r.c: New file.
24830         * m4/ttyname_r.m4: New file.
24831         * modules/ttyname_r: New file.
24832         * lib/unistd.in.h (ttyname_r): New declaration.
24833         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
24834         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
24835         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
24836         HAVE_TTYNAME_R.
24837         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
24838         * doc/posix-functions/ttyname_r.texi: Mention the new module.
24839
24840 2010-03-20  Bruno Haible  <bruno@clisp.org>
24841
24842         signal: Undefine macro definitions in C++ mode.
24843         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
24844         sigfillset): Undefine macro definitions from the system header in C++
24845         mode.
24846         Reported by John W. Eaton <jwe@gnu.org>.
24847
24848 2010-03-20  Bruno Haible  <bruno@clisp.org>
24849
24850         Ensure no #include statements inside extern "C" { ... }.
24851         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
24852         contain #include statements.
24853         * lib/time.in.h: Likewise.
24854
24855 2010-03-20  Bruno Haible  <bruno@clisp.org>
24856
24857         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
24858         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
24859         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
24860         Reported by John W. Eaton <jwe@gnu.org>.
24861
24862 2010-03-20  Bruno Haible  <bruno@clisp.org>
24863
24864         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
24865         Reported by Jim Meyering.
24866
24867 2010-03-20  Bruno Haible  <bruno@clisp.org>
24868
24869         pipe: Set errno upon failure.
24870         * lib/pipe.h: Specify that when -1 is returned, errno is set.
24871         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
24872         errno value in error message.
24873
24874 2010-03-20  Bruno Haible  <bruno@clisp.org>
24875             Jim Meyering  <meyering@redhat.com>
24876
24877         lchown: Avoid "unused variable" warning.
24878         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
24879
24880 2010-03-20  Bruno Haible  <bruno@clisp.org>
24881
24882         Work around unlink() bug on MacOS X 10.5.6.
24883         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
24884         attempting to unlink a parent directory.
24885         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
24886         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
24887         activate for the replacement function.
24888         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
24889
24890 2010-03-20  Bruno Haible  <bruno@clisp.org>
24891
24892         Fix link errors on Solaris 8.
24893         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
24894         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
24895
24896 2010-03-19  Jim Meyering  <meyering@redhat.com>
24897
24898         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
24899         The _LIBC implementation of build_range_exp correctly honors the
24900         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
24901         However, the non-_LIBC implementation would ignore that syntax-bit
24902         flag and return REG_ERANGE unconditionally.
24903         This change makes it honor that flag.
24904         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
24905         Make two pointer parameters "const".
24906         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
24907         (parse_bracket_exp): Update caller.
24908
24909         regex.m4: correct the reversed range endpoint ([b-a]) test
24910         * m4/regex.m4: When requiring that [b-a] evoke failure,
24911         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
24912         test pass once again for x86-based systems.
24913
24914 2010-03-19  Bruno Haible  <bruno@clisp.org>
24915
24916         scandir: Fix link error on Solaris 8.
24917         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
24918         macros.
24919
24920 2010-03-19  Bruno Haible  <bruno@clisp.org>
24921
24922         getusershell: Fix documentation.
24923         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
24924         module.
24925         * doc/glibc-functions/setusershell.texi: Likewise.
24926
24927         getusershell: Provide declaration, missing on Solaris 9.
24928         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
24929         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
24930         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
24931         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
24932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24933         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
24934         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
24935         HAVE_GETUSERSHELL.
24936         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
24937
24938 2010-03-19  Bruno Haible  <bruno@clisp.org>
24939
24940         wctype: Provide iswblank function.
24941         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
24942         exists and is fine.
24943         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
24944         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
24945         * tests/test-wctype.c (main): Re-enable the iswblank tests.
24946         * doc/posix-functions/iswblank.texi: Update.
24947
24948 2010-03-19  Bruno Haible  <bruno@clisp.org>
24949
24950         Tests of module 'pty' in C++ mode.
24951         * modules/pty-tests: New file.
24952         * tests/test-pty-c++.cc: New file.
24953         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24954
24955 2010-03-19  Eric Blake  <eblake@redhat.com>
24956
24957         logb: fix documentation
24958         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
24959         1.5 declaration bug.
24960
24961         forkpty, openpty: prefer glibc's const-safe prototype
24962         * lib/forkpty.c (rpl_forkpty): New file.
24963         * lib/openpty.c (rpl_openpty): Likewise.
24964         * modules/forkpty (Files): Distribute it.
24965         * modules/openpty (Files): Likewise.
24966         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
24967         check...
24968         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
24969         replacement for for non-const BSD signature.
24970         * modules/pty (Makefile.am): Substitute witnesses.
24971         * lib/pty.in.h (forkpty, openpty): Declare replacements.
24972         * tests/test-forkpty.c: Update signature check.
24973         * tests/test-openpty.c: Likewise.
24974         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
24975         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24976
24977         forkpty, openpty: split functions into new modules
24978         * modules/pty (Makefile.am): Substitute new witnesses.
24979         (Libraries): Move library detection...
24980         * modules/forkpty: ...into new module.
24981         * modules/openpty: Another new module.
24982         * modules/pty-tests: Rename and split...
24983         * modules/forkpty-tests: ...to this...
24984         * modules/openpty-tests: ...and this.
24985         * tests/test-pty.c: Rename and split...
24986         * tests/test-forkpty.c: ...to this...
24987         * tests/test-openpty.c: ...and this.
24988         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
24989         (gl_PTY): Split library searching...
24990         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
24991         (gl_FORKPTY, gl_OPENPTY): New macros.
24992         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
24993         * NEWS: Mention the split.
24994         * MODULES.html.sh (Misc): Document the modules.
24995         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
24996         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24997
24998         pty: improve replacement header
24999         * lib/pty.in.h: New file.
25000         * modules/pty (Files): Ship it.
25001         (Makefile.am): Always build replacement.
25002         * m4/pty.m4: Rename...
25003         * m4/pty_h.m4: ...to this.
25004         (gl_PTY): Modernize setting of witness macros; update check of
25005         forkpty to take proper advantage of cache.
25006         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25007
25008         getopt: avoid compiler warning
25009         * lib/getopt.c (attribute_hidden): Remove unused macro.
25010
25011 2010-03-18  Bruno Haible  <bruno@clisp.org>
25012
25013         Fix link errors on Solaris 8.
25014         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25015         * modules/search-tests (test_search_c___LDADD): Likewise.
25016         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25017         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25018         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25019         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25020         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25021         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25022         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25023
25024 2010-03-18  Bruno Haible  <bruno@clisp.org>
25025
25026         Fix bug introduced on 2010-03-14.
25027         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25028         (gl_SPAWN_H): Require it.
25029         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25030         Reported by Simon Josefsson.
25031
25032 2010-03-18  Bruno Haible  <bruno@clisp.org>
25033
25034         Fix typo introduced on 2009-12-31.
25035         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25036         posix_spawn_file_actions_adddup2.
25037
25038 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25039         and Eric Blake  <eblake@redhat.com>
25040
25041         test-vc-list-files-git: make more robust
25042         * tests/test-vc-list-files-git.sh: Unset problematic environment
25043         variables.  Chain commands together.
25044
25045 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25046
25047         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25048         `AC_CHECK_DECL' invocation.
25049
25050 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25051
25052         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25053         appears before executable statements. Suggested by Petr Sumbera
25054         <Petr.Sumbera@Sun.COM>.
25055
25056 2010-03-14  Bruno Haible  <bruno@clisp.org>
25057
25058         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25059         portability problems. Instead use a simpler test.
25060         (main): Check that invalid arguments are rejected only on Linux.
25061
25062 2010-03-14  Bruno Haible  <bruno@clisp.org>
25063
25064         Fix bug introduced on 2009-12-31.
25065         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25066         gl_PREREQ_SYS_H_WINSOCK2 always.
25067         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25068         SYS_SOCKET_H variable.
25069         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25070         Update comments.
25071         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25072         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25073         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25074         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25075         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25076
25077 2010-03-14  Bruno Haible  <bruno@clisp.org>
25078
25079         Fix values returned by sinl, cosl.
25080         * lib/trigl.h: Add specification comments.
25081         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25082         that combines the values from the precomputed table with the values of
25083         the Chebyshev polynomials.
25084
25085 2010-03-14  Bruno Haible  <bruno@clisp.org>
25086
25087         Fix compilation error when modules 'posix_spawn[p]' are not used.
25088         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25089         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25090
25091 2010-03-14  Bruno Haible  <bruno@clisp.org>
25092
25093         Fix compilation error on mingw when module 'time_r' is not used.
25094         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25095         is 1.
25096         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25097         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25098         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25099         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25100
25101 2010-03-14  Bruno Haible  <bruno@clisp.org>
25102
25103         Fix compilation error with Sun C.
25104         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25105         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25106         instead of GCC specific ULONG_LONG_MAX.
25107         * lib/xstrtoll.c: Likewise.
25108         * lib/xstrtoull.c: Likewise.
25109
25110 2010-03-13  Bruno Haible  <bruno@clisp.org>
25111
25112         Allow the user to disable C++ code and tests.
25113         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25114         (gl_PROG_ANSI_CXX): Require it.
25115
25116 2010-03-13  Bruno Haible  <bruno@clisp.org>
25117
25118         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25119         cases.
25120
25121 2010-03-13  Bruno Haible  <bruno@clisp.org>
25122
25123         Test that gnulib does not break the standard C++ headers.
25124         * tests/test-locale-c++2.cc: New file.
25125         * modules/locale-tests (Files): Add it.
25126         (Makefile.am): Compile it for test-locale-c++.
25127         * tests/test-math-c++2.cc: New file.
25128         * modules/math-tests (Files): Add it.
25129         (Makefile.am): Compile it for test-math-c++.
25130         * tests/test-signal-c++2.cc: New file.
25131         * modules/signal-tests (Files): Add it.
25132         (Makefile.am): Compile it for test-signal-c++.
25133         * tests/test-stdio-c++2.cc: New file.
25134         * modules/stdio-tests (Files): Add it.
25135         (Makefile.am): Compile it for test-stdio-c++.
25136         * tests/test-stdlib-c++2.cc: New file.
25137         * modules/stdlib-tests (Files): Add it.
25138         (Makefile.am): Compile it for test-stdlib-c++.
25139         * tests/test-string-c++2.cc: New file.
25140         * modules/string-tests (Files): Add it.
25141         (Makefile.am): Compile it for test-string-c++.
25142         * tests/test-time-c++2.cc: New file.
25143         * modules/time-tests (Files): Add it.
25144         (Makefile.am): Compile it for test-time-c++.
25145         Reported by John W. Eaton <jwe@gnu.org>.
25146
25147 2010-03-13  Bruno Haible  <bruno@clisp.org>
25148
25149         * gnulib-tool (func_usage): Clarify which options are available for
25150         --create-testdir and --create-megatestdir.
25151
25152 2010-03-13  Bruno Haible  <bruno@clisp.org>
25153
25154         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
25155         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
25156         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
25157         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25158         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
25159         when appropriate.
25160         Reported by Jim Meyering.
25161
25162 2010-03-12  Simon Josefsson  <simon@josefsson.org>
25163
25164         * gnulib-tool (func_import): Explain origin of code.
25165
25166 2010-03-12  Bruno Haible  <bruno@clisp.org>
25167
25168         Fix problem with automake's definition of CXXLINK.
25169         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
25170         Reported by Simon Josefsson and Ludovic Courtès.
25171
25172 2010-03-12  Bruno Haible  <bruno@clisp.org>
25173
25174         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
25175         stable releases.
25176
25177 2010-03-11  Bruno Haible  <bruno@clisp.org>
25178
25179         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25180         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25181         whether the system provides one variant or multiple variants of the
25182         function.
25183         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25184         C++ compilers.
25185         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25186         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25187         Reported by Jim Meyering.
25188
25189 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25190
25191         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25192
25193 2010-03-08  Bruno Haible  <bruno@clisp.org>
25194
25195         gnulib-tool: Add support for --libtool in --create-testdir.
25196         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25197         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25198
25199 2010-03-08  Eric Blake  <eblake@redhat.com>
25200
25201         gnulib-tool.texi: mention possibility of git submodule
25202         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25203         submodules.
25204         * doc/.gitignore: Ignore another generated file.
25205
25206 2010-03-08  Karl Berry  <karl@gnu.org>
25207
25208         * doc/gnulib-tool.texi (VCS Issues): Mention third option
25209         of committing gnulib files while skipping others.
25210
25211 2010-03-07  Bruno Haible  <bruno@clisp.org>
25212
25213         Tests of module 'wctype' in C++ mode.
25214         * tests/test-wctype-c++.cc: New file.
25215         * modules/wctype-tests (Files): Add it and tests/signature.h.
25216         (Depends-on): Add ansi-c++-opt.
25217         (Makefile.am): Arrange to compile and run test-wctype-c++.
25218
25219         Tests of module 'wchar' in C++ mode.
25220         * tests/test-wchar-c++.cc: New file.
25221         * modules/wchar-tests (Files): Add it and tests/signature.h.
25222         (Depends-on): Add ansi-c++-opt.
25223         (Makefile.am): Arrange to compile and run test-wchar-c++.
25224         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
25225         gl_MODULE_INDICATOR.
25226
25227         Tests of module 'unistd' in C++ mode.
25228         * tests/test-unistd-c++.cc: New file.
25229         * modules/unistd-tests (Files): Add it and tests/signature.h.
25230         (Depends-on): Add ansi-c++-opt.
25231         (Makefile.am): Arrange to compile and run test-unistd-c++.
25232         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
25233         gl_MODULE_INDICATOR.
25234
25235         Tests of module 'time' in C++ mode.
25236         * tests/test-time-c++.cc: New file.
25237         * modules/time-tests (Files): Add it and tests/signature.h.
25238         (Depends-on): Add ansi-c++-opt.
25239         (Makefile.am): Arrange to compile and run test-time-c++.
25240         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25241
25242         Tests of module 'sys_time' in C++ mode.
25243         * tests/test-sys_time-c++.cc: New file.
25244         * modules/sys_time-tests (Files): Add it and tests/signature.h.
25245         (Depends-on): Add ansi-c++-opt.
25246         (Makefile.am): Arrange to compile and run test-sys_time-c++.
25247         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
25248         gl_MODULE_INDICATOR.
25249
25250         Tests of module 'sys_stat' in C++ mode.
25251         * tests/test-sys_stat-c++.cc: New file.
25252         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
25253         (Depends-on): Add ansi-c++-opt.
25254         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
25255         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
25256         gl_MODULE_INDICATOR.
25257
25258         Tests of module 'sys_socket' in C++ mode.
25259         * tests/test-sys_socket-c++.cc: New file.
25260         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
25261         (Depends-on): Add ansi-c++-opt.
25262         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
25263         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
25264         gl_MODULE_INDICATOR.
25265
25266         Tests of module 'sys_select' in C++ mode.
25267         * tests/test-sys_select-c++.cc: New file.
25268         * modules/sys_select-tests (Files): Add it and tests/signature.h.
25269         (Depends-on): Add ansi-c++-opt.
25270         (Makefile.am): Arrange to compile and run test-sys_select-c++.
25271         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
25272         gl_MODULE_INDICATOR.
25273
25274         Tests of module 'sys_ioctl' in C++ mode.
25275         * tests/test-sys_ioctl-c++.cc: New file.
25276         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
25277         (Depends-on): Add ansi-c++-opt.
25278         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
25279         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
25280         gl_MODULE_INDICATOR.
25281
25282         Tests of module 'string' in C++ mode.
25283         * tests/test-string-c++.cc: New file.
25284         * modules/string-tests (Files): Add it and tests/signature.h.
25285         (Depends-on): Add ansi-c++-opt.
25286         (Makefile.am): Arrange to compile and run test-string-c++.
25287         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
25288         gl_MODULE_INDICATOR.
25289
25290         Tests of module 'stdlib' in C++ mode.
25291         * tests/test-stdlib-c++.cc: New file.
25292         * modules/stdlib-tests (Files): Add it and tests/signature.h.
25293         (Depends-on): Add ansi-c++-opt.
25294         (Makefile.am): Arrange to compile and run test-stdlib-c++.
25295         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
25296         gl_MODULE_INDICATOR.
25297
25298         Tests of module 'stdio' in C++ mode.
25299         * tests/test-stdio-c++.cc: New file.
25300         * modules/stdio-tests (Files): Add it and tests/signature.h.
25301         (Depends-on): Add ansi-c++-opt.
25302         (Makefile.am): Arrange to compile and run test-stdio-c++.
25303         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
25304         gl_MODULE_INDICATOR.
25305
25306         Tests of module 'spawn' in C++ mode.
25307         * tests/test-spawn-c++.cc: New file.
25308         * modules/spawn-tests (Files): Add it and tests/signature.h.
25309         (Depends-on): Add ansi-c++-opt.
25310         (Makefile.am): Arrange to compile and run test-spawn-c++.
25311         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
25312         gl_MODULE_INDICATOR.
25313
25314         Tests of module 'signal' in C++ mode.
25315         * tests/test-signal-c++.cc: New file.
25316         * modules/signal-tests (Files): Add it and tests/signature.h.
25317         (Depends-on): Add ansi-c++-opt.
25318         (Makefile.am): Arrange to compile and run test-signal-c++.
25319         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
25320         gl_MODULE_INDICATOR.
25321
25322         Tests of module 'search' in C++ mode.
25323         * tests/test-search-c++.cc: New file.
25324         * modules/search-tests (Files): Add it and tests/signature.h.
25325         (Depends-on): Add ansi-c++-opt.
25326         (Makefile.am): Arrange to compile and run test-search-c++.
25327         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
25328         gl_MODULE_INDICATOR.
25329
25330         Tests of module 'math' in C++ mode.
25331         * tests/test-math-c++.cc: New file.
25332         * modules/math-tests (Files): Add it and tests/signature.h.
25333         (Depends-on): Add ansi-c++-opt.
25334         (Makefile.am): Arrange to compile and run test-math-c++.
25335         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25336
25337         Tests of module 'locale' in C++ mode.
25338         * tests/test-locale-c++.cc: New file.
25339         * modules/locale-tests (Files): Add it and tests/signature.h.
25340         (Depends-on): Add ansi-c++-opt.
25341         (Makefile.am): Arrange to compile and run test-locale-c++.
25342         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
25343         gl_MODULE_INDICATOR.
25344
25345         Tests of module 'langinfo' in C++ mode.
25346         * tests/test-langinfo-c++.cc: New file.
25347         * modules/langinfo-tests (Files): Add it and tests/signature.h.
25348         (Depends-on): Add ansi-c++-opt.
25349         (Makefile.am): Arrange to compile and run test-langinfo-c++.
25350         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
25351         gl_MODULE_INDICATOR.
25352
25353         Tests of module 'iconv-h' in C++ mode.
25354         * tests/test-iconv-h-c++.cc: New file.
25355         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
25356         (Depends-on): Add ansi-c++-opt.
25357         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
25358
25359         Tests of module 'glob' in C++ mode.
25360         * tests/test-glob-c++.cc: New file.
25361         * modules/glob-tests (Files): Add it.
25362         (Depends-on): Add ansi-c++-opt.
25363         (Makefile.am): Arrange to compile and run test-glob-c++.
25364
25365         Tests of module 'fcntl-h' in C++ mode.
25366         * tests/test-fcntl-h-c++.cc: New file.
25367         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
25368         (Depends-on): Add ansi-c++-opt.
25369         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
25370         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
25371         gl_MODULE_INDICATOR.
25372
25373         Tests of module 'dirent' in C++ mode.
25374         * tests/test-dirent-c++.cc: New file.
25375         * modules/dirent-tests (Files): Add it and tests/signature.h.
25376         (Depends-on): Add ansi-c++-opt.
25377         (Makefile.am): Arrange to compile and run test-dirent-c++.
25378         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25379         gl_MODULE_INDICATOR.
25380
25381         New module 'ansi-c++-opt'.
25382         * modules/ansi-c++-opt: New file.
25383         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
25384
25385         Document C++ namespace mode.
25386         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
25387
25388         wctype: Avoid #define replacements in C++ mode.
25389         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
25390         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
25391         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
25392         In C++, define a namespaced alias symbol.
25393         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
25394         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
25395         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
25396         rule.
25397
25398         wchar: Avoid #define replacements in C++ mode.
25399         * lib/wchar.in.h: Include c++defs.h.
25400         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
25401         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
25402         symbol.
25403         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
25404         * modules/wchar (Depends-on): Add c++defs.
25405         (Makefile.am): Update wchar.h rule.
25406
25407         unistd: Avoid #define replacements in C++ mode.
25408         * lib/unistd.in.h: Include c++defs.h.
25409         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
25410         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
25411         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
25412         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
25413         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
25414         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
25415         symbol.
25416         (environ): Update.
25417         * modules/unistd (Depends-on): Add c++defs.
25418         (Makefile.am): Update unistd.h rule.
25419
25420         time: Avoid #define replacements in C++ mode.
25421         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
25422         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
25423         define a namespaced alias symbol.
25424         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
25425         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
25426         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
25427         * modules/time (Depends-on): Add c++defs, warn-on-use.
25428         (Makefile.am): Update time.h rule.
25429         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25430         * modules/nanosleep (configure.ac): Likewise.
25431         * modules/strptime (configure.ac): Likewise.
25432         * modules/timegm (configure.ac): Likewise.
25433
25434         sys_time: Avoid #define replacements in C++ mode.
25435         * lib/sys_time.in.h: Include c++defs.h.
25436         (gettimeofday): In C++, define a namespaced alias symbol.
25437         * modules/sys_time (Depends-on): Add c++defs.
25438         (Makefile.am): Update sys/time.h rule.
25439
25440         sys_stat: Avoid #define replacements in C++ mode.
25441         * lib/sys_stat.in.h: Include c++defs.h.
25442         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
25443         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
25444         namespaced alias symbol.
25445         In C++, define a namespaced alias symbol.
25446         * modules/sys_stat (Depends-on): Add c++defs.
25447         (Makefile.am): Update sys/stat.h rule.
25448
25449         sys_socket: Avoid #define replacements in C++ mode.
25450         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
25451         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
25452         definitions also when the system has a <sys/socket.h>.
25453         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25454         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
25455         In C++, define a namespaced alias symbol.
25456         * modules/sys_socket (Depends-on): Add c++defs.
25457         (Makefile.am): Update sys/socket.h rule.
25458
25459         sys_select: Avoid #define replacements in C++ mode.
25460         * lib/sys_select.in.h: Include c++defs.h. Enable the function
25461         definitions also when the system has a <sys/select.h>.
25462         (select): In C++, define a namespaced alias symbol.
25463         * modules/sys_select (Depends-on): Add c++defs.
25464         (Makefile.am): Update sys/select.h rule.
25465
25466         sys_ioctl: Avoid #define replacements in C++ mode.
25467         * lib/sys_ioctl.in.h: Include c++defs.h.
25468         (ioctl): In C++, define a namespaced alias symbol.
25469         * modules/sys_ioctl (Depends-on): Add c++defs.
25470         (Makefile.am): Update sys/ioctl.h rule.
25471
25472         string: Avoid #define replacements in C++ mode.
25473         * lib/string.in.h: Include c++defs.h.
25474         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
25475         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25476         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25477         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
25478         strsignal, strverscmp): In C++, define a namespaced alias symbol.
25479         * modules/string (Depends-on): Add c++defs.
25480         (Makefile.am): Update string.h rule.
25481
25482         stdlib: Avoid #define replacements in C++ mode.
25483         * lib/stdlib.in.h: Include c++defs.h.
25484         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
25485         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
25486         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
25487         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
25488         symbol.
25489         * modules/stdlib (Depends-on): Add c++defs.
25490         (Makefile.am): Update stdlib.h rule.
25491
25492         stdio: Avoid #define replacements in C++ mode.
25493         * lib/stdio.in.h: Include c++defs.h.
25494         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
25495         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
25496         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
25497         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
25498         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
25499         namespaced alias symbol.
25500         * modules/stdio (Depends-on): Add c++defs.
25501         (Makefile.am): Update stdio.h rule.
25502
25503         spawn: Avoid #define replacements in C++ mode.
25504         * lib/spawn.in.h: Include c++defs.h.
25505         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25506         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25507         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25508         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25509         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25510         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25511         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25512         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25513         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25514         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25515         In C++, define a namespaced alias symbol.
25516         * modules/spawn (Depends-on): Add c++defs.
25517         (Makefile.am): Update spawn.h rule.
25518
25519         signal: Avoid #define replacements in C++ mode.
25520         * lib/signal.in.h: Include c++defs.h.
25521         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25522         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
25523         namespaced alias symbol.
25524         * modules/signal (Depends-on): Add c++defs.
25525         (Makefile.am): Update signal.h rule.
25526
25527         search: Avoid #define replacements in C++ mode.
25528         * lib/search.in.h: Include c++defs.h.
25529         (_gl_search_compar_fn, _gl_search_action_fn): New types.
25530         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
25531         symbol.
25532         * modules/search (Depends-on): Add c++defs.
25533         (Makefile.am): Update search.h rule.
25534
25535         math: Avoid #define replacements in C++ mode.
25536         * lib/math.in.h: Include c++defs.h.
25537         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
25538         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
25539         trunc, truncl): In C++, define a namespaced alias symbol.
25540         * modules/math (Depends-on): Add c++defs.
25541         (Makefile.am): Update math.h rule.
25542
25543         locale: Avoid #define replacements in C++ mode.
25544         * lib/locale.in.h: Include c++defs.h.
25545         (duplocale): In C++, define a namespaced alias symbol.
25546         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
25547         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
25548         * modules/locale (Depends-on): Add c++defs.
25549         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
25550
25551         langinfo: Avoid #define replacements in C++ mode.
25552         * lib/langinfo.in.h: Include c++defs.h.
25553         (nl_langinfo): In C++, define a namespaced alias symbol.
25554         * modules/langinfo (Depends-on): Add c++defs.
25555         (Makefile.am): Update langinfo.h rule.
25556
25557         iconv-h: Avoid #define replacements in C++ mode.
25558         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
25559         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
25560         symbol.
25561         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25562         whenever iconv is present.
25563         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
25564         (Makefile.am): Update iconv.h rule.
25565
25566         glob: Avoid #define replacements in C++ mode.
25567         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
25568         (_gl_glob_errfunc_fn): New type.
25569         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
25570         symbol.
25571         * modules/glob (Depends-on): Add c++defs, warn-on-use.
25572         (Makefile.am): Update glob.h rule.
25573
25574         fcntl-h: Avoid #define replacements in C++ mode.
25575         * lib/fcntl.in.h: Include c++defs.h.
25576         (fcntl, open, openat): In C++, define a namespaced alias symbol.
25577         * modules/fcntl-h (Depends-on): Add c++defs.
25578         (Makefile.am): Update fcntl.h rule.
25579
25580         dirent: Avoid #define replacements in C++ mode.
25581         * lib/dirent.in.h: Include c++defs.h.
25582         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
25583         namespaced alias symbol.
25584         (dirfd): Update declaration.
25585         * modules/dirent (Depends-on): Add c++defs.
25586         (Makefile.am): Update dirent.h rule.
25587
25588         ctype: Make it usable in C++ code.
25589         * lib/ctype.in.h: Include c++defs.h.
25590         (isblank): Declare as extern "C".
25591         * modules/ctype (Depends-on): Add c++defs.
25592         (Makefile.am): Update ctype.h rule.
25593
25594         New module 'c++defs'.
25595         * modules/c++defs: New file.
25596         * build-aux/c++defs.h: New file.
25597         Reported by John W. Eaton <jwe@gnu.org>.
25598
25599 2010-03-07  Bruno Haible  <bruno@clisp.org>
25600
25601         logb: Provide missing declaration for Cygwin.
25602         * lib/math.in.h (logb): New declaration.
25603         * m4/logb.m4: New file.
25604         * modules/logb (Files): Add m4/logb.m4.
25605         (Depends-on): Add math.
25606         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
25607         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
25608         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
25609         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
25610         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
25611
25612 2010-03-07  Bruno Haible  <bruno@clisp.org>
25613
25614         Fix test-cond link error.
25615         * tests/test-cond.c: Include <stdio.h>.
25616
25617 2010-03-07  Bruno Haible  <bruno@clisp.org>
25618
25619         Fix test-dirent-safer link error.
25620         * modules/dirent-safer-tests (Makefile.am): Define
25621         test_dirent_safer_LDADD.
25622
25623 2010-03-07  Bruno Haible  <bruno@clisp.org>
25624
25625         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
25626         among default module list.
25627
25628 2010-03-07  Bruno Haible  <bruno@clisp.org>
25629
25630         Fix link error on platforms with GNU libiconv.
25631         * modules/unistr/u8-strcoll-tests (Makefile): Define
25632         test_u8_strcoll_LDADD.
25633         * modules/unistr/u16-strcoll-tests (Makefile): Define
25634         test_u16_strcoll_LDADD.
25635         * modules/unistr/u32-strcoll-tests (Makefile): Define
25636         test_u32_strcoll_LDADD.
25637
25638 2010-03-07  Bruno Haible  <bruno@clisp.org>
25639
25640         Use POSIX declarations for socket functions.
25641         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
25642         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
25643         rpl_sendto): Change declaration to match POSIX.
25644         * lib/connect.c (rpl_connect): Likewise.
25645         * lib/accept.c (rpl_accept): Likewise.
25646         * lib/bind.c (rpl_bind): Likewise.
25647         * lib/getpeername.c (rpl_getpeername): Likewise.
25648         * lib/getsockname.c (rpl_getsockname): Likewise.
25649         * lib/recv.c (rpl_recv): Likewise.
25650         * lib/send.c (rpl_send): Likewise.
25651         * lib/recvfrom.c (rpl_recvfrom): Likewise.
25652         * lib/sendto.c (rpl_sendto): Likewise.
25653
25654 2010-03-06  Bruno Haible  <bruno@clisp.org>
25655
25656         Clarify access, euidaccess, faccessat.
25657         * doc/posix-functions/faccessat.texi: Mention security problem under
25658         "Other problems", not "Portability problems".
25659         * doc/posix-functions/access.texi: Likewise. Mention a related security
25660         problem.
25661         * doc/glibc-functions/euidaccess.texi: Mention security problems.
25662         * lib/euidaccess.c: Add comments about platforms.
25663         * lib/unistd.in.h (access, euidaccess): Add warnings.
25664
25665 2010-03-07  Bruno Haible  <bruno@clisp.org>
25666
25667         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
25668         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
25669         (POSIX_SPAWN_SETSCHEDULER): Likewise.
25670         (POSIX_SPAWN_USEVFORK): Define in a way that works when
25671         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25672         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
25673         declare when POSIX_SPAWN_SETSCHEDULER is zero.
25674         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
25675         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
25676         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
25677         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
25678         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
25679         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
25680         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
25681         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
25682         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
25683         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
25684         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
25685         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
25686         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
25687         Likewise.
25688         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
25689         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
25690         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
25691         Likewise.
25692         * tests/test-spawn.c (main): Make it work when
25693         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25694
25695 2010-03-07  Bruno Haible  <bruno@clisp.org>
25696
25697         Fix incorrect Makefile.am generation in German locale.
25698         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25699         Execute sed command with character range in C locale.
25700
25701 2010-03-06  Bruno Haible  <bruno@clisp.org>
25702
25703         Tests for module 'iconv-h'.
25704         * modules/iconv-h-tests: New file.
25705         * tests/test-iconv-h.c: New file.
25706
25707         New module 'iconv-h'.
25708         * modules/iconv-h: New file.
25709         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
25710         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
25711         (configure.ac): Remove gl_ICONV_H.
25712         (Makefile.am): Remove rule for iconv.h.
25713
25714 2010-03-06  Bruno Haible  <bruno@clisp.org>
25715
25716         More consistent naming of *.m4 files.
25717         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
25718         * modules/wctype (Files): Update.
25719
25720         More consistent naming of *.m4 files.
25721         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
25722         * modules/wchar (Files): Update.
25723
25724 2010-03-06  Jim Meyering  <meyering@redhat.com>
25725
25726         euidaccess: relax license to LGPLv2+
25727         * modules/euidaccess (License): Relax to LGPLv2+.
25728
25729 2010-03-06  Bruno Haible  <bruno@clisp.org>
25730
25731         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
25732         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
25733         (Makefile.am): Augment lib_SOURCES instead.
25734
25735 2010-03-04  Jim Meyering  <meyering@redhat.com>
25736
25737         utime: remove obsolete module
25738         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
25739         unnecessary for years, and has been marked as obsolete for 10 months.
25740         * modules/utime: Remove file.
25741         * lib/utime.c: Remove file.
25742         * m4/utime.m4: Remove file.
25743         * m4/utimes-null.m4: Remove file.
25744         * doc/posix-functions/utime.texi (utime): Remove reference to
25745         the module.  Move the sole "fixed by gnulib" item into the
25746         "problems not fixed by Gnulib" list.
25747         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
25748
25749 2010-03-05  Simon Josefsson  <simon@josefsson.org>
25750
25751         * modules/exit (License): Relax license to LGPLv2+.
25752         (Status): Mark as obsolete.
25753         * NEWS: Mention deprecated 'exit' module.
25754         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
25755         of now obsolete 'exit'.
25756
25757 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25758
25759         fts-lgpl: remove unused module
25760         * modules/fts-lgpl: Remove.
25761         * MODULES.html.sh (func_all_modules): Adjust.
25762         * check-module (find_included_lib_files): Adjust.
25763         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
25764
25765 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25766
25767         copy-acl: enhance Solaris ACL error handling
25768         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
25769         * lib/set-mode-acl.c (qset_acl): Likewise.
25770
25771 2010-03-02  Bruno Haible  <bruno@clisp.org>
25772
25773         spawn: Don't override the system defined values on FreeBSD 8.
25774         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
25775         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
25776         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
25777         if HAVE_POSIX_SPAWN is 1.
25778         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
25779
25780 2010-03-01  Bruno Haible  <bruno@clisp.org>
25781
25782         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
25783         regarding Automake.
25784
25785 2010-02-25  Bruno Haible  <bruno@clisp.org>
25786
25787         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
25788         * gnulib-tool: Define 'echo' as a function only before the ksh alias
25789         setting, not afterwards.
25790         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
25791
25792 2010-02-24  Eric Blake  <eblake@redhat.com>
25793
25794         bootstrap, git-version-gen: use timestamp
25795         * build-aux/git-version-gen (scriptversion): Force UTC.
25796         * build-aux/bootstrap (scriptversion): New variable.
25797
25798         bootstrap: allow older git
25799         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
25800         older than 1.6.4.  Requested by the libvirt project.
25801
25802 2010-02-23  Eric Blake  <eblake@redhat.com>
25803
25804         warn-on-use: work with old autoconf
25805         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
25806         AS_VAR semantics of autoconf 2.60.
25807         Reported by Bruno Haible.
25808
25809         bootstrap: improve some comments
25810         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
25811         clarification comments.
25812
25813         gettimeofday: provide correct function
25814         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
25815         when replacement is declared, otherwise provide gettimeofday.
25816         Reported by Michael Goffioul.
25817
25818 2010-02-23  Jim Meyering  <meyering@redhat.com>
25819
25820         lib-ignore: relax license to "unlimited", not LGPLv2+
25821         * modules/lib-ignore (License): Relax to "unlimited".
25822
25823 2010-02-23  Jim Meyering  <meyering@redhat.com>
25824
25825         lib-ignore: relax license to LGPLv2+
25826         * modules/lib-ignore (License): Relax to LGPLv2+.
25827
25828 2010-02-22  Eric Blake  <eblake@redhat.com>
25829
25830         lseek: avoid bash 3.2 broken pipe bug
25831         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
25832         warning from bash 3.2.
25833         Reported by Ben Pfaff, with analysis from Bruno Haible.
25834
25835         bootstrap: support non-FSF copyright holder
25836         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
25837         bootstrap.conf override of COPYRIGHT_HOLDER.
25838         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
25839
25840         bootstrap: interoperate with gettext 0.14.1
25841         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
25842
25843         bootstrap: allow for alternate submodule location
25844         * build-aux/bootstrap (gnulib_path): New variable; use instead of
25845         hardcoding submodule location.
25846         (gnulib_mk): Allow direct use of Makefile.am.
25847
25848         bootstrap: use GNULIB_SRCDIR to reduce disk usage
25849         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
25850         rather than reconfiguring where the submodule points.
25851
25852         gettimeofday: restore support for platforms that lack function
25853         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
25854         replacement if function is missing.
25855         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
25856         * modules/sys_time (Makefile.am): Substitute it.
25857         * lib/sys_time.in.h (gettimeofday): Check it.
25858         Reported by Michael Goffioul.
25859
25860 2010-02-21  Bruno Haible  <bruno@clisp.org>
25861
25862         * lib/stdio.in.h (obstack_printf): Fix typo.
25863
25864 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
25865
25866         vc-list-files: use bzr ls's -R option
25867         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
25868         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
25869
25870 2010-02-21  Jim Meyering  <meyering@redhat.com>
25871
25872         init.sh: fix EXEEXT shims to work also for names like test-prog
25873         * tests/init.sh: Re-exec a better shell, when needed.
25874         If the current shell lacks support for posix $(...), an init.sh-using
25875         test will now try to find a shell that supports that.  If EXEEXT is
25876         nonempty, we also require support for hyphen-in-alias-name and shell
25877         substitutions like ${var#glob}.  Failure to find such a shell results
25878         in a skipped test.
25879
25880 2010-02-21  Bruno Haible  <bruno@clisp.org>
25881
25882         Really work around around "broken pipe" error message from bash 3.2.
25883         * gnulib-tool (func_reset_sigpipe): Remove function.
25884         (echo): In bash 3.2, define to a function that uses printf.
25885         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
25886
25887 2010-02-20  Bruno Haible  <bruno@clisp.org>
25888
25889         Restore support for automake 1.9.6 with autoconf 2.61.
25890         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
25891         Reported by James Youngman <jay@gnu.org>.
25892
25893 2010-02-20  Bruno Haible  <bruno@clisp.org>
25894
25895         Improve *printf warning condition.
25896         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
25897         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
25898         and the function is overridden due to SIGPIPE emulation.
25899
25900 2010-02-20  Bruno Haible  <bruno@clisp.org>
25901
25902         * lib/stdio.in.h: Tweak comments.
25903
25904 2010-02-19  Bruno Haible  <bruno@clisp.org>
25905
25906         Make it easier to find modules. New gnulib-tool option '--find'.
25907         * gnulib-tool: New option --find.
25908         (func_usage): Document it.
25909         (func_sanitize_modulelist): New function, extracted from
25910         func_all_modules.
25911         (func_all_modules): Invoke it.
25912         * doc/gnulib-tool.texi (Which modules?): New node.
25913
25914 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
25915
25916         * lib/sys_select.in.h: Provide select replacement even if
25917         sys/select.h exists on a system, for Interix.
25918
25919 2010-02-18  Jim Meyering  <meyering@redhat.com>
25920
25921         init.sh: don't use $(...) just yet
25922         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
25923         to accommodate e.g., Solaris' /bin/sh.
25924
25925 2010-02-17  Bruno Haible  <bruno@clisp.org>
25926
25927         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
25928         Reported by Ludovic Courtès <ludo@gnu.org>.
25929
25930 2010-02-16  Simon Josefsson  <simon@josefsson.org>
25931
25932         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
25933         linking with -lintl.
25934
25935 2010-02-17  Simon Josefsson  <simon@josefsson.org>
25936
25937         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
25938         if not provided by the system's netdb.h.  Reported by
25939         ludo@gnu.org (Ludovic Courtès).
25940
25941 2010-02-15  Jim Meyering  <meyering@redhat.com>
25942
25943         init.sh: improve portability and efficiency
25944         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
25945         "dummy" in a for loop.
25946         Use '!', not '^' to select the complement of a character set used
25947         in a "case" statement.
25948         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
25949         Suggestions from Eric Blake.
25950
25951         init.sh: automatically accommodate programs with the .exe suffix
25952         Automatically arrange for an invocation of "prog" to execute the
25953         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
25954         may use the simpler "prog", yet still work when built on a system
25955         that requires specifying the added suffix.
25956         Do this by constructing a function named "prog" that invokes
25957         "prog.exe" for each .exe file in selected directories.
25958         * tests/init.sh (find_exe_basenames_): New function.
25959         (create_exe_shim_functions_): New function.
25960         (path_prepend_): Use it.
25961
25962         maint.mk: mark syntax-check sc_*.m rules as .PHONY
25963         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
25964         "make -t syntax-check" doesn't create a ton of sc_*.m files.
25965
25966 2010-02-14  Jim Meyering  <meyering@redhat.com>
25967
25968         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
25969         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
25970         (sc_prohibit_hash_pjw_without_use): New rule.
25971
25972         maint.mk: allow the default upload destination dir to be overridden
25973         * top/maint.mk (upload_dest_dir_): Define with a default that
25974         preserves the status quo.
25975         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
25976         Reported by Peter Simons.
25977
25978         maint.mk: prohibit inclusion of "hash.h" without_use
25979         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
25980
25981 2010-02-10  Jim Meyering  <meyering@redhat.com>
25982
25983         maint.mk: prohibit inclusion of "ignore-value.h" without_use
25984         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
25985
25986 2010-02-09  Eric Blake  <ebb9@byu.net>
25987         and Bruno Haible  <bruno@clisp.org>
25988
25989         obstack-printf-posix: ensure declaration
25990         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
25991         extracted from gl_FUNC_OBSTACK_PRINTF.
25992         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
25993         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25994         Likewise.
25995         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
25996         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
25997         0.
25998
25999 2010-02-08  Bruno Haible  <bruno@clisp.org>
26000
26001         gnulib-tool: Fix typo in 2010-02-07 commit.
26002         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26003         Reported by Eric Blake.
26004
26005 2010-02-07  Bruno Haible  <bruno@clisp.org>
26006
26007         gnulib-tool: Fix up caching patches.
26008         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26009         option --no-cache. Use associative arrays when supported by the shell.
26010         (sed_comments): New variable.
26011         (modcache): Renamed from do_cache.
26012         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26013         abbreviate unnecessarily.
26014         (have_associative): New variable.
26015         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26016         way also for ksh and zsh.
26017         (func_init_sed_convert_to_cache_statements): New function, extracted
26018         from func_cache_lookup_module. Add support for associative arrays.
26019         Don't set the c_MODULE_cached variable here. Ignore all lines before
26020         the first field header. Remove only the final newline, not all trailing
26021         newlines. Support empty fields correctly. Limit the use of 'eval' to
26022         assignments.
26023         (func_get_description, func_get_status, func_get_notice,
26024         func_get_applicability, func_get_filelist, func_get_dependencies,
26025         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26026         func_get_automake_snippet, func_get_include_directive,
26027         func_get_link_directive, func_get_license, func_get_maintainer):
26028         Update documentation. List the unoptimized code first. Add support for
26029         associative arrays. Limit the use of 'eval' to assignments.
26030         (func_get_applicability): Undo stylistic pessimisations.
26031         (func_get_automake_snippet, func_get_include_directive): Reduce code
26032         duplication.
26033         (func_modules_transitive_closure, func_modules_add_dummy,
26034         func_modules_notice, func_modules_to_filelist, func_add_file,
26035         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26036         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26037         func_create_testdir, func_create_megatestdir): Update documentation.
26038
26039 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26040
26041         * gnulib-tool (func_cache_lookup_module): Store the module name
26042         belonging to the cache variable; error out if two different
26043         module names map to the same cache variable name.
26044
26045 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26046
26047         gnulib-tool: Make caching optional.
26048         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26049         Update matching short versions of --no-changelog.
26050         (func_usage): Update.
26051         (sed_extract_cache_prog): Renamed from ...
26052         (sed_extract_prog): ... this; revert to old extraction script.
26053         (func_get_description, func_get_status)
26054         (func_get_notice, func_get_applicability, func_get_filelist)
26055         (func_get_dependencies, func_get_autoconf_early_snippet)
26056         (func_get_autoconf_snippet, func_get_automake_snippet)
26057         (func_get_include_directive, func_get_link_directive)
26058         (func_get_license, func_get_maintainer): If $do_cache is false,
26059         use old, non-caching extraction scripts.
26060         Suggestion by Bruno Haible.
26061
26062 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26063
26064         gnulib-tool: cache module metainformation.
26065         * gnulib-tool (sed_extract_prog): Match newline before each
26066         header, and rewrite header to a shell variable suffix.
26067         (func_cache_var, func_cache_lookup_module): New functions,
26068         to turn a module name into a cache variable prefix, and to
26069         look up and cache module metainformation.
26070         (func_get_description, func_get_status)
26071         (func_get_notice, func_get_applicability, func_get_filelist)
26072         (func_get_dependencies, func_get_autoconf_early_snippet)
26073         (func_get_autoconf_snippet, func_get_automake_snippet)
26074         (func_get_include_directive, func_get_link_directive)
26075         (func_get_license, func_get_maintainer): Use
26076         func_cache_lookup_module.
26077
26078 2010-02-07  Bruno Haible  <bruno@clisp.org>
26079
26080         fnctl: Fix missing dependency.
26081         * modules/fcntl (Depends-on): Add getdtablesize.
26082         Reported by John W. Eaton <jwe@gnu.org>.
26083
26084 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26085
26086         Argp: fix recognition of short alias options.
26087
26088         * lib/argp-parse.c (convert_options): Fix improper use of
26089         `|' between character values.
26090         * tests/test-argp.c (group1_option): New alias option
26091         --read (-r).
26092         (group1_parser): Special handling for 'r'.
26093         (test15): New test case.
26094         (test_fun): Add test15.
26095         * tests/test-argp-2.sh: Update expected --help and --usage
26096         outputs.
26097
26098 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26099
26100         * tests/test-argp.c: Fix indentation.
26101
26102 2010-02-04  Eric Blake  <ebb9@byu.net>
26103
26104         gettimeofday: expose type of second argument
26105         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26106         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26107         * tests/test-gettimeofday.c: Use it to silence warning.
26108         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26109         the issue.
26110
26111 2010-02-03  Jim Meyering  <meyering@redhat.com>
26112
26113         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26114         * lib/regcomp.c (TYPE_SIGNED): Define.
26115         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26116
26117         regcomp.c: avoid a new -Wshadow warning
26118         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26119
26120 2010-02-01  Jim Meyering  <meyering@redhat.com>
26121
26122         removing useless parentheses in cpp #define directives
26123         For motivation, see commit c0221df4, "define STREQ(a,b)
26124         consistently, removing useless parentheses"
26125         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
26126         * lib/mountlist.c (MNT_IGNORE): Likewise.
26127         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
26128
26129 2010-02-01  Eric Blake  <ebb9@byu.net>
26130
26131         sys_time: use link-warning
26132         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
26133         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
26134         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
26135         * modules/sys_time (Depends-on): Add warn-on-use.
26136         (Makefile.am): Always build replacement.
26137         (configure.ac): Update substitutions.
26138         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
26139         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
26140         bother with SYS_TIME_H.
26141         * modules/gettimeofday (configure.ac): Declare indicator.
26142         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
26143         in use.
26144
26145         closein-tests: silence compiler warning
26146         * tests/test-closein.c (main): Ignore fread result.
26147         * modules/closein-tests (Depends-on): Add ignore-value.
26148
26149         tests: silence warning about system return
26150         * tests/test-areadlink-with-size.c (main): Ignore system result.
26151         * tests/test-areadlink.c (main): Likewise.
26152         * tests/test-areadlinkat-with-size.c (main): Likewise.
26153         * tests/test-areadlinkat.c (main): Likewise.
26154         * tests/test-canonicalize-lgpl.c (main): Likewise.
26155         * tests/test-canonicalize.c (main): Likewise.
26156         * tests/test-chown.c (main): Likewise.
26157         * tests/test-fchownat.c (main): Likewise.
26158         * tests/test-fdutimensat.c (main): Likewise.
26159         * tests/test-fstatat.c (main): Likewise.
26160         * tests/test-futimens.c (main): Likewise.
26161         * tests/test-lchown.c (main): Likewise.
26162         * tests/test-link.c (main): Likewise.
26163         * tests/test-linkat.c (main): Likewise.
26164         * tests/test-lstat.c (main): Likewise.
26165         * tests/test-mkdir.c (main): Likewise.
26166         * tests/test-mkdirat.c (main): Likewise.
26167         * tests/test-mkfifo.c (main): Likewise.
26168         * tests/test-mkfifoat.c (main): Likewise.
26169         * tests/test-mknod.c (main): Likewise.
26170         * tests/test-readlink.c (main): Likewise.
26171         * tests/test-remove.c (main): Likewise.
26172         * tests/test-rename.c (main): Likewise.
26173         * tests/test-renameat.c (main): Likewise.
26174         * tests/test-rmdir.c (main): Likewise.
26175         * tests/test-symlink.c (main): Likewise.
26176         * tests/test-symlinkat.c (main): Likewise.
26177         * tests/test-unlink.c (main): Likewise.
26178         * tests/test-unlinkat.c (main): Likewise.
26179         * tests/test-utimens.c (main): Likewise.
26180         * tests/test-utimensat.c (main): Likewise.
26181         * modules/areadlink-tests (Depends-on): Add ignore-value.
26182         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26183         * modules/areadlinkat-tests (Depends-on): Likewise.
26184         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26185         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26186         * modules/canonicalize-tests (Depends-on): Likewise.
26187         * modules/chown-tests (Depends-on): Likewise.
26188         * modules/fdutimensat-tests (Depends-on): Likewise.
26189         * modules/futimens-tests (Depends-on): Likewise.
26190         * modules/lchown-tests (Depends-on): Likewise.
26191         * modules/link-tests (Depends-on): Likewise.
26192         * modules/linkat-tests (Depends-on): Likewise.
26193         * modules/lstat-tests (Depends-on): Likewise.
26194         * modules/mkdir-tests (Depends-on): Likewise.
26195         * modules/mkfifo-tests (Depends-on): Likewise.
26196         * modules/mkfifoat-tests (Depends-on): Likewise.
26197         * modules/mknod-tests (Depends-on): Likewise.
26198         * modules/openat-tests (Depends-on): Likewise.
26199         * modules/readlink-tests (Depends-on): Likewise.
26200         * modules/remove-tests (Depends-on): Likewise.
26201         * modules/rename-tests (Depends-on): Likewise.
26202         * modules/renameat-tests (Depends-on): Likewise.
26203         * modules/rmdir-tests (Depends-on): Likewise.
26204         * modules/symlink-tests (Depends-on): Likewise.
26205         * modules/symlinkat-tests (Depends-on): Likewise.
26206         * modules/unlink-tests (Depends-on): Likewise.
26207         * modules/utimens-tests (Depends-on): Likewise.
26208         * modules/utimensat-tests (Depends-on): Likewise.
26209
26210 2010-01-31  Bruno Haible  <bruno@clisp.org>
26211
26212         Perform the same test for many <math.h> functions.
26213         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
26214         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
26215         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
26216         of gl_MATHFUNC.
26217         * modules/acos (configure.ac): Likewise.
26218         * modules/asin (configure.ac): Likewise.
26219         * modules/atan (configure.ac): Likewise.
26220         * modules/atan2 (configure.ac): Likewise.
26221         * modules/cbrt (configure.ac): Likewise.
26222         * modules/copysign (configure.ac): Likewise.
26223         * modules/cos (configure.ac): Likewise.
26224         * modules/cosh (configure.ac): Likewise.
26225         * modules/erf (configure.ac): Likewise.
26226         * modules/erfc (configure.ac): Likewise.
26227         * modules/exp (configure.ac): Likewise.
26228         * modules/fmod (configure.ac): Likewise.
26229         * modules/hypot (configure.ac): Likewise.
26230         * modules/j0 (configure.ac): Likewise.
26231         * modules/j1 (configure.ac): Likewise.
26232         * modules/jn (configure.ac): Likewise.
26233         * modules/lgamma (configure.ac): Likewise.
26234         * modules/log (configure.ac): Likewise.
26235         * modules/log10 (configure.ac): Likewise.
26236         * modules/log1p (configure.ac): Likewise.
26237         * modules/pow (configure.ac): Likewise.
26238         * modules/remainder (configure.ac): Likewise.
26239         * modules/sin (configure.ac): Likewise.
26240         * modules/sinh (configure.ac): Likewise.
26241         * modules/tan (configure.ac): Likewise.
26242         * modules/tanh (configure.ac): Likewise.
26243         * modules/y0 (configure.ac): Likewise.
26244         * modules/y1 (configure.ac): Likewise.
26245         * modules/yn (configure.ac): Likewise.
26246         Suggested by Paolo Bonzini.
26247
26248 2010-01-31  Bruno Haible  <bruno@clisp.org>
26249
26250         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
26251
26252 2010-01-31  Bruno Haible  <bruno@clisp.org>
26253
26254         Work around getdelim() bug on FreeBSD 8.0.
26255         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
26256         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
26257         not work.
26258         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
26259         is 1.
26260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
26261         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
26262         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
26263         a non-zero size.
26264         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
26265
26266 2010-01-31  Bruno Haible  <bruno@clisp.org>
26267
26268         Work around getline() bug on FreeBSD 8.0.
26269         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
26270         and a non-zero size.
26271         * tests/test-getline.c (main): Likewise.
26272         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
26273         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
26274
26275 2010-01-28  Eric Blake  <ebb9@byu.net>
26276
26277         regex: fix build failure
26278         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
26279         platforms.
26280
26281 2010-01-28  Jim Meyering  <meyering@redhat.com>
26282
26283         regex: do not ignore memory allocation failure
26284         * lib/regex_internal.c (create_cd_newstate): Detect
26285         re_node_set_init_copy failure.   Extracted from glibc commit
26286         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26287
26288         regex: sync more white-space changes from libc
26289         * lib/regex_internal.c: White-space only changes.
26290         * lib/regexec.c: Likewise.
26291
26292         regex: add many uses of __attribute_warn_unused_result__
26293         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
26294         * lib/regexec.c: Likewise.
26295         Extracted from a messy glibc commit.
26296
26297         regcomp.c: spelling and merge-artifact from glibc
26298         * lib/regcomp.c: Merge remainder of glibc's
26299         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26300
26301         regcomp.c: sync white-space changes from glibc
26302         * lib/regcomp.c: Merge to accommodate white space
26303         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26304
26305         regcomp.c: do not ignore internal return values
26306         * lib/regcomp.c: Do not ignore internal return values.
26307         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
26308         but without its white-space changes and spelling fixes.
26309
26310         regex_internal.h: define __attribute_warn_unused_result__
26311         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
26312
26313         maint: add a syntax-check rule to check for vulnerable Makefile.in
26314         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
26315
26316 2010-01-27  Jim Meyering  <meyering@redhat.com>
26317
26318         ncftpput-ftp: clean up spaces
26319         * build-aux/ncftpput-ftp: Make Copyright line consistent.
26320         Remove trailing blanks.
26321
26322 2010-01-27  Simon Josefsson  <simon@josefsson.org>
26323
26324         * build-aux/git-version-gen: Fix copyright statement.
26325         * build-aux/gnupload: Likewise.
26326         * tests/test-arcfour.c: Likewise.
26327         * tests/test-arctwo.c: Likewise.
26328         * tests/test-count-one-bits.c: Likewise.
26329         * tests/test-crc.c: Likewise.
26330         * tests/test-des.c: Likewise.
26331         * tests/test-gc-arcfour.c: Likewise.
26332         * tests/test-gc-arctwo.c: Likewise.
26333         * tests/test-gc-des.c: Likewise.
26334         * tests/test-gc-hmac-md5.c: Likewise.
26335         * tests/test-gc-hmac-sha1.c: Likewise.
26336         * tests/test-gc-md2.c: Likewise.
26337         * tests/test-gc-md4.c: Likewise.
26338         * tests/test-gc-md5.c: Likewise.
26339         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26340         * tests/test-gc-rijndael.c: Likewise.
26341         * tests/test-gc-sha1.c: Likewise.
26342         * tests/test-gc.c: Likewise.
26343         * tests/test-gethostname.c: Likewise.
26344         * tests/test-gettimeofday.c: Likewise.
26345         * tests/test-hash.c: Likewise.
26346         * tests/test-hmac-md5.c: Likewise.
26347         * tests/test-hmac-sha1.c: Likewise.
26348         * tests/test-md2.c: Likewise.
26349         * tests/test-md4.c: Likewise.
26350         * tests/test-md5.c: Likewise.
26351         * tests/test-memchr.c: Likewise.
26352         * tests/test-memchr2.c: Likewise.
26353         * tests/test-memcmp.c: Likewise.
26354         * tests/test-memmem.c: Likewise.
26355         * tests/test-memrchr.c: Likewise.
26356         * tests/test-rawmemchr.c: Likewise.
26357         * tests/test-read-file.c: Likewise.
26358         * tests/test-rijndael.c: Likewise.
26359         * tests/test-sockets.c: Likewise.
26360         * tests/test-strchrnul.c: Likewise.
26361         * tests/test-strstr.c: Likewise.
26362         * tests/test-strtod.c: Likewise.
26363         * build-aux/ncftpput-ftp: Likewise.
26364
26365 2010-01-26  Eric Blake  <ebb9@byu.net>
26366
26367         ignore-value: update recommended header name
26368         * modules/ignore-value (Include): Only use <> for headers that
26369         exist in glibc.
26370
26371 2010-01-26  Jim Meyering  <meyering@redhat.com>
26372
26373         test-userspec.c: avoid compiler warnings
26374         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
26375         and "initialization discards qualifiers..." warnings.
26376         Put the first "uid" in its own scope, and make char* members "const".
26377
26378 2010-01-25  Bruno Haible  <bruno@clisp.org>
26379
26380         gnulib-tool: Make warning diagnostics consistent.
26381         * gnulib-tool (func_warning): New function.
26382         Use it everywhere where gnulib-tool produces output to stderr and it is
26383         not a fatal error.
26384
26385 2010-01-25  Bruno Haible  <bruno@clisp.org>
26386
26387         Fix test dependencies.
26388         * modules/xstrtol-tests (Depends-on): Add inttypes.
26389         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
26390
26391 2010-01-25 Pádraig Brady <P@draigBrady.com>
26392
26393         syntax-check: detect incorrect boolean macro values in config.h
26394         * modules/maintainer-makefile (configure.ac): Parameterize the location
26395         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
26396         The logic is from Eric Blake and the location indicated by Jim Meyering.
26397         Note the more natural CONFIG_HEADER name is prohibited by automake
26398         for backwards compatibility reasons.
26399         * top/maint.mk (sc_Wundef_boolean): New rule.
26400
26401 2010-01-25  Jim Meyering  <meyering@redhat.com>
26402
26403         bootstrap: detect MacOS 10.6's shasum, too
26404         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
26405         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
26406
26407 2010-01-23  Jim Meyering  <meyering@redhat.com>
26408
26409         xstrtoll: new module
26410         * modules/xstrtoll: New file.
26411         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
26412         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
26413         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
26414         ./configure fails if you use this module and lack "long long".
26415         * modules/xstrtoll-tests: New module.
26416         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
26417         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
26418         new init.sh-based test framework.
26419
26420 2010-01-24  Bruno Haible  <bruno@clisp.org>
26421
26422         Tests for module 'yn'.
26423         * modules/yn-tests: New file.
26424         * tests/test-yn.c: New file.
26425
26426         Tests for module 'y1'.
26427         * modules/y1-tests: New file.
26428         * tests/test-y1.c: New file.
26429
26430         Tests for module 'y0'.
26431         * modules/y0-tests: New file.
26432         * tests/test-y0.c: New file.
26433
26434         Tests for module 'tanh'.
26435         * modules/tanh-tests: New file.
26436         * tests/test-tanh.c: New file.
26437
26438         Tests for module 'tan'.
26439         * modules/tan-tests: New file.
26440         * tests/test-tan.c: New file.
26441
26442         Tests for module 'sqrt'.
26443         * modules/sqrt-tests: New file.
26444         * tests/test-sqrt.c: New file.
26445
26446         Tests for module 'sinh'.
26447         * modules/sinh-tests: New file.
26448         * tests/test-sinh.c: New file.
26449
26450         Tests for module 'sin'.
26451         * modules/sin-tests: New file.
26452         * tests/test-sin.c: New file.
26453
26454         Tests for module 'rint'.
26455         * modules/rint-tests: New file.
26456         * tests/test-rint.c: New file.
26457
26458         Tests for module 'remainder'.
26459         * modules/remainder-tests: New file.
26460         * tests/test-remainder.c: New file.
26461
26462         Tests for module 'pow'.
26463         * modules/pow-tests: New file.
26464         * tests/test-pow.c: New file.
26465
26466         Tests for module 'nextafter'.
26467         * modules/nextafter-tests: New file.
26468         * tests/test-nextafter.c: New file.
26469
26470         Tests for module 'modf'.
26471         * modules/modf-tests: New file.
26472         * tests/test-modf.c: New file.
26473
26474         Tests for module 'logb'.
26475         * modules/logb-tests: New file.
26476         * tests/test-logb.c: New file.
26477
26478         Tests for module 'log1p'.
26479         * modules/log1p-tests: New file.
26480         * tests/test-log1p.c: New file.
26481
26482         Tests for module 'log10'.
26483         * modules/log10-tests: New file.
26484         * tests/test-log10.c: New file.
26485
26486         Tests for module 'log'.
26487         * modules/log-tests: New file.
26488         * tests/test-log.c: New file.
26489
26490         Tests for module 'lgamma'.
26491         * modules/lgamma-tests: New file.
26492         * tests/test-lgamma.c: New file.
26493
26494         Tests for module 'ldexp'.
26495         * modules/ldexp-tests: New file.
26496         * tests/test-ldexp.c: New file.
26497
26498         Tests for module 'jn'.
26499         * modules/jn-tests: New file.
26500         * tests/test-jn.c: New file.
26501
26502         Tests for module 'j1'.
26503         * modules/j1-tests: New file.
26504         * tests/test-j1.c: New file.
26505
26506         Tests for module 'j0'.
26507         * modules/j0-tests: New file.
26508         * tests/test-j0.c: New file.
26509
26510         Tests for module 'hypot'.
26511         * modules/hypot-tests: New file.
26512         * tests/test-hypot.c: New file.
26513
26514         Tests for module 'fmod'.
26515         * modules/fmod-tests: New file.
26516         * tests/test-fmod.c: New file.
26517
26518         Tests for module 'fabs'.
26519         * modules/fabs-tests: New file.
26520         * tests/test-fabs.c: New file.
26521
26522         Tests for module 'exp'.
26523         * modules/exp-tests: New file.
26524         * tests/test-exp.c: New file.
26525
26526         Tests for module 'erfc'.
26527         * modules/erfc-tests: New file.
26528         * tests/test-erfc.c: New file.
26529
26530         Tests for module 'erf'.
26531         * modules/erf-tests: New file.
26532         * tests/test-erf.c: New file.
26533
26534         Tests for module 'cosh'.
26535         * modules/cosh-tests: New file.
26536         * tests/test-cosh.c: New file.
26537
26538         Tests for module 'cos'.
26539         * modules/cos-tests: New file.
26540         * tests/test-cos.c: New file.
26541
26542         Tests for module 'copysign'.
26543         * modules/copysign-tests: New file.
26544         * tests/test-copysign.c: New file.
26545
26546         Tests for module 'cbrt'.
26547         * modules/cbrt-tests: New file.
26548         * tests/test-cbrt.c: New file.
26549
26550         Tests for module 'atan2'.
26551         * modules/atan2-tests: New file.
26552         * tests/test-atan2.c: New file.
26553
26554         Tests for module 'atan'.
26555         * modules/atan-tests: New file.
26556         * tests/test-atan.c: New file.
26557
26558         Tests for module 'asin'.
26559         * modules/asin-tests: New file.
26560         * tests/test-asin.c: New file.
26561
26562         Tests for module 'acos'.
26563         * modules/acos-tests: New file.
26564         * tests/test-acos.c: New file.
26565
26566 2010-01-24  Bruno Haible  <bruno@clisp.org>
26567
26568         Fix tests for common <math.h> functions.
26569         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
26570         code snippet that references the function pointer, rather than merely
26571         calling the function. Substitute the FUNC_LIBM variable.
26572         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
26573         * modules/acos (configure.ac): Likewise.
26574         * modules/asin (configure.ac): Likewise.
26575         * modules/atan (configure.ac): Likewise.
26576         * modules/atan2 (configure.ac): Likewise.
26577         * modules/cbrt (configure.ac): Likewise.
26578         * modules/copysign (configure.ac): Likewise.
26579         * modules/cos (configure.ac): Likewise.
26580         * modules/cosh (configure.ac): Likewise.
26581         * modules/erf (configure.ac): Likewise.
26582         * modules/erfc (configure.ac): Likewise.
26583         * modules/exp (configure.ac): Likewise.
26584         * modules/fabs (configure.ac): Likewise.
26585         * modules/fmod (configure.ac): Likewise.
26586         * modules/hypot (configure.ac): Likewise.
26587         * modules/j0 (configure.ac): Likewise.
26588         * modules/j1 (configure.ac): Likewise.
26589         * modules/jn (configure.ac): Likewise.
26590         * modules/ldexp (configure.ac): Likewise.
26591         * modules/lgamma (configure.ac): Likewise.
26592         * modules/log (configure.ac): Likewise.
26593         * modules/log10 (configure.ac): Likewise.
26594         * modules/log1p (configure.ac): Likewise.
26595         * modules/logb (configure.ac): Likewise.
26596         * modules/modf (configure.ac): Likewise.
26597         * modules/nextafter (configure.ac): Likewise.
26598         * modules/pow (configure.ac): Likewise.
26599         * modules/remainder (configure.ac): Likewise.
26600         * modules/rint (configure.ac): Likewise.
26601         * modules/sin (configure.ac): Likewise.
26602         * modules/sinh (configure.ac): Likewise.
26603         * modules/tan (configure.ac): Likewise.
26604         * modules/tanh (configure.ac): Likewise.
26605         * modules/y0 (configure.ac): Likewise.
26606         * modules/y1 (configure.ac): Likewise.
26607         * modules/yn (configure.ac): Likewise.
26608
26609 2010-01-24  Bruno Haible  <bruno@clisp.org>
26610
26611         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
26612         * tests/test-acosl.c (x): New variable.
26613         (main): Store argument in x and fetch it from x.
26614         * tests/test-asinl.c (x): New variable.
26615         (main): Store argument in x and fetch it from x.
26616         * tests/test-atanl.c (x): New variable.
26617         (main): Store argument in x and fetch it from x.
26618         * tests/test-cosl.c (x): New variable.
26619         (main): Store argument in x and fetch it from x.
26620         * tests/test-expl.c (x): New variable.
26621         (main): Store argument in x and fetch it from x.
26622         * tests/test-logl.c (x): New variable.
26623         (main): Store argument in x and fetch it from x.
26624         * tests/test-sinl.c (x): New variable.
26625         (main): Store argument in x and fetch it from x.
26626         * tests/test-sqrtl.c (x): New variable.
26627         (main): Store argument in x and fetch it from x.
26628         * tests/test-tanl.c (x): New variable.
26629         (main): Store argument in x and fetch it from x.
26630
26631 2010-01-24  Bruno Haible  <bruno@clisp.org>
26632
26633         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
26634         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
26635         assignments to the initial TESTS_ENVIRONMENT.
26636         * doc/gnulib.texi (Unit test modules): Document it.
26637         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
26638         TESTS_ENVIRONMENT.
26639         * modules/btowc-tests (Makefile.am): Likewise.
26640         * modules/c-stack-tests (Makefile.am): Likewise.
26641         * modules/c-strcase-tests (Makefile.am): Likewise.
26642         * modules/copy-file-tests (Makefile.am): Likewise.
26643         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
26644         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
26645         * modules/mbrtowc-tests (Makefile.am): Likewise.
26646         * modules/mbscasecmp-tests (Makefile.am): Likewise.
26647         * modules/mbscasestr-tests (Makefile.am): Likewise.
26648         * modules/mbschr-tests (Makefile.am): Likewise.
26649         * modules/mbscspn-tests (Makefile.am): Likewise.
26650         * modules/mbsinit-tests (Makefile.am): Likewise.
26651         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
26652         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
26653         * modules/mbspbrk-tests (Makefile.am): Likewise.
26654         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
26655         * modules/mbsrchr-tests (Makefile.am): Likewise.
26656         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
26657         * modules/mbsspn-tests (Makefile.am): Likewise.
26658         * modules/mbsstr-tests (Makefile.am): Likewise.
26659         * modules/nl_langinfo-tests (Makefile.am): Likewise.
26660         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
26661         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
26662         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
26663         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
26664         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
26665         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
26666         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
26667         * modules/wcrtomb-tests (Makefile.am): Likewise.
26668         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
26669         * modules/wcsrtombs-tests (Makefile.am): Likewise.
26670         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
26671         assignments from TESTS_ENVIRONMENT.
26672         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
26673         augmentation.
26674         * modules/argp-version-etc-tests (Makefile.am): Likewise.
26675         * modules/atexit-tests (Makefile.am): Likewise.
26676         * modules/binary-io-tests (Makefile.am): Likewise.
26677         * modules/closein-tests (Makefile.am): Likewise.
26678         * modules/dprintf-posix-tests (Makefile.am): Likewise.
26679         * modules/exclude-tests (Makefile.am): Likewise.
26680         * modules/fflush-tests (Makefile.am): Likewise.
26681         * modules/fpending-tests (Makefile.am): Likewise.
26682         * modules/fprintf-posix-tests (Makefile.am): Likewise.
26683         * modules/freadahead-tests (Makefile.am): Likewise.
26684         * modules/freadptr-tests (Makefile.am): Likewise.
26685         * modules/freadseek-tests (Makefile.am): Likewise.
26686         * modules/fseek-tests (Makefile.am): Likewise.
26687         * modules/fseeko-tests (Makefile.am): Likewise.
26688         * modules/ftell-tests (Makefile.am): Likewise.
26689         * modules/ftello-tests (Makefile.am): Likewise.
26690         * modules/idpriv-drop-tests (Makefile.am): Likewise.
26691         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
26692         * modules/lseek-tests (Makefile.am): Likewise.
26693         * modules/parse-duration-tests (Makefile.am): Likewise.
26694         * modules/perror-tests (Makefile.am): Likewise.
26695         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
26696         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
26697         * modules/pipe-tests (Makefile.am): Likewise.
26698         * modules/pread-tests (Makefile.am): Likewise.
26699         * modules/printf-posix-tests (Makefile.am): Likewise.
26700         * modules/select-tests (Makefile.am): Likewise.
26701         * modules/sigpipe-tests (Makefile.am): Likewise.
26702         * modules/tsearch-tests (Makefile.am): Likewise.
26703         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
26704         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
26705         * modules/uniname/uniname-tests (Makefile.am): Likewise.
26706         * modules/uniwidth/width-tests (Makefile.am): Likewise.
26707         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
26708         * modules/version-etc-tests (Makefile.am): Likewise.
26709         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
26710         * modules/vprintf-posix-tests (Makefile.am): Likewise.
26711         * modules/xalloc-die-tests (Makefile.am): Likewise.
26712         * modules/xprintf-posix-tests (Makefile.am): Likewise.
26713         * modules/xstrtoimax-tests (Makefile.am): Likewise.
26714         * modules/xstrtol-tests (Makefile.am): Likewise.
26715         * modules/xstrtoumax-tests (Makefile.am): Likewise.
26716         * modules/yesno-tests (Makefile.am): Likewise.
26717         Suggested by Jim Meyering.
26718
26719 2010-01-24  Bruno Haible  <bruno@clisp.org>
26720
26721         More documentation.
26722         * doc/gnulib.texi (Writing modules): New chapter.
26723         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
26724         the new chapter.
26725
26726 2010-01-24  Jim Meyering  <meyering@redhat.com>
26727
26728         maint.mk: do not prepend "./" after filtering
26729         * top/maint.mk (_prepend_srcdir_prefix): New variable
26730         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
26731         "./" when $(srcdir) is ".".
26732
26733         define STREQ(a,b) consistently, removing useless parentheses
26734         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
26735         since the only risk is that "a" or "b" contains an unparenthesized
26736         comma, but if either did that, STREQ would have 3 or more arguments.
26737         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
26738         * lib/fts.c (STREQ): Remove unnecessary parentheses.
26739         * lib/hash-triple.c (STREQ): Likewise.
26740         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
26741         * lib/getugroups.c (STREQ): Likewise.
26742
26743 2010-01-23  Jim Meyering  <meyering@redhat.com>
26744
26745         maint.mk: fix syntax-check in a non-srcdir build directory
26746         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
26747         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
26748
26749 2010-01-22  Jim Meyering  <meyering@redhat.com>
26750
26751         userspec: add unit tests
26752         * tests/test-userspec.c: New file.
26753         * modules/userspec-tests: Likewise.
26754
26755 2010-01-21  Jim Meyering  <meyering@redhat.com>
26756
26757         maint.mk: handle source file names containing "." robustly
26758         * top/maint.mk (_dot_escaped_srcdir): Define.
26759         (VC_LIST): Use it in LHS of sed substitution.
26760
26761 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
26762
26763         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
26764         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
26765         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
26766         from a non-srcdir build.
26767
26768 2010-01-20  Eric Blake  <ebb9@byu.net>
26769
26770         warn-on-use: use instead of link-warning
26771         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
26772         * modules/unistd (Depends-on, Makefile.am): Likewise.
26773         * modules/arpa_inet (Depends-on): Replace link-warning with
26774         warn-on-use.
26775         (Makefile.am): Update rules accordingly.
26776         * modules/ctype (Depends-on, Makefile.am): Likewise.
26777         * modules/dirent (Depends-on, Makefile.am): Likewise.
26778         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
26779         * modules/inttypes (Depends-on, Makefile.am): Likewise.
26780         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26781         * modules/locale (Depends-on, Makefile.am): Likewise.
26782         * modules/math (Depends-on, Makefile.am): Likewise.
26783         * modules/search (Depends-on, Makefile.am): Likewise.
26784         * modules/signal (Depends-on, Makefile.am): Likewise.
26785         * modules/spawn (Depends-on, Makefile.am): Likewise.
26786         * modules/stdlib (Depends-on, Makefile.am): Likewise.
26787         * modules/string (Depends-on, Makefile.am): Likewise.
26788         * modules/strings (Depends-on, Makefile.am): Likewise.
26789         * modules/sys_file (Depends-on, Makefile.am): Likewise.
26790         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
26791         * modules/sys_select (Depends-on, Makefile.am): Likewise.
26792         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
26793         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
26794         * modules/sys_times (Depends-on, Makefile.am): Likewise.
26795         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26796         * modules/wchar (Depends-on, Makefile.am): Likewise.
26797         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
26798         should be poisoned.
26799         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
26800         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
26801         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
26802         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26803         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26804         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26805         * m4/math_h.m4 (gl_MATH_H): Likewise.
26806         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26807         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
26808         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26809         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
26810         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
26811         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
26812         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
26813         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
26814         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26815         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26816         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26817         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
26818         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26819         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26820         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26821         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26822         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
26823         GL_LINK_WARNING.
26824         * lib/ctype.in.h: Likewise.
26825         * lib/dirent.in.h: Likewise.
26826         * lib/fcntl.in.h: Likewise.
26827         * lib/inttypes.in.h: Likewise.
26828         * lib/langinfo.in.h: Likewise.
26829         * lib/locale.in.h: Likewise.
26830         * lib/math.in.h: Likewise.
26831         * lib/search.in.h: Likewise.
26832         * lib/signal.in.h: Likewise.
26833         * lib/spawn.in.h: Likewise.
26834         * lib/stdio.in.h: Likewise.
26835         * lib/stdlib.in.h: Likewise.
26836         * lib/string.in.h: Likewise.
26837         * lib/strings.in.h: Likewise.
26838         * lib/sys_file.in.h: Likewise.
26839         * lib/sys_ioctl.in.h: Likewise.
26840         * lib/sys_select.in.h: Likewise.
26841         * lib/sys_socket.in.h: Likewise.
26842         * lib/sys_stat.in.h: Likewise.
26843         * lib/sys_times.in.h: Likewise.
26844         * lib/sys_utsname.in.h: Likewise.
26845         * lib/unistd.in.h: Likewise.
26846         * lib/wchar.in.h: Likewise.
26847
26848 2010-01-20  Bruno Haible  <bruno@clisp.org>
26849
26850         Avoid duplicate -lm.
26851         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
26852         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
26853         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
26854         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
26855         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
26856         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
26857         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
26858         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
26859         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
26860         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
26861         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
26862         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26863         Reported by Paolo Bonzini.
26864
26865 2010-01-19  Bruno Haible  <bruno@clisp.org>
26866
26867         langinfo, nl_langinfo: Relicense under LGPLv2+.
26868         * modules/langinfo (License): Change to LGPLv2+.
26869         * modules/nl_langinfo (License): Likewise.
26870         Patch by David Lutterkort <lutter@redhat.com>.
26871
26872 2010-01-19  Bruno Haible  <bruno@clisp.org>
26873
26874         Avoid compilation error with cc on OSF/1 5.1.
26875         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
26876         statement, not before.
26877         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26878
26879 2010-01-18  Bruno Haible  <bruno@clisp.org>
26880
26881         Avoid a link error due to the __printf__ symbol.
26882         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
26883         and 2.6.x.
26884         (__format__, __printf__): Remove definitions.
26885         * lib/argp-fmtstream.h: Likewise.
26886         * lib/argp.h: Likewise.
26887         * lib/error.h: Likewise.
26888         * lib/vasnprintf.h: Likewise.
26889         * lib/xprintf.h: Likewise.
26890         * lib/xvasprintf.h: Likewise.
26891         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26892
26893 2010-01-18  Bruno Haible  <bruno@clisp.org>
26894
26895         Tests for module 'tanl'.
26896         * modules/tanl-tests: New file.
26897         * tests/test-tanl.c: New file.
26898
26899         Tests for module 'sqrtl'.
26900         * modules/sqrtl-tests: New file.
26901         * tests/test-sqrtl.c: New file.
26902
26903         Tests for module 'sinl'.
26904         * modules/sinl-tests: New file.
26905         * tests/test-sinl.c: New file.
26906
26907         Tests for module 'logl'.
26908         * modules/logl-tests: New file.
26909         * tests/test-logl.c: New file.
26910
26911         Tests for module 'expl'.
26912         * modules/expl-tests: New file.
26913         * tests/test-expl.c: New file.
26914
26915         Tests for module 'cosl'.
26916         * modules/cosl-tests: New file.
26917         * tests/test-cosl.c: New file.
26918
26919         Tests for module 'atanl'.
26920         * modules/atanl-tests: New file.
26921         * tests/test-atanl.c: New file.
26922
26923         Tests for module 'asinl'.
26924         * modules/asinl-tests: New file.
26925         * tests/test-asinl.c: New file.
26926
26927         Tests for module 'acosl'.
26928         * modules/acosl-tests: New file.
26929         * tests/test-acosl.c: New file.
26930
26931         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26932         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
26933         tanl): Use the standard gnulib idiom.
26934         * lib/cosl.c: Don't include trigl.c and sincosl.c.
26935         * lib/sinl.c: Likewise.
26936         * lib/tanl.c: Don't include trigl.c.
26937         (kernel_tanl): Make static.
26938         * lib/sincosl.c: Include trigl.h first.
26939         * lib/trigl.c: Likewise.
26940         * m4/acosl.m4: New file.
26941         * m4/asinl.m4: New file.
26942         * m4/atanl.m4: New file.
26943         * m4/cosl.m4: New file.
26944         * m4/expl.m4: New file.
26945         * m4/logl.m4: New file.
26946         * m4/sinl.m4: New file.
26947         * m4/sqrtl.m4: New file.
26948         * m4/tanl.m4: New file.
26949         * m4/mathl.m4: Remove file.
26950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
26951         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26952         Don't initialize GNULIB_MATHL.
26953         * modules/acosl: New file.
26954         * modules/asinl: New file.
26955         * modules/atanl: New file.
26956         * modules/cosl: New file.
26957         * modules/expl: New file.
26958         * modules/logl: New file.
26959         * modules/sinl: New file.
26960         * modules/sqrtl: New file.
26961         * modules/tanl: New file.
26962         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
26963         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
26964         substitute GNULIB_MATHL.
26965         * modules/mathl: Rewritten.
26966         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
26967         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
26968         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
26969         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
26970         * doc/posix-functions/expl.texi: Mention the 'expl' module.
26971         * doc/posix-functions/logl.texi: Mention the 'logl' module.
26972         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
26973         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
26974         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
26975
26976 2010-01-18  Bruno Haible  <bruno@clisp.org>
26977
26978         sqrt: Make gl_FUNC_SQRT requirable.
26979         * m4/sqrt.m4: New file.
26980         * modules/sqrt (Files): Add it.
26981         (configure.ac): Invoke gl_FUNC_SQRT.
26982
26983 2010-01-18  Bruno Haible  <bruno@clisp.org>
26984
26985         New modules for common <math.h> functions.
26986         * m4/mathfunc.m4: New file.
26987         * modules/acos: New file.
26988         * modules/asin: New file.
26989         * modules/atan: New file.
26990         * modules/atan2: New file.
26991         * modules/cbrt: New file.
26992         * modules/copysign: New file.
26993         * modules/cos: New file.
26994         * modules/cosh: New file.
26995         * modules/erf: New file.
26996         * modules/erfc: New file.
26997         * modules/exp: New file.
26998         * modules/fabs: New file.
26999         * modules/fmod: New file.
27000         * modules/hypot: New file.
27001         * modules/j0: New file.
27002         * modules/j1: New file.
27003         * modules/jn: New file.
27004         * modules/ldexp: New file.
27005         * modules/lgamma: New file.
27006         * modules/log: New file.
27007         * modules/log10: New file.
27008         * modules/log1p: New file.
27009         * modules/logb: New file.
27010         * modules/modf: New file.
27011         * modules/nextafter: New file.
27012         * modules/pow: New file.
27013         * modules/remainder: New file.
27014         * modules/rint: New file.
27015         * modules/sin: New file.
27016         * modules/sinh: New file.
27017         * modules/sqrt: New file.
27018         * modules/tan: New file.
27019         * modules/tanh: New file.
27020         * modules/y0: New file.
27021         * modules/y1: New file.
27022         * modules/yn: New file.
27023         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27024         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27025         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27026         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27027         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27028         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27029         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27030         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27031         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27032         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27033         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27034         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27035         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27036         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27037         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27038         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27039         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27040         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27041         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27042         * doc/posix-functions/log.texi: Mention the 'log' module.
27043         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27044         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27045         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27046         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27047         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27048         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27049         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27050         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27051         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27052         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27053         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27054         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27055         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27056         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27057         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27058         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27059
27060 2010-01-18  Jim Meyering  <meyering@redhat.com>
27061
27062         ignore-value: relax license to LGPLv2+
27063         * modules/ignore-value (License): Relax to LGPLv2+.
27064
27065         getdate: don't leak when TZ contains two or more '"'s
27066         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27067         double quote in TZ after the first one.
27068
27069         readtokens: do not leak internal token_lengths buffer
27070         * lib/readtokens.c (readtokens): Free the local, lengths,
27071         when the supplied "token_lengths" parameter is NULL.
27072
27073 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27074
27075         Fix a couple of missing LIBTHREAD link failures on AIX.
27076         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27077         $(LIBTHREAD).
27078         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27079
27080         Link test-poll against INET_PTON_LIB.
27081         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27082         for inet_pton on Solaris 10.
27083
27084 2010-01-17  Bruno Haible  <bruno@clisp.org>
27085
27086         unistdio/*-sprintf: Fix typo in module description.
27087         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27088         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27089         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27090         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27091         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27092         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27093         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27094         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27095
27096 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27097
27098         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27099         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27100         variables in shell case patterns, for AIX and HP-UX ksh.
27101
27102         Split large sed scripts, for HP-UX sed.
27103         * modules/stdio: Split sed scripts around 50 sed commands,
27104         to avoid HP-UX limit of 99 commands, in the near future.
27105         * modules/string: Likewise.
27106         * modules/unistd: Likewise.
27107
27108         gnulib-tool: avoid writing in the current directory.
27109         * gnulib-tool (func_emit_lib_Makefile_am)
27110         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27111         not in the current directory, so concurrent gnulib-tool
27112         instances do not interfere.
27113
27114 2010-01-16  Jim Meyering  <meyering@redhat.com>
27115
27116         doc: update users.txt
27117         * users.txt: Add grep.
27118         (diffutils, gzip): Update URLs.
27119
27120 2010-01-12  Bruno Haible  <bruno@clisp.org>
27121
27122         posix_spawn: Avoid test failure on Cygwin.
27123         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27124         characters.
27125         Reported by Simon Josefsson.
27126
27127 2010-01-12  Bruno Haible  <bruno@clisp.org>
27128
27129         * tests/test-cond.c (main): When skipping the test, show the reason.
27130
27131 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27132
27133         * lib/striconv.c (str_cd_iconv): Avoid if before free.
27134
27135 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27136
27137         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
27138         VC_LIST_ALWAYS_EXCLUDE_REGEX.
27139
27140 2010-01-12  Eric Blake  <ebb9@byu.net>
27141
27142         build: guarantee AS_VAR_IF
27143         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
27144         (gl_AS_VAR_IF): Move...
27145         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
27146         Reported by Simon Josefsson.
27147
27148 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27149
27150         * lib/stdio.in.h: Fix typo.
27151
27152 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27153
27154         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
27155         libgpg-error.
27156
27157 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27158
27159         * tests/test-xalloc-die.sh: Use $EXEEXT.
27160
27161 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27162             Bruno Haible  <bruno@clisp.org>
27163
27164         getlogin, getlogin_r: Avoid test failure.
27165         * tests/test-getlogin.c: Include <stdio.h>.
27166         (main): Skip the test when the function fails because stdin is not a
27167         tty.
27168         * tests/test-getlogin_r.c: Include <stdio.h>.
27169         (main): Skip the test when the function fails because stdin is not a
27170         tty.
27171
27172 2010-01-11  Eric Blake  <ebb9@byu.net>
27173
27174         tests: avoid more large file warnings
27175         * tests/test-fflush.c: Avoid warning about ftell use.
27176         * tests/test-fseek.c: Avoid warning about fseek use.
27177
27178 2010-01-10  Bruno Haible  <bruno@clisp.org>
27179
27180         nproc: Work better on Linux when /proc and /sys are not mounted.
27181         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27182         as lower bound when, on glibc/Linux systems,
27183         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27184         Suggested by Pádraig Brady <P@draigbrady.com>.
27185         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27186
27187         nproc: Refactor.
27188         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27189         extracted from num_processors.
27190         (num_processors): Call it.
27191
27192 2010-01-11  Jim Meyering  <meyering@redhat.com>
27193
27194         utimecmp: avoid new warning from upcoming gcc-4.5.0
27195         * lib/utimecmp.c (BILLION): Define using #define rather than an
27196         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27197
27198 2010-01-11  Eric Blake  <ebb9@byu.net>
27199
27200         math: add portability warnings for classification macros
27201         * modules/math (Depends-on): Add warn-on-use.
27202         (Makefile.am): Provide new substitutions.
27203         * m4/math_h.m4 (gl_MATH_H): Require inline.
27204         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27205         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
27206         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
27207         implement warnings.
27208
27209         unistd: warn on use of environ without module
27210         * modules/unistd (Depends-on): Add warn-on-use.
27211         (Makefile.am): Provide new substitutions.
27212         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
27213         * lib/unistd.in.h (environ): Wrap with a warning helper function.
27214
27215         stdio: warn on suspicious uses
27216         * modules/stdio (Depends-on): Add warn-on-use.
27217         (Makefile.am): Provide new substitutions.
27218         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
27219         fseeko.
27220         * lib/stdio.in.h (gets): Always warn on use.
27221         (fseek, ftell): Adjust when warnings are issued, and honor
27222         _GL_NO_LARGE_FILES as a way to silence the warning.
27223         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
27224         any warning about large file offsets.
27225         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
27226         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
27227         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
27228         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
27229         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
27230         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
27231         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
27232         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
27233
27234         warn-on-use: new module
27235         * modules/warn-on-use: New file.
27236         * build-aux/warn-on-use.h: Likewise.
27237         * m4/warn-on-use.m4: Likewise.
27238         * MODULES.html.sh (Support for building): Mention it.
27239
27240 2010-01-10  Bruno Haible  <bruno@clisp.org>
27241
27242         Tests for module 'unistr/u32-strdup'.
27243         * modules/unistr/u32-strdup-tests: New file.
27244         * tests/unistr/test-u32-strdup.c: New file.
27245
27246         Tests for module 'unistr/u16-strdup'.
27247         * modules/unistr/u16-strdup-tests: New file.
27248         * tests/unistr/test-u16-strdup.c: New file.
27249
27250         Tests for module 'unistr/u8-strdup'.
27251         * modules/unistr/u8-strdup-tests: New file.
27252         * tests/unistr/test-u8-strdup.c: New file.
27253         * tests/unistr/test-strdup.h: New file.
27254
27255         Tests for module 'unistr/u32-strncmp'.
27256         * modules/unistr/u32-strncmp-tests: New file.
27257         * tests/unistr/test-u32-strncmp.c: New file.
27258
27259         Tests for module 'unistr/u16-strncmp'.
27260         * modules/unistr/u16-strncmp-tests: New file.
27261         * tests/unistr/test-u16-strncmp.c: New file.
27262
27263         Tests for module 'unistr/u8-strncmp'.
27264         * modules/unistr/u8-strncmp-tests: New file.
27265         * tests/unistr/test-u8-strncmp.c: New file.
27266         * tests/unistr/test-strncmp.h: New file.
27267
27268         Tests for module 'unistr/u32-strcoll'.
27269         * modules/unistr/u32-strcoll-tests: New file.
27270         * tests/unistr/test-u32-strcoll.c: New file.
27271
27272         Tests for module 'unistr/u16-strcoll'.
27273         * modules/unistr/u16-strcoll-tests: New file.
27274         * tests/unistr/test-u16-strcoll.c: New file.
27275
27276         Tests for module 'unistr/u8-strcoll'.
27277         * modules/unistr/u8-strcoll-tests: New file.
27278         * tests/unistr/test-u8-strcoll.c: New file.
27279
27280         Tests for module 'unistr/u32-strcmp'.
27281         * modules/unistr/u32-strcmp-tests: New file.
27282         * tests/unistr/test-u32-strcmp.c: New file.
27283         * tests/unistr/test-u32-strcmp.h: New file.
27284
27285         Tests for module 'unistr/u16-strcmp'.
27286         * modules/unistr/u16-strcmp-tests: New file.
27287         * tests/unistr/test-u16-strcmp.c: New file.
27288         * tests/unistr/test-u16-strcmp.h: New file.
27289
27290         Tests for module 'unistr/u8-strcmp'.
27291         * modules/unistr/u8-strcmp-tests: New file.
27292         * tests/unistr/test-u8-strcmp.c: New file.
27293         * tests/unistr/test-u8-strcmp.h: New file.
27294         * tests/unistr/test-strcmp.h: New file.
27295
27296         Tests for module 'unistr/u32-strncat'.
27297         * modules/unistr/u32-strncat-tests: New file.
27298         * tests/unistr/test-u32-strncat.c: New file.
27299
27300         Tests for module 'unistr/u16-strncat'.
27301         * modules/unistr/u16-strncat-tests: New file.
27302         * tests/unistr/test-u16-strncat.c: New file.
27303
27304         Tests for module 'unistr/u8-strncat'.
27305         * modules/unistr/u8-strncat-tests: New file.
27306         * tests/unistr/test-u8-strncat.c: New file.
27307         * tests/unistr/test-strncat.h: New file.
27308
27309         Tests for module 'unistr/u32-strcat'.
27310         * modules/unistr/u32-strcat-tests: New file.
27311         * tests/unistr/test-u32-strcat.c: New file.
27312
27313         Tests for module 'unistr/u16-strcat'.
27314         * modules/unistr/u16-strcat-tests: New file.
27315         * tests/unistr/test-u16-strcat.c: New file.
27316
27317         Tests for module 'unistr/u8-strcat'.
27318         * modules/unistr/u8-strcat-tests: New file.
27319         * tests/unistr/test-u8-strcat.c: New file.
27320         * tests/unistr/test-strcat.h: New file.
27321
27322         Tests for module 'unistr/u32-stpncpy'.
27323         * modules/unistr/u32-stpncpy-tests: New file.
27324         * tests/unistr/test-u32-stpncpy.c: New file.
27325
27326         Tests for module 'unistr/u16-stpncpy'.
27327         * modules/unistr/u16-stpncpy-tests: New file.
27328         * tests/unistr/test-u16-stpncpy.c: New file.
27329
27330         Tests for module 'unistr/u8-stpncpy'.
27331         * modules/unistr/u8-stpncpy-tests: New file.
27332         * tests/unistr/test-u8-stpncpy.c: New file.
27333         * tests/unistr/test-stpncpy.h: New file.
27334
27335         Tests for module 'unistr/u32-strncpy'.
27336         * modules/unistr/u32-strncpy-tests: New file.
27337         * tests/unistr/test-u32-strncpy.c: New file.
27338
27339         Tests for module 'unistr/u16-strncpy'.
27340         * modules/unistr/u16-strncpy-tests: New file.
27341         * tests/unistr/test-u16-strncpy.c: New file.
27342
27343         Tests for module 'unistr/u8-strncpy'.
27344         * modules/unistr/u8-strncpy-tests: New file.
27345         * tests/unistr/test-u8-strncpy.c: New file.
27346         * tests/unistr/test-strncpy.h: New file.
27347
27348         Tests for module 'unistr/u32-stpcpy'.
27349         * modules/unistr/u32-stpcpy-tests: New file.
27350         * tests/unistr/test-u32-stpcpy.c: New file.
27351
27352         Tests for module 'unistr/u16-stpcpy'.
27353         * modules/unistr/u16-stpcpy-tests: New file.
27354         * tests/unistr/test-u16-stpcpy.c: New file.
27355
27356         Tests for module 'unistr/u8-stpcpy'.
27357         * modules/unistr/u8-stpcpy-tests: New file.
27358         * tests/unistr/test-u8-stpcpy.c: New file.
27359         * tests/unistr/test-stpcpy.h: New file.
27360
27361         Tests for module 'unistr/u32-strcpy'.
27362         * modules/unistr/u32-strcpy-tests: New file.
27363         * tests/unistr/test-u32-strcpy.c: New file.
27364
27365         Tests for module 'unistr/u16-strcpy'.
27366         * modules/unistr/u16-strcpy-tests: New file.
27367         * tests/unistr/test-u16-strcpy.c: New file.
27368
27369         Tests for module 'unistr/u8-strcpy'.
27370         * modules/unistr/u8-strcpy-tests: New file.
27371         * tests/unistr/test-u8-strcpy.c: New file.
27372         * tests/unistr/test-strcpy.h: New file.
27373
27374         Tests for module 'unistr/u32-strnlen'.
27375         * modules/unistr/u32-strnlen-tests: New file.
27376         * tests/unistr/test-u32-strnlen.c: New file.
27377
27378         Tests for module 'unistr/u16-strnlen'.
27379         * modules/unistr/u16-strnlen-tests: New file.
27380         * tests/unistr/test-u16-strnlen.c: New file.
27381
27382         Tests for module 'unistr/u8-strnlen'.
27383         * modules/unistr/u8-strnlen-tests: New file.
27384         * tests/unistr/test-u8-strnlen.c: New file.
27385         * tests/unistr/test-strnlen.h: New file.
27386
27387         Tests for module 'unistr/u32-strlen'.
27388         * modules/unistr/u32-strlen-tests: New file.
27389         * tests/unistr/test-u32-strlen.c: New file.
27390
27391         Tests for module 'unistr/u16-strlen'.
27392         * modules/unistr/u16-strlen-tests: New file.
27393         * tests/unistr/test-u16-strlen.c: New file.
27394
27395         Tests for module 'unistr/u8-strlen'.
27396         * modules/unistr/u8-strlen-tests: New file.
27397         * tests/unistr/test-u8-strlen.c: New file.
27398
27399         Tests for module 'unistr/u32-prev'.
27400         * modules/unistr/u32-prev-tests: New file.
27401         * tests/unistr/test-u32-prev.c: New file.
27402
27403         Tests for module 'unistr/u16-prev'.
27404         * modules/unistr/u16-prev-tests: New file.
27405         * tests/unistr/test-u16-prev.c: New file.
27406
27407         Tests for module 'unistr/u8-prev'.
27408         * modules/unistr/u8-prev-tests: New file.
27409         * tests/unistr/test-u8-prev.c: New file.
27410
27411         Tests for module 'unistr/u32-next'.
27412         * modules/unistr/u32-next-tests: New file.
27413         * tests/unistr/test-u32-next.c: New file.
27414
27415         Tests for module 'unistr/u16-next'.
27416         * modules/unistr/u16-next-tests: New file.
27417         * tests/unistr/test-u16-next.c: New file.
27418
27419         Tests for module 'unistr/u8-next'.
27420         * modules/unistr/u8-next-tests: New file.
27421         * tests/unistr/test-u8-next.c: New file.
27422
27423         Tests for module 'unistr/u32-strmbtouc'.
27424         * modules/unistr/u32-strmbtouc-tests: New file.
27425         * tests/unistr/test-u32-strmbtouc.c: New file.
27426
27427         Tests for module 'unistr/u16-strmbtouc'.
27428         * modules/unistr/u16-strmbtouc-tests: New file.
27429         * tests/unistr/test-u16-strmbtouc.c: New file.
27430
27431         Tests for module 'unistr/u8-strmbtouc'.
27432         * modules/unistr/u8-strmbtouc-tests: New file.
27433         * tests/unistr/test-u8-strmbtouc.c: New file.
27434
27435         Tests for module 'unistr/u32-strmblen'.
27436         * modules/unistr/u32-strmblen-tests: New file.
27437         * tests/unistr/test-u32-strmblen.c: New file.
27438
27439         Tests for module 'unistr/u16-strmblen'.
27440         * modules/unistr/u16-strmblen-tests: New file.
27441         * tests/unistr/test-u16-strmblen.c: New file.
27442
27443         Tests for module 'unistr/u8-strmblen'.
27444         * modules/unistr/u8-strmblen-tests: New file.
27445         * tests/unistr/test-u8-strmblen.c: New file.
27446
27447         Tests for module 'unistr/u32-cpy-alloc'.
27448         * modules/unistr/u32-cpy-alloc-tests: New file.
27449         * tests/unistr/test-u32-cpy-alloc.c: New file.
27450
27451         Tests for module 'unistr/u16-cpy-alloc'.
27452         * modules/unistr/u16-cpy-alloc-tests: New file.
27453         * tests/unistr/test-u16-cpy-alloc.c: New file.
27454
27455         Tests for module 'unistr/u8-cpy-alloc'.
27456         * modules/unistr/u8-cpy-alloc-tests: New file.
27457         * tests/unistr/test-u8-cpy-alloc.c: New file.
27458         * tests/unistr/test-cpy-alloc.h: New file.
27459
27460         Tests for module 'unistr/u32-mbsnlen'.
27461         * modules/unistr/u32-mbsnlen-tests: New file.
27462         * tests/unistr/test-u32-mbsnlen.c: New file.
27463
27464         Tests for module 'unistr/u16-mbsnlen'.
27465         * modules/unistr/u16-mbsnlen-tests: New file.
27466         * tests/unistr/test-u16-mbsnlen.c: New file.
27467
27468         Tests for module 'unistr/u8-mbsnlen'.
27469         * modules/unistr/u8-mbsnlen-tests: New file.
27470         * tests/unistr/test-u8-mbsnlen.c: New file.
27471
27472         Tests for module 'unistr/u32-chr'.
27473         * modules/unistr/u32-chr-tests: New file.
27474         * tests/unistr/test-u32-chr.c: New file.
27475
27476         Tests for module 'unistr/u16-chr'.
27477         * modules/unistr/u16-chr-tests: New file.
27478         * tests/unistr/test-u16-chr.c: New file.
27479
27480         Tests for module 'unistr/u8-chr'.
27481         * modules/unistr/u8-chr-tests: New file.
27482         * tests/unistr/test-u8-chr.c: New file.
27483         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
27484
27485         Tests for module 'unistr/u32-cmp2'.
27486         * modules/unistr/u32-cmp2-tests: New file.
27487         * tests/unistr/test-u32-cmp2.c: New file.
27488
27489         Tests for module 'unistr/u16-cmp2'.
27490         * modules/unistr/u16-cmp2-tests: New file.
27491         * tests/unistr/test-u16-cmp2.c: New file.
27492
27493         Tests for module 'unistr/u8-cmp2'.
27494         * modules/unistr/u8-cmp2-tests: New file.
27495         * tests/unistr/test-u8-cmp2.c: New file.
27496         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
27497
27498         Tests for module 'unistr/u32-cmp'.
27499         * modules/unistr/u32-cmp-tests: New file.
27500         * tests/unistr/test-u32-cmp.c: New file.
27501
27502         Tests for module 'unistr/u16-cmp'.
27503         * modules/unistr/u16-cmp-tests: New file.
27504         * tests/unistr/test-u16-cmp.c: New file.
27505
27506         Tests for module 'unistr/u8-cmp'.
27507         * modules/unistr/u8-cmp-tests: New file.
27508         * tests/unistr/test-u8-cmp.c: New file.
27509         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
27510
27511         Tests for module 'unistr/u32-set'.
27512         * modules/unistr/u32-set-tests: New file.
27513         * tests/unistr/test-u32-set.c: New file.
27514
27515         Tests for module 'unistr/u16-set'.
27516         * modules/unistr/u16-set-tests: New file.
27517         * tests/unistr/test-u16-set.c: New file.
27518
27519         Tests for module 'unistr/u8-set'.
27520         * modules/unistr/u8-set-tests: New file.
27521         * tests/unistr/test-u8-set.c: New file.
27522         * tests/unistr/test-set.h: New file.
27523
27524         Tests for module 'unistr/u32-move'.
27525         * modules/unistr/u32-move-tests: New file.
27526         * tests/unistr/test-u32-move.c: New file.
27527
27528         Tests for module 'unistr/u16-move'.
27529         * modules/unistr/u16-move-tests: New file.
27530         * tests/unistr/test-u16-move.c: New file.
27531
27532         Tests for module 'unistr/u8-move'.
27533         * modules/unistr/u8-move-tests: New file.
27534         * tests/unistr/test-u8-move.c: New file.
27535         * tests/unistr/test-move.h: New file.
27536
27537         Tests for module 'unistr/u32-cpy'.
27538         * modules/unistr/u32-cpy-tests: New file.
27539         * tests/unistr/test-u32-cpy.c: New file.
27540
27541         Tests for module 'unistr/u16-cpy'.
27542         * modules/unistr/u16-cpy-tests: New file.
27543         * tests/unistr/test-u16-cpy.c: New file.
27544
27545         Tests for module 'unistr/u8-cpy'.
27546         * modules/unistr/u8-cpy-tests: New file.
27547         * tests/unistr/test-u8-cpy.c: New file.
27548         * tests/unistr/test-cpy.h: New file.
27549
27550 2010-01-09  Bruno Haible  <bruno@clisp.org>
27551
27552         Tests for module 'unistr/u32-uctomb'.
27553         * modules/unistr/u32-uctomb-tests: New file.
27554         * tests/unistr/test-u32-uctomb.c: New file.
27555
27556         Tests for module 'unistr/u16-uctomb'.
27557         * modules/unistr/u16-uctomb-tests: New file.
27558         * tests/unistr/test-u16-uctomb.c: New file.
27559
27560         Tests for module 'unistr/u8-uctomb'.
27561         * modules/unistr/u8-uctomb-tests: New file.
27562         * tests/unistr/test-u8-uctomb.c: New file.
27563
27564         Tests for module 'unistr/u32-mbtoucr'.
27565         * modules/unistr/u32-mbtoucr-tests: New file.
27566         * tests/unistr/test-u32-mbtoucr.c: New file.
27567
27568         Tests for module 'unistr/u16-mbtoucr'.
27569         * modules/unistr/u16-mbtoucr-tests: New file.
27570         * tests/unistr/test-u16-mbtoucr.c: New file.
27571
27572         Tests for module 'unistr/u8-mbtoucr'.
27573         * modules/unistr/u8-mbtoucr-tests: New file.
27574         * tests/unistr/test-u8-mbtoucr.c: New file.
27575
27576         Tests for module 'unistr/u32-mbtouc'.
27577         * modules/unistr/u32-mbtouc-tests: New file.
27578         * tests/unistr/test-u32-mbtouc.c: New file.
27579
27580         Tests for module 'unistr/u16-mbtouc'.
27581         * modules/unistr/u16-mbtouc-tests: New file.
27582         * tests/unistr/test-u16-mbtouc.c: New file.
27583
27584         Tests for module 'unistr/u8-mbtouc'.
27585         * modules/unistr/u8-mbtouc-tests: New file.
27586         * tests/unistr/test-u8-mbtouc.c: New file.
27587
27588         Tests for module 'unistr/u32-mbtouc-unsafe'.
27589         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
27590         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
27591         * tests/unistr/test-u32-mbtouc.h: New file.
27592
27593         Tests for module 'unistr/u16-mbtouc-unsafe'.
27594         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
27595         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
27596         * tests/unistr/test-u16-mbtouc.h: New file.
27597
27598         Tests for module 'unistr/u8-mbtouc-unsafe'.
27599         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
27600         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
27601         * tests/unistr/test-u8-mbtouc.h: New file.
27602
27603         Tests for module 'unistr/u32-mblen'.
27604         * modules/unistr/u32-mblen-tests: New file.
27605         * tests/unistr/test-u32-mblen.c: New file.
27606
27607         Tests for module 'unistr/u16-mblen'.
27608         * modules/unistr/u16-mblen-tests: New file.
27609         * tests/unistr/test-u16-mblen.c: New file.
27610
27611         Tests for module 'unistr/u8-mblen'.
27612         * modules/unistr/u8-mblen-tests: New file.
27613         * tests/unistr/test-u8-mblen.c: New file.
27614
27615         Tests for module 'unistr/u32-to-u16'.
27616         * modules/unistr/u32-to-u16-tests: New file.
27617         * tests/unistr/test-u32-to-u16.c: New file.
27618
27619         Tests for module 'unistr/u32-to-u8'.
27620         * modules/unistr/u32-to-u8-tests: New file.
27621         * tests/unistr/test-u32-to-u8.c: New file.
27622
27623         Tests for module 'unistr/u16-to-u32'.
27624         * modules/unistr/u16-to-u32-tests: New file.
27625         * tests/unistr/test-u16-to-u32.c: New file.
27626
27627         Tests for module 'unistr/u16-to-u8'.
27628         * modules/unistr/u16-to-u8-tests: New file.
27629         * tests/unistr/test-u16-to-u8.c: New file.
27630
27631         Tests for module 'unistr/u8-to-u32'.
27632         * modules/unistr/u8-to-u32-tests: New file.
27633         * tests/unistr/test-u8-to-u32.c: New file.
27634
27635         Tests for module 'unistr/u8-to-u16'.
27636         * modules/unistr/u8-to-u16-tests: New file.
27637         * tests/unistr/test-u8-to-u16.c: New file.
27638
27639         Tests for module 'unistr/u32-check'.
27640         * modules/unistr/u32-check-tests: New file.
27641         * tests/unistr/test-u32-check.c: New file.
27642
27643         Tests for module 'unistr/u16-check'.
27644         * modules/unistr/u16-check-tests: New file.
27645         * tests/unistr/test-u16-check.c: New file.
27646
27647         Tests for module 'unistr/u8-check'.
27648         * modules/unistr/u8-check-tests: New file.
27649         * tests/unistr/test-u8-check.c: New file.
27650
27651         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
27652         (category_equals): New function.
27653         (main): Add more tests.
27654         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
27655
27656         * tests/unictype/test-bidi_byname.c (main): Add more tests.
27657
27658 2010-01-10  Bruno Haible  <bruno@clisp.org>
27659
27660         unistr/u*-strcoll: Try harder to distinguish different strings.
27661         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
27662         compare s1 and s2 to see if they are different.
27663
27664 2010-01-10  Bruno Haible  <bruno@clisp.org>
27665
27666         unistr/u*-stpncpy: Fix the return value.
27667         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
27668         description of the return value consistent with stpncpy in glibc.
27669         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
27670         written non-NUL unit.
27671
27672 2010-01-10  Bruno Haible  <bruno@clisp.org>
27673
27674         unistr/u*-next: Add missing dependencies.
27675         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
27676         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
27677         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
27678
27679 2010-01-10  Bruno Haible  <bruno@clisp.org>
27680
27681         unistr/u8-mbsnlen: Fix return value for incomplete character.
27682         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
27683         u8_mblen.
27684         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
27685         Remove unistr/u8-mblen.
27686         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
27687         u16_mblen.
27688         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
27689         Remove unistr/u16-mblen.
27690
27691 2010-01-10  Bruno Haible  <bruno@clisp.org>
27692
27693         wchar: Fix compilation error when <wchar.h> is used from coreutils.
27694         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
27695         Reported by Brian Gough <bjg@gnu.org> and
27696         Chris Clayton <chris2553@googlemail.com> via
27697         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
27698
27699 2010-01-09  Bruno Haible  <bruno@clisp.org>
27700
27701         unistr/u16-to-u32: Reject invalid input.
27702         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
27703         u16_mbtouc.
27704         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
27705         Remove unistr/u16-mbtouc.
27706
27707         unistr/u16-to-u8: Reject invalid input.
27708         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
27709         u16_mbtouc.
27710         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
27711         Remove unistr/u16-mbtouc.
27712
27713         unistr/u8-to-u32: Reject invalid input.
27714         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
27715         u8_mbtouc.
27716         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
27717         Remove unistr/u8-mbtouc.
27718
27719         unistr/u8-to-u16: Reject invalid input.
27720         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
27721         u8_mbtouc.
27722         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
27723         Remove unistr/u8-mbtouc.
27724
27725 2010-01-09  Bruno Haible  <bruno@clisp.org>
27726
27727         Tests for module 'getlogin'.
27728         * modules/getlogin-tests: New file.
27729         * tests/test-getlogin.c: New file.
27730
27731         New module 'getlogin'.
27732         * lib/unistd.in.h (getlogin): New declaration.
27733         * lib/getlogin.c: New file.
27734         * m4/getlogin.m4: New file.
27735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
27736         HAVE_GETLOGIN.
27737         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
27738         HAVE_GETLOGIN.
27739         * modules/getlogin: New file.
27740         * doc/posix-functions/getlogin.texi: Mention the new module.
27741         Reported by John W. Eaton <jwe@gnu.org>.
27742
27743 2010-01-09  Bruno Haible  <bruno@clisp.org>
27744
27745         getlogin_r: Support for native Windows.
27746         * lib/getlogin_r.c: Include <windows.h>
27747         (getlogin_r): Implement for native Windows.
27748         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
27749         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
27750         via John W. Eaton <jwe@gnu.org>.
27751
27752 2010-01-09  Bruno Haible  <bruno@clisp.org>
27753
27754         getlogin_r: Small fixes.
27755         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
27756         succeeds.
27757         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
27758         before testing whether getlogin_r is declared. No need to set
27759         HAVE_DECL_GETLOGIN_R to 1.
27760         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
27761
27762 2010-01-09  Bruno Haible  <bruno@clisp.org>
27763
27764         * lib/unistd.in.h (getlogin_r): Add comment.
27765
27766 2010-01-09  Bruno Haible  <bruno@clisp.org>
27767
27768         Tests for module 'getlogin_r'.
27769         * modules/getlogin_r-tests: New file.
27770         * tests/test-getlogin_r.c: New file.
27771
27772 2010-01-09  Jim Meyering  <meyering@redhat.com>
27773
27774         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
27775         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
27776         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
27777
27778 2010-01-08  Simon Josefsson  <simon@josefsson.org>
27779
27780         * lib/dup2.c (rpl_dup2): Improve comment.
27781
27782 2010-01-08  Eric Blake  <ebb9@byu.net>
27783
27784         maint.mk: allow packages to add makefile @@ exceptions
27785         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
27786         (sc_makefile_check): Rename...
27787         (sc_makefile_at_at_check): ...to this, and use hook.
27788
27789         dup2: work around mingw bug
27790         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
27791         Reported by Simon Josefsson.
27792
27793 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
27794
27795         glob: Fix C++ compilation.
27796         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
27797         C++.
27798
27799 2010-01-07  Bruno Haible  <bruno@clisp.org>
27800
27801         Fix indentation of wctype.in.h, broken since 2007-01-06.
27802         * lib/wctype.in.h: Fix indentation of preprocessor directives.
27803
27804 2010-01-07  Bruno Haible  <bruno@clisp.org>
27805
27806         mbslen: Avoid collision with system function.
27807         * lib/string.in.h [MirBSD]: Include <wchar.h>.
27808         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
27809         * m4/mbslen.m4: New file.
27810         * modules/mbslen (Files): Add it.
27811         (configure.ac): Invoke gl_MBSLEN.
27812         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
27813         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
27814         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
27815         via Ian Beckwith <ianb@erislabs.net>.
27816
27817 2010-01-07  Bruno Haible  <bruno@clisp.org>
27818
27819         dirent: Document the last fix.
27820         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
27821
27822 2010-01-07  Bruno Haible  <bruno@clisp.org>
27823
27824         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
27825         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
27826         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
27827         va_list are defined.
27828         * doc/posix-headers/stdio.texi: Document the bug of missing types.
27829         Reported by Eric Blake.
27830
27831 2010-01-07  Bruno Haible  <bruno@clisp.org>
27832
27833         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
27834         * modules/xlist (Depends-on): Add 'list',
27835         * modules/xoset (Depends-on): Add 'oset'.
27836         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27837
27838 2010-01-07  Bruno Haible  <bruno@clisp.org>
27839
27840         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
27841         * doc/posix-functions/strncasecmp.texi: Likewise.
27842
27843 2010-01-07  Bruno Haible  <bruno@clisp.org>
27844
27845         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
27846
27847 2010-01-07  John W. Eaton  <jwe@octave.org>
27848
27849         wctype: allow C++ use
27850         * lib/wctype.in.h: Add extern "C" block for C++.
27851
27852 2010-01-06  Eric Blake  <ebb9@byu.net>
27853
27854         maint.mk: detect incorrect GFDL usage
27855         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
27856
27857 2010-01-06  Jim Meyering  <meyering@redhat.com>
27858         and Eric Blake  <ebb9@byu.net>
27859
27860         maint.mk: ignore multi-line copyright in NEWS
27861         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
27862
27863 2010-01-06  Eric Blake  <ebb9@byu.net>
27864
27865         select: add missing dependency
27866         * modules/select-tests (Depends-on): Move sockets dependency...
27867         * modules/select (Depends-on): ...here.
27868         Reported by Ian Beckwith.
27869
27870         doc: regenerate INSTALL
27871         * doc/INSTALL: Reflect recent autoconf update.
27872         * doc/INSTALL.ISO: Likewise.
27873         * doc/INSTALL.UTF-8: Likewise.
27874
27875         pread: fix compilation on glibc
27876         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
27877         Reported by Ralf Wildenhues.
27878
27879         dirent: fix test failure
27880         * lib/dirent.in.h (includes): Guarantee ino_t.
27881         Reported by Ralf Wildenhues.
27882
27883 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
27884
27885         linkat, renameat: avoid bad free
27886         * lib/at-func2.c (at_func2): Fix typo.
27887         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
27888
27889 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27890
27891         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
27892         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
27893         to avoid failure of symlink test later.
27894
27895 2010-01-06  Eric Blake  <ebb9@byu.net>
27896
27897         stdio, unistd: guarantee ssize_t
27898         * lib/unistd.in.h (includes): Ensure that types required by POSIX
27899         2008 are exposed when needed.
27900         * lib/stdio.in.h (includes): Likewise.
27901         Reported by Ralf Wildenhues.
27902
27903 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
27904
27905         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
27906         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
27907         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
27908
27909 2010-01-06  Jim Meyering  <meyering@redhat.com>
27910
27911         readtokens: this module *does* require xalloc.h
27912         It uses only functions that were omitted by the old syntax-check rule.
27913         * lib/readtokens.c: Include "xalloc.h" once again.
27914         * modules/readtokens (Depends-on): Add xalloc.
27915         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
27916
27917 2010-01-05  Eric Blake  <ebb9@byu.net>
27918
27919         maint: support 'make announcement' from a VPATH build
27920         * top/maint.mk (announcement): Look for correct NEWS file.
27921
27922 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
27923
27924         utimens (fdutimens): ignore a negative FD, per contract
27925         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
27926         when we have a valid file descriptor.  Otherwise, using a brand
27927         new glibc (with just-patched futimens that now fails with EBADF)
27928         would cause this function to fail with ENOSYS.
27929         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
27930         See also http://bugzilla.redhat.com/552320.
27931
27932 2010-01-05  Eric Blake  <ebb9@byu.net>
27933
27934         strcase: document what it provides
27935         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
27936         gnulib module.
27937         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
27938         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
27939
27940 2010-01-05  Jim Meyering  <meyering@redhat.com>
27941
27942         maint: remove useless inclusions of "xalloc.h"
27943         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
27944         * lib/readtokens.c: Likewise.
27945         * lib/same.c: Likewise.
27946         * modules/getloadavg (Depends-on): Remove xalloc.
27947         * modules/readtokens: Likewise.
27948         * modules/same: Likewise.
27949
27950         maint.mk: include 4 more function names in alloca.h-checking regexp
27951         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
27952         regexp.  Before, we would give a false-positive (saying alloca.h
27953         is included unnecessarily) when the only uses involved omitted symbols.
27954
27955         xalloc.h: use consistent formatting
27956         * lib/xalloc.h: Move declarations to start in the first column.
27957
27958 2010-01-05  Eric Blake  <ebb9@byu.net>
27959
27960         mkdir: avoid xalloc
27961         * lib/mkdir.c (includes): Drop unused header.
27962         Reported by John W. Eaton.
27963
27964 2010-01-04  Jim Meyering  <meyering@redhat.com>
27965
27966         nl_langinfo: avoid configure-time syntax error
27967         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
27968         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
27969         the empty string.  Don't let that provoke a shell syntax error.
27970
27971         regcomp, regexec, fnmatch: avoid array bounds read error
27972         * lib/regcomp.c (build_equiv_class): From glibc:
27973         Use only the low 24 bits of a findidx return value as an index
27974         into the weights array.  Patch by Ulrich Drepper:
27975         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
27976         * lib/regexec.c (check_node_accept_bytes): Likewise.
27977         * lib/fnmatch_loop.c (FCT): Likewise.
27978
27979         regcomp: skip collseq lookup when there are no rules
27980         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
27981         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
27982
27983         regcomp: recognize ill-formed { } expressions
27984         * lib/regcomp.c (parse_dup_op): From glibc:
27985         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
27986
27987         regcomp: fix typo in comment
27988         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
27989         s/satisfy/satisfies/.
27990
27991         regcomp: sync from glibc: remove dead store
27992         * lib/regcomp.c (duplicate_node_closure): Remove useless
27993         search_duplicated_node call and dead store.
27994
27995         regcomp: sync from glibc; always use nl_langinfo
27996         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
27997         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
27998         * modules/regex (Depends-on): Add nl_langinfo.
27999
28000 2010-01-04  Eric Blake  <ebb9@byu.net>
28001
28002         fdopendir: fix configure test
28003         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28004
28005 2010-01-01  Bruno Haible  <bruno@clisp.org>
28006
28007         wchar: Remove unused configure check.
28008         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28009
28010 2010-01-01  Eric Blake  <ebb9@byu.net>
28011
28012         headers: make check of system header explicit
28013         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28014         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28015         ourselves.
28016         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28017         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28018         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28019         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28020         internals.
28021         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28022         missing.
28023         Suggested by Bruno Haible.
28024
28025 2010-01-01  Jim Meyering  <meyering@redhat.com>
28026
28027         ChangeLog: tweak to eliminate unnecessary copyright line
28028         * ChangeLog: Remove a copyright line that was mistakenly updated
28029         by today's update-copyright run.  Reported by Eric Blake.
28030
28031         test-update-copyright: don't let envvar setting cause test failure
28032         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28033
28034 2010-01-01  Bruno Haible  <bruno@clisp.org>
28035
28036         localename: Avoid gcc warning.
28037         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28038         function if it is not used.
28039
28040 2010-01-01  Jim Meyering  <meyering@redhat.com>
28041
28042         update nearly all FSF copyright year lists to include 2010
28043         Use the same procedure as for 2009, outlined in
28044         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28045
28046         version-etc: set COPYRIGHT_YEAR to 2010
28047         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28048
28049 2009-12-31  Eric Blake  <ebb9@byu.net>
28050
28051         doc: correct availability of cygwin 1.5.x getopt
28052         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28053         variables.
28054         * doc/posix-functions/opterr.texi (opterr): Likewise.
28055         * doc/posix-functions/optind.texi (optind): Likewise.
28056         * doc/posix-functions/optopt.texi (optopt): Likewise.
28057         * doc/posix-functions/tzname.texi (tzname): Likewise.
28058
28059         openat: update maintainer
28060         * modules/openat (Maintainer): Add myself.
28061
28062         utimens: avoid shadowing warning
28063         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28064         buffers into one, to avoid shadowing, as well as avoiding a
28065         redundant stat.
28066         Reported by Jim Meyering.
28067
28068         test-dup2: avoid compiler warning
28069         * tests/test-dup2.c (is_inheritable): Only define if used.
28070
28071 2010-01-01  Bruno Haible  <bruno@clisp.org>
28072
28073         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28074         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28075         defined, use wctomb instead of wcrtomb.
28076
28077 2010-01-01  Bruno Haible  <bruno@clisp.org>
28078
28079         iconv: Reject native Solaris iconv.
28080         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28081         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28082
28083 2009-12-31  Bruno Haible  <bruno@clisp.org>
28084
28085         * tests/test-signal.c (main): Remove test of 'SIG'.
28086
28087 2009-12-31  Bruno Haible  <bruno@clisp.org>
28088
28089         spawn: Fix incomplete fix.
28090         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28091         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28092         warnings for GNULIB_POSIXCHECK again.
28093         Reported by Eric Blake.
28094
28095 2009-12-31  Bruno Haible  <bruno@clisp.org>
28096
28097         Avoid namespace pollution on glibc systems.
28098         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28099         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28100         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28101         glibc systems.
28102
28103 2009-12-31  Bruno Haible  <bruno@clisp.org>
28104
28105         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28106         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28107         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28108         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28109         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28110         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28111         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28112
28113 2009-12-31  Bruno Haible  <bruno@clisp.org>
28114
28115         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28116         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28117         afterwards.
28118
28119 2009-12-31  Bruno Haible  <bruno@clisp.org>
28120
28121         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28122         SYS_UTSNAME_H.
28123
28124 2009-12-31  Bruno Haible  <bruno@clisp.org>
28125
28126         spawn: Fix misapplied patch.
28127         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28128         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28129         warnings for GNULIB_POSIXCHECK.
28130
28131 2009-12-31  Bruno Haible  <bruno@clisp.org>
28132
28133         times: Update after sys_times changed.
28134         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
28135         * modules/times (Files): Add it.
28136         (configure.ac): Invoke gl_FUNC_TIMES.
28137
28138 2009-12-31  Bruno Haible  <bruno@clisp.org>
28139
28140         Use AC_C_INLINE where necessary.
28141         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
28142         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28143         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28144         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28145         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28146         * m4/mbiter.m4 (gl_MBITER): Likewise.
28147         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28148         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28149         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
28150         * modules/u64 (configure.ac): Likewise.
28151
28152 2009-12-31  Bruno Haible  <bruno@clisp.org>
28153
28154         Use AC_C_INLINE instead of module 'inline' where possible.
28155         * modules/inline (Description): Clarify purpose.
28156         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
28157         * modules/count-one-bits (Depends-on): Remove inline.
28158         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
28159         * modules/openat (Depends-on): Remove inline.
28160         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
28161         instead of depending on module 'inline'.
28162         * modules/filevercmp (Depends-on, configure.ac): Likewise.
28163         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
28164         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
28165         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
28166         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
28167         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
28168         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
28169         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
28170         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
28171         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
28172         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
28173         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
28174         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
28175         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28176         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28177         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28178         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28179         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28180         Likewise.
28181         * modules/unictype/property-ascii-hex-digit (Depends-on,
28182         configure.ac): Likewise.
28183         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28184         configure.ac): Likewise.
28185         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28186         configure.ac): Likewise.
28187         * modules/unictype/property-bidi-block-separator (Depends-on,
28188         configure.ac): Likewise.
28189         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28190         configure.ac): Likewise.
28191         * modules/unictype/property-bidi-common-separator (Depends-on,
28192         configure.ac): Likewise.
28193         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28194         Likewise.
28195         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28196         configure.ac): Likewise.
28197         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28198         configure.ac): Likewise.
28199         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28200         configure.ac): Likewise.
28201         * modules/unictype/property-bidi-european-digit (Depends-on,
28202         configure.ac): Likewise.
28203         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28204         configure.ac): Likewise.
28205         * modules/unictype/property-bidi-left-to-right (Depends-on,
28206         configure.ac): Likewise.
28207         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
28208         configure.ac): Likewise.
28209         * modules/unictype/property-bidi-other-neutral (Depends-on,
28210         configure.ac): Likewise.
28211         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
28212         Likewise.
28213         * modules/unictype/property-bidi-segment-separator (Depends-on,
28214         configure.ac): Likewise.
28215         * modules/unictype/property-bidi-whitespace (Depends-on,
28216         configure.ac): Likewise.
28217         * modules/unictype/property-combining (Depends-on, configure.ac):
28218         Likewise.
28219         * modules/unictype/property-composite (Depends-on, configure.ac):
28220         Likewise.
28221         * modules/unictype/property-currency-symbol (Depends-on,
28222         configure.ac): Likewise.
28223         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
28224         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
28225         Likewise.
28226         * modules/unictype/property-default-ignorable-code-point (Depends-on,
28227         configure.ac): Likewise.
28228         * modules/unictype/property-deprecated (Depends-on, configure.ac):
28229         Likewise.
28230         * modules/unictype/property-diacritic (Depends-on, configure.ac):
28231         Likewise.
28232         * modules/unictype/property-extender (Depends-on, configure.ac):
28233         Likewise.
28234         * modules/unictype/property-format-control (Depends-on, configure.ac):
28235         Likewise.
28236         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
28237         Likewise.
28238         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
28239         Likewise.
28240         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
28241         Likewise.
28242         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
28243         Likewise.
28244         * modules/unictype/property-hyphen (Depends-on, configure.ac):
28245         Likewise.
28246         * modules/unictype/property-id-continue (Depends-on, configure.ac):
28247         Likewise.
28248         * modules/unictype/property-id-start (Depends-on, configure.ac):
28249         Likewise.
28250         * modules/unictype/property-ideographic (Depends-on, configure.ac):
28251         Likewise.
28252         * modules/unictype/property-ids-binary-operator (Depends-on,
28253         configure.ac): Likewise.
28254         * modules/unictype/property-ids-trinary-operator (Depends-on,
28255         configure.ac): Likewise.
28256         * modules/unictype/property-ignorable-control (Depends-on,
28257         configure.ac): Likewise.
28258         * modules/unictype/property-iso-control (Depends-on, configure.ac):
28259         Likewise.
28260         * modules/unictype/property-join-control (Depends-on, configure.ac):
28261         Likewise.
28262         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
28263         Likewise.
28264         * modules/unictype/property-line-separator (Depends-on, configure.ac):
28265         Likewise.
28266         * modules/unictype/property-logical-order-exception (Depends-on,
28267         configure.ac): Likewise.
28268         * modules/unictype/property-lowercase (Depends-on, configure.ac):
28269         Likewise.
28270         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
28271         * modules/unictype/property-non-break (Depends-on, configure.ac):
28272         Likewise.
28273         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
28274         Likewise.
28275         * modules/unictype/property-numeric (Depends-on, configure.ac):
28276         Likewise.
28277         * modules/unictype/property-other-alphabetic (Depends-on,
28278         configure.ac): Likewise.
28279         * modules/unictype/property-other-default-ignorable-code-point
28280         (Depends-on, configure.ac): Likewise.
28281         * modules/unictype/property-other-grapheme-extend (Depends-on,
28282         configure.ac): Likewise.
28283         * modules/unictype/property-other-id-continue (Depends-on,
28284         configure.ac): Likewise.
28285         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
28286         Likewise.
28287         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
28288         Likewise.
28289         * modules/unictype/property-other-math (Depends-on, configure.ac):
28290         Likewise.
28291         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
28292         Likewise.
28293         * modules/unictype/property-paired-punctuation (Depends-on,
28294         configure.ac): Likewise.
28295         * modules/unictype/property-paragraph-separator (Depends-on,
28296         configure.ac): Likewise.
28297         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
28298         Likewise.
28299         * modules/unictype/property-pattern-white-space (Depends-on,
28300         configure.ac): Likewise.
28301         * modules/unictype/property-private-use (Depends-on, configure.ac):
28302         Likewise.
28303         * modules/unictype/property-punctuation (Depends-on, configure.ac):
28304         Likewise.
28305         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
28306         Likewise.
28307         * modules/unictype/property-radical (Depends-on, configure.ac):
28308         Likewise.
28309         * modules/unictype/property-sentence-terminal (Depends-on,
28310         configure.ac): Likewise.
28311         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
28312         Likewise.
28313         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
28314         * modules/unictype/property-terminal-punctuation (Depends-on,
28315         configure.ac): Likewise.
28316         * modules/unictype/property-titlecase (Depends-on, configure.ac):
28317         Likewise.
28318         * modules/unictype/property-unassigned-code-value (Depends-on,
28319         configure.ac): Likewise.
28320         * modules/unictype/property-unified-ideograph (Depends-on,
28321         configure.ac): Likewise.
28322         * modules/unictype/property-uppercase (Depends-on, configure.ac):
28323         Likewise.
28324         * modules/unictype/property-variation-selector (Depends-on,
28325         configure.ac): Likewise.
28326         * modules/unictype/property-white-space (Depends-on, configure.ac):
28327         Likewise.
28328         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
28329         Likewise.
28330         * modules/unictype/property-xid-start (Depends-on, configure.ac):
28331         Likewise.
28332         * modules/unictype/property-zero-width (Depends-on, configure.ac):
28333         Likewise.
28334         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
28335         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
28336         Likewise.
28337
28338 2009-12-31  Bruno Haible  <bruno@clisp.org>
28339
28340         Remove unnecessary AC_C_INLINE invocation.
28341         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
28342         since 2009-08-21.
28343
28344 2009-12-31  Jim Meyering  <meyering@redhat.com>
28345
28346         maint.mk: don't require explicit gpg_key_ID in cfg.mk
28347         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
28348         With this change, we can all remove the gpg_key_ID = ... definition
28349         from our respective cfg.mk files.
28350
28351         maint.mk: create announcement template in ~/, not in /tmp
28352         * top/maint.mk (emit_upload_commands): Adjust.
28353         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
28354         Remove temporary file, .ci-msg.
28355
28356 2009-12-31  Eric Blake  <ebb9@byu.net>
28357
28358         link-warning: always build headers with link warnings
28359         * modules/arpa_inet (Makefile.am): Always build replacement
28360         header.
28361         * modules/ctype (Makefile.am): Likewise.
28362         * modules/dirent (Makefile.am): Likewise.
28363         * modules/inttypes (Makefile.am): Likewise.
28364         * modules/langinfo (Makefile.am): Likewise.
28365         * modules/locale (Makefile.am): Likewise.
28366         * modules/spawn (Makefile.am): Likewise.
28367         * modules/sys_file (Makefile.am): Likewise.
28368         * modules/sys_ioctl (Makefile.am): Likewise.
28369         * modules/sys_select (Makefile.am): Likewise.
28370         * modules/sys_socket (Makefile.am): Likewise.
28371         * modules/sys_times (Makefile.am): Likewise.
28372         * modules/sys_utsname (Makefile.am): Likewise.
28373         * modules/sys_wait (Makefile.am): Likewise.
28374         * modules/wchar (Makefile.am): Likewise.
28375         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
28376         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
28377         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
28378         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
28379         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
28380         Likewise.
28381         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28382         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28383         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
28384         Likewise.
28385         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
28386         Likewise.
28387         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
28388         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
28389         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
28390         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28391         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28392         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28393         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28394         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
28395         (gl_WCHAR_H_DEFAULTS): Likewise.
28396
28397 2009-12-31  Eric Blake  <ebb9@byu.net>
28398
28399         signal, spawn: use link warnings
28400         * lib/signal.in.h (sigset_t): Make unconditional.
28401         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
28402         (sigpending, sigprocmask, sigaction): Add link warnings.
28403         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
28404         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
28405         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
28406         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
28407         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
28408         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
28409         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
28410         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
28411         (posix_spawn_file_actions_destroy)
28412         (posix_spawn_file_actions_addopen)
28413         (posix_spawn_file_actions_addclose)
28414         (posix_spawn_file_actions_adddup2): Likewise.
28415         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
28416         * tests/test-signal.c (main): Enhance test.
28417
28418         spawn: improve wrapper support
28419         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
28420         (gl_SPAWN_H_DEFAULTS): New defaults.
28421         * modules/spawn (Makefile.am): Substitute them.
28422         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
28423         Only declare if missing or broken.
28424
28425         sys_times, sys_utsname: use include_next
28426         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
28427         header.
28428         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
28429         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28430         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28431         * modules/sys_times (Depends-on): Add include_next.
28432         (Makefile.am): Substitute additional values.
28433         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28434         * lib/sys_times.in.h (includes): Include native header, if
28435         available.
28436         * lib/sys_utsname.in.h (includes): Likewise.
28437         * tests/test-sys_times.c (main): Enhance test.
28438
28439         fdutimensat: revert prior patch
28440         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
28441         utimens.h.
28442         Reported by Bruno Haible.
28443
28444 2009-12-30  Eric Blake  <ebb9@byu.net>
28445
28446         sys_wait: drop link-warning dependency
28447         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
28448         link-warning efforts.
28449         * lib/sys_wait.in.h: Likewise.
28450
28451         fdutimensat: remove bogus dependency
28452         * modules/fdutimensat (Depends-on): Drop inline.
28453
28454         unistd: fix typo
28455         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
28456
28457 2009-12-30  Bruno Haible  <bruno@clisp.org>
28458
28459         Fix compilation error with Solaris cc.
28460         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
28461         * lib/unicase/u16-is-invariant.c: Likewise.
28462         * lib/unicase/u32-is-invariant.c: Likewise.
28463         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28464
28465 2009-12-30  Bruno Haible  <bruno@clisp.org>
28466
28467         Fix test crash.
28468         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
28469         locales.
28470         Reported by Simon Josefsson <simon@josefsson.org>.
28471
28472 2009-12-30  Bruno Haible  <bruno@clisp.org>
28473
28474         Fix compilation error on most platforms.
28475         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
28476         Reported by Simon Josefsson <simon@josefsson.org>
28477         and Nelson H. F. Beebe <beebe@math.utah.edu>.
28478
28479 2009-12-30  Eric Blake  <ebb9@byu.net>
28480
28481         futimens, utimensat: work around ntfs-3g bug
28482         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
28483         a ctime bug is present, and expand workaround to cover ntfs-3g.
28484         * lib/utimens.c (fdutimens, lutimens): Likewise.
28485         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
28486         (validate_timespec): Adjust return value.
28487         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
28488         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28489         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
28490
28491 2009-12-29  Eric Blake  <ebb9@byu.net>
28492
28493         link-warning: make usage consistent
28494         * modules/ctype (Depends-on): Add link-warning.
28495         (Makefile.am): Update rules accordingly.
28496         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28497         * modules/locale (Depends-on, Makefile.am): Likewise.
28498         * modules/sys_file (Makefile.am): Likewise.
28499         * modules/getopt-posix (Makefile.am): Delete unused link warning
28500         efforts.
28501         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
28502         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
28503         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
28504         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
28505
28506         stdio: remove unused variables
28507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
28508         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
28509         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28510
28511         tests: test more substitute headers
28512         * modules/ctype-tests: New file.
28513         * modules/dirent-tests: Likewise.
28514         * modules/spawn-tests: Likewise.
28515         * modules/sys_file-tests: Likewise.
28516         * modules/sys_ioctl-tests: Likewise.
28517         * modules/sys_wait-tests: Likewise.
28518         * tests/test-ctype.c: Likewise.
28519         * tests/test-dirent.c: Likewise.
28520         * tests/test-spawn.c: Likewise.
28521         * tests/test-sys_file.c: Likewise.
28522         * tests/test-sys_ioctl.c: Likewise.
28523         * tests/test-sys_wait.c: Likewise.
28524         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
28525         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
28526         whether or not flock is in use.
28527
28528         tests: remove License section from module
28529         * modules/arpa_inet-tests: Remove unneeded section.
28530         * modules/byteswap-tests: Likewise.
28531         * modules/ceilf-tests: Likewise.
28532         * modules/ceill-tests: Likewise.
28533         * modules/crypto/des-tests: Likewise.
28534         * modules/crypto/gc-arcfour-tests: Likewise.
28535         * modules/crypto/gc-arctwo-tests: Likewise.
28536         * modules/crypto/gc-des-tests: Likewise.
28537         * modules/crypto/gc-hmac-md5-tests: Likewise.
28538         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28539         * modules/crypto/gc-md2-tests: Likewise.
28540         * modules/crypto/gc-md4-tests: Likewise.
28541         * modules/crypto/gc-md5-tests: Likewise.
28542         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28543         * modules/crypto/gc-rijndael-tests: Likewise.
28544         * modules/crypto/gc-sha1-tests: Likewise.
28545         * modules/crypto/gc-tests: Likewise.
28546         * modules/crypto/md2-tests: Likewise.
28547         * modules/crypto/md4-tests: Likewise.
28548         * modules/fcntl-h-tests: Likewise.
28549         * modules/floorf-tests: Likewise.
28550         * modules/floorl-tests: Likewise.
28551         * modules/frexp-nolibm-tests: Likewise.
28552         * modules/frexp-tests: Likewise.
28553         * modules/frexpl-nolibm-tests: Likewise.
28554         * modules/frexpl-tests: Likewise.
28555         * modules/getaddrinfo-tests: Likewise.
28556         * modules/inttypes-tests: Likewise.
28557         * modules/isfinite-tests: Likewise.
28558         * modules/isinf-tests: Likewise.
28559         * modules/ldexpl-tests: Likewise.
28560         * modules/locale-tests: Likewise.
28561         * modules/math-tests: Likewise.
28562         * modules/netdb-tests: Likewise.
28563         * modules/netinet_in-tests: Likewise.
28564         * modules/printf-frexp-tests: Likewise.
28565         * modules/printf-frexpl-tests: Likewise.
28566         * modules/priv-set-tests: Likewise.
28567         * modules/random_r-tests: Likewise.
28568         * modules/round-tests: Likewise.
28569         * modules/roundf-tests: Likewise.
28570         * modules/roundl-tests: Likewise.
28571         * modules/search-tests: Likewise.
28572         * modules/select-tests: Likewise.
28573         * modules/signal-tests: Likewise.
28574         * modules/stdbool-tests: Likewise.
28575         * modules/stddef-tests: Likewise.
28576         * modules/stdint-tests: Likewise.
28577         * modules/stdio-tests: Likewise.
28578         * modules/stdlib-tests: Likewise.
28579         * modules/string-tests: Likewise.
28580         * modules/strings-tests: Likewise.
28581         * modules/sys_select-tests: Likewise.
28582         * modules/sys_socket-tests: Likewise.
28583         * modules/sys_stat-tests: Likewise.
28584         * modules/sys_time-tests: Likewise.
28585         * modules/sys_utsname-tests: Likewise.
28586         * modules/sysexits-tests: Likewise.
28587         * modules/time-tests: Likewise.
28588         * modules/trunc-tests: Likewise.
28589         * modules/truncf-tests: Likewise.
28590         * modules/truncl-tests: Likewise.
28591         * modules/tsearch-tests: Likewise.
28592         * modules/unistd-tests: Likewise.
28593         * modules/wchar-tests: Likewise.
28594         * modules/wctype-tests: Likewise.
28595
28596         tests: fix license on several tests
28597         * tests/test-des.c: Update to GPLv3+.
28598         * tests/test-flock.c: Likewise.
28599         * tests/test-fsync.c: Likewise.
28600         * tests/test-futimens.h: Likewise.
28601         * tests/test-gc-arcfour.c: Likewise.
28602         * tests/test-gc-arctwo.c: Likewise.
28603         * tests/test-gc-des.c: Likewise.
28604         * tests/test-gc-hmac-md5.c: Likewise.
28605         * tests/test-gc-hmac-sha1.c: Likewise.
28606         * tests/test-gc-md2.c: Likewise.
28607         * tests/test-gc-md4.c: Likewise.
28608         * tests/test-gc-md5.c: Likewise.
28609         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28610         * tests/test-gc-rijndael.c: Likewise.
28611         * tests/test-gc-sha1.c: Likewise.
28612         * tests/test-gc.c: Likewise.
28613         * tests/test-getcwd.c: Likewise.
28614         * tests/test-link.c: Likewise.
28615         * tests/test-link.h: Likewise.
28616         * tests/test-lutimens.h: Likewise.
28617         * tests/test-md2.c: Likewise.
28618         * tests/test-md4.c: Likewise.
28619         * tests/test-mkdir.h: Likewise.
28620         * tests/test-rename.c: Likewise.
28621         * tests/test-rename.h: Likewise.
28622         * tests/test-safe-alloc.c: Likewise.
28623         * tests/test-utimens-common.h: Likewise.
28624         * tests/test-utimens.h: Likewise.
28625
28626         maint: sync license texts
28627         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
28628         * doc/gpl-3.0.texi: Revert copyright year update.
28629         * doc/lgpl-3.0.texi: Likewise.
28630
28631 2009-12-29  Jim Meyering  <meyering@redhat.com>
28632
28633         update nearly all FSF copyright year lists to include 2009
28634         The files named by the following are exempted:
28635             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
28636               test -f "$dst" && { echo "$dst"; continue; }
28637               test -d "$dst" || continue
28638               echo "$dst"/$(basename "$src")
28639             done > exempt
28640             git ls-files tests/unictype >> exempt
28641         In the remaining files, convert to all-interval notation if
28642         - there is already at least one year interval like 2000-2003
28643         - the file is maintained by me
28644         - the file is in lib/uni*/, where that style already prevails
28645         Otherwise, use update-copyright's default.
28646
28647 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28648         and Eric Blake  <ebb9@byu.net>
28649
28650         tests: don't require debug system() to pass
28651         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
28652         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28653         * tests/test-unlink.h (test_unlink_func): Likewise.
28654         * tests/test-fstatat.c (main): ...into callers.
28655         * tests/test-lstat.c (main): Likewise.
28656         * tests/test-rmdir.c (main): Likewise.
28657         * tests/test-unlink.c (main): Likewise.
28658         * tests/test-unlinkat.c (main): Likewise.
28659         * tests/test-areadlink-with-size.c (main): Don't require a
28660         debug-only system call to pass, aiding cross-testing to mingw.
28661         * tests/test-areadlink.c (main): Likewise.
28662         * tests/test-areadlinkat-with-size.c (main): Likewise.
28663         * tests/test-areadlinkat.c (main): Likewise.
28664         * tests/test-canonicalize-lgpl.c (main): Likewise.
28665         * tests/test-canonicalize.c (main): Likewise.
28666         * tests/test-chown.c (main): Likewise.
28667         * tests/test-fchownat.c (main): Likewise.
28668         * tests/test-lchown.c (main): Likewise.
28669         * tests/test-fdutimensat.c (main): Likewise.
28670         * tests/test-futimens.c (main): Likewise.
28671         * tests/test-link.c (main): Likewise.
28672         * tests/test-linkat.c (main): Likewise.
28673         * tests/test-mkdir.c (main): Likewise.
28674         * tests/test-mkdirat.c (main): Likewise.
28675         * tests/test-mkfifo.c (main): Likewise.
28676         * tests/test-mkfifoat.c (main): Likewise.
28677         * tests/test-mknod.c (main): Likewise.
28678         * tests/test-readlink.c (main): Likewise.
28679         * tests/test-remove.c (main): Likewise.
28680         * tests/test-rename.c (main): Likewise.
28681         * tests/test-renameat.c (main): Likewise.
28682         * tests/test-symlink.c (main): Likewise.
28683         * tests/test-symlinkat.c (main): Likewise.
28684         * tests/test-utimens.c (main): Likewise.
28685         * tests/test-utimensat.c (main): Likewise.
28686
28687 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28688
28689         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
28690         on $(UNUSED_PARAMETER_H) to avoid build failure.
28691
28692 2009-12-28  Jim Meyering  <meyering@redhat.com>
28693
28694         update-copyright: you may specify a max. line length other than 72
28695         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28696
28697         maint: use consistent FSF copyright line syntax
28698         * lib/posixtm.c: Add missing comma in FSF copyright line.
28699         * lib/posixtm.h: Likewise.
28700         * lib/getugroups.c: Add missing ", Inc.".
28701
28702         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
28703         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
28704         FSF copyright line.  Remove trailing blanks.
28705
28706 2009-12-28  Eric Blake  <ebb9@byu.net>
28707
28708         test-dup2: reduce dependencies
28709         * modules/cloexec (Configure.ac): Set witness.
28710         * modules/dup2-tests (Depends-on): Drop cloexec.
28711         * tests/test-dup2.c (main): Skip portion of test if cloexec module
28712         not present.
28713         Suggested by Bruno Haible.
28714
28715 2009-12-26  Bruno Haible  <bruno@clisp.org>
28716
28717         Remove an unneeded dependency.
28718         * modules/fseterr (Depends-on): Remove dup2.
28719
28720 2009-12-26  Eric Blake  <ebb9@byu.net>
28721
28722         tests: use macros.h in more places
28723         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
28724         (ASSERT_STREAM): Provide default of stderr.
28725         * tests/test-dirent-safer.c: Include macros.h, using alternate
28726         stream for assertions.
28727         * tests/test-dup-safer.c: Likewise.
28728         * tests/test-freopen-safer.c: Likewise.
28729         * tests/test-getopt.c: Likewise.
28730         * tests/test-openat-safer.c: Likewise.
28731         * tests/test-pipe.c: Likewise.
28732         * tests/test-popen-safer.c: Likewise.
28733         * modules/dirent-safer-tests (Files): Include macros.h.
28734         * modules/unistd-safer-tests (Files): Likewise.
28735         * modules/freopen-safer-tests (Files): Likewise.
28736         * modules/getopt-posix-tests (Files): Likewise.
28737         * modules/openat-safer-tests (Files): Likewise.
28738         * modules/pipe-tests (Files): Likewise.
28739
28740 2009-12-26  Bruno Haible  <bruno@clisp.org>
28741
28742         javacomp: Portability fix.
28743         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
28744         that it also works on Solaris.
28745
28746 2009-12-26  Bruno Haible  <bruno@clisp.org>
28747
28748         localename: Fix storage allocation of gl_locale_name_thread's result.
28749         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
28750         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
28751         all platforms that have 'uselocale'.
28752         (gl_locale_name_thread_unsafe): New function, extracted from
28753         gl_locale_name_thread.
28754         (gl_locale_name_thread): Call struniq on all platforms that have
28755         'uselocale'.
28756         * tests/test-localename.c (test_locale_name_thread): Check that the
28757         resulting strings are permanently allocated.
28758         * modules/localename-tests (Depends-on): Add strdup.
28759
28760 2009-12-26  Bruno Haible  <bruno@clisp.org>
28761
28762         * tests/test-localename.c (categories): Fill in the strings.
28763
28764 2009-12-26  Jim Meyering  <meyering@redhat.com>
28765
28766         isdir: complete the removal of m4/isdir.m4
28767         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
28768
28769         isdir: clean up, since at least grep still uses it
28770         * lib/isdir.c: Include "isdir.h".
28771         (S_ISDIR): Remove now-unneeded definition.
28772         * modules/isdir (Files): Add lib/isdir.h.
28773         * lib/isdir.h: New file, with declaration.
28774         * m4/isdir.m4: Remove file -- unneeded.
28775
28776 2009-12-25  Bruno Haible  <bruno@clisp.org>
28777
28778         selinux-h: Make generated .h files standalone.
28779         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
28780         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
28781         * lib/se-selinux.in.h: Likewise.
28782         * modules/selinux-h (Depends-on): Add unused-parameter.
28783         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
28784         selinux/selinux.h and selinux/context.h.
28785         Suggested by Eric Blake.
28786
28787 2009-12-25  Bruno Haible  <bruno@clisp.org>
28788
28789         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
28790         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
28791         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
28792         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
28793         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
28794
28795 2009-12-24  Bruno Haible  <bruno@clisp.org>
28796
28797         openat: Fix warning.
28798         * lib/openat-proc.c: Include <unistd.h>.
28799
28800 2009-12-24  Bruno Haible  <bruno@clisp.org>
28801
28802         New module 'unused-parameter'.
28803         * build-aux/unused-parameter.h: New file, extracted from earlier
28804         gnulib-common.m4.
28805         * modules/unused-parameter: New file.
28806         * lib/unistr.h: Include unused-parameter.h.
28807         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
28808         _GL_UNUSED.
28809         * modules/unistr/base (Depends-on): Add unused-parameter.
28810
28811 2009-12-24  Bruno Haible  <bruno@clisp.org>
28812
28813         Add missing dependencies to 'extensions' module.
28814         * m4/extensions.m4: Add comment.
28815         * modules/accept4 (Depends-on): Add extensions.
28816         * modules/dup3 (Depends-on): Likewise.
28817         * modules/fcntl (Depends-on): Likewise.
28818         * modules/futimens (Depends-on): Likewise.
28819         * modules/mknod (Depends-on): Likewise.
28820         * modules/pipe2 (Depends-on): Likewise.
28821         * modules/stat-time (Depends-on): Likewise.
28822         * modules/strcasestr-simple (Depends-on): Likewise.
28823         * modules/strsignal (Depends-on): Likewise.
28824         * modules/utimensat (Depends-on): Likewise.
28825         * modules/localcharset (Depends-on): Likewise. Needed because of
28826         gl_FCNTL_O_FLAGS.
28827         * modules/wcrtomb (Depends-on): Likewise. Needed because of
28828         AC_TYPE_MBSTATE_T.
28829         * modules/wcsnrtombs (Depends-on): Likewise.
28830         * modules/wcsrtombs (Depends-on): Likewise.
28831
28832 2009-12-24  Bruno Haible  <bruno@clisp.org>
28833
28834         binary-io: Avoid gcc warning due to SET_BINARY.
28835         * lib/binary-io.h (SET_BINARY): Cast the result to void.
28836         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
28837
28838 2009-12-24  Bruno Haible  <bruno@clisp.org>
28839
28840         Avoid future namespace pollution on glibc systems.
28841         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
28842         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
28843         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
28844         glibc systems.
28845
28846 2009-12-24  Bruno Haible  <bruno@clisp.org>
28847
28848         Refactor common macros used in tests.
28849         * tests/macros.h: New file.
28850         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
28851         and/or <stdlib.h>, if appropriate.
28852         (ASSERT, SIZEOF): Remove macros.
28853         * tests/test-areadlink-with-size.c: Likewise.
28854         * tests/test-areadlinkat.c: Likewise.
28855         * tests/test-areadlinkat-with-size.c: Likewise.
28856         * tests/test-argmatch.c: Likewise.
28857         * tests/test-argv-iter.c: Likewise.
28858         * tests/test-array-mergesort.c: Likewise.
28859         * tests/test-array_list.c: Likewise.
28860         * tests/test-array_oset.c: Likewise.
28861         * tests/test-avltree_list.c: Likewise.
28862         * tests/test-avltree_oset.c: Likewise.
28863         * tests/test-avltreehash_list.c: Likewise.
28864         * tests/test-base64.c: Likewise.
28865         * tests/test-binary-io.c: Likewise.
28866         * tests/test-bitrotate.c: Likewise.
28867         * tests/test-btowc.c: Likewise.
28868         * tests/test-byteswap.c: Likewise.
28869         * tests/test-c-ctype.c: Likewise.
28870         * tests/test-c-stack.c: Likewise.
28871         * tests/test-c-strcasecmp.c: Likewise.
28872         * tests/test-c-strcasestr.c: Likewise.
28873         * tests/test-c-strncasecmp.c: Likewise.
28874         * tests/test-c-strstr.c: Likewise.
28875         * tests/test-canonicalize-lgpl.c: Likewise.
28876         * tests/test-canonicalize.c: Likewise.
28877         * tests/test-carray_list.c: Likewise.
28878         * tests/test-ceilf1.c: Likewise.
28879         * tests/test-ceilf2.c: Likewise.
28880         * tests/test-ceill.c: Likewise.
28881         * tests/test-chown.c: Likewise.
28882         * tests/test-cloexec.c: Likewise.
28883         * tests/test-copy-acl.c: Likewise.
28884         * tests/test-copy-file.c: Likewise.
28885         * tests/test-count-one-bits.c: Likewise.
28886         * tests/test-dprintf-posix.c: Likewise.
28887         * tests/test-dup2.c: Likewise.
28888         * tests/test-dup3.c: Likewise.
28889         * tests/test-duplocale.c: Likewise.
28890         * tests/test-fbufmode.c: Likewise.
28891         * tests/test-fchdir.c: Likewise.
28892         * tests/test-fchownat.c: Likewise.
28893         * tests/test-fcntl-safer.c: Likewise.
28894         * tests/test-fcntl.c: Likewise.
28895         * tests/test-fdopendir.c: Likewise.
28896         * tests/test-fdutimensat.c: Likewise.
28897         * tests/test-fflush2.c: Likewise.
28898         * tests/test-file-has-acl.c: Likewise.
28899         * tests/test-filevercmp.c: Likewise.
28900         * tests/test-flock.c: Likewise.
28901         * tests/test-floorf1.c: Likewise.
28902         * tests/test-floorf2.c: Likewise.
28903         * tests/test-floorl.c: Likewise.
28904         * tests/test-fnmatch.c: Likewise.
28905         * tests/test-fopen.h: Likewise.
28906         * tests/test-fpending.c: Likewise.
28907         * tests/test-fprintf-posix.c: Likewise.
28908         * tests/test-fpurge.c: Likewise.
28909         * tests/test-freadable.c: Likewise.
28910         * tests/test-freadahead.c: Likewise.
28911         * tests/test-freading.c: Likewise.
28912         * tests/test-freadptr.c: Likewise.
28913         * tests/test-freadptr2.c: Likewise.
28914         * tests/test-freadseek.c: Likewise.
28915         * tests/test-freopen.c: Likewise.
28916         * tests/test-frexp.c: Likewise.
28917         * tests/test-frexpl.c: Likewise.
28918         * tests/test-fseek.c: Likewise.
28919         * tests/test-fseeko.c: Likewise.
28920         * tests/test-fstatat.c: Likewise.
28921         * tests/test-fstrcmp.c: Likewise.
28922         * tests/test-fsync.c: Likewise.
28923         * tests/test-ftell.c: Likewise.
28924         * tests/test-ftello.c: Likewise.
28925         * tests/test-func.c: Likewise.
28926         * tests/test-futimens.c: Likewise.
28927         * tests/test-fwritable.c: Likewise.
28928         * tests/test-fwriting.c: Likewise.
28929         * tests/test-getcwd.c: Likewise.
28930         * tests/test-getdate.c: Likewise.
28931         * tests/test-getdelim.c: Likewise.
28932         * tests/test-getdtablesize.c: Likewise.
28933         * tests/test-getgroups.c: Likewise.
28934         * tests/test-getline.c: Likewise.
28935         * tests/test-getndelim2.c: Likewise.
28936         * tests/test-glob.c: Likewise.
28937         * tests/test-hash.c: Likewise.
28938         * tests/test-i-ring.c: Likewise.
28939         * tests/test-iconv-utf.c: Likewise.
28940         * tests/test-iconv.c: Likewise.
28941         * tests/test-idpriv-drop.c: Likewise.
28942         * tests/test-idpriv-droptemp.c: Likewise.
28943         * tests/test-inet_ntop.c: Likewise.
28944         * tests/test-inet_pton.c: Likewise.
28945         * tests/test-isblank.c: Likewise.
28946         * tests/test-isfinite.c: Likewise.
28947         * tests/test-isinf.c: Likewise.
28948         * tests/test-isnan.c: Likewise.
28949         * tests/test-isnand.h: Likewise.
28950         * tests/test-isnanf.h: Likewise.
28951         * tests/test-isnanl.h: Likewise.
28952         * tests/test-lchown.c: Likewise.
28953         * tests/test-ldexpl.c: Likewise.
28954         * tests/test-link.c: Likewise.
28955         * tests/test-linkat.c: Likewise.
28956         * tests/test-linked_list.c: Likewise.
28957         * tests/test-linkedhash_list.c: Likewise.
28958         * tests/test-localename.c: Likewise.
28959         * tests/test-lseek.c: Likewise.
28960         * tests/test-lstat.c: Likewise.
28961         * tests/test-mbmemcasecmp.c: Likewise.
28962         * tests/test-mbmemcasecoll.c: Likewise.
28963         * tests/test-mbrtowc.c: Likewise.
28964         * tests/test-mbscasecmp.c: Likewise.
28965         * tests/test-mbscasestr1.c: Likewise.
28966         * tests/test-mbscasestr2.c: Likewise.
28967         * tests/test-mbscasestr3.c: Likewise.
28968         * tests/test-mbscasestr4.c: Likewise.
28969         * tests/test-mbschr.c: Likewise.
28970         * tests/test-mbscspn.c: Likewise.
28971         * tests/test-mbsinit.c: Likewise.
28972         * tests/test-mbsncasecmp.c: Likewise.
28973         * tests/test-mbsnrtowcs.c: Likewise.
28974         * tests/test-mbspbrk.c: Likewise.
28975         * tests/test-mbspcasecmp.c: Likewise.
28976         * tests/test-mbsrchr.c: Likewise.
28977         * tests/test-mbsrtowcs.c: Likewise.
28978         * tests/test-mbsspn.c: Likewise.
28979         * tests/test-mbsstr1.c: Likewise.
28980         * tests/test-mbsstr2.c: Likewise.
28981         * tests/test-mbsstr3.c: Likewise.
28982         * tests/test-memchr.c: Likewise.
28983         * tests/test-memchr2.c: Likewise.
28984         * tests/test-memcmp.c: Likewise.
28985         * tests/test-memmem.c: Likewise.
28986         * tests/test-memrchr.c: Likewise.
28987         * tests/test-mkdir.c: Likewise.
28988         * tests/test-mkdirat.c: Likewise.
28989         * tests/test-mkfifo.c: Likewise.
28990         * tests/test-mkfifoat.c: Likewise.
28991         * tests/test-mknod.c: Likewise.
28992         * tests/test-nanosleep.c: Likewise.
28993         * tests/test-nl_langinfo.c: Likewise.
28994         * tests/test-obstack-printf.c: Likewise.
28995         * tests/test-open.c: Likewise.
28996         * tests/test-openat.c: Likewise.
28997         * tests/test-pipe-filter-gi1.c: Likewise.
28998         * tests/test-pipe-filter-gi2-main.c: Likewise.
28999         * tests/test-pipe-filter-ii1.c: Likewise.
29000         * tests/test-pipe-filter-ii2-main.c: Likewise.
29001         * tests/test-pipe2.c: Likewise.
29002         * tests/test-popen.h: Likewise.
29003         * tests/test-posixtm.c: Likewise.
29004         * tests/test-pread.c: Likewise.
29005         * tests/test-printf-frexp.c: Likewise.
29006         * tests/test-printf-frexpl.c: Likewise.
29007         * tests/test-printf-posix.c: Likewise.
29008         * tests/test-priv-set.c: Likewise.
29009         * tests/test-quotearg.c: Likewise.
29010         * tests/test-random_r.c: Likewise.
29011         * tests/test-rawmemchr.c: Likewise.
29012         * tests/test-rbtree_list.c: Likewise.
29013         * tests/test-rbtree_oset.c: Likewise.
29014         * tests/test-rbtreehash_list.c: Likewise.
29015         * tests/test-readlink.c: Likewise.
29016         * tests/test-remove.c: Likewise.
29017         * tests/test-rename.c: Likewise.
29018         * tests/test-renameat.c: Likewise.
29019         * tests/test-rmdir.c: Likewise.
29020         * tests/test-round1.c: Likewise.
29021         * tests/test-roundf1.c: Likewise.
29022         * tests/test-roundl.c: Likewise.
29023         * tests/test-safe-alloc.c: Likewise.
29024         * tests/test-sameacls.c: Likewise.
29025         * tests/test-set-mode-acl.c: Likewise.
29026         * tests/test-setenv.c: Likewise.
29027         * tests/test-sigaction.c: Likewise.
29028         * tests/test-signbit.c: Likewise.
29029         * tests/test-sleep.c: Likewise.
29030         * tests/test-snprintf-posix.c: Likewise.
29031         * tests/test-snprintf.c: Likewise.
29032         * tests/test-sprintf-posix.c: Likewise.
29033         * tests/test-stat-time.c: Likewise.
29034         * tests/test-stat.c: Likewise.
29035         * tests/test-strcasestr.c: Likewise.
29036         * tests/test-strchrnul.c: Likewise.
29037         * tests/test-strerror.c: Likewise.
29038         * tests/test-striconv.c: Likewise.
29039         * tests/test-striconveh.c: Likewise.
29040         * tests/test-striconveha.c: Likewise.
29041         * tests/test-strsignal.c: Likewise.
29042         * tests/test-strstr.c: Likewise.
29043         * tests/test-strtod.c: Likewise.
29044         * tests/test-strverscmp.c: Likewise.
29045         * tests/test-symlink.c: Likewise.
29046         * tests/test-symlinkat.c: Likewise.
29047         * tests/test-trunc1.c: Likewise.
29048         * tests/test-trunc2.c: Likewise.
29049         * tests/test-truncf1.c: Likewise.
29050         * tests/test-truncf2.c: Likewise.
29051         * tests/test-truncl.c: Likewise.
29052         * tests/test-uname.c: Likewise.
29053         * tests/test-unlink.c: Likewise.
29054         * tests/test-unlinkat.c: Likewise.
29055         * tests/test-unsetenv.c: Likewise.
29056         * tests/test-usleep.c: Likewise.
29057         * tests/test-utimens.c: Likewise.
29058         * tests/test-utimensat.c: Likewise.
29059         * tests/test-vasnprintf-posix.c: Likewise.
29060         * tests/test-vasnprintf-posix2.c: Likewise.
29061         * tests/test-vasnprintf.c: Likewise.
29062         * tests/test-vasprintf-posix.c: Likewise.
29063         * tests/test-vasprintf.c: Likewise.
29064         * tests/test-vdprintf-posix.c: Likewise.
29065         * tests/test-vfprintf-posix.c: Likewise.
29066         * tests/test-vprintf-posix.c: Likewise.
29067         * tests/test-vsnprintf-posix.c: Likewise.
29068         * tests/test-vsnprintf.c: Likewise.
29069         * tests/test-vsprintf-posix.c: Likewise.
29070         * tests/test-wcrtomb.c: Likewise.
29071         * tests/test-wcsnrtombs.c: Likewise.
29072         * tests/test-wcsrtombs.c: Likewise.
29073         * tests/test-wctype.c: Likewise.
29074         * tests/test-wcwidth.c: Likewise.
29075         * tests/test-xfprintf-posix.c: Likewise.
29076         * tests/test-xmemdup0.c: Likewise.
29077         * tests/test-xprintf-posix.c: Likewise.
29078         * tests/test-xvasprintf.c: Likewise.
29079         * tests/unicase/test-locale-language.c: Likewise.
29080         * tests/unicase/test-mapping-part1.h: Likewise.
29081         * tests/unicase/test-predicate-part1.h: Likewise.
29082         * tests/unicase/test-u8-casecmp.c: Likewise.
29083         * tests/unicase/test-u8-casecoll.c: Likewise.
29084         * tests/unicase/test-u8-casefold.c: Likewise.
29085         * tests/unicase/test-u8-is-cased.c: Likewise.
29086         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29087         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29088         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29089         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29090         * tests/unicase/test-u8-tolower.c: Likewise.
29091         * tests/unicase/test-u8-totitle.c: Likewise.
29092         * tests/unicase/test-u8-toupper.c: Likewise.
29093         * tests/unicase/test-u16-casecmp.c: Likewise.
29094         * tests/unicase/test-u16-casecoll.c: Likewise.
29095         * tests/unicase/test-u16-casefold.c: Likewise.
29096         * tests/unicase/test-u16-is-cased.c: Likewise.
29097         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29098         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29099         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29100         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29101         * tests/unicase/test-u16-tolower.c: Likewise.
29102         * tests/unicase/test-u16-totitle.c: Likewise.
29103         * tests/unicase/test-u16-toupper.c: Likewise.
29104         * tests/unicase/test-u32-casecmp.c: Likewise.
29105         * tests/unicase/test-u32-casecoll.c: Likewise.
29106         * tests/unicase/test-u32-casefold.c: Likewise.
29107         * tests/unicase/test-u32-is-cased.c: Likewise.
29108         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29109         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29110         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29111         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29112         * tests/unicase/test-u32-tolower.c: Likewise.
29113         * tests/unicase/test-u32-totitle.c: Likewise.
29114         * tests/unicase/test-u32-toupper.c: Likewise.
29115         * tests/unicase/test-ulc-casecmp.c: Likewise.
29116         * tests/unicase/test-ulc-casecoll.c: Likewise.
29117         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29118         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29119         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29120         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29121         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29122         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29123         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29124         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29125         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29126         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29127         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29128         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29129         * tests/unictype/test-bidi_byname.c: Likewise.
29130         * tests/unictype/test-bidi_name.c: Likewise.
29131         * tests/unictype/test-bidi_of.c: Likewise.
29132         * tests/unictype/test-bidi_test.c: Likewise.
29133         * tests/unictype/test-block_list.c: Likewise.
29134         * tests/unictype/test-block_of.c: Likewise.
29135         * tests/unictype/test-block_test.c: Likewise.
29136         * tests/unictype/test-categ_and.c: Likewise.
29137         * tests/unictype/test-categ_and_not.c: Likewise.
29138         * tests/unictype/test-categ_byname.c: Likewise.
29139         * tests/unictype/test-categ_name.c: Likewise.
29140         * tests/unictype/test-categ_none.c: Likewise.
29141         * tests/unictype/test-categ_of.c: Likewise.
29142         * tests/unictype/test-categ_or.c: Likewise.
29143         * tests/unictype/test-categ_test_withtable.c: Likewise.
29144         * tests/unictype/test-combining.c: Likewise.
29145         * tests/unictype/test-decdigit.c: Likewise.
29146         * tests/unictype/test-digit.c: Likewise.
29147         * tests/unictype/test-mirror.c: Likewise.
29148         * tests/unictype/test-numeric.c: Likewise.
29149         * tests/unictype/test-pr_byname.c: Likewise.
29150         * tests/unictype/test-pr_test.c: Likewise.
29151         * tests/unictype/test-predicate-part1.h: Likewise.
29152         * tests/unictype/test-scripts.c: Likewise.
29153         * tests/unictype/test-sy_c_ident.c: Likewise.
29154         * tests/unictype/test-sy_java_ident.c: Likewise.
29155         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
29156         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
29157         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
29158         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
29159         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
29160         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
29161         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
29162         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
29163         * tests/uninorm/test-canonical-decomposition.c: Likewise.
29164         * tests/uninorm/test-compat-decomposition.c: Likewise.
29165         * tests/uninorm/test-composition.c: Likewise.
29166         * tests/uninorm/test-decomposing-form.c: Likewise.
29167         * tests/uninorm/test-decomposition.c: Likewise.
29168         * tests/uninorm/test-u8-nfc.c: Likewise.
29169         * tests/uninorm/test-u8-nfd.c: Likewise.
29170         * tests/uninorm/test-u8-nfkc.c: Likewise.
29171         * tests/uninorm/test-u8-nfkd.c: Likewise.
29172         * tests/uninorm/test-u8-normcmp.c: Likewise.
29173         * tests/uninorm/test-u8-normcoll.c: Likewise.
29174         * tests/uninorm/test-u16-nfc.c: Likewise.
29175         * tests/uninorm/test-u16-nfd.c: Likewise.
29176         * tests/uninorm/test-u16-nfkc.c: Likewise.
29177         * tests/uninorm/test-u16-nfkd.c: Likewise.
29178         * tests/uninorm/test-u16-normcmp.c: Likewise.
29179         * tests/uninorm/test-u16-normcoll.c: Likewise.
29180         * tests/uninorm/test-u32-nfc.c: Likewise.
29181         * tests/uninorm/test-u32-nfd.c: Likewise.
29182         * tests/uninorm/test-u32-nfkc.c: Likewise.
29183         * tests/uninorm/test-u32-nfkd.c: Likewise.
29184         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29185         * tests/uninorm/test-u32-normcmp.c: Likewise.
29186         * tests/uninorm/test-u32-normcoll.c: Likewise.
29187         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29188         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29189         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29190         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29191         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29192         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29193         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29194         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29195         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29196         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29197         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29198         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29199         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29200         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29201         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29202         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29203         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29204         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29205         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29206         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29207         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29208         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29209         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29210         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29211         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29212         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29213         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29214         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29215         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29216         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
29217         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
29218         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
29219         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
29220         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29221         * tests/uniwidth/test-u8-width.c: Likewise.
29222         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29223         * tests/uniwidth/test-u16-width.c: Likewise.
29224         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29225         * tests/uniwidth/test-u32-width.c: Likewise.
29226         * tests/uniwidth/test-uc_width.c: Likewise.
29227         * tests/uniwidth/test-uc_width2.c: Likewise.
29228         * modules/acl-tests (Files): Add tests/macros.h.
29229         * modules/areadlink-tests (Files): Likewise.
29230         * modules/areadlink-with-size-tests (Files): Likewise.
29231         * modules/areadlinkat-tests (Files): Likewise.
29232         * modules/areadlinkat-with-size-tests (Files): Likewise.
29233         * modules/argmatch-tests (Files): Likewise.
29234         * modules/argv-iter-tests (Files): Likewise.
29235         * modules/array-list-tests (Files): Likewise.
29236         * modules/array-mergesort-tests (Files): Likewise.
29237         * modules/array-oset-tests (Files): Likewise.
29238         * modules/avltree-list-tests (Files): Likewise.
29239         * modules/avltree-oset-tests (Files): Likewise.
29240         * modules/avltreehash-list-tests (Files): Likewise.
29241         * modules/base64-tests (Files): Likewise.
29242         * modules/binary-io-tests (Files): Likewise.
29243         * modules/bitrotate-tests (Files): Likewise.
29244         * modules/btowc-tests (Files): Likewise.
29245         * modules/byteswap-tests (Files): Likewise.
29246         * modules/c-ctype-tests (Files): Likewise.
29247         * modules/c-stack-tests (Files): Likewise.
29248         * modules/c-strcase-tests (Files): Likewise.
29249         * modules/c-strcasestr-tests (Files): Likewise.
29250         * modules/c-strstr-tests (Files): Likewise.
29251         * modules/canonicalize-lgpl-tests (Files): Likewise.
29252         * modules/canonicalize-tests (Files): Likewise.
29253         * modules/carray-list-tests (Files): Likewise.
29254         * modules/ceilf-tests (Files): Likewise.
29255         * modules/ceill-tests (Files): Likewise.
29256         * modules/chown-tests (Files): Likewise.
29257         * modules/cloexec-tests (Files): Likewise.
29258         * modules/copy-file-tests (Files): Likewise.
29259         * modules/count-one-bits-tests (Files): Likewise.
29260         * modules/dprintf-posix-tests (Files): Likewise.
29261         * modules/dup2-tests (Files): Likewise.
29262         * modules/dup3-tests (Files): Likewise.
29263         * modules/duplocale-tests (Files): Likewise.
29264         * modules/fbufmode-tests (Files): Likewise.
29265         * modules/fchdir-tests (Files): Likewise.
29266         * modules/fcntl-safer-tests (Files): Likewise.
29267         * modules/fcntl-tests (Files): Likewise.
29268         * modules/fdopendir-tests (Files): Likewise.
29269         * modules/fdutimensat-tests (Files): Likewise.
29270         * modules/fflush-tests (Files): Likewise.
29271         * modules/filevercmp-tests (Files): Likewise.
29272         * modules/flock-tests (Files): Likewise.
29273         * modules/floorf-tests (Files): Likewise.
29274         * modules/floorl-tests (Files): Likewise.
29275         * modules/fnmatch-tests (Files): Likewise.
29276         * modules/fopen-safer-tests (Files): Likewise.
29277         * modules/fopen-tests (Files): Likewise.
29278         * modules/fpending-tests (Files): Likewise.
29279         * modules/fprintf-posix-tests (Files): Likewise.
29280         * modules/fpurge-tests (Files): Likewise.
29281         * modules/freadable-tests (Files): Likewise.
29282         * modules/freadahead-tests (Files): Likewise.
29283         * modules/freading-tests (Files): Likewise.
29284         * modules/freadptr-tests (Files): Likewise.
29285         * modules/freadseek-tests (Files): Likewise.
29286         * modules/freopen-tests (Files): Likewise.
29287         * modules/frexp-nolibm-tests (Files): Likewise.
29288         * modules/frexp-tests (Files): Likewise.
29289         * modules/frexpl-nolibm-tests (Files): Likewise.
29290         * modules/frexpl-tests (Files): Likewise.
29291         * modules/fseek-tests (Files): Likewise.
29292         * modules/fseeko-tests (Files): Likewise.
29293         * modules/fstrcmp-tests (Files): Likewise.
29294         * modules/fsync-tests (Files): Likewise.
29295         * modules/ftell-tests (Files): Likewise.
29296         * modules/ftello-tests (Files): Likewise.
29297         * modules/func-tests (Files): Likewise.
29298         * modules/futimens-tests (Files): Likewise.
29299         * modules/fwritable-tests (Files): Likewise.
29300         * modules/fwriting-tests (Files): Likewise.
29301         * modules/getcwd-tests (Files): Likewise.
29302         * modules/getdate-tests (Files): Likewise.
29303         * modules/getdelim-tests (Files): Likewise.
29304         * modules/getdtablesize-tests (Files): Likewise.
29305         * modules/getgroups-tests (Files): Likewise.
29306         * modules/getline-tests (Files): Likewise.
29307         * modules/getndelim2-tests (Files): Likewise.
29308         * modules/glob-tests (Files): Likewise.
29309         * modules/hash-tests (Files): Likewise.
29310         * modules/i-ring-tests (Files): Likewise.
29311         * modules/iconv-tests (Files): Likewise.
29312         * modules/iconv_open-utf-tests (Files): Likewise.
29313         * modules/idpriv-drop-tests (Files): Likewise.
29314         * modules/idpriv-droptemp-tests (Files): Likewise.
29315         * modules/inet_ntop-tests (Files): Likewise.
29316         * modules/inet_pton-tests (Files): Likewise.
29317         * modules/isblank-tests (Files): Likewise.
29318         * modules/isfinite-tests (Files): Likewise.
29319         * modules/isinf-tests (Files): Likewise.
29320         * modules/isnan-tests (Files): Likewise.
29321         * modules/isnand-nolibm-tests (Files): Likewise.
29322         * modules/isnand-tests (Files): Likewise.
29323         * modules/isnanf-nolibm-tests (Files): Likewise.
29324         * modules/isnanf-tests (Files): Likewise.
29325         * modules/isnanl-nolibm-tests (Files): Likewise.
29326         * modules/isnanl-tests (Files): Likewise.
29327         * modules/lchown-tests (Files): Likewise.
29328         * modules/ldexpl-tests (Files): Likewise.
29329         * modules/link-tests (Files): Likewise.
29330         * modules/linkat-tests (Files): Likewise.
29331         * modules/linked-list-tests (Files): Likewise.
29332         * modules/linkedhash-list-tests (Files): Likewise.
29333         * modules/localename-tests (Files): Likewise.
29334         * modules/lseek-tests (Files): Likewise.
29335         * modules/lstat-tests (Files): Likewise.
29336         * modules/mbmemcasecmp-tests (Files): Likewise.
29337         * modules/mbmemcasecoll-tests (Files): Likewise.
29338         * modules/mbrtowc-tests (Files): Likewise.
29339         * modules/mbscasecmp-tests (Files): Likewise.
29340         * modules/mbscasestr-tests (Files): Likewise.
29341         * modules/mbschr-tests (Files): Likewise.
29342         * modules/mbscspn-tests (Files): Likewise.
29343         * modules/mbsinit-tests (Files): Likewise.
29344         * modules/mbsncasecmp-tests (Files): Likewise.
29345         * modules/mbsnrtowcs-tests (Files): Likewise.
29346         * modules/mbspbrk-tests (Files): Likewise.
29347         * modules/mbspcasecmp-tests (Files): Likewise.
29348         * modules/mbsrchr-tests (Files): Likewise.
29349         * modules/mbsrtowcs-tests (Files): Likewise.
29350         * modules/mbsspn-tests (Files): Likewise.
29351         * modules/mbsstr-tests (Files): Likewise.
29352         * modules/memchr-tests (Files): Likewise.
29353         * modules/memchr2-tests (Files): Likewise.
29354         * modules/memcmp-tests (Files): Likewise.
29355         * modules/memmem-tests (Files): Likewise.
29356         * modules/memrchr-tests (Files): Likewise.
29357         * modules/mkdir-tests (Files): Likewise.
29358         * modules/mkfifo-tests (Files): Likewise.
29359         * modules/mkfifoat-tests (Files): Likewise.
29360         * modules/mknod-tests (Files): Likewise.
29361         * modules/nanosleep-tests (Files): Likewise.
29362         * modules/nl_langinfo-tests (Files): Likewise.
29363         * modules/obstack-printf-tests (Files): Likewise.
29364         * modules/open-tests (Files): Likewise.
29365         * modules/openat-tests (Files): Likewise.
29366         * modules/pipe-filter-gi-tests (Files): Likewise.
29367         * modules/pipe-filter-ii-tests (Files): Likewise.
29368         * modules/pipe2-tests (Files): Likewise.
29369         * modules/popen-safer-tests (Files): Likewise.
29370         * modules/popen-tests (Files): Likewise.
29371         * modules/posixtm-tests (Files): Likewise.
29372         * modules/pread-tests (Files): Likewise.
29373         * modules/printf-frexp-tests (Files): Likewise.
29374         * modules/printf-frexpl-tests (Files): Likewise.
29375         * modules/printf-posix-tests (Files): Likewise.
29376         * modules/priv-set-tests (Files): Likewise.
29377         * modules/quotearg-tests (Files): Likewise.
29378         * modules/random_r-tests (Files): Likewise.
29379         * modules/rawmemchr-tests (Files): Likewise.
29380         * modules/rbtree-list-tests (Files): Likewise.
29381         * modules/rbtree-oset-tests (Files): Likewise.
29382         * modules/rbtreehash-list-tests (Files): Likewise.
29383         * modules/readlink-tests (Files): Likewise.
29384         * modules/remove-tests (Files): Likewise.
29385         * modules/rename-tests (Files): Likewise.
29386         * modules/renameat-tests (Files): Likewise.
29387         * modules/rmdir-tests (Files): Likewise.
29388         * modules/round-tests (Files): Likewise.
29389         * modules/roundf-tests (Files): Likewise.
29390         * modules/roundl-tests (Files): Likewise.
29391         * modules/safe-alloc-tests (Files): Likewise.
29392         * modules/setenv-tests (Files): Likewise.
29393         * modules/sigaction-tests (Files): Likewise.
29394         * modules/signbit-tests (Files): Likewise.
29395         * modules/sleep-tests (Files): Likewise.
29396         * modules/snprintf-posix-tests (Files): Likewise.
29397         * modules/snprintf-tests (Files): Likewise.
29398         * modules/sprintf-posix-tests (Files): Likewise.
29399         * modules/stat-tests (Files): Likewise.
29400         * modules/stat-time-tests (Files): Likewise.
29401         * modules/strcasestr-tests (Files): Likewise.
29402         * modules/strchrnul-tests (Files): Likewise.
29403         * modules/strerror-tests (Files): Likewise.
29404         * modules/striconv-tests (Files): Likewise.
29405         * modules/striconveh-tests (Files): Likewise.
29406         * modules/striconveha-tests (Files): Likewise.
29407         * modules/strsignal-tests (Files): Likewise.
29408         * modules/strstr-tests (Files): Likewise.
29409         * modules/strtod-tests (Files): Likewise.
29410         * modules/strverscmp-tests (Files): Likewise.
29411         * modules/symlink-tests (Files): Likewise.
29412         * modules/symlinkat-tests (Files): Likewise.
29413         * modules/trunc-tests (Files): Likewise.
29414         * modules/truncf-tests (Files): Likewise.
29415         * modules/truncl-tests (Files): Likewise.
29416         * modules/uname-tests (Files): Likewise.
29417         * modules/unicase/cased-tests (Files): Likewise.
29418         * modules/unicase/ignorable-tests (Files): Likewise.
29419         * modules/unicase/locale-language-tests (Files): Likewise.
29420         * modules/unicase/tolower-tests (Files): Likewise.
29421         * modules/unicase/totitle-tests (Files): Likewise.
29422         * modules/unicase/toupper-tests (Files): Likewise.
29423         * modules/unicase/u8-casecmp-tests (Files): Likewise.
29424         * modules/unicase/u8-casecoll-tests (Files): Likewise.
29425         * modules/unicase/u8-casefold-tests (Files): Likewise.
29426         * modules/unicase/u8-is-cased-tests (Files): Likewise.
29427         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
29428         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
29429         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
29430         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
29431         * modules/unicase/u8-tolower-tests (Files): Likewise.
29432         * modules/unicase/u8-totitle-tests (Files): Likewise.
29433         * modules/unicase/u8-toupper-tests (Files): Likewise.
29434         * modules/unicase/u16-casecmp-tests (Files): Likewise.
29435         * modules/unicase/u16-casecoll-tests (Files): Likewise.
29436         * modules/unicase/u16-casefold-tests (Files): Likewise.
29437         * modules/unicase/u16-is-cased-tests (Files): Likewise.
29438         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
29439         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
29440         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
29441         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
29442         * modules/unicase/u16-tolower-tests (Files): Likewise.
29443         * modules/unicase/u16-totitle-tests (Files): Likewise.
29444         * modules/unicase/u16-toupper-tests (Files): Likewise.
29445         * modules/unicase/u32-casecmp-tests (Files): Likewise.
29446         * modules/unicase/u32-casecoll-tests (Files): Likewise.
29447         * modules/unicase/u32-casefold-tests (Files): Likewise.
29448         * modules/unicase/u32-is-cased-tests (Files): Likewise.
29449         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
29450         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
29451         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
29452         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
29453         * modules/unicase/u32-tolower-tests (Files): Likewise.
29454         * modules/unicase/u32-totitle-tests (Files): Likewise.
29455         * modules/unicase/u32-toupper-tests (Files): Likewise.
29456         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
29457         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
29458         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
29459         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
29460         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
29461         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
29462         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
29463         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
29464         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
29465         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
29466         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
29467         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
29468         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
29469         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
29470         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
29471         * modules/unictype/bidicategory-name-tests (Files): Likewise.
29472         * modules/unictype/bidicategory-of-tests (Files): Likewise.
29473         * modules/unictype/bidicategory-test-tests (Files): Likewise.
29474         * modules/unictype/block-list-tests (Files): Likewise.
29475         * modules/unictype/block-of-tests (Files): Likewise.
29476         * modules/unictype/block-test-tests (Files): Likewise.
29477         * modules/unictype/category-C-tests (Files): Likewise.
29478         * modules/unictype/category-Cc-tests (Files): Likewise.
29479         * modules/unictype/category-Cf-tests (Files): Likewise.
29480         * modules/unictype/category-Cn-tests (Files): Likewise.
29481         * modules/unictype/category-Co-tests (Files): Likewise.
29482         * modules/unictype/category-Cs-tests (Files): Likewise.
29483         * modules/unictype/category-L-tests (Files): Likewise.
29484         * modules/unictype/category-Ll-tests (Files): Likewise.
29485         * modules/unictype/category-Lm-tests (Files): Likewise.
29486         * modules/unictype/category-Lo-tests (Files): Likewise.
29487         * modules/unictype/category-Lt-tests (Files): Likewise.
29488         * modules/unictype/category-Lu-tests (Files): Likewise.
29489         * modules/unictype/category-M-tests (Files): Likewise.
29490         * modules/unictype/category-Mc-tests (Files): Likewise.
29491         * modules/unictype/category-Me-tests (Files): Likewise.
29492         * modules/unictype/category-Mn-tests (Files): Likewise.
29493         * modules/unictype/category-N-tests (Files): Likewise.
29494         * modules/unictype/category-Nd-tests (Files): Likewise.
29495         * modules/unictype/category-Nl-tests (Files): Likewise.
29496         * modules/unictype/category-No-tests (Files): Likewise.
29497         * modules/unictype/category-P-tests (Files): Likewise.
29498         * modules/unictype/category-Pc-tests (Files): Likewise.
29499         * modules/unictype/category-Pd-tests (Files): Likewise.
29500         * modules/unictype/category-Pe-tests (Files): Likewise.
29501         * modules/unictype/category-Pf-tests (Files): Likewise.
29502         * modules/unictype/category-Pi-tests (Files): Likewise.
29503         * modules/unictype/category-Po-tests (Files): Likewise.
29504         * modules/unictype/category-Ps-tests (Files): Likewise.
29505         * modules/unictype/category-S-tests (Files): Likewise.
29506         * modules/unictype/category-Sc-tests (Files): Likewise.
29507         * modules/unictype/category-Sk-tests (Files): Likewise.
29508         * modules/unictype/category-Sm-tests (Files): Likewise.
29509         * modules/unictype/category-So-tests (Files): Likewise.
29510         * modules/unictype/category-Z-tests (Files): Likewise.
29511         * modules/unictype/category-Zl-tests (Files): Likewise.
29512         * modules/unictype/category-Zp-tests (Files): Likewise.
29513         * modules/unictype/category-Zs-tests (Files): Likewise.
29514         * modules/unictype/category-and-not-tests (Files): Likewise.
29515         * modules/unictype/category-and-tests (Files): Likewise.
29516         * modules/unictype/category-byname-tests (Files): Likewise.
29517         * modules/unictype/category-name-tests (Files): Likewise.
29518         * modules/unictype/category-none-tests (Files): Likewise.
29519         * modules/unictype/category-of-tests (Files): Likewise.
29520         * modules/unictype/category-or-tests (Files): Likewise.
29521         * modules/unictype/category-test-withtable-tests (Files): Likewise.
29522         * modules/unictype/combining-class-tests (Files): Likewise.
29523         * modules/unictype/ctype-alnum-tests (Files): Likewise.
29524         * modules/unictype/ctype-alpha-tests (Files): Likewise.
29525         * modules/unictype/ctype-blank-tests (Files): Likewise.
29526         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
29527         * modules/unictype/ctype-digit-tests (Files): Likewise.
29528         * modules/unictype/ctype-graph-tests (Files): Likewise.
29529         * modules/unictype/ctype-lower-tests (Files): Likewise.
29530         * modules/unictype/ctype-print-tests (Files): Likewise.
29531         * modules/unictype/ctype-punct-tests (Files): Likewise.
29532         * modules/unictype/ctype-space-tests (Files): Likewise.
29533         * modules/unictype/ctype-upper-tests (Files): Likewise.
29534         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
29535         * modules/unictype/decimal-digit-tests (Files): Likewise.
29536         * modules/unictype/digit-tests (Files): Likewise.
29537         * modules/unictype/mirror-tests (Files): Likewise.
29538         * modules/unictype/numeric-tests (Files): Likewise.
29539         * modules/unictype/property-alphabetic-tests (Files): Likewise.
29540         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
29541         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
29542         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
29543         Likewise.
29544         * modules/unictype/property-bidi-block-separator-tests (Files):
29545         Likewise.
29546         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
29547         Likewise.
29548         * modules/unictype/property-bidi-common-separator-tests (Files):
29549         Likewise.
29550         * modules/unictype/property-bidi-control-tests (Files): Likewise.
29551         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
29552         Likewise.
29553         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
29554         Likewise.
29555         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
29556         Likewise.
29557         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
29558         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
29559         Likewise.
29560         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
29561         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
29562         Likewise.
29563         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
29564         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
29565         * modules/unictype/property-bidi-segment-separator-tests (Files):
29566         Likewise.
29567         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
29568         * modules/unictype/property-byname-tests (Files): Likewise.
29569         * modules/unictype/property-combining-tests (Files): Likewise.
29570         * modules/unictype/property-composite-tests (Files): Likewise.
29571         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
29572         * modules/unictype/property-dash-tests (Files): Likewise.
29573         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
29574         * modules/unictype/property-default-ignorable-code-point-tests (Files):
29575         Likewise.
29576         * modules/unictype/property-deprecated-tests (Files): Likewise.
29577         * modules/unictype/property-diacritic-tests (Files): Likewise.
29578         * modules/unictype/property-extender-tests (Files): Likewise.
29579         * modules/unictype/property-format-control-tests (Files): Likewise.
29580         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
29581         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
29582         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
29583         * modules/unictype/property-hex-digit-tests (Files): Likewise.
29584         * modules/unictype/property-hyphen-tests (Files): Likewise.
29585         * modules/unictype/property-id-continue-tests (Files): Likewise.
29586         * modules/unictype/property-id-start-tests (Files): Likewise.
29587         * modules/unictype/property-ideographic-tests (Files): Likewise.
29588         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
29589         * modules/unictype/property-ids-trinary-operator-tests (Files):
29590         Likewise.
29591         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
29592         * modules/unictype/property-iso-control-tests (Files): Likewise.
29593         * modules/unictype/property-join-control-tests (Files): Likewise.
29594         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
29595         * modules/unictype/property-line-separator-tests (Files): Likewise.
29596         * modules/unictype/property-logical-order-exception-tests (Files):
29597         Likewise.
29598         * modules/unictype/property-lowercase-tests (Files): Likewise.
29599         * modules/unictype/property-math-tests (Files): Likewise.
29600         * modules/unictype/property-non-break-tests (Files): Likewise.
29601         * modules/unictype/property-not-a-character-tests (Files): Likewise.
29602         * modules/unictype/property-numeric-tests (Files): Likewise.
29603         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
29604         * modules/unictype/property-other-default-ignorable-code-point-tests
29605         (Files): Likewise.
29606         * modules/unictype/property-other-grapheme-extend-tests (Files):
29607         Likewise.
29608         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
29609         * modules/unictype/property-other-id-start-tests (Files): Likewise.
29610         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
29611         * modules/unictype/property-other-math-tests (Files): Likewise.
29612         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
29613         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
29614         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
29615         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
29616         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
29617         * modules/unictype/property-private-use-tests (Files): Likewise.
29618         * modules/unictype/property-punctuation-tests (Files): Likewise.
29619         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
29620         * modules/unictype/property-radical-tests (Files): Likewise.
29621         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
29622         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
29623         * modules/unictype/property-space-tests (Files): Likewise.
29624         * modules/unictype/property-terminal-punctuation-tests (Files):
29625         Likewise.
29626         * modules/unictype/property-test-tests (Files): Likewise.
29627         * modules/unictype/property-titlecase-tests (Files): Likewise.
29628         * modules/unictype/property-unassigned-code-value-tests (Files):
29629         Likewise.
29630         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
29631         * modules/unictype/property-uppercase-tests (Files): Likewise.
29632         * modules/unictype/property-variation-selector-tests (Files): Likewise.
29633         * modules/unictype/property-white-space-tests (Files): Likewise.
29634         * modules/unictype/property-xid-continue-tests (Files): Likewise.
29635         * modules/unictype/property-xid-start-tests (Files): Likewise.
29636         * modules/unictype/property-zero-width-tests (Files): Likewise.
29637         * modules/unictype/scripts-tests (Files): Likewise.
29638         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
29639         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
29640         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
29641         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
29642         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
29643         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
29644         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
29645         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
29646         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
29647         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
29648         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
29649         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
29650         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
29651         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
29652         * modules/uninorm/composition-tests (Files): Likewise.
29653         * modules/uninorm/decomposing-form-tests (Files): Likewise.
29654         * modules/uninorm/decomposition-tests (Files): Likewise.
29655         * modules/uninorm/filter-tests (Files): Likewise.
29656         * modules/uninorm/nfc-tests (Files): Likewise.
29657         * modules/uninorm/nfd-tests (Files): Likewise.
29658         * modules/uninorm/nfkc-tests (Files): Likewise.
29659         * modules/uninorm/nfkd-tests (Files): Likewise.
29660         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
29661         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
29662         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
29663         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
29664         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
29665         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
29666         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
29667         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29668         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
29669         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
29670         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
29671         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
29672         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29673         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
29674         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
29675         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
29676         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
29677         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29678         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
29679         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
29680         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
29681         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
29682         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29683         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
29684         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
29685         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
29686         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
29687         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
29688         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
29689         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
29690         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
29691         * modules/uniwidth/u8-width-tests (Files): Likewise.
29692         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
29693         * modules/uniwidth/u16-width-tests (Files): Likewise.
29694         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
29695         * modules/uniwidth/u32-width-tests (Files): Likewise.
29696         * modules/uniwidth/width-tests (Files): Likewise.
29697         * modules/unlink-tests (Files): Likewise.
29698         * modules/unsetenv-tests (Files): Likewise.
29699         * modules/usleep-tests (Files): Likewise.
29700         * modules/utimens-tests (Files): Likewise.
29701         * modules/utimensat-tests (Files): Likewise.
29702         * modules/vasnprintf-posix-tests (Files): Likewise.
29703         * modules/vasnprintf-tests (Files): Likewise.
29704         * modules/vasprintf-posix-tests (Files): Likewise.
29705         * modules/vasprintf-tests (Files): Likewise.
29706         * modules/vdprintf-posix-tests (Files): Likewise.
29707         * modules/vfprintf-posix-tests (Files): Likewise.
29708         * modules/vprintf-posix-tests (Files): Likewise.
29709         * modules/vsnprintf-posix-tests (Files): Likewise.
29710         * modules/vsnprintf-tests (Files): Likewise.
29711         * modules/vsprintf-posix-tests (Files): Likewise.
29712         * modules/wcrtomb-tests (Files): Likewise.
29713         * modules/wcsnrtombs-tests (Files): Likewise.
29714         * modules/wcsrtombs-tests (Files): Likewise.
29715         * modules/wctype-tests (Files): Likewise.
29716         * modules/wcwidth-tests (Files): Likewise.
29717         * modules/xmemdup0-tests (Files): Likewise.
29718         * modules/xprintf-posix-tests (Files): Likewise.
29719         * modules/xvasprintf-tests (Files): Likewise.
29720
29721 2009-12-24  Eric Blake  <ebb9@byu.net>
29722
29723         test-nanosleep: fix typo
29724         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
29725         patch.
29726         Reported by Bruno Haible.
29727
29728 2009-12-24  Bruno Haible  <bruno@clisp.org>
29729
29730         Reduce namespace pollution on glibc systems.
29731         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
29732         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
29733         systems.
29734         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
29735         <getopt.h> on glibc systems.
29736         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
29737         systems.
29738         * lib/fcntl.c: Include <unistd.h> here instead.
29739
29740 2009-12-24  Bruno Haible  <bruno@clisp.org>
29741
29742         * lib/stdlib.in.h (includes): Fix typo in today's commit.
29743
29744 2009-12-24  Eric Blake  <ebb9@byu.net>
29745
29746         tests: add signature checks
29747         * tests/signature.h (SIGNATURE_CHECK): New file.
29748         * modules/atexit-tests (Files): Use it.
29749         * modules/btowc-tests (Files): Likewise.
29750         * modules/canonicalize-lgpl-tests (Files): Likewise.
29751         * modules/ceilf-tests (Files): Likewise.
29752         * modules/ceill-tests (Files): Likewise.
29753         * modules/chown-tests (Files): Likewise.
29754         * modules/dprintf-posix-tests (Files): Likewise.
29755         * modules/dup2-tests (Files): Likewise.
29756         * modules/dup3-tests (Files): Likewise.
29757         * modules/duplocale-tests (Files): Likewise.
29758         * modules/fchdir-tests (Files): Likewise.
29759         * modules/fcntl-tests (Files): Likewise.
29760         * modules/fdopendir-tests (Files): Likewise.
29761         * modules/fflush-tests (Files): Likewise.
29762         * modules/flock-tests (Files): Likewise.
29763         * modules/floorf-tests (Files): Likewise.
29764         * modules/floorl-tests (Files): Likewise.
29765         * modules/fnmatch-tests (Files): Likewise.
29766         * modules/fopen-tests (Files): Likewise.
29767         * modules/fprintf-posix-tests (Files): Likewise.
29768         * modules/freopen-tests (Files): Likewise.
29769         * modules/frexp-nolibm-tests (Files): Likewise.
29770         * modules/frexp-tests (Files): Likewise.
29771         * modules/frexpl-nolibm-tests (Files): Likewise.
29772         * modules/frexpl-tests (Files): Likewise.
29773         * modules/fseek-tests (Files): Likewise.
29774         * modules/fseeko-tests (Files): Likewise.
29775         * modules/fsync-tests (Files): Likewise.
29776         * modules/ftell-tests (Files): Likewise.
29777         * modules/ftello-tests (Files): Likewise.
29778         * modules/futimens-tests (Files): Likewise.
29779         * modules/getaddrinfo-tests (Files): Likewise.
29780         * modules/getcwd-tests (Files): Likewise.
29781         * modules/getdelim-tests (Files): Likewise.
29782         * modules/getdtablesize-tests (Files): Likewise.
29783         * modules/getgroups-tests (Files): Likewise.
29784         * modules/gethostname-tests (Files): Likewise.
29785         * modules/getline-tests (Files): Likewise.
29786         * modules/getopt-posix-tests (Files): Likewise.
29787         * modules/gettimeofday-tests (Files): Likewise.
29788         * modules/glob-tests (Files): Likewise.
29789         * modules/iconv-tests (Files): Likewise.
29790         * modules/inet_ntop-tests (Files): Likewise.
29791         * modules/inet_pton-tests (Files): Likewise.
29792         * modules/isblank-tests (Files): Likewise.
29793         * modules/lchown-tests (Files): Likewise.
29794         * modules/ldexpl-tests (Files): Likewise.
29795         * modules/link-tests (Files): Likewise.
29796         * modules/linkat-tests (Files): Likewise.
29797         * modules/lseek-tests (Files): Likewise.
29798         * modules/lstat-tests (Files): Likewise.
29799         * modules/mbrtowc-tests (Files): Likewise.
29800         * modules/mbsinit-tests (Files): Likewise.
29801         * modules/mbsnrtowcs-tests (Files): Likewise.
29802         * modules/mbsrtowcs-tests (Files): Likewise.
29803         * modules/memchr-tests (Files): Likewise.
29804         * modules/memcmp-tests (Files): Likewise.
29805         * modules/memmem-tests (Files): Likewise.
29806         * modules/memrchr-tests (Files): Likewise.
29807         * modules/mkdir-tests (Files): Likewise.
29808         * modules/mkfifo-tests (Files): Likewise.
29809         * modules/mkfifoat-tests (Files): Likewise.
29810         * modules/mknod-tests (Files): Likewise.
29811         * modules/nanosleep-tests (Files): Likewise.
29812         * modules/nl_langinfo-tests (Files): Likewise.
29813         * modules/obstack-printf-tests (Files): Likewise.
29814         * modules/open-tests (Files): Likewise.
29815         * modules/openat-tests (Files): Likewise.
29816         * modules/perror-tests (Files): Likewise.
29817         * modules/pipe2-tests (Files): Likewise.
29818         * modules/poll-tests (Files): Likewise.
29819         * modules/popen-tests (Files): Likewise.
29820         * modules/posix_spawn-tests (Files): Likewise.
29821         * modules/posix_spawnp-tests (Files): Likewise.
29822         * modules/pread-tests (Files): Likewise.
29823         * modules/printf-posix-tests (Files): Likewise.
29824         * modules/pty-tests (Files): Likewise.
29825         * modules/random_r-tests (Files): Likewise.
29826         * modules/rawmemchr-tests (Files): Likewise.
29827         * modules/readlink-tests (Files): Likewise.
29828         * modules/remove-tests (Files): Likewise.
29829         * modules/rename-tests (Files): Likewise.
29830         * modules/renameat-tests (Files): Likewise.
29831         * modules/rmdir-tests (Files): Likewise.
29832         * modules/round-tests (Files): Likewise.
29833         * modules/roundf-tests (Files): Likewise.
29834         * modules/roundl-tests (Files): Likewise.
29835         * modules/select-tests (Files): Likewise.
29836         * modules/setenv-tests (Files): Likewise.
29837         * modules/sigaction-tests (Files): Likewise.
29838         * modules/sleep-tests (Files): Likewise.
29839         * modules/snprintf-posix-tests (Files): Likewise.
29840         * modules/snprintf-tests (Files): Likewise.
29841         * modules/sprintf-posix-tests (Files): Likewise.
29842         * modules/stat-tests (Files): Likewise.
29843         * modules/strcasestr-tests (Files): Likewise.
29844         * modules/strchrnul-tests (Files): Likewise.
29845         * modules/strerror-tests (Files): Likewise.
29846         * modules/strsignal-tests (Files): Likewise.
29847         * modules/strstr-tests (Files): Likewise.
29848         * modules/strtod-tests (Files): Likewise.
29849         * modules/strverscmp-tests (Files): Likewise.
29850         * modules/symlink-tests (Files): Likewise.
29851         * modules/symlinkat-tests (Files): Likewise.
29852         * modules/times-tests (Files): Likewise.
29853         * modules/trunc-tests (Files): Likewise.
29854         * modules/truncf-tests (Files): Likewise.
29855         * modules/truncl-tests (Files): Likewise.
29856         * modules/tsearch-tests (Files): Likewise.
29857         * modules/uname-tests (Files): Likewise.
29858         * modules/unlink-tests (Files): Likewise.
29859         * modules/unsetenv-tests (Files): Likewise.
29860         * modules/usleep-tests (Files): Likewise.
29861         * modules/utimensat-tests (Files): Likewise.
29862         * modules/vasprintf-tests (Files): Likewise.
29863         * modules/vdprintf-posix-tests (Files): Likewise.
29864         * modules/vfprintf-posix-tests (Files): Likewise.
29865         * modules/vprintf-posix-tests (Files): Likewise.
29866         * modules/vsnprintf-posix-tests (Files): Likewise.
29867         * modules/vsnprintf-tests (Files): Likewise.
29868         * modules/vsprintf-posix-tests (Files): Likewise.
29869         * modules/wcrtomb-tests (Files): Likewise.
29870         * modules/wcsnrtombs-tests (Files): Likewise.
29871         * modules/wcsrtombs-tests (Files): Likewise.
29872         * modules/wcwidth-tests (Files): Likewise.
29873         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
29874         * tests/test-isinf.c (isinf): Likewise.
29875         * tests/test-isnan.c (isnan): Likewise.
29876         * tests/test-signbit.c (signbit): Likewise.
29877         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
29878         declaration, either as macro or with correct signature.
29879         (select): Ensure function under test is declared with correct
29880         signature in correct header.
29881         * tests/test-atexit.c (atexit): Likewise.
29882         * tests/test-btowc.c (btowc): Likewise.
29883         * tests/test-canonicalize-lgpl.c (realpath)
29884         (canonicalize_file_name): Likewise.
29885         * tests/test-ceilf1.c (ceilf): Likewise.
29886         * tests/test-ceill.c (ceill): Likewise.
29887         * tests/test-chown.c (chown): Likewise.
29888         * tests/test-dprintf-posix.c (dprintf): Likewise.
29889         * tests/test-dup2.c (dup2): Likewise.
29890         * tests/test-dup3.c (dup3): Likewise.
29891         * tests/test-duplocale.c (duplocale): Likewise.
29892         * tests/test-fchdir.c (fchdir): Likewise.
29893         * tests/test-fchownat.c (fchownat): Likewise.
29894         * tests/test-fcntl.c (fcntl): Likewise.
29895         * tests/test-fdopendir.c (fdopendir): Likewise.
29896         * tests/test-fflush.c (fflush): Likewise.
29897         * tests/test-flock.c (flock): Likewise.
29898         * tests/test-floorf1.c (floorf): Likewise.
29899         * tests/test-floorl.c (floorl): Likewise.
29900         * tests/test-fnmatch.c (fnmatch): Likewise.
29901         * tests/test-fopen.c (fopen): Likewise.
29902         * tests/test-fprintf-posix.c (fprintf): Likewise.
29903         * tests/test-freopen.c (freopen): Likewise.
29904         * tests/test-frexp.c (frexp): Likewise.
29905         * tests/test-frexpl.c (frexpl): Likewise.
29906         * tests/test-fseek.c (fseek): Likewise.
29907         * tests/test-fseeko.c (fseeko): Likewise.
29908         * tests/test-fstatat.c (fstatat): Likewise.
29909         * tests/test-fsync.c (fsync): Likewise.
29910         * tests/test-ftell.c (ftell): Likewise.
29911         * tests/test-ftello.c (ftello): Likewise.
29912         * tests/test-futimens.c (futimens): Likewise.
29913         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
29914         (gai_strerror): Likewise.
29915         * tests/test-getcwd.c (getcwd): Likewise.
29916         * tests/test-getdelim.c (getdelim): Likewise.
29917         * tests/test-getdtablesize.c (getdtablesize): Likewise.
29918         * tests/test-getgroups.c (getgroups): Likewise.
29919         * tests/test-gethostname.c (gethostname): Likewise.
29920         * tests/test-getline.c (getline): Likewise.
29921         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
29922         Likewise.
29923         * tests/test-gettimeofday.c (gettimeofday): Likewise.
29924         * tests/test-glob.c (glob, globfree): Likewise.
29925         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
29926         * tests/test-inet_ntop.c (inet_ntop): Likewise.
29927         * tests/test-inet_pton.c (inet_pton): Likewise.
29928         * tests/test-isblank.c (isblank): Likewise.
29929         * tests/test-lchown.c (lchown): Likewise.
29930         * tests/test-ldexpl.c (ldexpl): Likewise.
29931         * tests/test-link.c (link): Likewise.
29932         * tests/test-linkat.c (linkat): Likewise.
29933         * tests/test-lseek.c (lseek): Likewise.
29934         * tests/test-lstat.c (lstat): Likewise.
29935         * tests/test-mbrtowc.c (mbrtowc): Likewise.
29936         * tests/test-mbsinit.c (mbsinit): Likewise.
29937         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
29938         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
29939         * tests/test-memchr.c (memchr): Likewise.
29940         * tests/test-memcmp.c (memcmp): Likewise.
29941         * tests/test-memmem.c (memmem): Likewise.
29942         * tests/test-memrchr.c (memrchr): Likewise.
29943         * tests/test-mkdir.c (mkdir): Likewise.
29944         * tests/test-mkdirat.c (mkdirat): Likewise.
29945         * tests/test-mkfifo.c (mkfifo): Likewise.
29946         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
29947         * tests/test-mknod.c (mknod): Likewise.
29948         * tests/test-nanosleep.c (nanosleep): Likewise.
29949         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
29950         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
29951         Likewise.
29952         * tests/test-open.c (open): Likewise.
29953         * tests/test-openat.c (openat): Likewise.
29954         * tests/test-perror.c (perror): Likewise.
29955         * tests/test-pipe2.c (pipe2): Likewise.
29956         * tests/test-poll.c (poll): Likewise.
29957         * tests/test-popen.c (popen, pclose): Likewise.
29958         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
29959         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
29960         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
29961         (posix_spawn_file_actions_destroy)
29962         (posix_spawn_file_actions_addclose)
29963         (posix_spawn_file_actions_addopen)
29964         (posix_spawn_file_actions_adddup2): Likewise.
29965         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
29966         * tests/test-pread.c (pread): Likewise.
29967         * tests/test-printf-posix.c (printf): Likewise.
29968         * tests/test-pty.c (openpty, forkpty): Likewise.
29969         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
29970         (random_r): Likewise.
29971         * tests/test-rawmemchr.c (rawmemchr): Likewise.
29972         * tests/test-readlink.c (readlink): Likewise.
29973         * tests/test-remove.c (remove): Likewise.
29974         * tests/test-rename.c (rename): Likewise.
29975         * tests/test-renameat.c (renameat): Likewise.
29976         * tests/test-rmdir.c (rmdir): Likewise.
29977         * tests/test-round1.c (round): Likewise.
29978         * tests/test-roundf1.c (roundf): Likewise.
29979         * tests/test-roundl.c (roundl): Likewise.
29980         * tests/test-setenv.c (setenv): Likewise.
29981         * tests/test-sigaction.c (sigaction): Likewise.
29982         * tests/test-sleep.c (sleep): Likewise.
29983         * tests/test-snprintf.c (snprintf): Likewise.
29984         * tests/test-sprintf-posix.c (sprintf): Likewise.
29985         * tests/test-stat.c (stat): Likewise.
29986         * tests/test-stpncpy.c (stpncpy): Likewise.
29987         * tests/test-strcasestr.c (strcasestr): Likewise.
29988         * tests/test-strchrnul.c (strchrnul): Likewise.
29989         * tests/test-strerror.c (strerror): Likewise.
29990         * tests/test-strsignal.c (strsignal): Likewise.
29991         * tests/test-strstr.c (strstr): Likewise.
29992         * tests/test-strtod.c (strtod): Likewise.
29993         * tests/test-strverscmp.c (strverscmp): Likewise.
29994         * tests/test-symlink.c (symlink): Likewise.
29995         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
29996         * tests/test-times.c (times): Likewise.
29997         * tests/test-trunc1.c (trunc): Likewise.
29998         * tests/test-truncf1.c (truncf): Likewise.
29999         * tests/test-truncl.c (truncl): Likewise.
30000         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30001         Likewise.
30002         * tests/test-uname.c (uname): Likewise.
30003         * tests/test-unlink.c (unlink): Likewise.
30004         * tests/test-unlinkat.c (unlinkat): Likewise.
30005         * tests/test-unsetenv.c (unsetenv): Likewise.
30006         * tests/test-usleep.c (usleep): Likewise.
30007         * tests/test-utimensat.c (utimensat): Likewise.
30008         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30009         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30010         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30011         * tests/test-vprintf-posix.c (vprintf): Likewise.
30012         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30013         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30014         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30015         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30016         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30017         * tests/test-wcwidth.c (wcwidth): Likewise.
30018
30019         build: pull in conditional headers during GNULIB_POSIXCHECK
30020         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30021         definitions from any conditionally-included headers.
30022         * lib/stdlib.in.h (includes): Likewise.
30023         * lib/unistd.in.h (includes): Likewise.
30024
30025 2009-12-24  Bruno Haible  <bruno@clisp.org>
30026
30027         * tests/test-argv-iter.c: Include header file being tested immediately
30028         after config.h.
30029         * tests/test-base64.c: Likewise.
30030         * tests/test-flock.c: Likewise.
30031         * tests/test-fsync.c: Likewise.
30032         * tests/test-getdate.c: Likewise.
30033         * tests/test-getndelim2.c: Likewise.
30034         * tests/test-isfinite.c: Likewise.
30035         * tests/test-isinf.c: Likewise.
30036         * tests/test-strerror.c: Likewise.
30037         * tests/test-strsignal.c: Likewise.
30038
30039 2009-12-23  Eric Blake  <ebb9@byu.net>
30040
30041         unistd: work around cygwin bug
30042         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30043         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30044         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30045
30046 2009-12-23  Bruno Haible  <bruno@clisp.org>
30047
30048         localename: More tests.
30049         * tests/test-localename.c (SIZEOF): New macro.
30050         (categories): New variable.
30051         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30052         test_locale_name_default): Add test w.r.t. thread locale.
30053         (test_locale_name_thread): New function.
30054         (main): Invoke it.
30055
30056         localename: Make aware of thread locale.
30057         * lib/localename.h (gl_locale_name_thread): New declaration.
30058         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30059         behaviour with respect to thread locale.
30060         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30061         <langinfo.h>, glthread/lock.h.
30062         (SIZE_BITS): New macro.
30063         (string_hash): New function.
30064         (struct hash_node): New type.
30065         (HASH_TABLE_SIZE): New macro.
30066         (struniq_hash_table, struniq_lock): New variables.
30067         (struniq): New function.
30068         (gl_locale_name_thread): New function.
30069         (gl_locale_name): Invoke it.
30070         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30071         * modules/localename (Depends-on): Add lock.
30072         Reported by Mike Gran <spk121@yahoo.com>.
30073
30074 2009-12-23  Eric Blake  <ebb9@byu.net>
30075
30076         va-args: new module
30077         * modules/va-args: New file.
30078         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30079         * MODULES.html.sh (Core language properties): Mention it.
30080
30081         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30082         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30083         named alias for __attribute__((__unused__)).
30084         * lib/chown.c: Update client.
30085         * lib/fchmodat.c: Likewise.
30086         * lib/fts.c: Likewise.
30087         * lib/getdate.y: Likewise.
30088         * lib/getgroups.c: Likewise.
30089         * lib/getopt.c: Likewise.
30090         * lib/getugroups.c: Likewise.
30091         * lib/mkdir.c: Likewise.
30092         * lib/mkfifo.c: Likewise.
30093         * lib/mkfifoat.c: Likewise.
30094         * lib/mknod.c: Likewise.
30095         * lib/mknodat.c: Likewise.
30096         * lib/readlink.c: Likewise.
30097         * lib/se-context.in.h: Likewise.
30098         * lib/se-selinux.in.h: Likewise.
30099         * lib/sockets.c: Likewise.
30100         * lib/symlink.c: Likewise.
30101         * lib/symlinkat.c: Likewise.
30102         * lib/unicodeio.c: Likewise.
30103         * lib/unistr.h: Likewise.
30104         * tests/test-areadlink.c: Likewise.
30105         * tests/test-areadlinkat.c: Likewise.
30106         * tests/test-filenamecat.c: Likewise.
30107         * tests/test-fseeko.c: Likewise.
30108         * tests/test-ftello.c: Likewise.
30109         * tests/test-getdate.c: Likewise.
30110         * tests/test-getgroups.c: Likewise.
30111         * tests/test-gethostname.c: Likewise.
30112         * tests/test-quotearg.c: Likewise.
30113         * tests/test-version-etc.c: Likewise.
30114         * tests/test-xalloc-die.c: Likewise.
30115         * tests/test-xfprintf-posix.c: Likewise.
30116         * tests/test-xprintf-posix.c: Likewise.
30117         * tests/test-xvasprintf.c: Likewise.
30118
30119         tests: avoid compiler warnings
30120         * tests/test-fcntl.c (main): Delete unused parameters.
30121         * tests/test-freopen-safer.c (main): Likewise.
30122         * tests/test-xalloc-die.c (main): Mark unused parameters.
30123         * tests/test-fseeko.c (main): Likewise.
30124         * tests/test-ftello.c (main): Likewise.
30125         * tests/test-nanosleep.c (main): Avoid declaration warning.
30126         * tests/test-sleep.c (main): Likewise.
30127         * tests/test-unsetenv.c (main): Silence warning about string
30128         literal.
30129         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30130
30131 2009-12-23  Bruno Haible  <bruno@clisp.org>
30132
30133         * tests/test-localename.c (test_locale_name): New function, extracted
30134         from main. Also test mixed situations.
30135         (test_locale_name_posix, test_locale_name_environ,
30136         test_locale_name_default): New functions.
30137         (main): Invoke them all.
30138         * modules/localename-tests (configure.ac): Test for newlocale.
30139
30140 2009-12-23  Bruno Haible  <bruno@clisp.org>
30141
30142         unistd: Ensure getcwd gets declared before being overridden.
30143         * lib/unistd.in.h: Conditionally include <io.h>.
30144
30145 2009-12-22  Bruno Haible  <bruno@clisp.org>
30146
30147         wchar: Diagnose broken combination of glibc and gcc versions and flags.
30148         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
30149         (gl_WCHAR_H): Invoke it.
30150         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
30151         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
30152         Reported by Karl Berry <karl@freefriends.org>.
30153
30154 2009-12-22  Eric Blake  <ebb9@byu.net>
30155
30156         math, unistd: avoid redundant includes
30157         * lib/math.in.h (isnan): No need to re-include <math.h>.
30158         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30159
30160         getsubopt: work around cygwin bug
30161         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
30162         avoid conflicting with system getsubopt.
30163         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
30164         bug.
30165
30166         getopt: synchronize from glibc
30167         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
30168         parameter order.  Adjust all callers.
30169         (_getopt_internal_r, main): Adjust quoting in error messages.
30170         Drop considerations for outdated POSIX 1003.2 error message.
30171         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
30172         callers.
30173         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
30174
30175         test-getopt: test stderr behavior
30176         * modules/getopt-posix-tests (Depends-on): Add dup2.
30177         * tests/test-getopt.c (ASSERT): Avoid stderr.
30178         (main): Move stderr to a temporary file.
30179         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30180         Instead, add parameter to inform caller if output occurred.
30181         (test_getopt): Adjust all existing tests to expect silence, and
30182         add new tests of leading ":".
30183         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30184         glibc shortcomings with leading "-:" or "+:" in optstring.
30185         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30186         Likewise.
30187         * doc/posix-functions/getopt.texi (getopt): Likewise.
30188
30189         test-getopt: enhance test
30190         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30191         supports optind=0.
30192         * tests/test-getopt.c (OPTIND_MIN): Move...
30193         * tests/test-getopt.h (OPTIND_MIN): ...here.
30194         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30195         Require that optind=0 works, since modern BSD supports it in
30196         addition to optreset, and since coreutils expects it.
30197         (test_getopt_long_only): New test.
30198         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30199         glibc shortcomings with 'W;', and enforcement of optind=0.
30200         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30201         Likewise.
30202
30203 2009-12-21  Bruno Haible  <bruno@clisp.org>
30204
30205         localename: Improvements for MacOS X and Cygwin.
30206         * lib/localename.h (gl_locale_name_environ): New declaration.
30207         * lib/localename.c (gl_locale_name_environ): New function, extracted from
30208         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
30209         (gl_locale_name_posix): Invoke it.
30210         (gl_locale_name_default): Add comments. Use Windows native API also on
30211         Cygwin.
30212
30213 2009-12-21  Bruno Haible  <bruno@clisp.org>
30214
30215         Update list of Win32 locale ids.
30216         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
30217         (LANG_SAMI): Renamed from LANG_SAAMI.
30218         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
30219         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
30220         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
30221         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
30222         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
30223         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
30224         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
30225         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
30226         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
30227         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
30228         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
30229         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
30230         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
30231         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
30232         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
30233         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
30234         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
30235         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
30236         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
30237         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
30238         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
30239         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
30240         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
30241         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
30242         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
30243         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
30244         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
30245         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
30246         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
30247         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
30248         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
30249         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
30250         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
30251         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
30252         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
30253         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
30254         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
30255         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
30256         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
30257         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
30258         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
30259         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
30260         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
30261         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
30262         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
30263         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
30264         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
30265         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
30266         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
30267         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
30268         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
30269         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
30270         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
30271         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
30272         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
30273         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
30274         Add more languages and countries for Sami, Sorbian. Add more countries
30275         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
30276         for Pashto. Change country for Syriac, Tswana.
30277
30278 2009-12-21  Eric Blake  <ebb9@byu.net>
30279
30280         test-utimens: avoid spurious failure
30281         * tests/test-chown.h (nap): Factor...
30282         * tests/nap.h: ...into new file.
30283         * tests/test-lchown.h (nap): Avoid duplication.
30284         * tests/test-utimens-common.h (nap): Use shared implementation,
30285         necessary on file systems with 1-second resolution.
30286         * modules/chown-tests (Files): Include new file.
30287         * modules/fdutimensat-tests (Files): Likewise.
30288         * modules/futimens-tests (Files): Likewise.
30289         * modules/lchown-tests (Files): Likewise.
30290         * modules/openat-tests (Files): Likewise.
30291         * modules/utimens-tests (Files): Likewise.
30292         * modules/utimensat-tests (Files): Likewise.
30293
30294 2009-12-19  Eric Blake  <ebb9@byu.net>
30295
30296         futimens, utimensat: work around Linux bug
30297         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
30298         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30299         * lib/utimensat.c (rpl_utimensat): Work around it.
30300         * lib/futimens.c (rpl_futimens): Adjust comment.
30301
30302         utimens: work around Linux ctime bug
30303         * lib/utimens.c (detect_ctime_bug): New helper function.
30304         (update_timespec): Differentiate between workaround needed for
30305         this bug vs. what is needed for systems that lack utimensat.
30306         (fdutimens, lutimens): Work around bug.
30307
30308         utimens: check for ctime update
30309         * tests/test-utimens-common.h (check_ctime): Define.
30310         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
30311         * tests/test-futimens.h (test_futimens): Likewise.
30312         * tests/test-lutimens.h (test_lutimens): Likewise.
30313         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30314         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30315
30316 2009-12-19  Bruno Haible  <bruno@clisp.org>
30317
30318         dprintf-posix: Check against memory leak fixed on 2009-12-15.
30319         * tests/test-dprintf-posix2.sh: New file.
30320         * tests/test-dprintf-posix2.c: New file.
30321         * modules/dprintf-posix-tests (Files): Add them.
30322         (configure.ac): Check for getrlimit and setrlimit.
30323         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30324
30325 2009-12-19  Bruno Haible  <bruno@clisp.org>
30326
30327         fprintf-posix: Check against memory leak fixed on 2009-12-15.
30328         * tests/test-fprintf-posix3.sh: New file.
30329         * tests/test-fprintf-posix3.c: New file.
30330         * modules/fprintf-posix-tests (Files): Add them.
30331         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30332
30333 2009-12-19  Eric Blake  <ebb9@byu.net>
30334
30335         dirfd: fix prototype
30336         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
30337         * lib/dirfd.c (dirfd): Likewise.
30338
30339         canonicalize: reduce memory usage
30340         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
30341         allocation to size.
30342         Reported by Solar Designer <solar@openwall.com>.
30343
30344 2009-12-19  Bruno Haible  <bruno@clisp.org>
30345
30346         New module attribute 'Applicability'.
30347         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
30348         * gnulib-tool: New option --extract-applicability.
30349         (func_usage): Document it.
30350         (sed_extract_prog): Recognize it.
30351         (func_get_applicability): New function.
30352         (func_import): Generalize handling of 'link-warning' module.
30353         * modules/link-warning (Applicability): New section.
30354         * modules/arg-nonnull (Applicability): New section.
30355         Repoted by Simon Josefsson <simon@josefsson.org>.
30356
30357 2009-12-19  Bruno Haible  <bruno@clisp.org>
30358
30359         fflush: tweak
30360         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
30361         * lib/fseeko.c (rpl_fseeko): Likewise.
30362
30363 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
30364
30365         * lib/gl_list.h: Fix typo in comment.
30366
30367 2009-12-16  Eric Blake  <ebb9@byu.net>
30368
30369         fcntl: use to simplify other modules
30370         * modules/cloexec (Depends-on): Add fcntl.
30371         * modules/fchdir (Depends-on): Likewise.
30372         * modules/fd-safer-flag (Depends-on): Likewise.
30373         * modules/unistd-safer (Depends-on): Likewise.
30374         * modules/dup3 (configure.ac): Set module indicator.
30375         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
30376         missing.
30377         * lib/fchdir.c (_gl_register_dup): Fix comment.
30378         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
30379         * lib/dup-safer.c (dup_safer): Likewise.
30380         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
30381         * lib/dup3.c (dup3): Likewise.
30382         * tests/test-fchdir.c (main): Enhance test.
30383         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
30384
30385         fcntl: port portions of fcntl to mingw
30386         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
30387         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
30388         replacement for mingw.
30389         * modules/fcntl (Description): Update.
30390         (Depends-on): Add dup2.
30391         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
30392         * modules/fcntl-h (Makefile.am): Substitute it.
30393         * lib/fcntl.in.h (fcntl): Update declaration.
30394         (F_DUPFD, F_GETFD): New macros, when needed.
30395         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30396         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
30397         * tests/test-fcntl.c (check_flags, main): Enhance test for items
30398         we now guarantee.
30399
30400         fcntl: work around cygwin bug in F_DUPFD
30401         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
30402         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
30403         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
30404         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
30405         * doc/posix-functions/fcntl.texi (fcntl): Document it.
30406
30407         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
30408         * modules/fcntl (Files): List new files.
30409         (configure.ac): Run a test.
30410         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
30411         * lib/fcntl.c (rpl_fcntl): Likewise.
30412         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
30413         (gl_FCNTL_H): Always replace fcntl.h.
30414         * modules/fcntl-h (Makefile.am): Substitute witnesses.
30415         * lib/fcntl.in.h (fcntl): Declare replacement.
30416         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
30417         needed, plus a witness.
30418         * doc/posix-functions/fcntl.texi (fcntl): Document this.
30419         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30420         * tests/test-fcntl.c: New file.
30421         * modules/fcntl-tests: Likewise.
30422
30423         binary-io: avoid potential compilation warning
30424         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
30425         directives.
30426
30427         fflush: avoid compilation error on NetBSD
30428         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
30429         between off_t and fpos_t, since the latter is sometimes a struct.
30430         * lib/fseeko.c (rpl_fseeko): Likewise.
30431         Reported by Alexander Nasonov <alnsn@yandex.ru>.
30432
30433 2009-12-15  Eric Blake  <ebb9@byu.net>
30434
30435         fcntl-h, stdio, sys_ioctl: fix declarations
30436         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
30437         function must not take arguments.
30438         * lib/sys_ioctl.in.h (ioctl): Likewise.
30439         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
30440         (open): Add a link warning.
30441
30442 2009-12-15  Jim Meyering  <meyering@redhat.com>
30443
30444         areadlink, areadlink-with-size: relax license to LGPLv2+
30445         * modules/areadlink (License): Relax to LGPLv2+.
30446         * modules/areadlink-with-size (License): Likewise.
30447
30448 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
30449             Bruno Haible  <bruno@clisp.org>
30450
30451         *printf: Fix memory leak.
30452         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
30453         * lib/vfprintf.c (vfprintf): Likewise.
30454         * lib/dprintf.c (dprintf): Likewise.
30455         * lib/vdprintf.c (vdprintf): Likewise.
30456
30457 2009-12-14  Eric Blake  <ebb9@byu.net>
30458
30459         accept4: adjust module dependencies
30460         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
30461
30462         utimens: one more try at avoiding compiler warning
30463         * lib/utimens.c (lutimens): Lower scope of result.
30464
30465 2009-12-13  Bruno Haible  <bruno@clisp.org>
30466
30467         Move the malloc checking from module 'list' to new module 'xlist'.
30468         * modules/xlist: New file.
30469         * lib/gl_xlist.h: New file.
30470         * lib/gl_xlist.c: New file.
30471         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
30472         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
30473         gl_list_add_last, gl_list_add_before, gl_list_add_after,
30474         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
30475         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
30476         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
30477         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
30478         gl_sortedlist_nx_add): New declarations.
30479         (struct gl_list_implementation): Rename and change methods accordingly.
30480         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
30481         (gl_list_nx_create): Renamed from gl_list_create.
30482         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30483         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30484         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30485         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30486         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30487         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30488         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30489         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30490         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
30491         gl_list_create_empty.
30492         (gl_list_nx_create): Renamed from gl_list_create.
30493         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30494         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30495         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30496         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30497         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30498         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30499         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30500         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30501         * lib/gl_array_list.c: Don't include xalloc.h.
30502         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
30503         NULL upon out-of-memory.
30504         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
30505         out-of-memory.
30506         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
30507         Change return type to 'int'.
30508         (gl_array_nx_set_at): Renamed from gl_array_set_at.
30509         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30510         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
30511         upon out-of-memory.
30512         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
30513         upon out-of-memory.
30514         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
30515         upon out-of-memory.
30516         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
30517         upon out-of-memory.
30518         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
30519         out-of-memory.
30520         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
30521         Update.
30522         (gl_array_list_implementation): Update.
30523         * lib/gl_carray_list.c: Don't include xalloc.h.
30524         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
30525         Return NULL upon out-of-memory.
30526         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
30527         out-of-memory.
30528         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
30529         Change return type to 'int'.
30530         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
30531         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30532         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
30533         upon out-of-memory.
30534         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
30535         upon out-of-memory.
30536         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
30537         out-of-memory.
30538         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
30539         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
30540         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
30541         Update.
30542         (gl_carray_list_implementation): Update.
30543         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
30544         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
30545         gl_linked_create_empty. Return NULL upon out-of-memory.
30546         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
30547         out-of-memory.
30548         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
30549         Change return type to 'int'. Return -1 upon out-of-memory.
30550         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
30551         out-of-memory.
30552         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
30553         upon out-of-memory.
30554         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
30555         upon out-of-memory.
30556         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
30557         NULL upon out-of-memory.
30558         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
30559         upon out-of-memory.
30560         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
30561         out-of-memory.
30562         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
30563         Update.
30564         * lib/gl_linked_list.c: Don't include xalloc.h.
30565         (gl_linked_list_implementation): Update.
30566         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
30567         (add_to_bucket): Change return type to 'int'.
30568         (gl_linkedhash_list_implementation): Update.
30569         * lib/gl_anytree_list1.h (free_subtree): New function.
30570         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
30571         gl_tree_create_empty. Return NULL upon out-of-memory.
30572         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
30573         Change return type to 'int'. Return -1 upon out-of-memory.
30574         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
30575         out-of-memory.
30576         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
30577         (gl_tree_remove_node): New function, moved here from
30578         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
30579         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
30580         Update.
30581         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
30582         malloc, not xmalloc. Return NULL upon out-of-memory.
30583         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30584         out-of-memory.
30585         (gl_tree_remove_node_from_tree): New function, extracted from
30586         gl_tree_remove_node.
30587         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30588         upon out-of-memory.
30589         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30590         out-of-memory.
30591         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30592         upon out-of-memory.
30593         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30594         upon out-of-memory.
30595         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30596         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
30597         not xmalloc. Return NULL upon out-of-memory.
30598         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30599         out-of-memory.
30600         (gl_tree_remove_node_from_tree): New function, extracted from
30601         gl_tree_remove_node.
30602         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30603         upon out-of-memory.
30604         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30605         out-of-memory.
30606         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30607         upon out-of-memory.
30608         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30609         upon out-of-memory.
30610         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30611         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
30612         gl_anytree_list1.h before gl_anyavltree_list2.h.
30613         (gl_avltree_list_implementation): Update.
30614         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
30615         gl_anytree_list1.h before gl_anyavltree_list2.h.
30616         (gl_rbtree_list_implementation): Update.
30617         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
30618         Change return type to 'int'. Return -1 upon out-of-memory. Use
30619         __builtin_expect.
30620         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
30621         (gl_avltreehash_list_implementation): Update.
30622         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
30623         (gl_rbtreehash_list_implementation): Update.
30624         * modules/array-list (Depends-on): Remove xalloc.
30625         * modules/carray-list (Depends-on): Likewise.
30626         * modules/linked-list (Depends-on): Likewise.
30627         * modules/linkedhash-list (Depends-on): Likewise.
30628         * modules/avltree-list (Depends-on): Likewise.
30629         * modules/rbtree-list (Depends-on): Likewise.
30630         * modules/avltreehash-list (Depends-on): Likewise.
30631         * modules/rbtreehash-list (Depends-on): Likewise.
30632
30633         * modules/xsublist: New file.
30634         * lib/gl_xsublist.h: New file.
30635         * lib/gl_xsublist.c: New file.
30636         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
30637         (gl_sublist_nx_create): New declaration.
30638         * lib/gl_sublist.c: Don't include xalloc.h.
30639         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
30640         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
30641         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
30642         Change return type to 'int'. Return -1 upon out-of-memory.
30643         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
30644         upon out-of-memory.
30645         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
30646         NULL upon out-of-memory.
30647         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
30648         upon out-of-memory.
30649         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
30650         NULL upon out-of-memory.
30651         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
30652         NULL upon out-of-memory.
30653         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
30654         upon out-of-memory.
30655         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
30656         (gl_sublist_list_implementation): Update.
30657         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
30658         upon out-of-memory.
30659         * modules/sublist (Depends-on): Remove xalloc.
30660
30661         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
30662         * tests/test-carray_list.c: Likewise.
30663         * tests/test-linked_list.c: Likewise.
30664         * tests/test-linkedhash_list.c: Likewise.
30665         * tests/test-avltree_list.c: Likewise.
30666         * tests/test-rbtree_list.c: Likewise.
30667         * tests/test-avltreehash_list.c: Likewise.
30668         * tests/test-rbtreehash_list.c: Likewise.
30669         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
30670         * modules/carray-list-tests (Makefile.am): Likewise.
30671         * modules/linked-list-tests (Makefile.am): Likewise.
30672         * modules/linkedhash-list-tests (Makefile.am): Likewise.
30673         * modules/avltree-list-tests (Makefile.am): Likewise.
30674         * modules/rbtree-list-tests (Makefile.am): Likewise.
30675         * modules/avltreehash-list-tests (Makefile.am): Likewise.
30676         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
30677
30678         * NEWS: Mention the changes.
30679
30680         * lib/clean-temp.c: Include gl_xlist.h.
30681         * modules/clean-temp (Depends-on): Add xlist.
30682
30683         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
30684         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
30685
30686         * tests/test-array_oset.c: Include gl_xlist.h.
30687         * modules/array-oset-tests (Depends-on): Add xlist.
30688
30689         Reported by José E. Marchesi <jemarch@gnu.org>.
30690
30691 2009-12-13  Bruno Haible  <bruno@clisp.org>
30692
30693         Move the malloc checking from module 'oset' to new module 'xoset'.
30694         * modules/xoset: New file.
30695         * lib/gl_xoset.h: New file.
30696         * lib/gl_xoset.c: New file.
30697         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
30698         declarations.
30699         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
30700         (struct gl_oset_implementation): Rename and change methods accordingly.
30701         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
30702         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30703         'int'. Mark as __warn_unused_result__.
30704         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
30705         gl_oset_create_empty.
30706         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30707         'int'.
30708         * lib/gl_array_oset.c: Don't include xalloc.h.
30709         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
30710         malloc, not xmalloc.
30711         (grow): Change return type to 'int'. Don't call xalloc_die.
30712         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
30713         to 'int'.
30714         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
30715         'int'.
30716         (gl_array_oset_implementation): Update.
30717         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
30718         gl_tree_create_empty.
30719         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
30720         'int'.
30721         * lib/gl_avltree_oset.c: Don't include xalloc.h.
30722         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30723         xmalloc.
30724         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30725         not xmalloc.
30726         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30727         xmalloc.
30728         (gl_avltree_oset_implementation): Update.
30729         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
30730         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30731         xmalloc.
30732         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30733         not xmalloc.
30734         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30735         xmalloc.
30736         (gl_rbtree_oset_implementation): Update.
30737         * modules/array-oset (Depends-on): Remove xalloc.
30738         * modules/avltree-oset (Depends-on): Likewise.
30739         * modules/rbtree-oset (Depends-on): Likewise.
30740         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
30741         * tests/test-avltree_oset.c: Likewise.
30742         * tests/test-rbtree_oset.c: Likewise.
30743         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
30744         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
30745         * modules/rbtree-oset-tests (Makefile.am): Likewise.
30746         * NEWS: Mention the change.
30747
30748 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
30749
30750         maint.mk: allow a project to override release-prep commands
30751         * top/maint.mk (alpha, beta, stable): Move release-preparatory
30752         commands into a new rule.
30753         (release-prep): New rule.
30754         (release-prep-hook): New overridable variable.
30755
30756 2009-12-13  Bruno Haible  <bruno@clisp.org>
30757
30758         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
30759
30760 2009-12-13  Jim Meyering  <meyering@redhat.com>
30761
30762         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
30763         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
30764
30765 2009-12-12  Bruno Haible  <bruno@clisp.org>
30766
30767         duplocale: Tweak.
30768         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
30769
30770 2009-12-12  Karl Berry  <karl@gnu.org>
30771
30772         * config/srclist.txt (strtoll.c): tab changes, no more sync.
30773
30774 2009-12-12  Bruno Haible  <bruno@clisp.org>
30775
30776         * m4/po.m4: Undo incorrect untabification.
30777
30778 2009-12-12  Bruno Haible  <bruno@clisp.org>
30779
30780         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
30781         * modules/c-strtod (Depends-on): Add locale.
30782         * modules/c-strtold (Depends-on): Likewise.
30783
30784 2009-12-12  Bruno Haible  <bruno@clisp.org>
30785
30786         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
30787
30788 2009-12-11  Eric Blake  <ebb9@byu.net>
30789
30790         setenv: relax requirement in light of POSIX ruling
30791         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
30792         not NULL.
30793         * tests/test-setenv.c (main): Relax test.
30794         * tests/test-unsetenv.c (main): Likewise.
30795         * doc/posix-functions/setenv.texi (setenv): Document this.
30796         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30797
30798 2009-12-11  Bruno Haible  <bruno@clisp.org>
30799
30800         New module 'fd-safer-flag'.
30801         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
30802         * lib/dup-safer.c (dup_safer_flag): Remove function.
30803         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
30804         * lib/fd-safer.c (fd_safer_flag): Remove function.
30805         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
30806         * modules/cloexec (configure.ac): Drop indicator macro.
30807         * modules/fd-safer-flag: New file.
30808         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
30809         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
30810         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
30811
30812 2009-12-11  Bruno Haible  <bruno@clisp.org>
30813
30814         Tests for module 'nl_langinfo'.
30815         * modules/nl_langinfo-tests: New file.
30816         * tests/test-nl_langinfo.sh: New file.
30817         * tests/test-nl_langinfo.c: New file.
30818
30819         New module 'nl_langinfo'.
30820         * lib/nl_langinfo.c: New file.
30821         * m4/nl_langinfo.m4: New file.
30822         * modules/nl_langinfo: New file.
30823         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
30824
30825 2009-12-11  Bruno Haible  <bruno@clisp.org>
30826
30827         Tests for module 'langinfo'.
30828         * modules/langinfo-tests: New file.
30829         * tests/test-langinfo.c: New file.
30830
30831         New module 'langinfo'.
30832         * lib/langinfo.in.h: New file.
30833         * m4/langinfo_h.m4: New file.
30834         * modules/langinfo: New file.
30835         * doc/posix-headers/langinfo.texi: Mention the new module.
30836
30837 2009-12-11  Bruno Haible  <bruno@clisp.org>
30838
30839         * lib/config.charset: Untabify.
30840
30841 2009-12-11  Bruno Haible  <bruno@clisp.org>
30842
30843         * modules/unistd-safer (configure.ac): Drop indicator macro.
30844
30845 2009-12-11  Bruno Haible  <bruno@clisp.org>
30846
30847         Move pipe2-safer code to its own file.
30848         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
30849         * lib/pipe-safer.c (pipe2_safer): Remove function.
30850         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
30851         (Makefile.am): Add it to lib_SOURCES.
30852
30853 2009-12-10  Bruno Haible  <bruno@clisp.org>
30854
30855         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
30856
30857 2009-12-10  Bruno Haible  <bruno@clisp.org>
30858
30859         Declare which arguments expect non-NULL values, for GCC and clang.
30860         * build-aux/arg-nonnull.h: New file.
30861         * modules/arg-nonnull: New file.
30862         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
30863         (inet_ntop, inet_pton): Use it.
30864         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
30865         (closedir, dirfd, opendir, scandir, alphasort): Use it.
30866         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
30867         (open, openat): Use it.
30868         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
30869         (fnmatch): Use it.
30870         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
30871         (getopt, getopt_long, getopt_long_only): Use it.
30872         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
30873         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
30874         Use it.
30875         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
30876         (iconv_open): Use it.
30877         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
30878         (strtoimax, strtoumax): Use it.
30879         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
30880         (duplocale): Use it.
30881         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
30882         (frexp, frexpl): Use it.
30883         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
30884         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
30885         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
30886         (tsearch, tfind, tdelete, twalk): Use it.
30887         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
30888         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30889         sigpending): Use it.
30890         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
30891         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30892         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30893         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30894         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30895         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30896         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30897         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30898         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30899         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30900         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30901         Use it.
30902         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
30903         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
30904         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
30905         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
30906         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
30907         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
30908         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
30909         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
30910         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
30911         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
30912         strtoull, unsetenv): Use it.
30913         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
30914         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30915         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30916         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
30917         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
30918         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
30919         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
30920         (strcasecmp, strncasecmp): Use it.
30921         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
30922         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
30923         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
30924         rpl_setsockopt): Use it.
30925         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
30926         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
30927         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
30928         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
30929         (gettimeofday): Use it.
30930         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
30931         (times): Use it.
30932         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
30933         (uname): Use it.
30934         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
30935         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
30936         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
30937         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
30938         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
30939         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
30940         unlinkat, write): Use it.
30941         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
30942         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
30943         * lib/argv-iter.h: Include arg-nonnull.h.
30944         (_ATTRIBUTE_NONNULL_): Remove macro.
30945         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
30946         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
30947         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
30948         optimization.
30949         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
30950         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
30951         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
30952         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
30953         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
30954         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
30955         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
30956         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
30957         * modules/arpa_inet (Depends-on): Add arg-nonnull.
30958         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
30959         * modules/dirent (Depends-on): Add arg-nonnull.
30960         (Makefile.am): Insert arg-nonnull.h into dirent.h.
30961         * modules/fcntl-h (Depends-on): Add arg-nonnull.
30962         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
30963         * modules/fnmatch (Depends-on): Add arg-nonnull.
30964         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
30965         * modules/getopt-posix (Depends-on): Add arg-nonnull.
30966         (Makefile.am): Insert arg-nonnull.h into getopt.h.
30967         * modules/glob (Depends-on): Add arg-nonnull.
30968         (Makefile.am): Insert arg-nonnull.h into glob.h.
30969         * modules/iconv_open (Depends-on): Add arg-nonnull.
30970         (Makefile.am): Insert arg-nonnull.h into iconv.h.
30971         * modules/inttypes (Depends-on): Add arg-nonnull.
30972         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
30973         * modules/locale (Depends-on): Add arg-nonnull.
30974         (Makefile.am): Insert arg-nonnull.h into locale.h.
30975         * modules/math (Depends-on): Add arg-nonnull.
30976         (Makefile.am): Insert arg-nonnull.h into math.h.
30977         * modules/netdb (Depends-on): Add arg-nonnull.
30978         (Makefile.am): Insert arg-nonnull.h into netdb.h.
30979         * modules/search (Depends-on): Add arg-nonnull.
30980         (Makefile.am): Insert arg-nonnull.h into search.h.
30981         * modules/signal (Depends-on): Add arg-nonnull.
30982         (Makefile.am): Insert arg-nonnull.h into signal.h.
30983         * modules/spawn (Depends-on): Add arg-nonnull.
30984         (Makefile.am): Insert arg-nonnull.h into spawn.h.
30985         * modules/stdio (Depends-on): Add arg-nonnull.
30986         (Makefile.am): Insert arg-nonnull.h into stdio.h.
30987         * modules/stdlib (Depends-on): Add arg-nonnull.
30988         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
30989         * modules/string (Depends-on): Add arg-nonnull.
30990         (Makefile.am): Insert arg-nonnull.h into string.h.
30991         * modules/strings (Depends-on): Add arg-nonnull.
30992         (Makefile.am): Insert arg-nonnull.h into strings.h.
30993         * modules/sys_socket (Depends-on): Add arg-nonnull.
30994         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
30995         * modules/sys_stat (Depends-on): Add arg-nonnull.
30996         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
30997         * modules/sys_time (Depends-on): Add arg-nonnull.
30998         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
30999         * modules/sys_times (Depends-on): Add arg-nonnull.
31000         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31001         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31002         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31003         * modules/time (Depends-on): Add arg-nonnull.
31004         (Makefile.am): Insert arg-nonnull.h into time.h.
31005         * modules/unistd (Depends-on): Add arg-nonnull.
31006         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31007         * modules/wchar (Depends-on): Add arg-nonnull.
31008         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31009         * modules/argv-iter (Depends-on): Add arg-nonnull.
31010         * tests/test-canonicalize.c (null_ptr): New function.
31011         (main): Use it.
31012         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31013         (main): Use it.
31014         * tests/test-memmem.c (null_ptr): New function.
31015         (main): Use it.
31016         Reported by Jim Meyering.
31017
31018 2009-12-10  Bruno Haible  <bruno@clisp.org>
31019
31020         Use spaces for indentation, not tabs.
31021         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31022         * m4/*.m4: Untabify.
31023         * build-aux/*.h: Untabify.
31024         * tests/**/*.[hc]: Untabify.
31025         * README: New section "Indent with spaces, not TABs", based on
31026         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31027         * NEWS: Mention the change.
31028
31029 2009-12-10  Bruno Haible  <bruno@clisp.org>
31030
31031         pty test: Fix link error.
31032         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31033         test_pty_LDADD.
31034
31035 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31036
31037         * modules/pty: New file.
31038         * modules/pty-tests: New file.
31039         * m4/pty.m4: New file.
31040         * tests/test-pty.c: New file.
31041         * doc/glibc-headers/pty.texi: Modified.
31042         * doc/glibc-functions/forkpty.texi: Modified.
31043         * doc/glibc-functions/openpty.texi: Modified.
31044
31045 2009-12-10  Bruno Haible  <bruno@clisp.org>
31046
31047         Avoid syntax error in C++ mode.
31048         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31049
31050 2009-12-10  Bruno Haible  <bruno@clisp.org>
31051
31052         Use sed with option -e.
31053         * gnulib-tool (func_version, func_emit_copyright_notice,
31054         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31055         option -e to sed.
31056         * modules/link-warning (Makefile.am): Likewise.
31057
31058 2009-12-10  Jim Meyering  <meyering@redhat.com>
31059
31060         mgetgroups: do not write bytes beyond end of malloc'd buffer
31061         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31062         username, we call getgroups with a one-element-shorter buffer,
31063         but still told it the length was original, max_n_groups.
31064
31065 2009-12-09  Eric Blake  <ebb9@byu.net>
31066
31067         cloexec: relax license
31068         * modules/cloexec (Maintainer): Add myself.
31069         (License): Use LGPL, not GPL.
31070
31071         link-warning: optimize generation
31072         * modules/link-warning (Makefile.am): Reduce process usage.
31073
31074 2009-12-09  Bruno Haible  <bruno@clisp.org>
31075
31076         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31077         workaround was added on 2009-11-17.
31078
31079 2009-12-09  Jim Meyering  <meyering@redhat.com>
31080             Bruno Haible  <bruno@clisp.org>
31081
31082         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31083         * modules/link-warning (Makefile.am): Make the comment-removing sed
31084         command more robust in the face of bootstrap-prepended comment lines.
31085
31086 2009-12-09  Bruno Haible  <bruno@clisp.org>
31087
31088         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31089         most one group.
31090
31091 2009-12-09  Simon Josefsson <simon@josefsson.org>
31092             Bruno Haible  <bruno@clisp.org>
31093
31094         * build-aux/link-warning.h: Add copyright notice.
31095         * modules/link-warning (Makefile.am): Generate link-warning.h from
31096         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31097         * NEWS: Mention change in link-warning module.
31098         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31099         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31100         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31101         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31102         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31103         * modules/math (Makefile.am): Add dependency to math.h.
31104         * modules/search (Makefile.am): Add dependency to search.h.
31105         * modules/signal (Makefile.am): Add dependency to signal.h.
31106         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31107         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31108         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31109         * modules/string (Makefile.am): Add dependency to string.h.
31110         * modules/strings (Makefile.am): Add dependency to strings.h.
31111         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31112         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31113         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31114         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31115         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31116         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31117         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31118         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31119         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31120
31121 2009-12-09  Bruno Haible  <bruno@clisp.org>
31122
31123         fchdir: Optimize away rpl_fstat when possible.
31124         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
31125         REPLACE_OPEN_DIRECTORY.
31126         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
31127
31128 2009-12-09  Bruno Haible  <bruno@clisp.org>
31129
31130         * lib/fchdir.c: Update comment.
31131
31132 2009-12-09  Bruno Haible  <bruno@clisp.org>
31133
31134         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
31135
31136 2009-12-08  Eric Blake  <ebb9@byu.net>
31137
31138         fchdir: avoid memory leak on re-registration.
31139         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
31140
31141 2009-12-08  Jim Meyering  <meyering@redhat.com>
31142
31143         init.sh: avoid Solaris 10 /bin/sh portability problem
31144         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
31145         sourced script:
31146           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
31147           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
31148           bar
31149         tests/init.sh relied on that, accepting a --set-path=DIR argument,
31150         and two tests used that idiom.
31151         * tests/init.sh: Update suggested usage comments.
31152         (path_prepend_): New function, to be used in place
31153         of the --src-path=DIR option.
31154         (setup_): Move PATH-prepending code into path_prepend_.
31155         * tests/test-pread.sh: Adapt to new usage.
31156         * tests/test-xalloc-die.sh: Likewise.
31157
31158 2009-12-08  Simon Josefsson  <simon@josefsson.org>
31159
31160         * doc/gnulib.texi (Glibc pty.h): Add.
31161         * doc/glibc-functions/forkpty.texi: Add.
31162         * doc/glibc-functions/openpty.texi: Add.
31163         Suggested by Bruno Haible.
31164
31165 2009-12-08  Eric Blake  <ebb9@byu.net>
31166
31167         fchdir: fix logic bugs
31168         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
31169         * tests/test-fchdir.c (main): Enhance test.
31170         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
31171         is in use.
31172
31173         dup2: fix logic bugs
31174         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
31175         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31176         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31177         exists.
31178         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31179
31180 2009-12-07  Eric Blake  <ebb9@byu.net>
31181
31182         unlink: fix m4 detection
31183         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31184
31185         unistd-safer: add unit test
31186         * modules/unistd-safer-tests: New file.
31187         * tests/test-dup-safer.c: Likewise.
31188         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31189         * tests/test-dup2.c (setmode): Likewise.
31190         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31191
31192         cloexec: preserve text vs. binary across dup_cloexec
31193         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31194         mode.
31195         * modules/dup2-tests (Depends-on): Add binary-io.
31196         * modules/cloexec-tests (Depends-on): Likewise.
31197         * tests/test-dup2.c (setmode, is_mode): New helpers.
31198         (main): Add tests that translation mode is preserved.
31199         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31200         Reported by Bruno Haible.
31201
31202         mgetgroups: reduce duplicate listings
31203         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31204         resulting array.
31205         * tests/test-chown.h (test_chown): Simplify client.
31206         * tests/test-lchown.h (test_lchown): Likewise.
31207
31208 2009-12-06  Bruno Haible  <bruno@clisp.org>
31209
31210         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
31211         value.
31212
31213 2009-12-06  Bruno Haible  <bruno@clisp.org>
31214
31215         * lib/progname.c: Include stdio.h, stdlib.h.
31216         (set_program_name): Reject a NULL argument.
31217
31218 2009-12-05  Eric Blake  <ebb9@byu.net>
31219
31220         pipe2-safer: new module
31221         * modules/pipe2-safer: New file.
31222         * lib/unistd-safer.h (pipe2_safer): New prototype.
31223         * lib/unistd--.h (pipe2): New wrapper.
31224         * lib/pipe-safer.c (pipe2_safer): New function.
31225         * modules/pipe (Depends-on): Add pipe2-safer.
31226         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
31227
31228         stdlib-safer: preserve cloexec flag for mkostemp[s]
31229         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
31230         fd_safer_flag.
31231
31232         unistd-safer: allow preservation of cloexec status via flag
31233         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
31234         prototypes.
31235         * lib/dup-safer.c (dup_safer_flag): New function.
31236         * lib/fd-safer.c (fd_safer_flag): Likewise.
31237         * modules/cloexec (configure.ac): Set witness.
31238
31239         test-dup2: enhance test
31240         * modules/dup2-tests (Depends-on): Add cloexec.
31241         * tests/test-dup2.c (main): Enhance test.
31242
31243         cloexec: add dup_cloexec
31244         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
31245         header and comments.
31246         * lib/cloexec.c (set_cloexec_flag): Add comments.
31247         (dup_cloexec): New function, with mingw implementation borrowed
31248         from...
31249         * lib/w32spawn.h (dup_noinherit): ...here.
31250         * modules/execute (Depends-on): Add cloexec.
31251         * modules/pipe (Depends-on): Likewise.
31252         * modules/cloexec (Depends-on): Add dup2.
31253         * modules/cloexec-tests (Files): New file.
31254         * tests/test-cloexec.c: Likewise.
31255
31256         test-xalloc-die: fix test for mingw
31257         * modules/xalloc-die-tests (Files): Add tests/init.sh.
31258         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
31259         directory and .exe suffix off argv[0] output.
31260
31261         test-fseeko: fix test for mingw
31262         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
31263         than undefining fseek, so test will pass on mingw.
31264
31265 2009-12-05  Bruno Haible  <bruno@clisp.org>
31266
31267         * lib/progname.h (set_program_name): Clarify specification.
31268         * lib/progname.c (set_program_name): Likewise.
31269         Reported by Jim Meyering.
31270
31271 2009-12-05  Jim Meyering  <meyering@redhat.com>
31272
31273         maint.mk: backslash-escape parens in default regexp
31274         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
31275         backslash-escape the literal parentheses.
31276
31277         maint.mk: news-date-check: use grep -E
31278         * top/maint.mk (today): Define a Make variable, not a...
31279         (news-date-check): ...shell variable.
31280         (news-date-regexp): Use the Make variable.
31281         Use grep's -E option.  Change the failing diagnostic to mention
31282         the variable, $(news-date-regexp).
31283
31284 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
31285
31286         maintainer-makefile: allow customization of NEWS entry format
31287         * top/maint.mk (news-date-regexp): New overridable variable.
31288         (news-date-check): Use it.
31289
31290 2009-12-04  Eric Blake  <ebb9@byu.net>
31291
31292         mgetgroups: add xgetgroups, and avoid ENOSYS failures
31293         * lib/mgetgroups.h (xgetgroups): New prototype.
31294         * lib/mgetgroups.c (xgetgroups): New wrapper.
31295         (mgetgroups): Handle ENOSYS.
31296         * modules/mgetgroups (Depends-on): Add realloc.
31297         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
31298
31299         mgetgroups: avoid argument promotion issues with -1
31300         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
31301         for invalid gid_t.
31302         * tests/test-chown.h (getegid, test_chown): Likewise.
31303         * tests/test-lchown.h (getegid, test_lchown): Likewise.
31304
31305 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
31306
31307         exclude: Fix header file problems.
31308         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
31309
31310 2009-12-01  Jim Meyering  <meyering@redhat.com>
31311
31312         fts: fts_open: do not let an empty string cause immediate failure
31313         This is required in support of GNU rm, for which the command
31314         "rm A '' B" must process and remove both A and B, in spite of
31315         the empty string argument.
31316         * lib/fts.c (fts_open): Do not let the presence of an empty string
31317         cause fts_open to fail immediately.  Most fts-using tools must be
31318         able to process all arguments, in order, and can be expected to
31319         diagnose such arguments themselves.
31320
31321 2009-11-30  Eric Blake  <ebb9@byu.net>
31322
31323         utimens: fix compilation error
31324         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
31325         Declare variable at right scope.
31326
31327 2009-11-29  Jim Meyering  <meyering@redhat.com>
31328
31329         bootstrap: handle perl-5.11's changed --version output
31330         * build-aux/bootstrap (get_version): Handle perl separately,
31331         since perl-5.11's --version output is different.
31332
31333 2009-11-28  Jim Meyering  <meyering@redhat.com>
31334
31335         userspec: depend on the inttostr module, too
31336         * modules/userspec (Depends-on): Add inttostr.
31337
31338         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
31339         * lib/userspec.c (parse_with_separator): Do not accept a user ID
31340         number of MAXUID when it evaluates to (uid_t) -1.
31341         Likewise for group ID.  Reported by Matt McCutchen in
31342         <http://savannah.gnu.org/bugs/?28113>
31343
31344         userspec: reformat to use spaces, not TABs
31345         * lib/userspec.c: Expand TABs to spaces.
31346         Add Emacs' "indent-tabs-mode: nil" hint.
31347
31348 2009-11-27  Eric Blake  <ebb9@byu.net>
31349
31350         getopt-gnu: flush out another BSD bug
31351         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
31352         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
31353         flush out BSD bug.
31354         * tests/test-getopt.h (test_getopt): End lists with NULL.
31355         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31356         (test_getopt_long_posix): Enhance test.
31357         * modules/getopt-posix-tests (Depends-on): Add stdbool.
31358         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
31359         getopt-gnu.
31360         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31361         Likewise.
31362
31363 2009-11-27  Simon Josefsson  <simon@josefsson.org>
31364
31365         * modules/idpriv-droptemp-tests (Notice): Fix text.
31366
31367 2009-11-27  Jim Meyering  <meyering@redhat.com>
31368
31369         test-xalloc-die: avoid spurious failure due to libtool argv difference
31370         In a libtool-enabled project, this test would fail due to a difference
31371         in the emitted program name, e.g.,
31372         -test-xalloc-die: memory exhausted
31373         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
31374         Use program to avoid that.
31375         * modules/xalloc-die-tests (Depends-on): Add progname.
31376         * tests/test-xalloc-die.c: Include progname.h".
31377         (program_name): Remove decl.
31378         (main): Call set_program_name.
31379         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
31380
31381 2009-11-26  Richard Jones  <rjones@redhat.com>
31382
31383         w32sock: leave win32 error in place.
31384         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
31385
31386 2009-11-26  Eric Blake  <ebb9@byu.net>
31387
31388         init.sh: suggest to use skip_ and fail_ functions in comments
31389         * tests/init.sh: Add a sentence.
31390
31391 2009-11-25  Bruno Haible  <bruno@clisp.org>
31392
31393         init.sh: add documentation in comments
31394         * tests/init.sh: Add some developer and user documentation.
31395
31396 2009-11-26  Jim Meyering  <meyering@redhat.com>
31397
31398         init.sh: accommodate even those who specify bogus srcdir manually
31399         * tests/init.sh: Normally, srcdir is guaranteed by automake and
31400         configure-time tests to be sanitized, so that there is no need to
31401         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
31402         (with no double quotes) suffices.  However, since tests may be
31403         invoked manually, and since you may explicitly set srcdir to the
31404         name of a directory containing spaces, do quote its uses here.
31405         * tests/test-pread.sh: Likewise.
31406         Suggested by Bruno Haible.
31407
31408         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
31409         * tests/test-pread.sh: Write no data into the pipe, because
31410         test-pread actually reads none.  This avoids a diagnostic,
31411         "bash: echo: write error: Broken pipe", that arises in the unusual
31412         event something is ignoring SIGPIPE, and might be interpreted
31413         as some sort of failure.  Reported by Bruno Haible.
31414
31415 2009-11-25  Jim Meyering  <meyering@redhat.com>
31416
31417         test-pread: cover failure with ESPIPE and EINVAL
31418         * tests/test-pread.c (main): Test for failure, too.
31419         * tests/test-pread.sh: Invoke with stdin on a pipe.
31420         Suggested by Eric Blake.
31421
31422         pread: improvement and fix
31423         * modules/pread (Depends-on): Depend on lseek, for portability to
31424         e.g., mingw.  Suggested by Eric Blake.
31425         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
31426
31427         unistd.in.h: correct declaration of pread
31428         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
31429         Reported by Richard W.M. Jones.
31430
31431         test-pread.sh: distribute the test script
31432         * modules/pread-tests (Files): Include test-pread.sh.
31433
31434         test-pread.sh: clean up
31435         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
31436         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
31437         That is unnecessary, since it's always ".".
31438         Suggestion from Eric Blake.
31439
31440         test-pread.sh: make executable
31441         * tests/test-pread.sh: Set executable bit.
31442         Reported by Eric Blake.
31443
31444         correct typo in test-pread.sh
31445         * tests/test-pread.sh: Add #! line.
31446
31447         test pread
31448         * tests/test-pread.c: New file.
31449         * tests/test-pread.sh: Likewise.
31450         * modules/pread-tests: Likewise.
31451
31452         pread: new module
31453         * modules/pread: New file.
31454         * lib/unistd.in.h (pread): Define/declare.
31455         * lib/pread.c (pread): New file.
31456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
31457         * modules/unistd (Makefile.am): Substitute witnesses.
31458         * doc/posix-functions/pread.texi (pread): Update.
31459         * MODULES.html.sh: Add pread.
31460
31461 2009-11-25  Jim Meyering  <meyering@redhat.com>
31462
31463         tests/init.sh: new file to be used via most *.sh tests
31464         * tests/init.sh: New file.
31465
31466 2009-11-25  Eric Blake  <ebb9@byu.net>
31467
31468         utimens: work around older Linux failure with symlinks
31469         * lib/utimens.c (lutimensat_works_really): New variable.
31470         (fdutimens, lutimens): Use it to manage kernels that support
31471         nanosecond times on files, but not on symlinks.
31472         Reported by OndÅ™ej Vašík.
31473
31474         utimes: fix configure grammar
31475         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
31476
31477 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
31478
31479         regex: Fix fastmap for multibyte character ranges.
31480         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
31481         characters when a multibyte character range is included.
31482
31483 2009-11-22  Andy Wingo  <wingo@pobox.com>
31484
31485         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
31486         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
31487
31488 2009-11-24  Bruno Haible  <bruno@clisp.org>
31489
31490         doc: Most *_l functions exist in MacOS X 10.5.
31491         * doc/posix-functions/duplocale.texi: Update platforms list.
31492         * doc/posix-functions/freelocale.texi: Likewise.
31493         * doc/posix-functions/newlocale.texi: Likewise.
31494         * doc/posix-functions/uselocale.texi: Likewise.
31495         * doc/posix-functions/isalnum_l.texi: Likewise.
31496         * doc/posix-functions/isalpha_l.texi: Likewise.
31497         * doc/posix-functions/isblank_l.texi: Likewise.
31498         * doc/posix-functions/iscntrl_l.texi: Likewise.
31499         * doc/posix-functions/isdigit_l.texi: Likewise.
31500         * doc/posix-functions/isgraph_l.texi: Likewise.
31501         * doc/posix-functions/islower_l.texi: Likewise.
31502         * doc/posix-functions/isprint_l.texi: Likewise.
31503         * doc/posix-functions/ispunct_l.texi: Likewise.
31504         * doc/posix-functions/isspace_l.texi: Likewise.
31505         * doc/posix-functions/isupper_l.texi: Likewise.
31506         * doc/posix-functions/iswalnum_l.texi: Likewise.
31507         * doc/posix-functions/iswalpha_l.texi: Likewise.
31508         * doc/posix-functions/iswblank_l.texi: Likewise.
31509         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31510         * doc/posix-functions/iswctype_l.texi: Likewise.
31511         * doc/posix-functions/iswdigit_l.texi: Likewise.
31512         * doc/posix-functions/iswgraph_l.texi: Likewise.
31513         * doc/posix-functions/iswlower_l.texi: Likewise.
31514         * doc/posix-functions/iswprint_l.texi: Likewise.
31515         * doc/posix-functions/iswpunct_l.texi: Likewise.
31516         * doc/posix-functions/iswspace_l.texi: Likewise.
31517         * doc/posix-functions/iswupper_l.texi: Likewise.
31518         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31519         * doc/posix-functions/isxdigit_l.texi: Likewise.
31520         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
31521         * doc/posix-functions/strcasecmp_l.texi: Likewise.
31522         * doc/posix-functions/strcoll_l.texi: Likewise.
31523         * doc/posix-functions/strfmon_l.texi: Likewise.
31524         * doc/posix-functions/strftime_l.texi: Likewise.
31525         * doc/posix-functions/strncasecmp_l.texi: Likewise.
31526         * doc/posix-functions/strxfrm_l.texi: Likewise.
31527         * doc/posix-functions/tolower_l.texi: Likewise.
31528         * doc/posix-functions/toupper_l.texi: Likewise.
31529         * doc/posix-functions/towctrans_l.texi: Likewise.
31530         * doc/posix-functions/towlower_l.texi: Likewise.
31531         * doc/posix-functions/towupper_l.texi: Likewise.
31532         * doc/posix-functions/wcscoll_l.texi: Likewise.
31533         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31534         * doc/posix-functions/wctrans_l.texi: Likewise.
31535         * doc/posix-functions/wctype_l.texi: Likewise.
31536         * doc/glibc-functions/strptime_l.texi: Likewise.
31537         * doc/glibc-functions/strtod_l.texi: Likewise.
31538         * doc/glibc-functions/strtof_l.texi: Likewise.
31539         * doc/glibc-functions/strtol_l.texi: Likewise.
31540         * doc/glibc-functions/strtold_l.texi: Likewise.
31541         * doc/glibc-functions/strtoll_l.texi: Likewise.
31542         * doc/glibc-functions/strtoul_l.texi: Likewise.
31543         * doc/glibc-functions/strtoull_l.texi: Likewise.
31544         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31545         * doc/glibc-functions/wcstod_l.texi: Likewise.
31546         * doc/glibc-functions/wcstof_l.texi: Likewise.
31547         * doc/glibc-functions/wcstol_l.texi: Likewise.
31548         * doc/glibc-functions/wcstold_l.texi: Likewise.
31549         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31550         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31551         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31552
31553 2009-11-24  Bruno Haible  <bruno@clisp.org>
31554
31555         duplocale: Fix logic bug.
31556         * lib/duplocale.c: Don't include <langinfo.h>.
31557         (_NL_LOCALE_NAME): Remove macro.
31558         (rpl_duplocale): Use setlocale instead of nl_langinfo.
31559         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
31560
31561 2009-11-23  Jim Meyering  <meyering@redhat.com>
31562
31563         test-update-copyright: don't hard-code /usr/bin/perl
31564         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
31565         perl to print the current year.  Gilles Espinasse reported that
31566         the replaced use of perl was hard-coded as /usr/bin/perl.
31567
31568 2009-11-23  Bruno Haible  <bruno@clisp.org>
31569
31570         duplocale: Add support for glibc 2.3.x.
31571         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
31572
31573 2009-11-22  Bruno Haible  <bruno@clisp.org>
31574
31575         vasnprintf: Tiny optimization.
31576         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
31577         MacOS X.
31578
31579 2009-11-22  Bruno Haible  <bruno@clisp.org>
31580
31581         Tests for module 'duplocale'.
31582         * modules/duplocale-tests: New file.
31583         * tests/test-duplocale.c: New file.
31584
31585         New module 'duplocale'.
31586         * m4/duplocale.m4: New file.
31587         * lib/locale.in.h (duplocale): New declaration.
31588         * lib/duplocale.c: New file.
31589         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
31590         gl_LOCALE_H_DEFAULTS): New macros.
31591         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
31592         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
31593         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
31594         REPLACE_DUPLOCALE.
31595         * modules/duplocale: New file.
31596         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
31597
31598 2009-11-22  Bruno Haible  <bruno@clisp.org>
31599
31600         * modules/locale-tests (configure.ac): Test for newlocale function.
31601         * tests/test-locale.c: When the system has extended locale functions,
31602         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
31603
31604         locale: Make locale_t available when possible.
31605         * lib/locale.in.h: Include <xlocale.h> when it exists.
31606         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
31607         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
31608         * modules/locale (Depends-on): Add extensions.
31609         (Makefile.am): Also substitute HAVE_XLOCALE_H.
31610         * doc/posix-headers/locale.texi: Document the problem with locale_t.
31611
31612 2009-11-22  Bruno Haible  <bruno@clisp.org>
31613
31614         Add comments.
31615         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
31616         invocation.
31617         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31618         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31619         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31620
31621 2009-11-22  Bruno Haible  <bruno@clisp.org>
31622
31623         error: account for the possibility of freopen (stdout).
31624         * lib/error.c: Include <unistd.h>.
31625         (flush_stdout): New function, extracted from error and error_at_line.
31626         Determine stdout's fd dynamically.
31627         (error, error_at_line): Invoke flush_stdout.
31628         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
31629         * modules/error (Depends-on): Add unistd.
31630
31631 2009-11-22  Bruno Haible  <bruno@clisp.org>
31632
31633         diffseq: Add comment.
31634         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
31635
31636 2009-11-22  Jim Meyering  <meyering@redhat.com>
31637
31638         c-stack: avoid defining an unused static function
31639         * lib/c-stack.c (find_stack_direction): Do not define this function
31640         when it will not be used.
31641
31642         diffseq: avoid spurious gcc warnings
31643         * lib/diffseq.h (IF_LINT2): Define.
31644         (compareseq): Use it to initialize two members of "part".
31645         This avoids two used-uninitialized warnings.
31646
31647 2009-11-21  Jim Meyering  <meyering@redhat.com>
31648
31649         c-stack: avoid "ignoring return value of `write'" warning
31650         * lib/c-stack.c: Include "ignore-value.h".
31651         (die): Explicitly ignore each write return value.
31652         * modules/c-stack (Depends-on): Add ignore-value.
31653
31654 2009-11-21  Bruno Haible  <bruno@clisp.org>
31655
31656         diffseq: reduce scope of variable 'best'.
31657         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
31658         variable, earlier used for two different purposes.
31659
31660 2009-11-21  Jim Meyering  <meyering@redhat.com>
31661
31662         diffseq: remove useless assignment to "best"
31663         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
31664         assignment.  At that point "best" is already guaranteed to be zero.
31665
31666 2009-11-20  Eric Blake  <ebb9@byu.net>
31667
31668         build: mention ftp redirector in release announcements
31669         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
31670         values that used to come from cfg.mk; mention FTP redirect URL.
31671         * build-aux/announce-gen: Mention the mirror list.
31672         Suggested by Karl Berry.
31673
31674         nanosleep: improve port to mingw
31675         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
31676         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
31677         LIB_NANOSLEEP, but only when needed.
31678         * modules/select (Link): Document LIBSOCKET.
31679         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
31680         enough.
31681
31682         nanosleep: work around cygwin bug
31683         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
31684         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
31685         bug.
31686         (getnow): Delete, not needed.
31687         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
31688         LIB_CLOCK_GETTIME.
31689         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
31690         clock-time, gettime.
31691         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
31692         bug.
31693         * modules/nanosleep-tests: New test.
31694         * tests/test-nanosleep.c: New file.
31695
31696         sleep: work around cygwin bug
31697         * lib/sleep.c (rpl_sleep): Work around the bug.
31698         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
31699         (gl_PREREQ_SLEEP): Delete unused macro.
31700         * modules/sleep (Depends-on): Add verify.
31701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31702         * modules/unistd (Makefile.am): Substitute witness.
31703         * lib/unistd.in.h (sleep): Update prototype.
31704         * doc/posix-functions/sleep.texi (sleep): Document the bug.
31705         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
31706         * modules/sleep-tests (Depends-on): Check for alarm.
31707
31708 2009-11-20  Jim Meyering  <meyering@redhat.com>
31709
31710         maint.mk: improve sc_prohibit_magic_number_exit
31711         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
31712         so it does not match uses like System.exit(1).
31713         Add comments showing how to correct all offenders.
31714
31715 2009-11-19  Eric Blake  <ebb9@byu.net>
31716
31717         xalloc-die-tests: add missing library
31718         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
31719
31720         test-xvasprintf: silence compiler warnings
31721         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
31722         empty string from gcc.
31723
31724 2009-11-19  Jim Meyering  <meyering@redhat.com>
31725
31726         xfreopen: new module, from coreutils
31727         * modules/xfreopen: New module.
31728         * lib/xfreopen.c: New file.
31729         * lib/xfreopen.h: New file.
31730         * MODULES.html.sh (File stream based Input/Output"): Add it.
31731
31732 2009-11-19  Eric Blake  <ebb9@byu.net>
31733
31734         manywarnings: depend on warnings
31735         * modules/manywarnings (Depends-on): Add warnings.
31736
31737         build: avoid compiler warnings
31738         * lib/select.c (rpl_select): Delete unused variable.
31739         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
31740
31741 2009-11-18  Eric Blake  <ebb9@byu.net>
31742
31743         tests: avoid false negative with --with-packager
31744         * tests/test-version-etc.sh: Discard packager information.
31745         * tests/test-argp-version-etc-1.sh: Likewise.
31746         Reported by Mike Frysinger.
31747
31748         utimens: fix regression on Solaris
31749         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
31750         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
31751         can only change fd timestamps via futimesat.  Instead, use an
31752         additional witness macro to avoid BSD bug.
31753         Reported by Jim Meyering.
31754
31755 2009-11-17  Eric Blake  <ebb9@byu.net>
31756
31757         usleep: use it to simplify tests
31758         * modules/stat-time-tests (Depends-on): Add usleep.
31759         (configure.ac): Drop usleep check.
31760         * modules/chown-tests (Depends-on, configure.ac): Likewise.
31761         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
31762         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
31763         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
31764         * modules/openat-tests (Depends-on, configure.ac): Likewise.
31765         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
31766         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
31767         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
31768         Likewise.
31769         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
31770         * tests/test-lchown.h (nap): Likewise.
31771         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
31772         * tests/test-stat-time.c (nap): Likewise.
31773         * tests/test-utimens-common.h (nap): Update comments.
31774
31775         usleep: new module
31776         * modules/usleep: New file.
31777         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
31778         * lib/usleep.c (usleep): Likewise.
31779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31780         * modules/unistd (Makefile.am): Substitute witnesses.
31781         * lib/unistd.in.h (usleep): Add declaration.
31782         * doc/pastposix-functions/usleep.texi (usleep): Document this.
31783         * MODULES.html.sh (Date and time): Likewise.
31784         * modules/usleep-tests (Depends-on): New test.
31785         * tests/test-usleep.c: New file.
31786
31787         chown: work around OpenBSD bug
31788         * lib/chown.c (rpl_chown): Work around the bug.
31789         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
31790         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
31791         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
31792         * modules/chown (Depends-on): Add stdbool.
31793         * modules/lchown (Depends-on): Likewise.
31794         * doc/posix-functions/chown.texi (chown): Document the bug.
31795         * doc/posix-functions/lchown.texi (lchown): Likewise.
31796         * tests/test-lchown.h (test_chown): Relax test.
31797
31798         mkstemp: avoid conflict with C++ keyword template
31799         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
31800         * lib/mkostemp.c (mkostemp): Likewise.
31801         * lib/mkostemps.c (mkostemps): Likewise.
31802         * lib/mkstemp.c (mkstemp): Likewise.
31803         * lib/mkstemps.c (mkstemps): Likewise.
31804
31805         xalloc-die-tests: optimize
31806         * tests/test-xalloc-die.sh: Reduce number of processes.
31807
31808 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31809
31810         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
31811         patch from ludo@gnu.org (Ludovic Courtès).
31812
31813 2009-11-17  Jim Meyering  <meyering@redhat.com>
31814
31815         version-etc: use proper license string
31816         * modules/version-etc (License): Use LGPL, not LGPLv3+.
31817         * modules/version-etc-fsf: Likewise.
31818
31819 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31820
31821         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
31822         printed to stdout.  Deal with EOL differences.
31823
31824 2009-11-17  Eric Blake  <ebb9@byu.net>
31825
31826         unsetenv: work around Solaris bug
31827         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
31828         * lib/unsetenv.c (rpl_unsetenv): Work around it.
31829         Reported by Jim Meyering.
31830
31831         vasnprintf: avoid compiler warnings
31832         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
31833         variables.
31834         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
31835
31836 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31837
31838         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
31839         settings since xalloc-die is no longer the self test,
31840         xalloc-die.sh is.
31841
31842 2009-11-17  Jim Meyering  <meyering@redhat.com>
31843
31844         test-xalloc-die.sh: make the code agree with the commit log
31845         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
31846         at the end, just in case you happen to have a test-xalloc-die
31847         program in some other PATH directory.
31848
31849         test-xalloc-die.sh: fix a portability bug
31850         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
31851         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
31852         Otherwise, argv[0] (as often seen in diagnostics) would be too
31853         system-dependent, sometimes with, and sometimes without the leading "./".
31854
31855         version-etc-fsf: relax license to LGPLv3+
31856         * modules/version-etc-fsf (License): Relax license.
31857
31858 2009-11-16  Eric Blake  <ebb9@byu.net>
31859
31860         xalloc-die-tests: avoid printing null pointer
31861         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
31862         shell script.
31863         * tests/test-xalloc-die.c (program_name): Declare.
31864         * tests/test-xalloc-die.sh (tmpfiles): New file.
31865
31866         setenv, unsetenv: work around various bugs
31867         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
31868         (setenv) [HAVE_SETENV]: Work around bugs.
31869         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
31870         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
31871         for bugs.
31872         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
31873         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
31874         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
31875         * modules/stdlib (Makefile.am): Update substitutions.
31876         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
31877         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
31878         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31879         * modules/setenv-tests: New test.
31880         * modules/unsetenv-tests: Likewise.
31881         * tests/test-setenv.c: New file.
31882         * tests/test-unsetenv.c: Likewise.
31883
31884 2009-11-16  Jim Meyering  <meyering@redhat.com>
31885
31886         version-etc: relax license to LGPLv3+
31887         * modules/version-etc (License): Relax license.
31888
31889         better AC_REQUIRE expanded-before-required-warning avoidance
31890         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
31891         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
31892         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
31893         which is no longer needed.
31894
31895 2009-11-16  Eric Blake  <ebb9@byu.net>
31896
31897         test-freading: clean up temporary file
31898         * tests/test-freading.c (main): Remove file on success, and use
31899         ASSERT more liberally.
31900         Reported by Jim Meyering.
31901
31902 2009-11-16  Jim Meyering  <meyering@redhat.com>
31903
31904         avoid new AC_REQUIRE expanded-before-required warnings
31905         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
31906         merely using it.
31907         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
31908         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
31909
31910 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31911
31912         * tests/test-xalloc-die.c: New file.
31913         * modules/xalloc-die-tests: New file.
31914         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
31915         XFAIL_TESTS so it can be appended by modules.
31916
31917 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31918
31919         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
31920         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
31921
31922 2009-11-14  Eric Blake  <ebb9@byu.net>
31923
31924         fnmatch: avoid compiler warning
31925         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
31926         to silence compiler warning about mismatch signedness in ?:.
31927         Reported by Robert Millan.
31928
31929         intprops: add double-inclusion guard
31930         * lib/intprops.h: Allow idempotent includes.
31931         Suggested by Bruce Korb.
31932
31933         openat: detect Solaris fchownat bug
31934         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
31935         penalizing glibc chownat when only lchownat is broken.
31936         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
31937         trailing slash bugs.
31938         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
31939         * modules/openat-tests (Files): Include more files.
31940         (Depends-on): Add mgetgroups, sleep, stat-time.
31941         (configure.ac): Add additional checks.
31942         (Makefile.am): Build new test.
31943         * tests/test-fchownat.c: New file.
31944
31945         lchown: detect Solaris and FreeBSD bug
31946         * lib/lchown.c (rpl_lchown): Work around bug.
31947         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
31948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31949         * modules/unistd (Makefile.am): Populate it.
31950         * lib/unistd.in.h (lchown): Update declaration.
31951         * doc/posix-functions/lchown.texi (lchown): Document the bug.
31952         * modules/lchown-tests: New file.
31953         * tests/test-lchown.h (test_lchown): Likewise.
31954         * tests/test-lchown.c (main): Likewise.
31955
31956         chown: detect Solaris and FreeBSD bug
31957         * lib/chown.c (rpl_chown): Work around bug.
31958         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
31959         (gl_PREREQ_CHOWN): Delete.
31960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31961         * modules/unistd (Makefile.am): Populate it.
31962         * lib/unistd.in.h (chown): Update declaration.
31963         * lib/lchown.c (chown): Update client.
31964         * modules/lchown (Depends-on): Add lstat.
31965         * doc/posix-functions/chown.texi (chown): Document the bug.
31966         * doc/posix-functions/getgroups.texi (getgroups): Document
31967         getgroups pitfall.
31968         * modules/chown-tests: New file.
31969         * tests/test-chown.h (test_chown): Likewise.
31970         * tests/test-chown.c (main): Likewise.
31971
31972 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
31973
31974         gnulib-tool: correctly detect absence of m4 directories
31975         * gnulib-tool: Avoid extra newline on data passed to wc -l.
31976
31977 2009-11-14  Jim Meyering  <meyering@redhat.com>
31978
31979         maint.mk: Prohibit inclusion of "xalloc.h" without use.
31980         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31981
31982 2009-11-14  John W. Eaton  <jwe@gnu.org>
31983
31984         strftime.h: wrap funtion declaration in extern "C" block
31985         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
31986
31987 2009-11-13  Eric Blake  <ebb9@byu.net>
31988
31989         getgroups: avoid compiler warning
31990         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
31991
31992         getgroups: work around FreeBSD bug
31993         * lib/getgroups.c (rpl_getgroups): Work around the bug.
31994         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
31995         * doc/posix-functions/getgroups.texi (getgroups): Document it.
31996         * tests/test-getgroups.c (main): Fix buffer overrun.
31997
31998         getgroups: avoid compilation failure
31999         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32000         * modules/getgroups (Depends-on): Add stdint.
32001
32002 2009-11-13  Jim Meyering  <meyering@redhat.com>
32003
32004         test-getgroups: avoid compilation failure
32005         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32006
32007 2009-11-13  Eric Blake  <ebb9@byu.net>
32008
32009         mgetgroups: new module, taken from coreutils
32010         * modules/mgetgroups: New file.
32011         * lib/mgetgroups.h: Likewise.
32012         * lib/mgetgroups.c (mgetgroups): Likewise.
32013         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32014         * MODULES.html.sh (Users and groups): Mention it.
32015
32016         getgroups: don't expose GETGROUPS_T to user
32017         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32018         an element at a time if GETGROUPS_T is wrong size.
32019         * lib/getugroups.h (getugroups): Change signature.
32020         * lib/unistd.in.h (getgroups): Likewise.
32021         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32022         signature needs fixing.
32023         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32024         AC_TYPE_GETGROUPS.
32025         * modules/group-member (Depends-on): Add getgroups.
32026         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32027         (group_member): Rely on getgroups replacement.
32028         * lib/getugroups.c (getugroups): Use gid_t.
32029         * tests/test-getgroups.c (main): Likewise.
32030         * NEWS: Mention the signature change.
32031         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32032         problem with signature.
32033         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32034         GETGROUPS_T is still useful for setgroups.
32035
32036         getgroups, getugroups: provide stubs for mingw
32037         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32038         * lib/getugroups.c (getugroups): Likewise.
32039         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32040         function.  Modernize replacement scheme.
32041         (gl_PREREQ_GETGROUPS): Delete.
32042         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32043         * modules/getgroups (configure.ac): Declare witness.
32044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32045         * modules/unistd (Depends-on): Substitute witness.
32046         * lib/unistd.in.h (getgroups): Declare replacement.
32047
32048         getgroups: avoid calling exit
32049         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32050         drop xalloc.
32051         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32052         dependencies.
32053         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32054         exiting, in the rare case of malloc failure.
32055
32056         getgroups: fix logic error
32057         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32058         has more than 20 groups.
32059         * modules/getgroups-tests: New test.
32060         * tests/test-getgroups.c: New file.
32061
32062 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32063
32064         * tests/test-base64.c: Improve.
32065
32066 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32067
32068         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32069         Blake <ebb9@byu.net>.
32070
32071 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32072
32073         * tests/test-xvasprintf.c: Add %s%s related checks.
32074
32075 2009-11-12  Eric Blake  <ebb9@byu.net>
32076
32077         version-etc: match standards.texi style
32078         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32079         and use <> only for URLs.
32080
32081 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32082
32083         fts: do not fail on a submount during traversal
32084         * lib/fts.c (fts_build): Read the stat info again after opening
32085         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32086         Original report at http://bugzilla.redhat.com/501848.
32087
32088 2009-11-12  Jim Meyering  <meyering@redhat.com>
32089
32090         bootstrap: sync from coreutils
32091         * build-aux/bootstrap (bootstrap_epilogue): New function.
32092         Use git_modules_config in one more place.  This make bootstrap's
32093         --gnulib-srcdir option more useful for testing.
32094
32095         bootstrap: generalize autoheader check
32096         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32097         AC_CONFIG_HEADERS.
32098
32099 2009-11-11  Eric Blake  <ebb9@byu.net>
32100
32101         mkfifoat: use new modules for Solaris and BSD bugs
32102         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32103         * lib/mkfifoat.c (mknodat): Split...
32104         * lib/mknodat.c (mknodat): ...into new file.
32105         * modules/mkfifoat (Files): Ship new file.
32106         (Depends-on): Add mkfifo, mknod.
32107         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32108         (Depends-on): Add symlink.
32109         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32110         redundant with test_mkfifo.h.
32111         (do_mkfifoat, do_mknodat): New helpers.
32112
32113         mknod: new module
32114         * modules/mknod: New file.
32115         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32116         * lib/mknod.c (mknod): Likewise.
32117         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32118         defaults.
32119         * modules/sys_stat (Makefile.am): Substitute them.
32120         * lib/sys_stat.in.h (mknod): Declare replacement.
32121         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32122         Document it.
32123         * doc/posix-functions/mknod.texi (mknod): Likewise.
32124         * modules/mknod-tests: New test.
32125         * tests/test-mknod.c: Likewise.
32126
32127         mkfifo: new module
32128         * modules/mkfifo: New file.
32129         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
32130         * lib/mkfifo.c (mkfifo): Likewise.
32131         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32132         defaults.
32133         * modules/sys_stat (Makefile.am): Substitute them.
32134         * lib/sys_stat.in.h (mkfifo): Declare replacement.
32135         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32136         Document it.
32137         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
32138         * modules/mkfifo-tests: New test.
32139         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
32140         from test-mkfifoat.c.
32141         * tests/test-mkfifo.c: New file.
32142
32143         readlink: detect FreeBSD bug
32144         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
32145         slash on symlink.
32146         * doc/posix-functions/readlink.texi (readlink): Document the bug.
32147         * tests/test-readlink.h (test_readlink): Enhance test.
32148
32149         symlink: detect FreeBSD bug
32150         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
32151         slash on symlink.
32152         * doc/posix-functions/symlink.texi (symlink): Document the bug.
32153         * tests/test-symlink.h (test_symlink): Enhance test.
32154
32155 2009-11-10  Eric Blake  <ebb9@byu.net>
32156
32157         link: detect FreeBSD bug
32158         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
32159         symlink.
32160         * doc/posix-functions/link.texi (link): Document the bug.
32161         * tests/test-link.h (test_link): Enhance test.
32162         * tests/test-linkat.c (main): Update caller.
32163
32164         unlink, remove: detect FreeBSD bug
32165         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
32166         slash on symlink.
32167         * doc/posix-functions/unlink.texi (unlink): Document the bug.
32168         * doc/posix-functions/remove.texi (remove): Likewise.
32169         * tests/test-unlink.h (test_unlink): Enhance test.
32170         * tests/test-remove.c (main): Likewise.
32171
32172 2009-11-09  Eric Blake  <ebb9@byu.net>
32173
32174         rename: detect FreeBSD bug
32175         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32176         slash on symlink.
32177         * modules/renameat-tests (Depends-on): Add filenamecat.
32178         * tests/test-rename.h (test_rename): Allow one more errno.
32179         * tests/test-renameat.c (main): Likewise.
32180         * doc/posix-functions/rename.texi (rename): Document the bug.
32181
32182         open: detect FreeBSD bug
32183         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32184         symlink.
32185         * doc/posix-functions/open.texi (open): Document the bug.
32186         * doc/posix-functions/utimes.texi (utimes): Likewise.
32187         * tests/test-open.h (test_open): Add parameters, and test symlink
32188         handling.
32189         * tests/test-open.c (main): Adjust caller.
32190         * tests/test-fcntl-safer.c (main): Likewise.
32191         * modules/open-tests (Depends-on): Add stdbool, symlink.
32192         * modules/fcntl-safer-tests (Depends-on): Likewise.
32193         * tests/test-openat.c (main): Add test-open tests.
32194
32195         stat: detect FreeBSD bug
32196         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32197         symlink.
32198         * doc/posix-functions/stat.texi (stat): Document the bug.
32199         * tests/test-stat.h (test_stat_func): Add argument.
32200         * tests/test-stat.c (main): Adjust caller.
32201         * tests/test-fstatat.c (main): Likewise.
32202         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32203         Reported by Jim Meyering.
32204
32205 2009-11-09  James Youngman  <jay@gnu.org>
32206
32207         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
32208         * lib/strftime.c: Correct placement of #include "ignore-value.h".
32209
32210 2009-11-08  Jim Meyering  <meyering@redhat.com>
32211
32212         utimens: remove invalid futimesat call
32213         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
32214         It used the file descriptor of the target file as the DIR_FD
32215         parameter and NULL as the file name.  That caused failure with
32216         errno == EFAULT on FreeBSD-8.0-rc2
32217
32218 2009-11-07  Eric Blake  <ebb9@byu.net>
32219
32220         fflush, freadseek: use fseeko, not fseek
32221         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32222         (clear_ungetc_buffer): Avoid potential problems on large files.
32223         * lib/freadseek.c (freadseek): Likewise.
32224         * modules/freadseek (Depends-on): Add fseeko.
32225         * modules/fseek (configure.ac): Set a witness.
32226         * tests/test-fflush.c (main): Use fseeko.
32227         * tests/test-fpurge.c (fseek): Disable link warning.
32228         * tests/test-freadable.c (fseek): Likewise.
32229         * tests/test-freading.c (fseek): Likewise.
32230         * tests/test-fseeko.c (fseek): Likewise.
32231         * tests/test-ftell.c (fseek): Likewise.
32232         * tests/test-ftello.c (fseek): Likewise.
32233         * tests/test-fwritable.c (fseek): Likewise.
32234         * tests/test-fwriting.c (fseek): Likewise.
32235
32236 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32237
32238         * modules/memchr (Depends-on): Drop getpagesize dependency.
32239
32240 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32241
32242         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
32243         Reported by Ludovic Courtès.
32244         * build-aux/pmccabe2html: Improve example usage.
32245         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
32246
32247 2009-11-06  Jim Meyering  <meyering@redhat.com>
32248
32249         do-release-commit-and-tag: New module.
32250         Automate the release-commit and tag process.
32251         * build-aux/do-release-commit-and-tag: New script, from coreutils.
32252         * modules/do-release-commit-and-tag: New file.
32253         * MODULES.html.sh (Support for maintaining and releasing): Add it.
32254
32255 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32256
32257         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
32258         because test-select.c uses inet_pton.
32259
32260 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32261
32262         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
32263         GETADDRINFO_LIB.  Bump serial number.
32264         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
32265         Suggested by Eric Blake <ebb9@byu.net>.
32266
32267 2009-11-05  Eric Blake  <ebb9@byu.net>
32268
32269         strtod: detect darwin bug
32270         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
32271         Reported by Leo Davis.
32272
32273         freopen-safer: new module
32274         * modules/freopen-safer: New module.
32275         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
32276         * lib/freopen-safer.c (freopen_safer): New file.
32277         * lib/stdio-safer.h (freopen_safer): New declaration.
32278         * lib/stdio--.h (freopen): New override.
32279         * MODULES.html.sh (File stream based Input/Output): Mention it.
32280         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
32281         freopen-safer module.
32282         * doc/posix-functions/stderr.texi (stderr): Likewise.
32283         * doc/posix-functions/stdin.texi (stdin): Likewise.
32284         * doc/posix-functions/stdout.texi (stdout): Likewise.
32285         * modules/freopen-safer-tests: New test.
32286         * tests/test-reopen-safer.c: New file.
32287
32288 2009-11-05  Jim Meyering  <meyering@redhat.com>
32289
32290         maint.mk: Prohibit inclusion of "close-stream.h" without use.
32291         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32292
32293 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32294
32295         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
32296
32297 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32298
32299         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
32300
32301 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32302
32303         Fix link error.
32304         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32305         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32306
32307 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32308
32309         * tests/test-func.c: Also test value of __func__.
32310
32311 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32312
32313         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
32314         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
32315
32316 2009-11-05  Bruno Haible  <bruno@clisp.org>
32317
32318         Fix link error.
32319         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32320         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32321         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
32322
32323 2009-11-05  Bruno Haible  <bruno@clisp.org>
32324
32325         Tests for module 'inet_pton'.
32326         * modules/inet_pton-tests: New file.
32327         * tests/test-inet_pton.c: New file.
32328
32329 2009-11-05  Bruno Haible  <bruno@clisp.org>
32330
32331         Tests for module 'inet_ntop'.
32332         * modules/inet_ntop-tests: New file.
32333         * tests/test-inet_ntop.c: New file.
32334
32335 2009-11-04  Eric Blake  <ebb9@byu.net>
32336
32337         stdlib-safer: wrap all mkstemp variants
32338         * modules/mkostemp (configure.ac): Set witness.
32339         * modules/mkostemps (configure.ac): Likewise.
32340         * modules/mkstemps (configure.ac): Likewise.
32341         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
32342         (mkstemps_safer): Wrap more functions.
32343         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
32344         wrapping.
32345         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
32346         (mkstemps_safer): Implement the wrappers.
32347
32348         mkstemps, mkostemps: new modules
32349         * modules/mkostemps: New module.
32350         * modules/mkstemps: Likewise.
32351         * lib/mkostemps.c (mkostemps): New file.
32352         * lib/mkstemps.c (mkstemps): Likewise.
32353         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
32354         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
32355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
32356         * modules/stdlib (Makefile.am): Substitute them.
32357         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
32358         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
32359         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
32360         * doc/gnulib.texi (Glibc stdlib.h): Include them.
32361         * MODULES.html.sh (File system functions): Mention them.
32362
32363         tempname: resync from glibc
32364         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
32365         same values for __GT_FILE as glibc.  Abort even when assertions
32366         are disabled.
32367         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
32368         match its value otherwise.  Allow idempotent inclusion.
32369         * lib/mkdtemp.c (mkdtemp): Adjust caller.
32370         * lib/mkostemp.c (mkostemp): Likewise.
32371         * lib/mkstemp.c (mkstemp): Likewise.
32372         * lib/tmpfile.c (tmpfile): Likewise.
32373         * NEWS: Document this.
32374
32375         utimens: fix use of futimens on older Linux
32376         * lib/utimens.c (fdutimens): Use updated, rather than original,
32377         timespec to avoid bug in older Linux kernel.
32378         Reported by Simon Josefsson.
32379
32380 2009-11-04  Bruno Haible  <bruno@clisp.org>
32381
32382         Make num_processors more flexible and consistent.
32383         * lib/nproc.h (enum nproc_query): New type.
32384         (num_processors): Add a 'query' argument.
32385         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
32386         (num_processors): Add a 'query' argument. Test the value of the
32387         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
32388         mingw, count the number of CPUs available for the current process.
32389         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
32390         Check for sched_getaffinity and sched_getaffinity_np.
32391         * modules/nproc (Depends-on): Add c-ctype, extensions.
32392         * NEWS: Mention the change.
32393
32394 2009-11-03  Bruno Haible  <bruno@clisp.org>
32395
32396         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
32397
32398 2009-11-03  Jim Meyering  <meyering@redhat.com>
32399
32400         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
32401         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
32402         if it is defined.
32403
32404 2009-11-02  Eric Blake  <ebb9@byu.net>
32405
32406         mktime, timegm: share common declaration
32407         * lib/mktime-internal.h: New file.
32408         * lib/mktime.c: Use it rather than open-coding a declaration.
32409         * lib/timegm.c: Likewise.
32410         * modules/mktime (Files): Ship it.
32411         * modules/timegm (Files): Likewise.
32412         Suggested by Bruno Haible.
32413
32414         test-update-copyright: update test to match script changes
32415         * tests/test-update-copyright.sh: Avoid hard-coding perl
32416         location.  Don't update *.bak created by earlier runs.
32417
32418 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32419             Simon Josefsson  <simon@josefsson.org>
32420             Bruno Haible  <bruno@clisp.org>
32421
32422         Fix link error on Solaris 8.
32423         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
32424         also in libnsl. Define also INET_PTON_LIB.
32425         * modules/inet_pton (Link): New section.
32426
32427 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32428             Bruno Haible  <bruno@clisp.org>
32429
32430         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
32431         * modules/inet_ntop (Link): New section.
32432         Reported by Boyan Kasarov <bkasarov@gmail.com>.
32433
32434 2009-11-02  Eric Blake  <ebb9@byu.net>
32435
32436         maint: avoid compiler warnings in m4 macros
32437         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
32438         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
32439
32440 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32441
32442         * m4/pmccabe2html.m4: Remove file.
32443         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
32444         function.  Change maintainer.
32445         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
32446         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
32447         Courtès).
32448
32449 2009-10-31  Eric Blake  <ebb9@byu.net>
32450
32451         fseeko: fix m4 regression
32452         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
32453         regression from 2009-10-27.
32454         Reported by Ralf Wildenhues.
32455
32456 2009-10-31  Jim Meyering  <meyering@redhat.com>
32457
32458         inttostr: aesthetics and improved (compile-time) safety
32459         Define inttype_is_signed rather than inttype_is_unsigned,
32460         since the sole use is via "#if inttype_is_signed".
32461         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
32462         inttype_is_unsigned.
32463         * lib/offtostr.c (inttype_is_signed): Likewise.
32464         * lib/uinttostr.c (inttype_is_signed): Likewise.
32465         * lib/umaxtostr.c (inttype_is_signed): Likewise.
32466         * lib/inttostr.c (inttostr): Use verify to cross-check the
32467         inttype_is_signed value and the signedness of the actual type.
32468         * modules/inttostr (Depends-on): Add verify.
32469
32470 2009-10-30  Eric Blake  <ebb9@byu.net>
32471
32472         build: avoid compiler warnings
32473         * lib/fchmodat.c (lchmod): Mark unused variables.
32474         * lib/getopt.c (_getopt_initialize): Likewise.
32475         * lib/mktime.c (__mktime_internal): Provide prototype.
32476         * lib/inttostr.c (inttostr): Avoid compiler warning even with
32477         older gcc that do not understand #pragma GCC diagnostic.
32478         * lib/uinttostr.c (inttype_is_unsigned): Define.
32479         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
32480
32481 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32482
32483         stat: fix compilation on AIX
32484         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
32485         only see struct stat64.
32486
32487 2009-10-30  Eric Blake  <ebb9@byu.net>
32488
32489         exclude: make more robust
32490         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
32491         rather than masking a coding bug.
32492         Suggested by Bruno Haible.
32493
32494 2009-10-30  Jim Meyering  <meyering@redhat.com>
32495
32496         perl scripts: remove #!/usr/bin/perl in favor of more portable...
32497         Rather than putting #!/usr/bin/perl on the first line,
32498         start with a variant of what's recommended by "man perlrun" that
32499         invokes the first "perl" program from your shell's search path.
32500         * build-aux/gitlog-to-changelog: Replace #!... as above.
32501         Add a "Local Variables" perl mode setting.
32502         Prompted by a patch from Ludovic Courtès.
32503         Improved by Eric Blake.
32504         * build-aux/useless-if-before-free: Likewise.
32505         * build-aux/announce-gen: Likewise.
32506         * build-aux/update-copyright: Likewise.
32507
32508 2009-10-29  Eric Blake  <ebb9@byu.net>
32509
32510         filenamecat-lgpl: adjust clients
32511         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
32512         filenamecat.
32513         * modules/renameat (Depends-on): Likewise.
32514
32515         filenamecat: split into filenamecat-lgpl
32516         * modules/filenamecat-lgpl: New module.
32517         * modules/filenamecat (Files): Move library-safe files into
32518         filenamecat-lgpl.
32519         (Depends-on): Add filenamecat-lgpl.
32520         (configure.ac): Declare witness.
32521         * lib/filenamecat.h (file_name_concat): Only declare when using
32522         GPL module.
32523         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
32524         Move...
32525         * lib/filenamecat-lgpl.c: ...into new file.
32526         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
32527         (gl_FILE_NAME_CONCAT): Use it.
32528         * MODULES.html.sh (File system functions): Mention new module.
32529
32530         argp: avoid memory leak
32531         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
32532         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
32533         base_name, since the latter malloc()s and can call exit().
32534         Leak introduced 2006-07-03.
32535
32536         dirname-lgpl: adjust clients that don't need full dirname
32537         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
32538         * modules/filenamecat (Depends-on): Likewise.
32539         * modules/linkat (Depends-on): Likewise.
32540         * modules/mkancesdirs (Depends-on): Likewise.
32541         * modules/mkdir (Depends-on): Likewise.
32542         * modules/openat (Depends-on): Likewise.
32543         * modules/savewd (Depends-on): Likewise.
32544         * modules/rename (Depends-on): Likewise.
32545         (License): Relax license.
32546         * modules/mkdir-tests (Depends-on): Drop progname.
32547         (Makefile.am): Delete unneeded LDADD.
32548         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
32549
32550         dirname: split into dirname-lgpl
32551         * modules/dirname-lgpl: New module.
32552         * modules/dirname (Files): Move library-safe files into
32553         dirname-lgpl.
32554         (Depends-on): Add dirname-lgpl.
32555         (configure.ac): Declare witness.
32556         * modules/double-slash-root (License): Relax license.
32557         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
32558         module.
32559         * lib/dirname.c (dir_len, mdir_name): Move...
32560         * lib/dirname-lgpl.c: ...into new file.
32561         * lib/basename.c (last_component, base_len): Move...
32562         * lib/basename-lgpl.c: ...into new file.
32563         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
32564         (gl_DIRNAME): Use it.
32565         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
32566         Mention new module.
32567         * modules/dirname-tests (Depends-on): Add progname.
32568         * tests/test-dirname.c (program_name): Delete.
32569
32570         mkdir: make safe for libraries
32571         * modules/mkdir (Depends-on): Drop xalloc.
32572         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
32573         exit.
32574
32575         tests: avoid some compiler warnings
32576         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
32577         literals.
32578         * tests/test-memchr.c (main): Avoid type mismatch.
32579         * tests/test-arpa_inet.c (main): Avoid unused parameters.
32580         * tests/test-base64.c (main): Likewise.
32581         * tests/test-getdelim.c (main): Likewise.
32582         * tests/test-gethostname.c (main): Likewise.
32583         * tests/test-getline.c (main): Likewise.
32584         * tests/test-netinet_in.c (main): Likewise.
32585         * tests/test-select.c (open_server_socket, main): Likewise.
32586         * tests/test-select-stdin.c (main): Likewise.
32587         * tests/test-sockets.c (main): Likewise.
32588         * tests/test-strsignal.c (main): Likewise.
32589         * tests/test-sys_select.c (main): Likewise.
32590         * tests/test-sys_socket.c (main): Likewise.
32591         * tests/test-u64.c (main): Likewise.
32592         * tests/test-xfprintf-posix.c (main): Likewise.
32593         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
32594
32595         sockets: avoid compiler warning
32596         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
32597
32598         maint: detect usage(1) and other suspicious exits
32599         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
32600
32601 2009-10-29  Jim Meyering  <meyering@redhat.com>
32602
32603         timespec: long-to-int truncation could make timespec_cmp malfunction
32604         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
32605         a multiple of 2^32 nanoseconds as no difference.
32606
32607 2009-10-28  Jim Meyering  <meyering@redhat.com>
32608
32609         fprintftime: wrap macro code argument in "do {...} while(0)"
32610         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
32611         cpy macro must be a statement that can be followed by a semicolon.
32612         Now that the else clause contains a comment and is hence longer
32613         than one line, I require curly braces.  That in turn requires
32614         that we wrap this code block in the standard do...while(0).
32615
32616         fprintftime: remove stray semicolon from previous change
32617         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
32618
32619         fprintftime: avoid a warning about ignored fwrite return value
32620         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
32621         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
32622         that is unsafe.
32623         * modules/fprintftime (Depends-on): Add ignore-value.
32624
32625         exclude: avoid an unwarranted warning
32626         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
32627
32628 2009-10-27  Eric Blake  <ebb9@byu.net>
32629
32630         fseek: avoid compilation failure when fflush is replaced
32631         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
32632         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
32633         module is in use.
32634         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
32635         module is not in use; since REPLACE_FSEEK worked otherwise.
32636         (GNULIB_FTELLO): Likewise for ftell.
32637         Reported by Ian Beckwith and others.
32638
32639 2009-10-27  Bruno Haible  <bruno@clisp.org>
32640
32641         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
32642         Reported by Jim Meyering.
32643
32644 2009-10-27  Jim Meyering  <jim@meyering.net>
32645             Bruno Haible  <bruno@clisp.org>
32646
32647         Avoid warning despite dropping the return value of fwrite.
32648         * lib/unicodeio.c: Include ignore-value.h.
32649         (fwrite_success_callback): Explicitly ignore fwrite's return value.
32650         * modules/unicodeio (Depends-on): Add ignore-value.
32651
32652 2009-10-26  Eric Blake  <ebb9@byu.net>
32653
32654         areadlinkat: fix fallback path
32655         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
32656         pointer and zero.
32657
32658 2009-10-22  Pádraig Brady  <P@draigBrady.com>
32659
32660         Use a better IO block size for modern systems
32661         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
32662         * lib/md2.c: Likewise.
32663         * lib/md4.c: Likewise.
32664         * lib/md5.c: Likewise.
32665         * lib/sha1.c: Likewise.
32666         * lib/sha256.c: Likewise.
32667         * lib/sha512.c: Likewise.
32668
32669 2009-10-22  Eric Blake  <ebb9@byu.net>
32670
32671         tests: avoid several compiler warnings
32672         * tests/test-getcwd.c (main): Avoid buffer underflow.
32673         * tests/test-getdate.c (main): String literals are not safe with
32674         putenv, so use setenv.  Declare unused argument.
32675         * modules/getdate-tests (Depends-on): Add setenv.
32676         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
32677         problems with string literals in char *.
32678         * tests/test-hash.c (main): Avoid shadowing declaration.
32679         (insert_new): Treat string literals as char const *.
32680         * tests/test-getopt.h (test_getopt): Likewise.
32681         (getopt_loop): Alter types to minimize casting elsewhere.
32682         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
32683         (test_getopt_long_posix): Likewise.
32684         (do_getopt_long): Add wrapper to minimize casting.
32685         * tests/test-atexit.c (clear_temp_file): Use void.
32686         * tests/test-areadlink-with-size.c (main): Declare unused
32687         arguments.
32688         * tests/test-areadlink.c (main): Likewise.
32689         * tests/test-areadlinkat-with-size.c (main): Likewise.
32690         * tests/test-areadlinkat.c (main): Likewise.
32691         * tests/test-canonicalize-lgpl.c (main): Likewise.
32692         * tests/test-canonicalize.c (main): Likewise.
32693         * tests/test-dirent-safer.c (main): Likewise.
32694         * tests/test-dirname.c (main): Likewise.
32695         * tests/test-dup2.c (main): Likewise.
32696         * tests/test-fchdir.c (main): Likewise.
32697         * tests/test-fcntl-h.c (main): Likewise.
32698         * tests/test-fcntl-safer.c (main): Likewise.
32699         * tests/test-fdopendir.c (main): Likewise.
32700         * tests/test-fdutimensat.c (main): Likewise.
32701         * tests/test-fflush.c (main): Likewise.
32702         * tests/test-filenamecat.c (main): Likewise.
32703         * tests/test-filevercmp.c (main): Likewise.
32704         * tests/test-fopen-safer.c (main): Likewise.
32705         * tests/test-fopen.c (main): Likewise.
32706         * tests/test-fpending.c (main): Likewise.
32707         * tests/test-fpurge.c (main): Likewise.
32708         * tests/test-freading.c (main): Likewise.
32709         * tests/test-fstatat.c (main): Likewise.
32710         * tests/test-fsync.c (main): Likewise.
32711         * tests/test-futimens.c (main): Likewise.
32712         * tests/test-getndelim2.c (main): Likewise.
32713         * tests/test-gettimeofday.c (main): Likewise.
32714         * tests/test-getopt.c (main): Likewise.
32715         * tests/test-i-ring.c (main): Likewise.
32716         * tests/test-inttypes.c (main): Likewise.
32717         * tests/test-link.c (main): Likewise.
32718         * tests/test-lstat.c (main): Likewise.
32719         * tests/test-math.c (main): Likewise.
32720         * tests/test-md5.c (main): Likewise.
32721         * tests/test-memchr2.c (main): Likewise.
32722         * tests/test-memrchr.c (main): Likewise.
32723         * tests/test-mkdir.c (main): Likewise.
32724         * tests/test-mkdirat.c (main): Likewise.
32725         * tests/test-mkfifoat.c (main): Likewise.
32726         * tests/test-open.c (main): Likewise.
32727         * tests/test-openat-safer.c (main): Likewise.
32728         * tests/test-openat.c (main): Likewise.
32729         * tests/test-quotearg.c (main): Likewise.
32730         * tests/test-rawmemchr.c (main): Likewise.
32731         * tests/test-readlink.c (main): Likewise.
32732         * tests/test-remove.c (main): Likewise.
32733         * tests/test-rename.c (main): Likewise.
32734         * tests/test-renameat.c (main): Likewise.
32735         * tests/test-rmdir.c (main): Likewise.
32736         * tests/test-sha1.c (main): Likewise.
32737         * tests/test-signal.c (main): Likewise.
32738         * tests/test-sigaction.c (main): Likewise.
32739         * tests/test-stat.c (main): Likewise.
32740         * tests/test-stat-time.c (main): Likewise.
32741         * tests/test-stddef.c (main): Likewise.
32742         * tests/test-stdint.c (main): Likewise.
32743         * tests/test-stdio.c (main): Likewise.
32744         * tests/test-stdlib.c (main): Likewise.
32745         * tests/test-strchrnul.c (main): Likewise.
32746         * tests/test-strerror.c (main): Likewise.
32747         * tests/test-string.c (main): Likewise.
32748         * tests/test-strtod.c (main): Likewise.
32749         * tests/test-strverscmp.c (main): Likewise.
32750         * tests/test-symlink.c (main): Likewise.
32751         * tests/test-symlinkat.c (main): Likewise.
32752         * tests/test-sys_stat.c (main): Likewise.
32753         * tests/test-sys_time.c (main): Likewise.
32754         * tests/test-time.c (main): Likewise.
32755         * tests/test-unistd.c (main): Likewise.
32756         * tests/test-unlink.c (main): Likewise.
32757         * tests/test-unlinkat.c (main): Likewise.
32758         * tests/test-utimens.c (main): Likewise.
32759         * tests/test-utimensat.c (main): Likewise.
32760         * tests/test-version-etc.c (main): Likewise.
32761         * tests/test-wchar.c (main): Likewise.
32762         * tests/test-wctype.c (main): Likewise.
32763         * tests/test-xprintf-posix.c (main): Likewise.
32764         * tests/test-posixtm.c (main): Likewise.
32765         (STREQ): Delete unused macro.
32766         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
32767         shadowed variables.
32768         * tests/test-memchr.c (main): Likewise.
32769
32770 2009-10-21  Eric Blake  <ebb9@byu.net>
32771
32772         areadlinkat: avoid failure on older glibc
32773         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
32774         rather than mis-comparing 0 against FUNC_RESULT of char*.
32775
32776 2009-10-21  Bruno Haible  <bruno@clisp.org>
32777
32778         * modules/stpncpy (License): Relicense under LGPLv2+.
32779         Reported by David Lutterkort <lutter@redhat.com>.
32780
32781 2009-10-20  Eric Blake  <ebb9@byu.net>
32782
32783         utimensat: work around Solaris 9 bug
32784         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
32785         has trailing slash bugs.
32786         * tests/test-lutimens.h (test_lutimens): Enhance test.
32787         * tests/test-utimens.h (test_utimens): Likewise.
32788         * doc/posix-functions/utime.texi (utime): Enhance documentation.
32789         * doc/posix-functions/utimes.texi (utimes): Likewise.
32790         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32791         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
32792         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
32793         * doc/posix-functions/futimens.texi (futimens): Likewise.
32794
32795         fdutimensat: new module
32796         * modules/fdutimensat: New file.
32797         * lib/fdutimensat.c (fdutimensat): Likewise.
32798         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
32799         * MODULES.html.sh (File system functions): Mention module.
32800         * modules/fdutimensat-tests: New test.
32801         * tests/test-fdutimensat.c: Likewise.
32802
32803         doc: regenerate INSTALL
32804         * doc/INSTALL: Reflect recent autoconf update.
32805         * doc/INSTALL.ISO: Likewise.
32806         * doc/INSTALL.UTF-8: Likewise.
32807
32808 2009-10-20  Pádraig Brady  <P@draigBrady.com>
32809
32810         acl: warn if ACL support is not detected
32811         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
32812
32813 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
32814
32815         * lib/nproc.h: Add extern "C" block for C++.
32816
32817 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
32818             Bruno Haible  <bruno@clisp.org>
32819
32820         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
32821         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
32822         * doc/posix-functions/isalpha.texi: Likewise.
32823         * doc/posix-functions/isblank.texi: Likewise.
32824         * doc/posix-functions/iscntrl.texi: Likewise.
32825         * doc/posix-functions/isdigit.texi: Likewise.
32826         * doc/posix-functions/isgraph.texi: Likewise.
32827         * doc/posix-functions/islower.texi: Likewise.
32828         * doc/posix-functions/isprint.texi: Likewise.
32829         * doc/posix-functions/ispunct.texi: Likewise.
32830         * doc/posix-functions/isspace.texi: Likewise.
32831         * doc/posix-functions/isupper.texi: Likewise.
32832         * doc/posix-functions/isxdigit.texi: Likewise.
32833
32834 2009-10-18  Bruno Haible  <bruno@clisp.org>
32835
32836         Tests for module 'isblank'.
32837         * modules/isblank-tests: New file.
32838         * tests/test-isblank.c: New file.
32839
32840         New module 'isblank'.
32841         * lib/isblank.c: New file.
32842         * m4/isblank.m4: New file.
32843         * modules/isblank: New file.
32844         * doc/posix-functions/isblank.texi: Mention the new module.
32845
32846 2009-10-18  Bruno Haible  <bruno@clisp.org>
32847
32848         New module 'ctype'.
32849         * lib/ctype.in.h: New file.
32850         * m4/ctype.m4: New file.
32851         * modules/ctype: New file.
32852         * doc/posix-headers/ctype.texi: Mention the new module.
32853
32854 2009-10-18  Jim Meyering  <meyering@redhat.com>
32855
32856         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
32857         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
32858         right after its initialization, rather than farther down.
32859         Keeping these in close proximity makes it easier to ensure
32860         that each such variable is initialized.  E.g.,
32861
32862             LIB_CLOCK_GETTIME=
32863             AC_SUBST([LIB_CLOCK_GETTIME])
32864
32865         This change also increments these serial numbers.
32866         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
32867         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32868         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32869
32870 2009-10-18  Bruno Haible  <bruno@clisp.org>
32871
32872         Don't let environment variables perturb build.
32873         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
32874         (gl_PREREQ_GETHRXTIME): ... not here.
32875
32876 2009-10-18  Bruno Haible  <bruno@clisp.org>
32877
32878         Avoid symlink attack in localcharset module.
32879         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
32880         (O_NOFOLLOW): Define fallback.
32881         (get_charset_aliases): Don't open the file if it is a symbolic link.
32882         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
32883         gl_FCNTL_H.
32884         (gl_FCNTL_H): Require it.
32885         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
32886         * modules/localcharset (Files): Add m4/fcntl_h.m4.
32887         Reported by Fergal Glynn <fglynn@veracode.com>.
32888
32889 2009-10-18  Bruno Haible  <bruno@clisp.org>
32890
32891         Implement nproc for mingw.
32892         * lib/nproc.c: Include <windows.h>
32893         (num_processors): On native Windows platforms, try GetSystemInfo.
32894
32895 2009-10-18  Bruno Haible  <bruno@clisp.org>
32896
32897         Implement nproc for IRIX.
32898         * lib/nproc.c: Include <sys/sysmp.h>.
32899         (num_processors): On IRIX systems, try sysmp.
32900         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
32901
32902 2009-10-18  Bruno Haible  <bruno@clisp.org>
32903
32904         Implement nproc for HP-UX.
32905         * lib/nproc.c: Include <sys/pstat.h>
32906         (num_processors): On HP-UX systems, try pstat_getdynamic.
32907         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
32908         pstat_getdynamic.
32909
32910 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
32911             Bruno Haible  <bruno@clisp.org>
32912
32913         Implement nproc for NetBSD, OpenBSD.
32914         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
32915         (ARRAY_SIZE): New macro.
32916         (num_processors): On BSD systems, try sysctl of HW_NCPU.
32917         * m4/nproc.m4: New file.
32918         * modules/nproc (Files): Add m4/nproc.m4.
32919         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
32920         (Makefile.am): Instead, augment lib_SOURCES.
32921
32922 2009-10-18  Bruno Haible  <bruno@clisp.org>
32923
32924         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
32925         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
32926         sys/param.h.
32927
32928 2009-10-16  Eric Blake  <ebb9@byu.net>
32929
32930         utimensat: new module
32931         * modules/utimensat: New file.
32932         * lib/utimensat.c (utimensat): Likewise.
32933         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32934         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
32935         so we can work around Linux bugs.
32936         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32937         * modules/sys_stat (Makefile.am): Substitute them.
32938         * lib/sys_stat.in.h (utimensat): Declare it.
32939         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32940         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32941         * modules/utimensat-tests: New test.
32942         * tests/test-utimensat.c: Likewise.
32943
32944         utimens: let lutimens work on non-symlinks
32945         * lib/utimens.c (lutimens): Fall back to utimens rather than
32946         failing with ENOSYS, when file is not a symlink.
32947         (utimens): Reduce redirection.
32948         * tests/test-lutimens.h (test_lutimens): Update test to cover
32949         non-symlinks.
32950         * tests/test-utimens.h (test_utimens): Update test to cover
32951         symlinks.
32952         * tests/test-utimens.c (main): Update caller.
32953
32954         utimens: cache whether utimensat syscall works
32955         * lib/utimens.c (utimensat_works_really): New cache variable.
32956         (fdutimens, lutimens): Use it to avoid failing syscall.
32957
32958         test-stat-time, test-utimens: improve portability
32959         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
32960         ext4 on alpha, and for cygwin.
32961         * tests/test-utimens-common.h: New file.
32962         (nap): Factor delays into single function.
32963         * tests/test-lutimens.h (test_lutimens): Use new header.
32964         * tests/test-futimens.h (test_futimens): Likewise.
32965         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
32966         timestamps to occur from same machine, as was done previously for
32967         test_utimens.
32968         * modules/utimens-tests (Files): Ship new file.
32969         * modules/futimens-tests (Files): Likewise.
32970         Reported in part by Jim Meyering.
32971
32972         sys_stat: sort replacement declarations
32973         * lib/sys_stat.in.h: Sort declarations.
32974         * lib/futimens.c (futimens): Fix typo.
32975
32976 2009-10-15  Jim Meyering  <meyering@redhat.com>
32977
32978         don't let environment settings perturb build
32979         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
32980         could cause a configure-time and/or build-time malfunction.
32981         Typically, a configure-time function-in-library test is performed
32982         via code like this:
32983
32984           LIB_VAR=
32985           AC_SUBST([LIB_VAR])
32986           prefix_saved_LIBS=$LIBS
32987             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
32988                        [test "$ac_cv_search_FUNC" = "none required" ||
32989                         LIB_VAR=$ac_cv_search_FUNC])
32990           LIBS=$prefix_saved_LIBS
32991
32992         However, in each of the files affected by this change, the LIB_VAR=
32993         initialization was omitted.  Thus, when set in the environment, its
32994         value would propagate into generated Makefiles when FUNC is not found
32995         in LIB_NAME.
32996         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
32997         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32998         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32999
33000 2009-10-14  Eric Blake  <ebb9@byu.net>
33001
33002         fchdir: avoid infinite recursion in mingw
33003         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33004         recursing.
33005
33006         test-stat-time: port to mingw
33007         * tests/test-stat-time.c (force_unlink): Return a value.
33008         (test_ctime) [W32]: Fix compilation error.
33009         (nap): Don't call usleep with too large an argument.  Use
33010         force_unlink.
33011         * doc/pastposix-functions/usleep.texi (usleep): Document the
33012         portability issue.
33013
33014 2009-10-13  Jim Meyering  <meyering@redhat.com>
33015
33016         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33017         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33018         * modules/pipe-filter-ii: Likewise.
33019         * modules/sys_socket-tests: Likewise.
33020         * modules/tsearch-tests: Likewise.
33021         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33022         (check): Depend on it.
33023
33024 2009-10-12  Eric Blake  <ebb9@byu.net>
33025
33026         utimens-tests: port to NFS file systems
33027         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33028         comparisons to avoid spurious failures from timestamp drift
33029         between NFS machines.
33030
33031 2009-10-12  Eric Blake  <ebb9@byu.net>
33032
33033         stat-time-tests: minor cleanups
33034         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33035         * tests/test-stat-time.c (nap): Separate assignment from call.
33036         Suggested by Paolo Bonzini and Bruno Haible.
33037
33038         sys_stat: guarantee struct timespec
33039         * lib/sys_stat.in.h (includes): Always include <time.h>
33040         * modules/sys_stat (Depends-on): Add time.
33041         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33042         mode_t permission values.
33043         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33044         get at subsecond timestamps.
33045
33046 2009-10-10  Eric Blake  <ebb9@byu.net>
33047
33048         futimens: new module
33049         * modules/futimens: New file.
33050         * lib/futimens.c (futimens): Likewise.
33051         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33052         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33053         we can work around Linux bugs.
33054         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33055         * modules/sys_stat (Makefile.am): Substitute them.
33056         * lib/sys_stat.in.h (futimens): Declare it.
33057         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33058         * doc/posix-functions/futimens.texi (futimens): Likewise.
33059         * modules/futimens-tests: New test.
33060         * tests/test-futimens.c: Likewise.
33061
33062         utimens: introduce fdutimens
33063         * lib/utimens.h (fdutimens): New prototype.
33064         * lib/utimens.c (gl_futimens): Move guts...
33065         (fdutimens): ...to new interface.
33066         * tests/test-utimens.c (do_fdutimens): Use it.
33067
33068         utimens: add UTIME_NOW and UTIME_OMIT support
33069         * lib/utimens.c (validate_timespec, update_timespec): New helper
33070         functions.
33071         (gl_futimens, lutimens): Use them.
33072         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33073         stdbool, sys_stat.
33074         (Link): Mention resulting library dependency.
33075         * modules/utimecmp (Link): Likewise.
33076         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33077         (Makefile.am): Pick up library dependency.
33078         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33079         definition.
33080         * tests/test-sys_stat.c: Test the definitions.
33081         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33082         * NEWS: Document library dependency.
33083
33084         utimecmp: support symlink timestamps
33085         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33086         hashing when possible.  Use pathconf when available.
33087         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33088         * modules/utimecmp (Depends-on): Add lstat.
33089
33090         utimens: add lutimens interface
33091         * lib/utimens.c (lutimens): New function.
33092         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33093         * lib/utimens.h (lutimens): Declare new interface.
33094         * tests/test-utimens.c (main): Enhance test.
33095         * tests/test-lutimens.h (test_lutimens): New file.
33096         * modules/utimens-tests (Files): Distribute it.
33097         (Depends-on): Add symlink.
33098         (configure.ac): Check for usleep.
33099
33100         utimens: validate futimens usage
33101         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33102         fewer syscalls on failure later on.  Avoid compiler warning on
33103         mingw.
33104         * modules/utimens (Depends-on): Add dup2.
33105
33106         utimens: add test
33107         * modules/utimens-tests: New test.
33108         * tests/test-utimens.h: New file.
33109         * tests/test-futimens.h: Likewise.
33110         * tests/test-utimens.c: Likewise.
33111
33112         doc: mention timestamp portability issues
33113         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33114         instead.
33115         * doc/posix-functions/utime.texi (utime): Likewise.
33116         * doc/posix-functions/utimes.texi (utimes): Likewise.
33117         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33118         instead.
33119         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33120         module.
33121         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33122         Mention weakness with symlink timestamps.
33123         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33124         to utimensat/futimens instead.
33125         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
33126
33127         test-dup2: enhance test
33128         * tests/test-dup2.c (main): Also check AT_FDCWD.
33129
33130         test-stat-time: avoid more spurious failures
33131         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
33132         xfs; and avoid race if the two timestamps cross quantization edge.
33133
33134         relocatable: prefer 'file system' over 'filesystem'
33135         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
33136         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
33137         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
33138         * doc/relocatable.texi (Enabling Relocatability): Likewise.
33139         * lib/relocatable.c (compute_curr_prefix): Likewise.
33140
33141 2009-10-10  Jim Meyering  <meyering@redhat.com>
33142
33143         stat-time-tests: check for the usleep function
33144         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
33145
33146 2009-10-10  Bruno Haible  <bruno@clisp.org>
33147
33148         * modules/xnanosleep: Put the Link section after the Include section.
33149
33150 2009-10-09  Eric Blake  <ebb9@byu.net>
33151
33152         dup2: work around FreeBSD 6.1 bug
33153         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
33154         * doc/posix-functions/dup2.texi (dup2): Document it.
33155         Reported by Nelson H. F. Beebe and Jim Meyering.
33156
33157         test-stat-time: port to buggy NFS clients
33158         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
33159         (test_ctime): Also skip test if mtime and ctime are skewed.
33160
33161         maint: prefer 'file system' over 'filesystem'
33162         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33163         * doc/posix-functions/lstat.texi (lstat): Likewise.
33164         * lib/file-has-acl.c (file_has_acl): Likewise.
33165         * lib/fwriteerror.c [TEST]: Likewise.
33166         * tests/test-areadlink.h (test_areadlink): Likewise.
33167         * tests/test-areadlinkat-with-size.c (main): Likewise.
33168         * tests/test-areadlinkat.c (main): Likewise.
33169         * tests/test-canonicalize-lgpl.c (main): Likewise.
33170         * tests/test-canonicalize.c (main): Likewise.
33171         * tests/test-fstatat.c (main): Likewise.
33172         * tests/test-linkat.c (main): Likewise.
33173         * tests/test-lstat.h (test_lstat_func): Likewise.
33174         * tests/test-mkdir.h (test_mkdir): Likewise.
33175         * tests/test-readlink.h (test_readlink): Likewise.
33176         * tests/test-remove.c (main): Likewise.
33177         * tests/test-rename.h (test_rename): Likewise.
33178         * tests/test-renameat.c (main): Likewise.
33179         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33180         * tests/test-symlink.h (test_symlink): Likewise.
33181         * tests/test-symlinkat.c (main): Likewise.
33182         * tests/test-unlink.h (test_unlink_func): Likewise.
33183         * tests/test-unlinkat.c (main): Likewise.
33184
33185         maint: make realtime library usage explicit
33186         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33187         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33188         * modules/settime (Link): Likewise.
33189         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33190
33191         test-stat-time: speed up execution
33192         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33193         warning on mingw.
33194         (nap): New helper function.
33195         (prepare_test): Use it to reduce sleep time.
33196         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33197         execution.
33198         * modules/stat-time-tests (configure.ac): Check for usleep.
33199
33200 2009-10-09  Jim Meyering  <meyering@redhat.com>
33201
33202         selinux-h: always use getfilecon wrappers
33203         * lib/getfilecon.c: New file.
33204         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33205         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
33206         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
33207         (fgetfilecon): Provide a stub.
33208         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
33209         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
33210         file unconditionally.
33211         When <selinux/selinux.h> is found, arrange to use wrappers.
33212         * modules/selinux-h (Files): Add getfilecon.c.
33213         (Makefile.am): Substitute include-next-related bits
33214         into the now-always-generated selinux/selinux.h file.
33215         * doc/glibc-functions/lgetfilecon.texi: New file.
33216         * doc/glibc-functions/fgetfilecon.texi: New file.
33217         * doc/glibc-functions/getfilecon.texi: New file.
33218         * doc/glibc-functions/getfilecon-desc.texi: New file.
33219         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
33220         which to pull in the new files.
33221         * MODULES.html.sh (Misc): Add selinux-h.
33222
33223 2009-10-08  Jim Meyering  <meyering@redhat.com>
33224
33225         unistd: fix comment typo
33226         * lib/unistd.in.h (euidaccess): Fix a comment typo.
33227
33228 2009-10-08  Eric Blake  <ebb9@byu.net>
33229
33230         areadlink: use SIZE_MAX consistently
33231         * modules/areadlink (Depends-on): Add stdint.
33232         * modules/areadlink-with-size (Depends-on): Likewise.
33233         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
33234         gives NULL; drop sys/types, since unistd gives size_t; and add
33235         stdint for SIZE_MAX.
33236         (SIZE_MAX): Rely on headers.
33237         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
33238         and add stdint.
33239         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
33240         (SIZE_MAX): Likewise.
33241         (INITIAL_BUF_SIZE): Turn into enum.
33242         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
33243
33244 2009-10-08  Jim Meyering  <meyering@redhat.com>
33245
33246         areadlinkat: avoid compilation failure
33247         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
33248         Fix typo in comment.
33249
33250 2009-10-07  Eric Blake  <ebb9@byu.net>
33251
33252         areadlinkat-with-size: new module
33253         * modules/areadlinkat-with-size: New module.
33254         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
33255         * lib/areadlink.h (areadlinkat): Declare it.
33256         * MODULES.html.sh (File system functions): Mention it.
33257         * modules/areadlinkat-with-size-tests: New test.
33258         * tests/test-areadlinkat-with-size.c: New file.
33259
33260         xreadlinkat: new module
33261         * modules/xreadlinkat: New module.
33262         * lib/xreadlinkat.c (xreadlinkat): New file.
33263         * lib/xreadlink.h (xreadlinkat): Declare it.
33264         * MODULES.html.sh (File system functions): Mention it.
33265
33266         areadlinkat: new module
33267         * lib/at-func.c (FUNC_FAIL): New define.
33268         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
33269         * modules/areadlinkat: New module.
33270         * lib/linkat.c (areadlinkat): Move...
33271         * lib/areadlinkat.c (areadlinkat): ...to new file.
33272         * lib/areadlink.h (areadlinkat): Declare it.
33273         * modules/linkat (Depends-on): Add areadlinkat.
33274         * MODULES.html.sh (File system functions): Mention it.
33275         * modules/areadlinkat-tests: New test.
33276         * tests/test-areadlinkat.c: New file.
33277
33278         areadlink, areadlink-with-size: add tests
33279         * modules/areadlink-tests: New test.
33280         * modules/areadlink-with-size-tests: Likewise.
33281         * tests/test-areadlink.h: New file.
33282         * tests/test-areadlink.c: Likewise.
33283         * tests/test-areadlink-with-size.c: Likewise.
33284
33285         maint: minor cleanups
33286         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
33287         _UNUSED_PARAMETER_ instead.
33288         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
33289         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
33290         * modules/linkat-tests (Files): Distribute test-link.h.
33291
33292         openat, utimens: whitespace cleanup
33293         * lib/openat.c: Prefer space throughout, rather than mix of 8
33294         spaces vs. tabs.
33295         * lib/at-func.c: Likewise.
33296         * lib/utimens.c: Likewise.
33297
33298         openat: avoid using wrong fd
33299         * lib/openat.c (openat_permissive): Reject user's fd if saving the
33300         working directory chooses same fd.
33301         * lib/at-func.c (AT_FUNC_NAME): Likewise.
33302
33303         mkdir, mkdirat: fix cygwin 1.5.x bug
33304         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
33305         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
33306         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
33307         bug.
33308         (gl_PREREQ_MKDIR): Delete unused macro.
33309         * modules/mkdir (Files): Track file rename.
33310         (configure.ac): Update macro name.
33311         * modules/openat (Depends-on): Add mkdir.
33312         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
33313
33314         mkdir, mkdirat: add tests
33315         * modules/mkdir-tests: New test.
33316         * tests/test-mkdir.h: New file.
33317         * tests/test-mkdir.c: Likewise.
33318         * tests/test-mkdirat.c: Likewise.
33319         * modules/openat-tests (Files): Add new files.
33320         (Makefile.am): Run new test.
33321
33322 2009-10-06  Eric Blake  <ebb9@byu.net>
33323
33324         doc: tweak *at function documentation
33325         * doc/posix-functions/faccessat.texi (faccessat): Mention
33326         known issue with replacement.
33327         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
33328         * doc/posix-functions/linkat.texi (linkat): Likewise.
33329         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33330         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33331         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33332         * doc/posix-functions/renameat.texi (renameat): Likewise.
33333         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33334
33335         openat: fix GNU/Hurd bug in unlinkat
33336         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
33337         broken.
33338         * doc/posix-functions/unlink.texi (unlink): Document this.
33339         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
33340
33341         fdopendir: fix GNU/Hurd bug
33342         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
33343         allowing non-directory fds.
33344         * lib/fdopendir.c (rpl_fdopendir): Work around it.
33345         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33346         * modules/dirent (Makefile.am): Substitute it.
33347         * lib/dirent.in.h (fdopendir): Declare replacement.
33348         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
33349         * tests/test-fdopendir.c (main): Test something other than
33350         /dev/null, since on Hurd that behaves like a directory.
33351
33352         test-symlink: port to GNU/Hurd
33353         * tests/test-symlink.h (test_symlink): Relax expected errno.
33354
33355         doc: tweak more cygwin information
33356         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
33357         now compatible with glibc.
33358         * doc/posix-functions/getopt.texi (getopt): Likewise.
33359
33360         getopt-gnu: add another test
33361         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
33362         guarantee behavior relied on by m4.
33363         * tests/test-getopt.c (main): Use it.
33364         * modules/getopt-posix-tests (Depends-on): Add setenv.
33365         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
33366
33367         getopt: fix compilation on darwin
33368         * lib/getopt.in.h (includes): Leave breadcrumbs during system
33369         include.
33370         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
33371         Reported by Ludovic Courtès.
33372
33373 2009-10-06  Bruno Haible  <bruno@clisp.org>
33374
33375         * modules/size_max (Description): Discourage its use.
33376         Reported by Simon Josefsson.
33377
33378 2009-10-06  Jim Meyering  <meyering@redhat.com>
33379
33380         linkat: avoid compilation failure
33381         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
33382
33383 2009-10-05  Eric Blake  <ebb9@byu.net>
33384
33385         linkat: support Linux 2.6.17
33386         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
33387         linkat on Linux, but allow cache variable override.
33388         * lib/linkat.c (rpl_linkat): Define override.
33389         * modules/linkat (Depends-on): Add symlinkat.
33390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
33391         * modules/unistd (Makefile.am): Substitute it.
33392         * lib/unistd.in.h (linkat): Declare replacement.
33393         Reported by Pádraig Brady.
33394
33395         quotearg: port test to systems with C.UTF-8 locale
33396         * tests/test-quotearg.c (struct result_strings): Add another
33397         member, differentiating between C.ASCII and C.UTF-8 handling.
33398         (compare_strings): Add parameter.
33399         (main): Adjust all callers.
33400
33401         getopt: avoid clash with FreeBSD _getopt_internal
33402         * lib/getopt.in.h (_getopt_internal): Override the name.
33403         * lib/getopt_int.h (includes): Pick up any overrides.
33404         Reported by Reuben Thomas.
33405
33406         hash: allow C89 compilation
33407         * lib/hash.c (check_tuning): Move declaration before statement.
33408         Reported by Reuben Thomas.
33409
33410 2009-10-05  Karl Berry  <karl@gnu.org>
33411
33412         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
33413
33414 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
33415             Bruno Haible  <bruno@clisp.org>
33416
33417         * lib/uname.c (uname): Use a table-driven algorithm to compute
33418         Windows NT versions.
33419
33420 2009-10-04  Bruno Haible  <bruno@clisp.org>
33421
33422         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
33423         program_invocation_short_name.
33424         * modules/progname (configure.ac): Test for presence of
33425         program_invocation_short_name.
33426         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33427
33428 2009-10-04  Bruno Haible  <bruno@clisp.org>
33429
33430         * lib/progname.c (set_program_name): Fix comment.
33431         Reported by Jim Meyering.
33432
33433 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33434             Bruno Haible  <bruno@clisp.org>
33435
33436         * lib/uname.c: Include <string.h>.
33437         (uname): Do only one call to GetVersionEx in the common case.
33438
33439 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33440             Bruno Haible  <bruno@clisp.org>
33441
33442         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
33443         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
33444         (uname): Add support for Windows CE and various non-x86 CPU types.
33445
33446 2009-10-03  Bruno Haible  <bruno@clisp.org>
33447
33448         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
33449         invocation to tests/configure.ac.
33450         Reported by Ian Beckwith <ianb@erislabs.net>.
33451
33452 2009-10-02  Eric Blake  <ebb9@byu.net>
33453
33454         fchdir: avoid compiler warning
33455         * lib/fchdir.c (canonicalize_file_name)
33456         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
33457
33458         test-open: support mingw errno values
33459         * tests/test-open.h (test_open): Relax test.
33460         * tests/test-fopen.h (test_fopen): Likewise.
33461         * tests/test-openat-safer.c (main): Likewise.
33462
33463         open: fix opening directory on mingw
33464         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
33465
33466         test-open: on GNU/Hurd, /dev/null is a directory
33467         * tests/test-fopen.h (main): Rename...
33468         (test_fopen): ...to this.  Use a guaranteed non-directory when
33469         confirming open behavior on trailing slash.
33470         * tests/test-openat-safer.c (main): Likewise.
33471         * tests/test-open.h (main): Likewise....
33472         (test_open): ...to this.
33473         * tests/test-fopen.c (main): Adjust caller.
33474         * tests/test-fopen-safer.c (main): Likewise.
33475         * tests/test-open.c (main): Likewise.
33476         * tests/test-fcntl-safer.c (main): Likewise.
33477         Reported by Samuel Thibault.
33478
33479         rename, fchdir: don't ignore chdir failure
33480         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
33481         * lib/rename.c (rpl_rename) [W32]: Likewise.
33482         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
33483         an empty destination directory if source cannot be renamed,
33484         although there is still possibility for failure.
33485         * doc/posix-functions/rename.texi (rename): Document the race.
33486         Reported by Jim Meyering.
33487
33488         maint: cleanup whitespace in recent commits
33489         * lib/rename.c (rpl_rename): Remove tabs.
33490         * tests/test-link.h (test_link): Likewise.
33491         * lib/fchdir.c (get_name): Likewise.
33492         Reported by Jim Meyering.
33493
33494 2009-10-02  Ben Pfaff  <blp@gnu.org>
33495
33496         relocatable-prog-wrapper: Add missing dependency on
33497         double-slash-root.
33498         * modules/relocatable-prog-wrapper: Add dependency.
33499         Reported by Ian Beckwith <ianb@erislabs.net>.
33500
33501 2009-10-02  Eric Blake  <ebb9@byu.net>
33502
33503         renameat: fix Solaris bugs
33504         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
33505         needed fixing.
33506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
33507         * modules/stdio (Makefile.am): Substitute it.
33508         * lib/stdio.in.h (renameat): Declare replacement.
33509         * lib/renameat.c (rpl_renameat): Implement fix.
33510
33511         renameat: new module
33512         * modules/renameat: New file.
33513         * lib/renameat.c (renameat): Likewise.
33514         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
33515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33516         * modules/stdio (Makefile.am): Substitute them.
33517         * lib/stdio.in.h (renameat): Declare it.
33518         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33519         * doc/posix-functions/renameat.texi (renameat): Likewise.
33520         * modules/renameat-tests: New test.
33521         * tests/test-renameat.c: Likewise.
33522
33523         rename: fix mingw bugs
33524         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
33525         directory overwrite bugs.
33526
33527         rename: fix another cygwin 1.5 bug
33528         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
33529         checks.
33530         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
33531         unnecessary cygwin workarounds.  Also work around bug with moving
33532         full directory onto an empty one.
33533         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
33534
33535         rename-dest-slash: merge into rename module
33536         * modules/rename-dest-slash (Status): Mark obsolete.
33537         (Depends-on): Add rename.
33538         (Files): Let rename do it all.
33539         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
33540         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
33541         * m4/rename-dest-slash.m4: ...so this file can be deleted.
33542         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
33543         * lib/rename.c (rpl_rename): Update comments.
33544
33545         rename: fix cygwin 1.5.x bugs
33546         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
33547         * lib/rename.c (rpl_rename): Work around them.
33548         * modules/rename (Depends-on): Add same-inode.
33549
33550         rename: fix Solaris 10 bug
33551         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33552         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
33553         was the only bug.
33554
33555         rename: fix Solaris 9 bug
33556         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
33557         on non-directory.  Avoid calling exit.
33558         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
33559         strdup.
33560         * modules/rename-tests (Depends-on): Drop lstat.
33561         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33562         (gl_PREREQ_RENAME): Delete unused macro.
33563
33564         rename-dest-slash: fix NetBSD bug
33565         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
33566         links.
33567         * modules/rename-dest-slash (Depends-on): Add same-inode.
33568
33569         rename-tests: new test, exposes several platform bugs
33570         * modules/rename-tests: New file.
33571         * tests/test-rename.h: Likewise.
33572         * tests/test-rename.c: Likewise.
33573         * doc/posix-functions/rename.texi (rename): Improve documentation,
33574         including bugs that will eventually be fixed in gnulib.
33575
33576 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
33577
33578         * lib/uname.c: Include <stdlib.h>
33579         (uname): Assume version info is available.
33580
33581 2009-10-02  Jim Meyering  <meyering@redhat.com>
33582
33583         gnu-web-doc-update: correct --help output
33584         * build-aux/gnu-web-doc-update: Make --help output relevant.
33585
33586         gnu-web-doc-update: add standard options
33587         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
33588
33589         gnu-web-doc-update: New module.
33590         Use this script to automatically update the on-line web documentation
33591         for your GNU project at http://www.gnu.org/software/$pkg/manual/
33592         * modules/gnu-web-doc-update: New file, from coreutils.
33593         * build-aux/gnu-web-doc-update: New script.
33594
33595 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
33596
33597         link: LoadLibrary is not needed.
33598         * lib/link.c: Use GetModuleHandle.
33599
33600 2009-10-01  Eric Blake  <ebb9@byu.net>
33601
33602         getopt: bump serial number
33603         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
33604         change.
33605
33606         tests: tighten link, rmdir, and remove tests
33607         * tests/test-link.h (includes): No need to use <config.h> here.
33608         Clean up if directory hard link was created, otherwise test for
33609         trailing '.'.
33610         * tests/test-linkat.c (main): Simplify.
33611         * tests/test-remove.c (main): Enhance test for trailing '.'.
33612         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33613
33614 2009-10-01  Jim Meyering  <meyering@redhat.com>
33615
33616         maint.mk: requiring "make major" was annoying, for a "minor" release.
33617         What is intended is "stable", to contrast with alpha and beta,
33618         so require "make stable", not "make major".
33619         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
33620         (get_tool_versions): Likewise.
33621         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
33622
33623 2009-09-30  Ben Pfaff  <blp@gnu.org>
33624
33625         Fix broken build of replacement for Windows tmpfile().
33626         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
33627         flags argument added along with the 'mkostemp' module.
33628
33629 2009-09-28  Bruno Haible  <bruno@clisp.org>
33630
33631         Avoid identifier clash with POSIX function 'remove' defined as a macro.
33632         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
33633         to 'remove_elt'.
33634         (gl_list_remove): Update.
33635         * lib/gl_list.c (gl_list_remove): Update.
33636         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
33637         to 'remove_elt'.
33638         (gl_oset_remove): Update.
33639         * lib/gl_list.c (gl_oset_remove): Update.
33640         Reported by Eric Blake.
33641
33642 2009-09-28  Eric Blake  <ebb9@byu.net>
33643
33644         doc: mention yet more cygwin 1.7 status
33645         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
33646         cygwin.
33647         * doc/glibc-functions/execvpe.texi (execvpe): New file.
33648         * doc/gnulib.texi (Glibc unistd.h): Mention it.
33649
33650         argp: fix test failure
33651         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
33652         that are not upper-case.  Pass correct range to tolower.
33653
33654 2009-09-27  Jim Meyering  <meyering@redhat.com>
33655
33656         test-yesno: work around sparc-dash here-document infelicity
33657         Without this change, the literal \177 byte in a here document
33658         would make dash 0.5.5.1-3 access uninitialized memory.
33659         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
33660         Instead, use a marker, "@", and filter through tr to create the desired
33661         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
33662
33663 2009-09-27  Bruno Haible  <bruno@clisp.org>
33664
33665         Disable untested support for new flavours of ACLs on AIX.
33666         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
33667         progress.
33668         * lib/set-mode-acl.c (qset_acl): Likewise.
33669
33670 2008-12-07  Bruno Haible  <bruno@clisp.org>
33671
33672         Add support for new flavours of ACLs on AIX. (Untested.)
33673         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
33674         (file_has_acl): Add support for newer AIX.
33675         * lib/set-mode-acl.c (qset_acl): Likewise.
33676         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
33677         Rainer Tammer <tammer@tammer.net>.
33678
33679 2009-09-26  Eric Blake  <ebb9@byu.net>
33680
33681         argp: fix compilation of getopt
33682         * lib/getopt.in.h (includes): Use different guard than glibc.
33683         Reported by Sergey Poznyakoff.
33684
33685         doc: mention more cygwin 1.7 status
33686         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
33687         bug.
33688         * doc/posix-functions/execl.texi (execl): Likewise.
33689         * doc/posix-functions/execle.texi (execle): Likewise.
33690         * doc/posix-functions/execlp.texi (execlp): Likewise.
33691         * doc/posix-functions/execv.texi (execv): Likewise.
33692         * doc/posix-functions/execve.texi (execve): Likewise.
33693         * doc/posix-functions/execvp.texi (execvp): Likewise.
33694         * doc/glibc-functions/canonicalize_file_name.texi
33695         (canonicalize_file_name): Cygwin 1.7 now provides this.
33696         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
33697         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
33698         on AT_SYMLINK_NOFOLLOW.
33699
33700 2009-09-24  Eric Blake  <ebb9@byu.net>
33701
33702         test-linkat: make test more robust
33703         * tests/test-linkat.c (main): Avoid collision with EEXIST.
33704
33705         getopt: fix inclusion guards for cygwin
33706         * modules/getopt-posix (Depends-on): Add include-next.
33707         (Makefile.am): Substitute more items in replacement header.
33708         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
33709         <getopt.h>.
33710         * lib/getopt.in.h (includes): Use split inclusion guard, and
33711         prefer <getopt.h> over include <unistd.h> when one is present.
33712         (option): Also override name of 'struct option'.
33713
33714         same-inode: revert prior change; it is not yet ready
33715         * NEWS: Undo mention of this change.
33716         * lib/same-inode.h (same-inode.h): Undo tri-state change.
33717         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33718         * lib/cycle-check.c (cycle_check): Likewise.
33719         * lib/same.c (same_name): Likewise.
33720         * lib/at-func2.c (at_func2): Likewise.
33721
33722 2009-09-23  Eric Blake  <ebb9@byu.net>
33723
33724         linkat: new module
33725         * modules/linkat: New file.
33726         * lib/at-func2.c (at_func2): Likewise.
33727         * lib/linkat.c (linkat): Likewise.
33728         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
33729         * lib/openat-priv.h (at_func2): Add declaration.
33730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33731         * modules/unistd (Makefile.am): Substitute them.
33732         * lib/unistd.in.h (linkat): Declare it.
33733         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33734         * doc/posix-functions/linkat.texi (linkat): Likewise.
33735         * doc/posix-functions/link.texi (link): Tweak wording.
33736         * tests/test-link.c (main): Move guts...
33737         * tests/test-link.h (test_link): ...into new file.
33738         * modules/linkat-tests: New test.
33739         * tests/test-linkat.c: Likewise.
33740         * modules/link-tests (Files): Ship new file.
33741         (Depends-on): Add stdbool.
33742
33743         dirname: add library-safe mdir_name
33744         * lib/dirname.h (mdir_name): New prototype.
33745         * lib/dirname.c (dir_name): Move guts...
33746         (mdir_name): ...to new function that avoids xalloc_die.
33747
33748         fchdir: another mingw fix
33749         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
33750         * lib/fchdir.c (get_name): New helper method; skips canonicalize
33751         on mingw (where it has not yet been ported), and make it optional
33752         elsewhere.
33753         (_gl_register_fd): Use it.
33754
33755         same-inode: make SAME_INODE tri-state, to port to mingw
33756         * NEWS: Mention this change.
33757         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
33758         st_ino always being 0.
33759         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33760         * lib/cycle-check.c (cycle_check): Likewise.
33761         * lib/same.c (same_name): Likewise.
33762
33763         lstat: avoid mingw compilation error
33764         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
33765         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
33766         lstat ourselves.
33767         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
33768         was adequate.
33769         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
33770         the checks for lstat.
33771         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
33772
33773         link: fix test failure on Solaris 9
33774         * lib/link.c (rpl_link): Don't assume link will catch bogus
33775         trailing slash on source.
33776
33777         test-symlinkat: enhance test
33778         * tests/test-readlink.c (main): Move guts...
33779         * tests/test-readlink.h (test_readlink): ...into new file.
33780         * tests/test-symlink.c (main): Move guts...
33781         * tests/test-symlink.h (test_symlink): ...into new file.
33782         * tests/test-symlinkat.c (main): Use new files for further
33783         coverage.
33784         (do_symlink, do_readlink): New helper functions.
33785         * modules/symlink-tests (Files): Ship new file.
33786         (Depends-on): Add stdbool.
33787         * modules/readlink-tests (Files): Ship new file.
33788         (Depends-on): Add stdbool.
33789         * modules/symlinkat-tests (Files): Use new files.
33790
33791 2009-09-23  Eric Blake  <ebb9@byu.net>
33792
33793         readlink: document portability issue with symlink length
33794         * doc/posix-functions/lstat.texi (lstat): Mention that some file
33795         systems have bogus st_size on symlinks, and mention the
33796         areadlink-with-size module.
33797         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33798         * doc/posix-functions/readlink.texi (readlink): Mention the
33799         areadlink module, and ERANGE failure.
33800         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33801         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
33802
33803         readlink: fix Solaris 9 bug with trailing slash
33804         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
33805         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
33806         * doc/posix-functions/readlink.texi (readlink): Document this.
33807         * modules/readlink-tests: New test.
33808         * tests/test-readlink.c: Likewise.
33809
33810         readlink: fix cygwin 1.5.x bug with return type
33811         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
33812         * lib/unistd.in.h (readlink): Use ssize_t.
33813         * lib/readlink.c (readlink): Likewise.
33814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33815         * modules/unistd (Makefile.am): Substitute it.
33816         * lib/unistd.in.h (readlink): Declare replacement.
33817         * doc/posix-functions/readlink.texi (readlink): Document this.
33818
33819         symlink: use throughout gnulib
33820         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
33821         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
33822         symlink is not used.
33823         * modules/symlinkat (Depends-on): Add symlink.
33824         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33825         * modules/canonicalize-tests (Depends-on): Likewise.
33826         * modules/lstat-tests (Depends-on): Likewise.
33827         * modules/openat-tests (Depends-on): Likewise.
33828         * modules/remove-tests (Depends-on): Likewise.
33829         * modules/rmdir-tests (Depends-on): Likewise.
33830         * modules/unlink-tests (Depends-on): Likewise.
33831         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
33832         * tests/test-canonicalize.c (symlink): Likewise.
33833         * tests/test-fstatat.c (symlink): Likewise.
33834         * tests/test-lstat.c (symlink): Likewise.
33835         * tests/test-remove.c (symlink): Likewise.
33836         * tests/test-rmdir.c (symlink): Likewise.
33837         * tests/test-unlink.c (symlink): Likewise.
33838         * tests/test-unlinkat.c (symlink): Likewise.
33839
33840         symlink: new module, for Solaris 9 bug
33841         * modules/symlink: New file.
33842         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
33843         * lib/symlink.c: Likewise.
33844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33845         * modules/unistd (Makefile.am): Substitute them.
33846         * lib/unistd.in.h (symlink): Declare replacement.
33847         * MODULES.html.sh (File system functions): Mention it.
33848         * doc/posix-functions/symlink.texi (symlink): Likewise.
33849         * modules/symlink-tests: New test.
33850         * tests/test-symlink.c: Likewise.
33851
33852 2009-09-23  Bruno Haible  <bruno@clisp.org>
33853
33854         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
33855         when needed.
33856         Test case: gnulib-tool --import --with-tests atexit inttypes.
33857         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
33858
33859 2009-09-23  Bruno Haible  <bruno@clisp.org>
33860
33861         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
33862         subcommand, not in a subshell.
33863
33864 2009-09-22  Eric Blake  <ebb9@byu.net>
33865
33866         unistd: sort replacement declarations
33867         * lib/unistd.in.h: Sort declarations.
33868
33869         open, openat: minor optimization
33870         * lib/open.c (open): If open succeeded, len is non-zero.
33871         * lib/openat.c (rpl_openat): Likewise.
33872
33873         link-follow: ensure correct result
33874         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
33875         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
33876         distinguish between possible failures.
33877
33878 2009-09-21  Eric Blake  <ebb9@byu.net>
33879
33880         fts: avoid compiler warning
33881         * lib/fts.c (dirent_inode_sort_may_be_useful)
33882         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
33883
33884 2009-09-19  Bruno Haible  <bruno@clisp.org>
33885
33886         * lib/progreloc.c (canonicalize_file_name): New declaration.
33887
33888 2009-09-19  Eric Blake  <ebb9@byu.net>
33889
33890         link: fix quoting
33891         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
33892
33893         openat: fix openat bugs on Solaris 9
33894         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
33895         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
33896         * modules/openat (Depends-on): Add open.
33897         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
33898         * modules/fcntl-h (Makefile.am): Substitute it.
33899         * lib/fcntl.in.h (openat): Declare replacement.
33900         * doc/posix-functions/openat.texi (openat): Document this.
33901
33902         openat: move fstatat and unlinkat into correct files
33903         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
33904         compiled.
33905         * lib/openat.c (fstatat, unlinkat): Move...
33906         * lib/fstatat.c (fstatat): ...into correct files.
33907         * lib/unlinkat.c (unlinkat): Likewise.
33908
33909         openat: fix unlinkat bugs on Solaris 9
33910         * lib/unlinkat.c (unlinkat): New file.
33911         * modules/openat (Depends-on): Add unlink.
33912         (Files): Distribute it.
33913         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
33914         trailing slash behavior is broken.
33915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33916         * modules/unistd (Makefile.am): Substitute it.
33917         * lib/unistd.in.h (unlinkat): Declare replacement.
33918         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
33919
33920         openat: fix fstatat bugs on Solaris 9
33921         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
33922         stat.
33923         * doc/posix-functions/fstatat.texi (fstatat): Document this.
33924
33925         test-unlinkat: enhance test, to expose Solaris 9 bug
33926         * tests/test-unlink.c (main): Factor guts...
33927         * tests/test-unlink.h (test_rmdir_func): ...into new file.
33928         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
33929         * tests/test-rmdir.c (main): Adjust caller.
33930         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
33931         (unlinker): New helper function.
33932         (rmdirat): Enhance check.
33933         * modules/rmdir-tests (Depends-on): Add stdbool.
33934         * modules/unlink-tests (Depends-on): Likewise.
33935         (Files): Add test-unlink.h.
33936         * modules/openat-tests (Files): Likewise.
33937         (Depends-on): Add unlinkdir.
33938
33939         test-fstatat: new test, to expose Solaris 9 bugs
33940         * tests/test-stat.c (main): Factor guts...
33941         * tests/test-stat.h (test_stat_func): ...into new file.
33942         * tests/test-lstat.c (main): Factor guts...
33943         * tests/test-lstat.h (test_lstat_func): ...into new file.
33944         * tests/test-fstatat.c: New file.
33945         * modules/stat-tests (Files): Add test-stat.h.
33946         * modules/lstat-tests (Files): Add test-lstat.h.
33947         (Depends-on): Add stdbool.
33948         * modules/openat-tests (Depends-on): Add pathmax.
33949         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
33950         (Makefile.am): Run new test.
33951
33952         remove: new module, for mingw and Solaris 9 bugs
33953         * modules/remove: New file.
33954         * lib/remove.c: Likewise.
33955         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
33956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33957         * modules/stdio (Makefile.am): Use them.
33958         * lib/stdio.in.h (remove): Declare replacement.
33959         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33960         * doc/posix-functions/remove.texi (remove): Likewise.
33961         * modules/remove-tests: New test.
33962         * tests/test-remove.c: Likewise.
33963
33964         unlink: new module, for Solaris 9 bug
33965         * modules/unlink: New file.
33966         * lib/unlink.c: Likewise.
33967         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
33968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33969         * modules/unistd (Makefile.am): Use them.
33970         * lib/unistd.in.h (stat): Declare replacement.
33971         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33972         * doc/posix-functions/unlink.texi (unlink): Likewise.
33973         * modules/unlink-tests: New test.
33974         * tests/test-unlink.c: Likewise.
33975
33976         lstat: fix Solaris 9 bug
33977         * lib/lstat.c (lstat): Also check for trailing slash on
33978         non-symlink, non-directories.  Use stat module to simplify logic.
33979         * doc/posix-functions/lstat.texi (lstat): Document it.
33980         * modules/lstat-tests (Depends-on): Add errno, same-inode.
33981         (configure.ac): Check for symlink.
33982         * tests/test-lstat.c (main): Add more tests.
33983
33984         stat: add as dependency to other modules
33985         * modules/chown (Depends-on): Add stat.
33986         * modules/euidaccess (Depends-on): Likewise.
33987         * modules/fchdir (Depends-on): Likewise.
33988         * modules/isdir (Depends-on): Likewise.
33989         * modules/link (Depends-on): Likewise.
33990         * modules/lstat (Depends-on): Likewise.
33991         * modules/mkdir-p (Depends-on): Likewise.
33992         * modules/modechange (Depends-on): Likewise.
33993         * modules/open (Depends-on): Likewise.
33994         * modules/readlink (Depends-on): Likewise.
33995         * modules/same (Depends-on): Likewise.
33996
33997         stat: fix Solaris 9 bug
33998         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
33999         slash.
34000         * lib/stat.c (rpl_stat): Work around it.
34001         * doc/posix-functions/stat.texi (stat): Update documentation.
34002
34003         stat: new module, for mingw bug
34004         * modules/stat: New file.
34005         * lib/stat.c: Likewise.
34006         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34007         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34008         * modules/sys_stat (Makefile.am): Use them.
34009         * lib/sys_stat.in.h (stat): Declare replacement.
34010         * lib/openat.c (fstatat): Deal with lstat and stat being function
34011         macros.
34012         * modules/openat (Depends-on): Add inline.
34013         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34014         * doc/posix-functions/stat.texi (stat): Likewise.
34015         * modules/stat-tests: New test.
34016         * tests/test-stat.c: Likewise.
34017
34018 2009-09-19  Jim Meyering  <meyering@redhat.com>
34019
34020         syntax-check: detect unnecessary inclusion of canonicalize.h
34021         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34022
34023 2009-09-19  Eric Blake  <ebb9@byu.net>
34024
34025         canonicalize-lgpl: adjust clients to use correct header
34026         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34027         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34028         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34029         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34030         * lib/progreloc.c (includes): Likewise.
34031
34032 2009-09-19  Jim Meyering  <meyering@redhat.com>
34033
34034         test-posixtm.c: correct a comment
34035         * tests/test-posixtm.c: Correct first-line comment.
34036         Spotted by Eric Blake.
34037
34038 2009-09-16  Jim Meyering  <meyering@redhat.com>
34039
34040         posixtm-tests: make T const-correct; add a test case
34041         * tests/test-posixtm.c (T): Declare const.
34042         Add a test for -(2^31+1).
34043         Remove useless can-succeed-only-in-2002 test.
34044
34045         posixtm-tests: adjust the sole failing test
34046         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34047         expected output matches what mktime now produces.  Cross-checked via
34048         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34049
34050         posixtm: move #ifdef'd tests into a new module
34051         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34052         * tests/test-posixtm.c: ... this new file.
34053         * modules/posixtm-tests: New module.
34054
34055 2009-09-19  Eric Blake  <ebb9@byu.net>
34056
34057         openat: simplify use of at-func.c
34058         * lib/at-func.c (includes): Include prerequisites here, to
34059         simplify requirements on client files.
34060         * lib/openat-priv.h: Add double-inclusion guard.
34061         * lib/faccessat.c (includes): Simplify.
34062         * lib/fchmodat.c (includes): Likewise.
34063         * lib/fchownat.c (includes): Likewise.
34064         * lib/mkdirat.c (includes): Likewise.
34065         * lib/mkfifoat.c (includes): Likewise.
34066         * lib/symlinkat.c (includes): Likewise.
34067
34068         openat: allow return of fd 0
34069         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34070         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34071         unistd-safer.
34072         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34073         <fcntl.h>; this module does not leak fds.
34074         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34075         must be allowed to return 0, leaving openat_safer to add the
34076         safety.
34077         (openat_permissive): Avoid writing to just-opened fd 2 if
34078         restoring the current directory fails.
34079         * lib/openat-die.c (openat_restore_fail): Add comment.
34080         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34081         (save_cwd): Guarantee safe fd, but without use of open_safer.
34082         * tests/test-openat.c: New test.
34083         * modules/openat-tests (Files, Makefile.am): Distribute and build
34084         new file.
34085
34086         relocatable-prog-wrapper: fix build
34087         * modules/relocatable-prog-wrapper (Files): Update name of
34088         canonicalize m4 file, broken on 2009-09-17.
34089         Reported by emad hajjar <aleppos@hotmail.com>.
34090
34091 2009-09-19  Bruno Haible  <bruno@clisp.org>
34092
34093         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34094         * lib/safe-alloc.c: Likewise.
34095         Reported by Ian Beckwith <ianb@erislabs.net>.
34096
34097 2009-09-18  Bruno Haible  <bruno@clisp.org>
34098
34099         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34100         Reported by <erobles@sensacd.com.mx>.
34101
34102 2009-09-17  Eric Blake  <ebb9@byu.net>
34103
34104         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34105         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34106         slashes when checking if last component is missing.
34107         * tests/test-canonicalize.c (main): Test this.
34108
34109         canonicalize, canonicalize-lgpl: honor // if distinct from /
34110         * modules/canonicalize (Files): Add double-slash-root.m4.
34111         * modules/canonicalize-lgpl (Files): Likewise.
34112         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34113         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34114         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34115         fallback definition.
34116         (canonicalize_filename_mode): Use it to protect //.
34117         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34118         (__realpath): Likewise.
34119         * tests/test-canonicalize.c (main): Test this.
34120         * tests/test-canonicalize-lgpl.c (main): Likewise.
34121         * modules/canonicalize-tests (Depends-on): Add same-inode.
34122         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34123
34124         canonicalize-lgpl: fix glibc bug with trailing slash
34125         * m4/canonicalize-lgpl.m4: Move contents...
34126         * m4/canonicalize.m4: ...here.
34127         (gl_CANONICALIZE_LGPL): Factor realpath check...
34128         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
34129         glibc 2.3.5 bug, fixed 2005-04-27.
34130         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
34131         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
34132         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
34133         * modules/canonicalize-lgpl (Files): Manage file rename.
34134         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34135         * modules/stdlib (Makefile.am): Substitute witness.
34136         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
34137         is needed.
34138         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
34139         replacement is required.
34140         * lib/canonicalize.c (canonicalize_file_name): Likewise.
34141         * doc/glibc-functions/canonicalize_file_name.texi
34142         (canonicalize_file_name): Document this.
34143         * doc/posix-functions/realpath.texi (realpath): Likewise.
34144
34145         canonicalize-lgpl: reject non-directory with trailing slash
34146         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
34147         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
34148         catches failures in glibc 2.3.5.
34149         * tests/test-canonicalize.c (main): Likewise.
34150
34151         canonicalize-lgpl: use native realpath if it works
34152         * lib/canonicalize-lgpl.c (realpath): Guard with
34153         FUNC_REALPATH_WORKS.
34154         * lib/stdlib.in.h (realpath): Make declaration optional based on
34155         HAVE_REALPATH.
34156         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
34157         native realpath works.
34158         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34159         * modules/stdlib (Makefile.am): Substitute witness.
34160
34161         canonicalize, canonicalize-lgpl: use <stdlib.h>
34162         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
34163         (Include): Mention <stdlib.h>.
34164         (configure.ac): Mention functions we provide.
34165         * modules/canonicalize (configure.ac): Likewise.
34166         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
34167         realpath if canonicalize_file_name is missing.
34168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
34169         * modules/stdlib (Makefile.am): Substitute witnesses.
34170         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
34171         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
34172         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
34173         * NEWS: Document this.
34174         * doc/glibc-functions/canonicalize_file_name.texi
34175         (canonicalize_file_name): Likewise.
34176         * doc/posix-functions/realpath.texi (realpath): Likewise.
34177         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34178
34179         test-canonicalize: consolidate into single C program
34180         * tests/test-canonicalize.sh: Delete; move setup into...
34181         * tests/test-canonicalize.c (main): ...the program, making it
34182         easier to run in debugger.  Add some tests.
34183         * modules/canonicalize-tests (Files): Remove unused file.
34184         (Depends-on): Add progname.
34185         (configure.ac, Makefile.am): Simplify.
34186
34187         test-canonicalize-lgpl: consolidate into single C program
34188         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34189         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34190         easier to run in debugger.  Add some tests.
34191         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34192         (configure.ac, Makefile.am): Simplify.
34193
34194         canonicalize: avoid resolvepath
34195         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34196         unnecessary checks.
34197         * lib/canonicalize.c (includes): Simplify.
34198         (canonicalize_file_name): Drop resolvepath implementation.
34199         * modules/canonicalize (Depends-on): Drop filenamecat.
34200
34201         canonicalize: don't lose errno
34202         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34203         over calls to free.
34204
34205         canonicalize: simplify errno handling
34206         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
34207         assignment.
34208
34209         canonicalize, canonicalize-lgpl: update module dependencies
34210         * modules/canonicalize (Depends-on): Add extensions, lstat,
34211         pathmax, stdlib.
34212         (Files): Drop pathmax.h.
34213         (configure.ac): Adjust macro name.
34214         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
34215         lstat, stdlib, sys_stat.
34216         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
34217         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
34218         extensions.
34219         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
34220         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
34221         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
34222         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
34223         declaration, if available.
34224         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
34225         we can rely on the readlink module.
34226         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
34227         (includes): Use <unistd.h> unconditionally.
34228
34229 2009-09-17  Eric Blake  <ebb9@byu.net>
34230
34231         maint: make Include sections of modules consistent
34232         * modules/alloca: Use only header name; no need to list #include.
34233         * modules/alloca-opt: Likewise.
34234         * modules/arpa_inet: Likewise.
34235         * modules/canon-host: Likewise.
34236         * modules/configmake: Likewise.
34237         * modules/dirent: Likewise.
34238         * modules/eealloc: Likewise.
34239         * modules/environ: Likewise.
34240         * modules/fchdir: Likewise.
34241         * modules/fcntl: Likewise.
34242         * modules/fcntl-h: Likewise.
34243         * modules/gethrxtime: Likewise.
34244         * modules/gettime: Likewise.
34245         * modules/ignore-value: Likewise.
34246         * modules/inet_ntop: Likewise.
34247         * modules/inet_pton: Likewise.
34248         * modules/inttypes: Likewise.
34249         * modules/isnand-nolibm: Likewise.
34250         * modules/isnanf-nolibm: Likewise.
34251         * modules/mbchar: Likewise.
34252         * modules/mbfile: Likewise.
34253         * modules/mbiter: Likewise.
34254         * modules/mbuiter: Likewise.
34255         * modules/netdb: Likewise.
34256         * modules/netinet_in: Likewise.
34257         * modules/nproc: Likewise.
34258         * modules/pagealign_alloc: Likewise.
34259         * modules/poll: Likewise.
34260         * modules/printf-frexp: Likewise.
34261         * modules/pthread: Likewise.
34262         * modules/putenv: Likewise.
34263         * modules/random_r: Likewise.
34264         * modules/relocatable-prog: Likewise.
34265         * modules/search: Likewise.
34266         * modules/select: Likewise.
34267         * modules/selinux-h: Likewise.
34268         * modules/settime: Likewise.
34269         * modules/signal: Likewise.
34270         * modules/size_max: Likewise.
34271         * modules/socklen: Likewise.
34272         * modules/ssize_t: Likewise.
34273         * modules/stdarg: Likewise.
34274         * modules/stdbool: Likewise.
34275         * modules/stddef: Likewise.
34276         * modules/stdint: Likewise.
34277         * modules/stdio: Likewise.
34278         * modules/stdlib: Likewise.
34279         * modules/string: Likewise.
34280         * modules/strings: Likewise.
34281         * modules/sys_file: Likewise.
34282         * modules/sys_ioctl: Likewise.
34283         * modules/sys_select: Likewise.
34284         * modules/sys_socket: Likewise.
34285         * modules/sys_stat: Likewise.
34286         * modules/sys_time: Likewise.
34287         * modules/sys_times: Likewise.
34288         * modules/sys_utsname: Likewise.
34289         * modules/sys_wait: Likewise.
34290         * modules/sysexits: Likewise.
34291         * modules/time: Likewise.
34292         * modules/times: Likewise.
34293         * modules/tmpfile: Likewise.
34294         * modules/trim: Likewise.
34295         * modules/unistd: Likewise.
34296         * modules/wchar: Likewise.
34297         * modules/wctype: Likewise.
34298
34299 2009-09-17  Bruno Haible  <bruno@clisp.org>
34300
34301         Make getdate.y compile on QNX and NetBSD 5 / i386.
34302         * m4/getdate.m4 (gl_GETDATE): Conditionally define
34303         TIME_T_FITS_IN_LONG_INT.
34304         * lib/getdate.y (long_time_t): New type.
34305         (relative_time): Change type of 'seconds' field to long_time_t.
34306         (get_date): Update types of local variables. Check against overflow
34307         during conversion from long_time_t to time_t.
34308         Reported by Matt Kraai <kraai@ftbfs.org>
34309         and Hasso Tepper <hasso@netbsd.org>.
34310
34311 2009-09-17  Bruno Haible  <bruno@clisp.org>
34312
34313         * modules/COPYING: Update copyright years.
34314         * modules/README: Likeiwse.
34315         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
34316         Reported by Ian Beckwith <ianb@erislabs.net>.
34317
34318 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34319
34320         * users.txt: Update references for gnuit package.
34321
34322 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34323
34324         * m4/getdelim.m4: Fix typo in copyright line.
34325
34326 2009-09-17  Bruno Haible  <bruno@clisp.org>
34327
34328         * lib/atoll.c: Use the standard header with GPL copyright.
34329         * lib/argz.in.h: Likewise.
34330         * lib/glob.c: Likewise.
34331         * lib/glob-libc.h: Likewise.
34332         * lib/random_r.c: Likewise.
34333         * lib/siglist.h: Likewise.
34334         * lib/strsignal.c: Likewise.
34335         Reported by Ian Beckwith <ianb@erislabs.net>.
34336
34337 2009-09-17  Eric Blake  <ebb9@byu.net>
34338
34339         rmdir: ensure correct dependency order
34340         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
34341
34342 2009-09-17  Bruno Haible  <bruno@clisp.org>
34343
34344         Disable assertion that fails on NetBSD 5 / i386.
34345         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
34346         Reported by Sam Steingold <sds@gnu.org>
34347         and Hasso Tepper <hasso@netbsd.org>.
34348
34349 2009-09-16  Eric Blake  <ebb9@byu.net>
34350
34351         unlinkdir: port to mingw
34352         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
34353         on which no one can unlink a directory.
34354
34355         stdlib: sort witness names
34356         * modules/stdlib (Makefile.am): Sort replacements.
34357         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34358         * lib/stdlib.in.h: Likewise.
34359
34360         parse-duration-tests: avoid link failure
34361         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
34362         LIBINTL.
34363         Reported by Tom G. Christensen.
34364
34365         openat-tests: ensure unlinkat behaves like rmdir
34366         * tests/test-rmdir.c (main): Factor guts...
34367         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
34368         * modules/rmdir-tests (Files): Ship new file.
34369         * modules/openat-tests: New test.
34370         * tests/test-unlinkat.c: Likewise.
34371
34372         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
34373         * modules/rmdir-errno (Status, Notice): Now obsolete.
34374
34375         rmdir: work around cygwin 1.5.x and mingw bugs
34376         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
34377         * lib/rmdir.c (rmdir): Work around it.
34378         * modules/rmdir (Status, Notice): No longer obsolete.
34379         (Files): Add dos.m4.
34380         (Depends-on): Add unistd.
34381         (configure.ac): Set witnesses.
34382         (License): Relax to LGPLv2+.
34383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
34384         * modules/unistd (Makefile.am): Substitute witnesses.
34385         * lib/unistd.in.h (rmdir): Declare replacement.
34386         * doc/posix-functions/rmdir.texi (rmdir): Document this.
34387         * modules/rmdir-tests: New tests.
34388         * tests/test-rmdir.c: Likewise.
34389
34390 2009-09-15  Eric Blake  <ebb9@byu.net>
34391
34392         fchdir: improve use of replacement functions
34393         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
34394         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
34395         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
34396         REPLACE_CLOSEDIR.
34397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
34398         * modules/sys_stat (Makefile.am): Substitute correct witness.
34399         * modules/dirent (Makefile.am): Likewise.
34400         * modules/unistd (Makefile.am): Likewise.
34401         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
34402         * lib/unistd.in.h (dup): Likewise.
34403         * lib/sys_stat.in.h (fstat): Likewise.
34404
34405         maint: ignore gnulib-tool temp files
34406         * .gitignore: Ignore files created during gnulib-tool --test.
34407
34408 2009-09-13  Jim Meyering  <meyering@redhat.com>
34409
34410         posixtm: don't reject a time that specify "60" as the number of seconds
34411         * lib/posixtm.c (posixtime): The code to reject invalid dates
34412         would also reject a time specified with the .60 suffix.
34413         But POSIX allows that, in order to accommodate leap seconds.
34414         So don't reject it.
34415         (main): Adjust tests accordingly.
34416         * modules/posixtm (Depends-on): Add stpcpy.
34417
34418 2009-09-11  Jim Meyering  <meyering@redhat.com>
34419
34420         announce-gen: include [$release_type] in emitted Subject:
34421         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
34422         e.g., [stable] in the emitted Subject: line.
34423
34424 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34425
34426         Remove obsolete macros from several modules.
34427         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
34428         obsolete Autoconf macros with their modern counterparts.
34429         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
34430         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
34431         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
34432         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
34433         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
34434         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
34435         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34436         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34437         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
34438         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
34439         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34440         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34441         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
34442         * m4/sockets.m4 (gl_SOCKETS): Likewise.
34443         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
34444         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
34445         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34446         * m4/time_r.m4 (gl_TIME_R): Likewise.
34447         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
34448         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
34449         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34450
34451         Fix copyright header in build-aux scripts.
34452         * build-aux/git-version-gen: Fix copyright header to match GPLv3
34453         recommendation.
34454         * build-aux/ncftpput-ftp: Likewise.
34455         * build-aux/update-copyright: Likewise.
34456
34457 2009-09-09  Eric Blake  <ebb9@byu.net>
34458
34459         test-link: allow Linux choice of errno
34460         * tests/test-link.c (main): Relax test for alternate error.
34461
34462         strndup: fix improper m4 caching
34463         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
34464         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
34465         (gl_PREREQ_STRNDUP): Delete.
34466         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
34467         * modules/string (Makefile.am): Substitute it.
34468         * lib/string.in.h (strndup): Modernize prototype.
34469
34470         getcwd: port to mingw
34471         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
34472         different from the POSIX assumptions made throughout the getcwd
34473         module; fortunately, the mingw getcwd does not need replacement.
34474         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
34475         * modules/getcwd-tests: New test.
34476         * tests/test-getcwd.c: Likewise.
34477
34478         link: fix platform bugs
34479         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
34480         * lib/link.c (link): Work around them.  Fix related mingw bug.
34481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
34482         * modules/unistd (Makefile.am): Substitute it.
34483         * lib/unistd.in.h (link): Declare replacement.
34484         * doc/posix-functions/link.texi (link): Document this.
34485         * modules/link (Depends-on): Add strdup-posix, sys_stat.
34486
34487         test-link: consolidate into single C program, test more cases
34488         * tests/test-link.sh: Delete.
34489         * tests/test-link.c: Test more error conditions.  Exposes bugs on
34490         at least Cygwin and Solaris.
34491         * modules/link-tests (Files): Remove unused file.
34492         (Depends-on): Add errno, sys_stat.
34493         (Makefile.am): Simplify.
34494
34495 2009-09-08  Bruno Haible  <bruno@clisp.org>
34496
34497         Work around towlower, towupper bug on mingw.
34498         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
34499         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
34500         * doc/posix-functions/towlower.texi: Mention the mingw bug.
34501         * doc/posix-functions/towupper.texi: Likewise.
34502         Reported by Eric Blake.
34503
34504 2009-09-08  Jim Meyering  <meyering@redhat.com>
34505
34506         build: don't try to run autoheader if we don't use it
34507         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
34508         is not used in configure.ac.
34509
34510 2009-09-08  Eric Blake  <ebb9@byu.net>
34511
34512         euidaccess: fix compilation error
34513         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
34514
34515         rawmemchr: relax license
34516         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
34517         okay.
34518         Reported by Jim Meyering.
34519
34520         mkfifoat: new module
34521         * modules/mkfifoat: New file.
34522         * lib/mkfifoat.c: Likewise.
34523         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
34524         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34525         * modules/sys_stat (Makefile.am): Use them.
34526         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
34527         * MODULES.html.sh (File system functions): Mention module.
34528         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34529         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34530         * modules/mkfifoat-tests: New test.
34531         * tests/test-mkfifoat.c: Likewise.
34532
34533         strchrnul: relax license
34534         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
34535         okay.
34536         Reported by Jim Meyering.
34537
34538 2009-09-08  Eric Blake  <ebb9@byu.net>
34539
34540         fstatat: fix compilation on Solaris
34541         * lib/fstatat.c (includes): Add fcntl.h.
34542         Reported by Pádraig Brady.
34543
34544 2009-09-07  Eric Blake  <ebb9@byu.net>
34545
34546         rename: modernize replacement
34547         * modules/rename (Depends-on): Add stdio.
34548         (configure.ac): Declare witness.
34549         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
34550         stdio take care of replacement.
34551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
34552         * modules/stdio (Makefile.am): Substitute them.
34553         * lib/stdio.in.h (rename): Declare replacement.
34554         * lib/rename.c (includes): Allow cross-compilation to non-windows
34555         machines.
34556         * doc/posix-functions/rename.texi (rename): Improve
34557         documentation.
34558
34559         stdio: sort witness names
34560         * modules/stdio (Makefile.am): Sort replacements.
34561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34562         * lib/stdio.in.h: Likewise.
34563
34564         getcwd: minor cleanups
34565         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
34566         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
34567
34568         openat: provide more convenience names
34569         * modules/faccessat (configure.ac): Add C witness.
34570         * lib/unistd.in.h (readlinkat): Fix typo.
34571         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
34572         convenience wrappers.
34573         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
34574         wrappers in syntax checks.
34575
34576 2009-09-06  Eric Blake  <ebb9@byu.net>
34577
34578         doc: fix comments in recent patches
34579         * lib/faccessat.c: Mention correct function.
34580         * lib/fchmodat.c: Likewise.
34581         * lib/fchownat.c: Likewise.
34582         * lib/symlinkat.c: Likewise.
34583         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
34584         constants.
34585
34586         faccessat, symlinkat: continue cleanup of previous patch
34587         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
34588         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34589         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
34590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
34591         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
34592         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
34593         set.
34594
34595 2009-09-06  Bruno Haible  <bruno@clisp.org>
34596
34597         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
34598         (fstatat): Declare if GNULIB_FSTATAT is set.
34599         (mkdirat): Declare if GNULIB_MKDIRAT is set.
34600         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
34601         (unlinkat): Declare if GNULIB_UNLINKAT is set.
34602         * modules/fcntl-h (Files): Remove m4/openat.m4.
34603         * modules/sys_stat (Files): Remove m4/openat.m4.
34604         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
34605         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
34606         * modules/unistd (Files): Remove m4/openat.m4.
34607         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
34608         GNULIB_OPENAT.
34609         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
34610         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
34611         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
34612         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
34613         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
34614         gl_OPENAT_DEFAULTS.
34615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
34616         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
34617         Don't require gl_OPENAT_DEFAULTS.
34618         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
34619         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
34620         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
34621         (gl_OPENAT_DEFAULTS): Remove macro.
34622
34623 2009-09-06  Bruno Haible  <bruno@clisp.org>
34624
34625         * modules/openat (configure.ac): Remove unneeded witness.
34626
34627 2009-09-06  Bruno Haible  <bruno@clisp.org>
34628
34629         Set errno to ENOSYS when a function is entirely unsupported.
34630         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
34631         EOPNOTSUPP.
34632         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34633         * modules/chown (Depends-on): Remove errno.
34634
34635 2009-09-06  Bruno Haible  <bruno@clisp.org>
34636
34637         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
34638
34639 2009-09-06  Bruno Haible  <bruno@clisp.org>
34640
34641         * lib/sys_stat.in.h: Fix preprocessor command indentation.
34642
34643 2009-09-06  Ben Pfaff  <blp@gnu.org>
34644             Bruno Haible  <bruno@clisp.org>
34645
34646         Work around a glibc bug in strtok_r.
34647         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
34648         Undefine if UNDEFINE_STRTOK_R is set.
34649         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
34650         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34651         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
34652         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
34653         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
34654         UNDEFINE_STRTOK_R.
34655         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
34656
34657 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34658
34659         exclude: minor fix
34660         * lib/exclude.c: Include wctype.h
34661
34662 2009-09-06  Akim Demaille  <demaille@gostai.com>
34663
34664         bootstrap: improve error message
34665         * build-aux/bootstrap (find_tool): Upon failure, report the list
34666         of candidates.
34667         Honor the initial value of the envvar.
34668
34669 2009-09-05  Eric Blake  <ebb9@byu.net>
34670
34671         symlinkat: new module
34672         * modules/symlinkat: New file.
34673         * lib/symlinkat.c: Likewise.
34674         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
34675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34676         * modules/unistd (Makefile.am): Use them.
34677         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
34678         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
34679         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
34680         * MODULES.html.sh (File system functions): Mention module.
34681         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34682         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34683         * modules/symlinkat-tests: New test.
34684         * tests/test-symlinkat.c: Likewise.
34685
34686         test-openat-safer: add more checks
34687         * tests/test-openat-safer.c (main): Check more code paths.
34688
34689 2009-09-05  Jim Meyering  <meyering@redhat.com>
34690
34691         syntax-check: detect unnecessary inclusion of openat.h
34692         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
34693
34694 2009-09-05  Bruno Haible  <bruno@clisp.org>
34695
34696         Support towlower, towupper.
34697         * doc/posix-functions/towlower.texi: Mention module wctype.
34698         * doc/posix-functions/towupper.texi: Likewise.
34699         * lib/wctype.in.h (towlower, towupper): New functions.
34700         * tests/test-wctype.c: Include stdio.h, stdlib.h.
34701         (ASSERT): New macro.
34702         (e): New variable.
34703         (main): Test also towlower, towupper. Test WEOF argument.
34704         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34705
34706 2009-09-05  Bruno Haible  <bruno@clisp.org>
34707
34708         Fix conversion behaviour when the input is invalid.
34709         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
34710         mark occurring in first pass of indirect conversion.
34711         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
34712         input.
34713         Found by clang's static analyzer.
34714
34715 2009-09-05  Bruno Haible  <bruno@clisp.org>
34716
34717         * tests/test-striconveh.c (main): Test indirect conversion on platforms
34718         where direct conversion is possible.
34719
34720 2009-09-04  Eric Blake  <ebb9@byu.net>
34721
34722         openat: fail with ENOENT on empty name
34723         * lib/openat-proc.c (openat_proc_name): Special-case the empty
34724         buffer.
34725
34726         link-follow: fix logic bug in prior patch
34727         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
34728         reversed sense of yes and no in prior patch.  Avoid confusing
34729         compilation failure with desired semantics.
34730
34731         link-follow: accomodate mingw and cross-compilation
34732         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
34733         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
34734         cross-compilation results to -1, to make linkat easier to
34735         implement when cross-compiling.  Trivially support mingw.
34736         * modules/link-follow (configure.ac): Call new name.
34737         * NEWS: Mention this.
34738
34739 2009-09-03  Eric Blake  <ebb9@byu.net>
34740
34741         faccessat: compile replacement
34742         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
34743         needed.
34744
34745         fts: fix compilation error
34746         * lib/fts.c (includes): Re-add "openat.h", for
34747         openat_needs_fchdir.
34748
34749         faccessat: new module
34750         * modules/faccessat: New file.
34751         * lib/faccessat.c: Likewise.
34752         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34754         * modules/unistd (Makefile.am): Use it.
34755         * lib/unistd.in.h (faccessat): Declare it.
34756         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
34757         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
34758         * MODULES.html.sh (File system functions): Mention it.
34759         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
34760         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34761
34762         euidaccess: prefer POSIX over non-standard implementation
34763         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
34764         * lib/euidaccess.c (euidaccess): Use it if available.
34765
34766         openat: make template easier to use
34767         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
34768         AT_FUNC_F2 to be undefined.
34769         (VALIDATE_FLAG): New macro; use it to reject bad flags.
34770         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
34771         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
34772         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
34773         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
34774         Likewise.
34775         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
34776         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
34777         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
34778         Likewise.
34779
34780         openat: declare in POSIX headers
34781         * NEWS: Mention this.
34782         * modules/openat (configure.ac): Declare witnesses.
34783         (Depends-on): Add fcntl-h, sys_stat, unistd.
34784         (Include): Mention correct headers.
34785         * modules/fcntl-h (Depends-on): Add link-warning.
34786         (Files): Add openat.m4.
34787         (Makefile.am): Substitute witnesses.
34788         * modules/sys_stat (Files, Makefile.am): Likewise.
34789         * modules/unistd (Files, Makefile.am): Likewise.
34790         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
34791         (gl_OPENAT_DEFAULTS): New macro.
34792         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
34793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
34794         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
34795         (SYS_STAT_H): Remove unused variable.
34796         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
34797         * lib/fcntl--.h (includes): Remove unneeded header.
34798         * lib/openat-safer.c (includes): Likewise.
34799         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
34800         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
34801         appropriate headers.
34802         (__OPENAT_PREFIX): Delete.
34803         * lib/fcntl.in.h (openat): Provide declaration.
34804         (AT_FDCWD): Fix Solaris bug.
34805         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
34806         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
34807         * lib/fchmodat.c (includes):  Adjust to find declaration.
34808         * lib/fchownat.c (includes): Likewise.
34809         * lib/mkdirat.c (includes): Likewise.
34810         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
34811         still visible.
34812
34813 2009-09-02  Eric Blake  <ebb9@byu.net>
34814
34815         errno: use consistently
34816         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
34817         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
34818         * lib/canonicalize.c (ELOOP): Likewise.
34819         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
34820         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
34821         * lib/lchown.c (EOPNOTSUPP): Likewise.
34822         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
34823         * lib/savewd.c (ESTALE): Likewise.
34824         * lib/settime.c (ENOSYS): Likewise.
34825         * lib/utimens.c (ENOSYS): Likewise.
34826         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
34827         * lib/chdir-safer.c (ELOOP): Likewise.
34828         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
34829         * modules/c-stack (Depends-on): Add errno.
34830         * modules/canonicalize (Depends-on): Likewise.
34831         * modules/chdir-safer (Depends-on): Likewise.
34832         * modules/fdopendir (Depends-on): Likewise.
34833         * modules/inet_ntop (Depends-on): Likewise.
34834         * modules/inet_pton (Depends-on): Likewise.
34835         * modules/lchown (Depends-on): Likewise.
34836         * modules/openat (Depends-on): Likewise.
34837         * modules/savewd (Depends-on): Likewise.
34838         * modules/settime (Depends-on): Likewise.
34839         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
34840
34841         fts: avoid leaking fds
34842         * modules/fts (Depends-on): Add cloexec.
34843         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
34844         flag.
34845
34846         fts: make directory fds more robust
34847         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
34848         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
34849
34850         backupfile, chdir-long, fts, savedir: make safer
34851         * lib/backupfile.c (includes): Use "dirent--.h", since
34852         numbered_backup can write to stderr during readdir.
34853         * lib/savedir.c (includes): Likewise.
34854         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
34855         emulation can write to stderr on failure.
34856         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
34857         * lib/getcwd.c: Document why opendir_safer is unused.
34858         * lib/glob.c: Likewise.
34859         * lib/scandir.c: Likewise.
34860         * lib/openat-proc.c: Likewise, for open_safer.
34861         * modules/backupfile (Depends-on): Add dirent-safer.
34862         * modules/savedir (Depends-on): Likewise.
34863         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
34864         * modules/chdir-long (Depends-on): Add openat-safer.
34865
34866         openat-safer: new module
34867         * modules/openat-safer: New file.
34868         * lib/openat-safer.c: Likewise.
34869         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
34870         * lib/fcntl-safer.h (openat_safer): Declare.
34871         * lib/fcntl--.h (openat): Override.
34872         * MODULES.html.sh (File descriptor based I/O): Mention it.
34873         * lib/openat.h: Add double-inclusion guards.
34874         * lib/openat.c (includes): Only include "fcntl-safer.h", not
34875         "fcntl--.h", so we can implement openat.
34876         * modules/openat-safer-tests: New test.
34877         * tests/test-openat-safer.c: New file.
34878
34879         dirent-safer: new module
34880         * modules/dirent-safer: New file.
34881         * lib/dirent--.h: Likewise.
34882         * lib/dirent-safer.h: Likewise.
34883         * lib/opendir-safer.c: Likewise.
34884         * m4/dirent-safer.m4: Likewise.
34885         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
34886         * modules/dirent-safer-tests: New test.
34887         * tests/test-dirent-safer.c: New file.
34888         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
34889
34890         fdopendir: optimize on mingw
34891         * lib/unistd.in.h (_gl_directory_name): New prototype.
34892         * lib/fchdir.c (_gl_directory_name): Implement it.
34893         (fchdir): Use it to simplify implementation.
34894         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
34895         fchdir, when available, to avoid calling [f]chdir().
34896
34897         fdopendir: split into its own module
34898         * lib/openat.c (fdopendir): Move...
34899         * lib/fdopendir.c: ...into new file.
34900         * modules/fdopendir: New module.
34901         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
34902         * modules/openat (Depends-on): Add fdopendir.
34903         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
34904         fdopendir here.
34905         * modules/savedir (Depends-on): Only need fdopendir, not full
34906         openat.
34907         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
34908         * lib/openat.h (fdopendir): Drop prototype.
34909         * lib/dirent.in.h (fdopendir): Provide prototype.
34910         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
34911         * modules/dirent (Makefile.am): Substitute them.
34912         * MODULES.html.sh (File system functions): Mention it.
34913         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
34914         * modules/fdopendir-tests: New file.
34915         * tests/test-fdopendir.c: Likewise.
34916
34917         fchdir: use more consistent macro convention
34918         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
34919         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
34920         REPLACE_FCHDIR, rather than relying on config.h macros.
34921         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
34922         inside a single make-time REPLACE_FCHDIR block, rather than using
34923         the config.h FCHDIR_REPLACEMENT.
34924         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
34925         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
34926         Manage fstat replacement.
34927         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
34928         REPLACE_FCHDIR.
34929         * modules/sys_stat (Files): Add m4/unistd_h.m4.
34930         (Makefile.am): Substitute REPLACE_FCHDIR.
34931         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
34932         FCHDIR_REPLACEMENT.
34933         * lib/dup-safer.c (dup_safer): Likewise.
34934         * lib/dup2.c (rpl_dup2): Likewise.
34935         * lib/dup3.c (rpl_dup3): Likewise.
34936         * lib/open.c (rpl_open): Likewise.
34937
34938         fchdir: simplify error handling, and support dup3
34939         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
34940         stdbool, malloc-posix, realloc-posix.
34941         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
34942         (ensure_dirs_slot): Return false on allocation failure.
34943         (rpl_dup2): Delete.
34944         (_gl_register_dup): New function.
34945         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
34946         (_gl_register_fd): Close fd on allocation failure.
34947         * lib/fcntl.in.h (_gl_register_fd): Update signature.
34948         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
34949         prototype.
34950         (rpl_dup2_fchdir): Delete prototype.
34951         * lib/open.c (open): Update caller.
34952         * lib/dup2.c (dup2): Track fchdir metadata.
34953         * lib/dup3.c (dup3): Likewise.
34954         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
34955         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
34956
34957 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34958
34959         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
34960         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
34961         don't pass arguments to AC_OUTPUT.
34962
34963 2009-09-02  Bruno Haible  <bruno@clisp.org>
34964
34965         * modules/mkdtemp (License): Relicense under LGPLv2+.
34966         Reported by Paolo Bonzini.
34967
34968 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34969
34970         Replace uses of obsolete autoconf macros in Jim's modules.
34971         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
34972         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
34973         can evoke a warning from autoconf when run with -Wobsolete
34974         enabled.  They were declared obsolete for good reasons (see
34975         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
34976         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
34977         should not continue using the deprecated macros.
34978         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
34979         obsolete Autoconf macros with modern counterparts.
34980         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34981         * m4/dos.m4 (gl_AC_DOS): Likewise.
34982         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
34983         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
34984         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
34985         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
34986         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
34987         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
34988         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
34989         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
34990         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
34991         Likewise.
34992         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
34993         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34994         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
34995         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
34996         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
34997         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
34998
34999 2009-09-01  Eric Blake  <ebb9@byu.net>
35000
35001         fchdir: fix off-by-one bug in previous patch
35002         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35003         (_gl_unregister_fd): Delete useless if.
35004
35005 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35006
35007         maint.mk: sort the list of syntax-check rules
35008         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35009         easier to get a sense of progress when the rules are run sequentially
35010         and take a long time.
35011
35012 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35013
35014         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35015         * modules/netinet_in: Likewise.
35016         * modules/sys_file: Likewise.
35017         * modules/sys_ioctl: Likewise.
35018         * modules/sys_select: Likewise.
35019         * modules/sys_socket: Likewise.
35020         * modules/sys_stat: Likewise.
35021         * modules/sys_time: Likewise.
35022         * modules/sys_times: Likewise.
35023         * modules/sys_utsname: Likewise.
35024         * modules/sys_wait: Likewise.
35025
35026 2009-09-01  Jim Meyering  <meyering@redhat.com>
35027
35028         fts: help ensure that return values are not ignored
35029         * lib/fts_.h (__GNUC_PREREQ): Define.
35030         (__attribute_warn_unused_result__): Define.
35031         (fts_children, fts_close, fts_open, fts_read): Declare with
35032         __attribute_warn_unused_result__.
35033
35034         fts: fts_close now fails also when closing a dir file descriptor fails
35035         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35036         and propagate to caller, along with errno.
35037
35038         announce-gen: correct formatting in --help output
35039         * build-aux/announce-gen (usage): Move the one-line description in
35040         --help output "up", to where it belongs, just after Usage:.
35041
35042 2009-08-31  Eric Blake  <ebb9@byu.net>
35043
35044         fchdir: port to mingw
35045         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35046         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35047         opened, then use a substitute.
35048         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35049         replacement.
35050         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35051         (_gl_register_fd): No need to check stat if open already filters
35052         all directories.
35053         (fchdir): Fix error condition to match POSIX.
35054         * modules/fchdir (Depends-on): Add sys_stat.
35055         * doc/posix-functions/open.texi (open): Document the limitation.
35056         * modules/fchdir-tests: New file.
35057         * tests/test-fchdir.c: Likewise.
35058
35059         canonicalize: allow cross-testing from cygwin to mingw
35060         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35061         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35062         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35063         Likewise.
35064         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35065         target does not support symlinks.
35066         * tests/test-canonicalize-lgpl.sh: Likewise.
35067
35068         chown: avoid compilation warning on mingw
35069         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35070         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35071         mingw.
35072         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35073         * modules/chown (Depends-on): Add errno.
35074
35075 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35076
35077         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35078         command.
35079
35080 2009-08-31  Jim Meyering  <meyering@redhat.com>
35081
35082         canonicalize: remove useless initialization
35083         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35084         initialization of local, "end".
35085
35086 2009-08-30  Bruno Haible  <bruno@clisp.org>
35087
35088         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35089         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35090         ENOSYS.
35091
35092 2009-08-30  Bruno Haible  <bruno@clisp.org>
35093
35094         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35095         /usr/xpg4/bin/tr when it exists.
35096         * tests/test-pipe-filter-gi1.sh: Likewise.
35097
35098 2009-08-30  Bruno Haible  <bruno@clisp.org>
35099
35100         Work around deficient /usr/bin/id program on Solaris.
35101         * tests/test-file-has-acl.sh (ID): New variable.
35102         * tests/test-set-mode-acl.sh (ID): Likewise.
35103         * tests/test-copy-acl.sh (ID): Likewise.
35104         * tests/test-copy-file.sh (ID): Likewise.
35105
35106 2009-08-30  Bruno Haible  <bruno@clisp.org>
35107
35108         New module 'xstriconveh'.
35109         * lib/xstriconveh.h: New file.
35110         * lib/xstriconveh.c: New file.
35111         * modules/xstriconveh: New file.
35112
35113 2009-08-30  Bruno Haible  <bruno@clisp.org>
35114
35115         Make it easier to use mem_cd_iconveh.
35116         * lib/striconveh.h (iconveh_t): New type.
35117         (iconveh_open, iconveh_close): New declarations.
35118         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35119         with a single 'const iconveh_t *' argument.
35120         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35121         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35122         with a single 'const iconveh_t *' argument.
35123         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35124         * tests/test-striconveh.c (main): Update.
35125         * NEWS: Mention the change.
35126
35127 2009-08-30  Bruno Haible  <bruno@clisp.org>
35128
35129         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
35130         problem.
35131
35132 2009-08-30  Bruno Haible  <bruno@clisp.org>
35133
35134         Work around iconv_open problem on Solaris.
35135         * lib/iconv_open-solaris.gperf: New file.
35136         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
35137         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
35138         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
35139         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
35140         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
35141         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
35142
35143 2009-08-29  Jim Meyering  <meyering@redhat.com>
35144
35145         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
35146         * top/maint.mk (cvs-check): Remove target; it was just an alias
35147         to the better-named vc-diff-check.
35148         (maintainer-distcheck): Remove rule.  It was used only from
35149         the (alpha/beta/major) target, and all of its commands but one
35150         were coreutils-specific.
35151         (vc-dist): Remove rule.
35152         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
35153         Run vc-diff-check, not vc-dist.
35154         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
35155
35156 2009-08-27  Bruno Haible  <bruno@clisp.org>
35157
35158         * tests/test-bitrotate.c (main): Remove test that uses a shift count
35159         of 0.
35160
35161 2009-08-27  Bruno Haible  <bruno@clisp.org>
35162
35163         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
35164         compilers.
35165         * doc/func.texi: Document the SunPRO C bug.
35166
35167 2009-08-27  Bruno Haible  <bruno@clisp.org>
35168
35169         Fix link error on Solaris.
35170         * tests/test-parse-duration.c (xstrdup): Remove function.
35171
35172 2009-08-26  Pádraig Brady  <P@draigbrady.com>
35173
35174         ignore-value: handle pointer types, too
35175         * lib/ignore-value.h (__attribute__): Remove definition.
35176         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35177         of a more concise and more-often effective "(void) i" statement.
35178         (ignore_ptr): New function to suppress warnings from functions that
35179         return pointers, and to make it explicit that one function doesn't
35180         handle all cases.
35181
35182 2009-08-25  Bruno Haible  <bruno@clisp.org>
35183
35184         dup2: work around a Linux bug.
35185         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35186         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35187         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35188         Reported by Simon Josefsson.
35189
35190 2009-08-25  Jim Meyering  <meyering@redhat.com>
35191
35192         libguestfs uses gnulib
35193         * users.txt: Add libguestfs.
35194
35195 2009-08-24  Eric Blake  <ebb9@byu.net>
35196
35197         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35198         * lib/pipe2.c (includes): Add binary-io.h.
35199         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35200
35201 2009-08-24  Bruno Haible  <bruno@clisp.org>
35202
35203         Tolerate declared but missing accept4 syscall.
35204         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35205         available.
35206         * lib/sys_socket.in.h (accept4): If the function is already present,
35207         override it.
35208         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
35209         * modules/accept4 (Makefile.am): Compile accept4.c always.
35210         Reported by Paolo Bonzini and Eric Blake.
35211
35212 2009-08-23  Bruno Haible  <bruno@clisp.org>
35213
35214         New module 'accept4'.
35215         * lib/sys_socket.in.h (accept4): New declaration.
35216         * lib/accept4.c: New file.
35217         * m4/accept4.m4: New file.
35218         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35219         GNULIB_ACCEPT4, HAVE_ACCEPT4.
35220         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
35221         HAVE_ACCEPT4.
35222         * modules/accept4: New file.
35223         * doc/glibc-functions/accept4.texi: Mention the new module.
35224
35225 2009-08-24  Jim Meyering  <meyering@redhat.com>
35226
35227         progname: also set global program_invocation_name, when possible
35228         Before this change, a libtool-enabled program that calls glibc's
35229         error function would report the program name as
35230         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
35231         * modules/progname (configure.ac): Check for a declaration of
35232         program_invocation_name.
35233         * lib/progname.c:  Include <errno.h>.
35234         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
35235         Set program_invocation_name.
35236
35237 2009-08-23  Bruno Haible  <bruno@clisp.org>
35238
35239         * lib/dup3.c: Include <string.h>.
35240
35241 2009-08-23  Bruno Haible  <bruno@clisp.org>
35242
35243         * lib/dup3.c (dup3): Test only once whether the system actually exists.
35244         * lib/pipe2.c (pipe2): Likewise.
35245         Suggested by Eric Blake.
35246
35247 2009-08-23  Bruno Haible  <bruno@clisp.org>
35248
35249         Tolerate declared but missing dup3 syscall.
35250         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
35251         * lib/unistd.in.h (dup3): If the function is already present,
35252         override it.
35253         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
35254         * modules/dup3 (Makefile.am): Compile dup3.c always.
35255         Reported by Paolo Bonzini.
35256
35257 2009-08-23  Bruno Haible  <bruno@clisp.org>
35258
35259         Tolerate declared but missing pipe2 syscall.
35260         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
35261         available.
35262         * lib/unistd.in.h (pipe2): If the function is already present,
35263         override it.
35264         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
35265         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
35266         Reported by Paolo Bonzini.
35267
35268 2009-08-23  Bruno Haible  <bruno@clisp.org>
35269
35270         * lib/pipe2.c (pipe2): Move #ifs inside function.
35271
35272 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35273
35274         quotearg: document limitations of quote_these_too
35275         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
35276         those limitations are created.
35277         * lib/quotearg.h (set_char_quoting): Document that digits and
35278         letters that are special after backslash are not permitted.
35279         (quotearg_char): Cross-reference set_char_quoting documentation.
35280
35281 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
35282
35283         quotearg: implement custom_quoting_style
35284         * lib/quotearg.c: (struct quoting_options): Add left_quote and
35285         right_quote fields.
35286         (set_custom_quoting): New public function.
35287         (quotearg_buffer_restyled): Add left_quote and right_quote
35288         arguments, handle them very much like locale quoting, and update
35289         all uses.
35290         (quotearg_n_custom): New public function.
35291         (quotearg_n_custom_mem): New public function.
35292         (quotearg_custom): New public function.
35293         (quotearg_custom_mem): New public function.
35294         * lib/quotearg.h: Prototype and document new public functions.
35295         (enum quoting_style): For escape_quoting_style and
35296         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
35297         ignored even though they're otherwise like c_quoting_style.
35298         Add custom_quoting_style member and document with comparison to
35299         clocale_quoting_style.
35300         * tests/test-quotearg.c (custom_quotes): New array.
35301         (custom_results): New array.
35302         (main): Extend to test custom quoting.
35303
35304 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35305
35306         quotearg: fix right quote escaping when it's in quote_these_too
35307         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
35308         quote, be sure to prepend only one backslash.
35309         * tests/test-quotearg.c (use_quote_double_quotes): New function.
35310         (main): Test it.
35311
35312 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35313
35314         quotearg-tests: test escaping of embedded locale quotes
35315         * tests/test-quotearg.c (struct result_strings): Add member for
35316         new input.
35317         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
35318         (inputs): Add new input.
35319         (results_g): Add expected results.
35320         (flag_results): Likewise.
35321         (locale_results): Likewise.
35322         (compare_strings): Check those.
35323
35324 2009-08-23  Bruno Haible  <bruno@clisp.org>
35325
35326         Tests for module 'dup3'.
35327         * modules/dup3-tests: New file.
35328         * tests/test-dup3.c: New file.
35329
35330         New module 'dup3'.
35331         * lib/unistd.in.h (dup3): New declaration.
35332         * lib/dup3.c: New file.
35333         * m4/dup3.m4: New file.
35334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
35335         HAVE_DUP3.
35336         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
35337         * modules/dup3: New file.
35338         * doc/glibc-functions/dup3.texi: Mention the new module.
35339
35340 2009-08-23  Bruno Haible  <bruno@clisp.org>
35341
35342         Tweak the dup2 test.
35343         * tests/test-dup2.c (main): Create the test file empty. Verify that an
35344         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
35345         the test file is still empty. Fix argument order of lseek.
35346
35347 2009-08-23  Bruno Haible  <bruno@clisp.org>
35348
35349         Avoid test link errors when the modules getopt-gnu, gettext are used.
35350         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
35351         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35352
35353 2009-08-23  Bruno Haible  <bruno@clisp.org>
35354
35355         Fix getdtablesize() on mingw.
35356         * lib/getdtablesize.c (getdtablesize): Implement differently.
35357         * lib/unistd.in.h (getdtablesize): Improve comment.
35358
35359 2009-08-23  Bruno Haible  <bruno@clisp.org>
35360
35361         New module 'mkostemp'.
35362         Based on Ulrich Drepper's 2007-08-10 change in glibc.
35363         * lib/stdlib.in.h (mksotemp): New declaration.
35364         * lib/mkostemp.c: New file, from glibc with modifications.
35365         * lib/tempname.h (GT_FILE): Remove outdated comment.
35366         (gen_tempname): Add flags argument.
35367         * lib/tempname.c (__GT_BIGFILE): Remove macro.
35368         (__GT_FILE): Map to 1.
35369         (small_open, large_open): Remove macros.
35370         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
35371         * lib/mkstemp.c (mkstemp): Update.
35372         * lib/mkdtemp.c (mkdtemp): Likewise.
35373         * m4/mkostemp.m4: New file.
35374         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
35375         HAVE_MKOSTEMP.
35376         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
35377         HAVE_MKOSTEMP.
35378         * modules/mkostemp: New file, based on modules/mkstemp.
35379         * doc/glibc-functions/mkostemp.texi: Mention the new module.
35380         * NEWS: Mention the change.
35381
35382 2009-08-23  Bruno Haible  <bruno@clisp.org>
35383
35384         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
35385         Reported by Eric Blake.
35386
35387 2009-08-23  Bruno Haible  <bruno@clisp.org>
35388
35389         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
35390         Reported by Eric Blake.
35391
35392 2009-08-23  Bruno Haible  <bruno@clisp.org>
35393
35394         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
35395         * modules/pipe2 (Depends-on): Likewise.
35396
35397 2009-08-23  Eric Blake  <ebb9@byu.net>
35398
35399         fcntl-h: add O_TTY_INIT support
35400         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
35401         * tests/test-fcntl-h.c (o): Test it.
35402         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35403
35404         fcntl-h: rename from fcntl, in preparation for fcntl(2)
35405         * modules/fcntl: Move <fcntl.h> header replacement...
35406         * modules/fcntl-h: ...to new name, so as not to collide with
35407         like-named function.
35408         * tests/test-fcntl.c: Rename...
35409         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
35410         * modules/fcntl-tests: Rename...
35411         * modules/fcntl-h-tests: ...to this.  Update test file name.
35412         * modules/chdir-long (Depends-on): Update clients.
35413         * modules/chdir-safer (Depends-on): Likewise.
35414         * modules/fcntl-safer (Depends-on): Likewise.
35415         * modules/fts (Depends-on): Likewise.
35416         * modules/mkancesdirs (Depends-on): Likewise.
35417         * modules/mkdir-p (Depends-on): Likewise.
35418         * modules/open (Depends-on): Likewise.
35419         * modules/savewd (Depends-on): Likewise.
35420         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
35421         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35422
35423 2009-08-22  Bruno Haible  <bruno@clisp.org>
35424
35425         * modules/binary-io (License): Relicense under LGPL.
35426         * modules/pipe2 (License): Likewise.
35427
35428 2009-08-22  Bruno Haible  <bruno@clisp.org>
35429
35430         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
35431         return value.
35432         * lib/pipe-filter-gi.c (filter_init): Likewise.
35433         Reported by Eric Blake.
35434
35435 2009-08-22  Bruno Haible  <bruno@clisp.org>
35436
35437         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
35438         * modules/pipe (Depends-on): Add pipe2.
35439
35440 2009-08-22  Bruno Haible  <bruno@clisp.org>
35441
35442         Tests for module 'pipe2'.
35443         * modules/pipe2-tests: New file.
35444         * tests/test-pipe2.c: New file.
35445
35446         New module 'pipe2'.
35447         * lib/unistd.in.h (pipe2): New declaration.
35448         * lib/pipe2.c: New file.
35449         * m4/pipe2.m4: New file.
35450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
35451         HAVE_PIPE2.
35452         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
35453         * modules/pipe2: New file.
35454         * doc/glibc-functions/pipe2.texi: Mention the new module.
35455
35456 2009-08-22  Bruno Haible  <bruno@clisp.org>
35457
35458         Reference some new glibc functions.
35459         * doc/glibc-functions/accept4.texi: New file.
35460         * doc/glibc-functions/dup3.texi: New file.
35461         * doc/glibc-functions/mkostemp.texi: New file.
35462         * doc/glibc-functions/pipe2.texi: New file.
35463         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
35464         (Glibc sys/socket.h): Refer to accept4.
35465         (Glibc unistd.h): Refer to dup3, pipe2.
35466         Reported by Eric Blake.
35467
35468 2009-08-22  Jim Meyering  <meyering@redhat.com>
35469             Bruno Haible  <bruno@clisp.org>
35470
35471         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
35472         This makes it so packages using automake-1.11's silent-rules option
35473         can print e.g., a single "GEN    configmake.h" line, rather than
35474         the 30+ statements that perform the job.  If you want to see the
35475         actual commands, you can still run "make V=1".
35476         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
35477         so that make output is abbreviated when those variables are defined
35478         appropriately.
35479         * modules/argz: Likewise.
35480         * modules/arpa_inet: Likewise.
35481         * modules/byteswap: Likewise.
35482         * modules/configmake: Likewise.
35483         * modules/dirent: Likewise.
35484         * modules/errno: Likewise.
35485         * modules/fcntl: Likewise.
35486         * modules/float: Likewise.
35487         * modules/fnmatch: Likewise.
35488         * modules/getopt-posix: Likewise.
35489         * modules/glob: Likewise.
35490         * modules/iconv_open: Likewise.
35491         * modules/inttypes: Likewise.
35492         * modules/localcharset: Likewise.
35493         * modules/locale: Likewise.
35494         * modules/math: Likewise.
35495         * modules/netdb: Likewise.
35496         * modules/netinet_in: Likewise.
35497         * modules/poll: Likewise.
35498         * modules/posix_spawnp-tests: Likewise.
35499         * modules/sched: Likewise.
35500         * modules/search: Likewise.
35501         * modules/selinux-h: Likewise.
35502         * modules/signal: Likewise.
35503         * modules/spawn: Likewise.
35504         * modules/stdarg: Likewise.
35505         * modules/stdbool: Likewise.
35506         * modules/stddef: Likewise.
35507         * modules/stdint: Likewise.
35508         * modules/stdio: Likewise.
35509         * modules/stdlib: Likewise.
35510         * modules/string: Likewise.
35511         * modules/strings: Likewise.
35512         * modules/sys_file: Likewise.
35513         * modules/sys_ioctl: Likewise.
35514         * modules/sys_select: Likewise.
35515         * modules/sys_socket: Likewise.
35516         * modules/sys_stat: Likewise.
35517         * modules/sys_time: Likewise.
35518         * modules/sys_times: Likewise.
35519         * modules/sys_utsname: Likewise.
35520         * modules/sys_wait: Likewise.
35521         * modules/sysexits: Likewise.
35522         * modules/time: Likewise.
35523         * modules/unistd: Likewise.
35524         * modules/wchar: Likewise.
35525         * modules/wctype: Likewise.
35526
35527 2009-08-22  Jim Meyering  <meyering@redhat.com>
35528
35529         announce-gen: detect write failure
35530         * build-aux/announce-gen: Add Coda at end.
35531         Remove equivalent-but-more-verbose block at top.
35532
35533 2009-08-19  Akim Demaille  <demaille@gostai.com>
35534
35535         bootstrap: --help to stdout.
35536         * bootstrap (usage): Don't send --help to stderr.
35537         Use a here doc instead of a long string.
35538
35539 2009-08-21  Eric Blake  <ebb9@byu.net>
35540
35541         test-popen-safer: split from test-popen
35542         * tests/test-popen.c (main): Move...
35543         * tests/test-popen.h: ...into new file.
35544         * tests/test-popen-safer2.c: New file.
35545         * modules/popen-tests (Files): Add test-popen.h.
35546         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
35547         Suggested by Bruno Haible.
35548
35549         test-fcntl-safer: split from test-open
35550         * tests/test-open.c (main): Move...
35551         * tests/test-open.h: ...into new file.
35552         * tests/test-fcntl-safer.c: New file.
35553         * modules/open-tests (Files): Add test-open.h.
35554         * modules/fcntl-safer-tests: New file.
35555         Suggested by Bruno Haible.
35556
35557         test-fopen-safer: split from test-fopen
35558         * tests/test-fopen.c (main): Move...
35559         * tests/test-fopen.h: ...into new file.
35560         * tests/test-fopen-safer.c: New file.
35561         * modules/fopen-tests (Files): Add test-fopen.h.
35562         * modules/fopen-safer-tests: New file.
35563         Suggested by Bruno Haible.
35564
35565 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35566
35567         popen-safer: test O_CLOEXEC at run-time.
35568         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
35569
35570 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35571
35572         fcntl: move more flags to the header
35573         * lib/cloexec.c: Do not define FD_CLOEXEC here.
35574         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
35575         * lib/fcntl.in.h: Do both things here.
35576
35577 2009-08-21  Jim Meyering  <meyering@redhat.com>
35578
35579         consistently remove $@-t before redirecting to it
35580         * modules/argz: Remove $@-t and $@ before redirecting to the former.
35581         * modules/alloca-opt: Likewise.
35582         * modules/byteswap: Likewise.
35583         * modules/fnmatch: Likewise.
35584         * modules/getopt-posix: Likewise.
35585         * modules/glob: Likewise.
35586         * modules/poll: Likewise.
35587         * modules/posix_spawnp-tests: Likewise.
35588         * modules/sys_socket: Likewise.
35589         * modules/sysexits: Likewise.
35590
35591 2009-08-21  Eric Blake  <ebb9@byu.net>
35592
35593         popen: simplify access to original popen
35594         * lib/popen.c (rpl_popen): No need to worry about popen being a
35595         macro.
35596         Reported by Bruno Haible.
35597
35598 2009-08-20  Eric Blake  <ebb9@byu.net>
35599
35600         build: avoid some compiler warnings
35601         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
35602         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
35603         type.
35604         (new_exclude_segment, excluded_file_pattern_p)
35605         (excluded_file_name_p): Reduce scope.
35606         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
35607         old-style declaration.
35608
35609 2009-08-20  Simon Josefsson  <simon@josefsson.org>
35610
35611         * tests/test-exclude1.sh: Handle Windows EOL.
35612         * tests/test-exclude2.sh: Likewise.
35613         * tests/test-exclude3.sh: Likewise.
35614         * tests/test-exclude4.sh: Likewise.
35615         * tests/test-exclude5.sh: Likewise.
35616         * tests/test-exclude6.sh: Likewise.
35617         * tests/test-exclude7.sh: Likewise.
35618
35619 2009-08-19  Akim Demaille  <demaille@gostai.com>
35620
35621         bootstrap: find sha1sum when named gsha1sum.
35622         * bootstrap (find_tool): New.
35623         ($SHA1SUM): New.
35624         Use it.
35625
35626 2009-08-20  Jim Meyering  <meyering@redhat.com>
35627
35628         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
35629         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
35630         expression that converts "." in a file name to "\." in the resulting
35631         regexp.  Start with a dummy statement, so that prior shell variable
35632         definitions are expanded portably.  Reported by Simon Josefsson.
35633
35634 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
35635
35636         Fix polling for writeability of a screen buffer.
35637         * lib/poll.c: Distinguish input and screen buffers for the
35638         Win32 implementation.
35639         * lib/select.c: Likewise.
35640
35641 2009-08-19  Eric Blake  <ebb9@byu.net>
35642
35643         popen-safer: prevent popen from clobbering std descriptors
35644         * modules/popen-safer: New file.
35645         * lib/popen-safer.c: Likewise.
35646         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
35647         * lib/stdio--.h (popen): Provide override.
35648         * lib/stdio-safer.h (popen_safer): Provide declaration.
35649         * tests/test-popen.c (includes): Partially test this.
35650         * modules/popen-safer-tests: New file, for more tests.
35651         * tests/test-popen-safer.c: Likewise.
35652         * MODULES.html.sh (file stream based Input/Output): Mention it.
35653
35654         tests: test some of the *-safer modules
35655         * modules/fopen-safer (Depends-on): Add fopen.
35656         * modules/fcntl-safer (Depends-on): Add fcntl.
35657         * modules/stdlib-safer (Depends-on): Add stdlib.
35658         (configure.ac): Set indicator.
35659         * modules/unistd-safer (configure.ac): Likewise.
35660         * modules/tmpfile-safer (configure.ac): Likewise.
35661         (Depends-on): Add tmpfile.
35662         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
35663         active.
35664         * tests/test-fopen.c (includes): Test safer versions when they are
35665         in use.
35666         * tests/test-open.c (includes): Likewise.
35667
35668         popen: fix cygwin 1.5 bug when stdin closed
35669         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
35670         * modules/popen: New file.
35671         * modules/popen-tests: Likewise.
35672         * tests/test-popen.c: Likewise.
35673         * m4/popen.m4: Likewise.
35674         * lib/popen.c: Likewise.
35675         * lib/stdio.in.h (popen): New declaration.
35676         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
35677         * modules/stdio (Makefile.am): Likewise.
35678         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
35679
35680 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
35681
35682         maint.mk: give full control over update-copyright exclusions
35683         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
35684         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
35685         (update-copyright): Don't force inclusion of top-level
35686         ChangeLog.  Don't force exclusion of all COPYING files, but make
35687         them the default exclusion instead.
35688
35689 2009-08-16  Bruno Haible  <bruno@clisp.org>
35690
35691         Fix test failures on Solaris 10.
35692         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
35693         tests when Solaris iconv() is used.
35694         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35695         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35696         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35697         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35698         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35699
35700 2009-08-16  Bruno Haible  <bruno@clisp.org>
35701
35702         Fix test failures on Solaris 10.
35703         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
35704         'tr' program and pass it as first argument.
35705         * tests/test-pipe-filter-gi1.sh: Likewise.
35706         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
35707         program as first argument.
35708         * tests/test-pipe-filter-gi1.c (main): Likewise.
35709
35710 2009-08-16  Eric Blake  <ebb9@byu.net>
35711
35712         fpurge: fix previous commits
35713         * modules/fpurge (Makefile.am): Make replacement conditional,
35714         partially reverting 2007-04-29 change; missed in previous
35715         attempt.
35716         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
35717         is missing.
35718
35719 2009-08-16  Bruno Haible  <bruno@clisp.org>
35720
35721         Clarify fpurge's effect on the file position.
35722         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
35723         * tests/test-fpurge.c (main): Make a second pass for checking the file
35724         position.
35725
35726 2009-08-16  Bruno Haible  <bruno@clisp.org>
35727
35728         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
35729         declaration of fpurge is missing.
35730         * tests/test-fpurge.c (main): Check that the file has not more contents
35731         than expected. Close the file before removing it.
35732
35733 2009-08-15  Eric Blake  <ebb9@byu.net>
35734
35735         fpurge: don't wrap working cygwin implementation
35736         * lib/fpurge.c (fpurge): Fix comment typo.
35737         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
35738         1.7 to avoid replacement.
35739         * tests/test-fpurge.c (main): Enhance test.
35740
35741 2009-08-15  Eric Blake  <ebb9@byu.net>
35742         and Jim Meyering  <meyering@redhat.com>
35743
35744         test-update-copyright: skip if perl is insufficient
35745         * tests/test-update-copyright.sh: Failure to run maintainer tool
35746         should not cause testsuite failure on cygwin 1.5.
35747
35748 2009-08-14  Eric Blake  <ebb9@byu.net>
35749
35750         doc: mention more functions added in cygwin 1.7.0
35751         * doc/posix-headers/limits.texi (limits.h): Update for recent
35752         cygwin additions.
35753         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
35754         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35755         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
35756         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
35757         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
35758
35759 2009-08-14  Eric Blake  <ebb9@byu.net>
35760
35761         maint.mk: simplify update-copyright rule
35762         * top/maint.mk (update-copyright-local): Delete, and document how
35763         to do it in cfg.mk instead.
35764         (update-copyright-exclude-regexp): Delete, and document how to do
35765         it in .x-update-copyright instead.
35766         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
35767         exclude ChangeLog.
35768
35769 2009-08-14  Bruno Haible  <bruno@clisp.org>
35770
35771         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
35772
35773 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35774
35775         maint.mk: support update-copyright-env
35776         * top/maint.mk (update-copyright-env): Define place-holder.
35777         (update-copyright): Expand $(update-copyright-env) before
35778         invoking update-copyright.
35779
35780 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35781
35782         update-copyright: implement forced reformatting
35783         * build-aux/update-copyright: Implement and document
35784         UPDATE_COPYRIGHT_FORCE.
35785         * tests/test-update-copyright.sh: Test it.
35786
35787 2009-08-14  Eric Blake  <ebb9@byu.net>
35788         and Bruno Haible  <bruno@clisp.org>
35789
35790         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
35791         * tests/test-locale.c: Revert previous patch related to NULL.
35792         * tests/test-stdio.c: Likewise.
35793         * tests/test-stdlib.c: Likewise.
35794         * tests/test-string.c: Likewise.
35795         * tests/test-unistd.c: Likewise.
35796         * modules/time-tests (Depends-on): Add verify.
35797         * modules/wchar-tests (Depends-on): Likewise.
35798         * tests/test-time.c: Test for NULL compliance.
35799         * tests/test-wchar.c: Likewise.
35800         * modules/locale (Depends-on): Add stddef.
35801         * modules/stdio (Depends-on): Likewise.
35802         * modules/stdlib (Depends-on): Likewise.
35803         * modules/string (Depends-on): Likewise.
35804         * modules/time (Depends-on): Likewise.
35805         * modules/unistd (Depends-on): Likewise.
35806         * modules/wchar (Depends-on): Likewise.
35807         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
35808         * lib/stdlib.in.h (includes): Likewise.
35809         * lib/string.in.h (includes): Likewise.
35810         * lib/time.in.h (includes): Likewise.
35811         * lib/unistd.in.h (includes): Likewise.
35812         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
35813         replaced.
35814         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35815         * m4/stddef_h.m4: New file.
35816         * modules/stddef: Likewise.
35817         * lib/stddef.in.h: Likewise.
35818         * modules/stddef-tests: Likewise.
35819         * tests/test-stddef.c: Likewise.
35820         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
35821         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
35822         * doc/posix-headers/locale.texi (locale.h): Likewise.
35823         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
35824         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
35825         * doc/posix-headers/string.texi (string.h): Likewise.
35826         * doc/posix-headers/time.texi (time.h): Likewise.
35827         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
35828         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
35829
35830 2009-08-14  Eric Blake  <ebb9@byu.net>
35831
35832         doc: improve git diff of texinfo files
35833         * .gitattributes: Add rule for *.texi files, with hint on how to
35834         use it.
35835         Copied from m4, and based on a report by Bruno Haible.
35836
35837 2009-08-14  Bruno Haible  <bruno@clisp.org>
35838
35839         Disable multithread support by default on Cygwin 1.5.x for real.
35840         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
35841
35842 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35843
35844         update-copyright: much ado about intervals
35845         * build-aux/update-copyright: Implement and document
35846         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
35847         of copyright year intervals.
35848         Also, document UPDATE_COPYRIGHT_YEAR.
35849         * tests/test-update-copyright.sh: Test it.
35850
35851         update-copyright: convert 2-digit to 4-digit years
35852         * build-aux/update-copyright: Implement and document.
35853         * tests/test-update-copyright.sh: Update.
35854
35855 2009-08-14  Jim Meyering  <meyering@redhat.com>
35856
35857         test-exclude: avoid coreutils "make check" failure
35858         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
35859         just as in test-argmatch.c.
35860
35861 2009-08-13  Eric Blake  <ebb9@byu.net>
35862
35863         test-dup2: fix bad assumption
35864         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
35865         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
35866
35867         test-version-etc: fix CRLF portability issue
35868         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
35869         recognize \r.
35870         * tests/test-argp-version-etc-1.sh: Likewise.
35871
35872         getopt: update client modules
35873         * modules/argp (Depends-on): Use getopt-gnu.
35874         * modules/git-merge-changelog (Depends-on): Likewise.
35875         * modules/long-options (Depends-on): Likewise.
35876         * modules/xstrtol (Depends-on): Likewise.
35877
35878 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35879
35880         * tests/test-version-etc.sh: Don't fail on different
35881         project/version.  Don't fail on CRLF differences.  Rewrite to use
35882         multiple -e instead of multiple sed forks, suggested by Eric Blake
35883         <ebb9@byu.net>.
35884         * tests/test-argp-version-etc-1.sh: Likewise.
35885
35886 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35887
35888         * tests/test-version-etc.sh: Don't fail on different
35889         project/version.
35890
35891 2009-08-12  Bruno Haible  <bruno@clisp.org>
35892
35893         Tests for modules 'getopt-posix', 'getopt-gnu'.
35894         * modules/getopt-posix-tests: New file.
35895         * tests/test-getopt.c: New file.
35896         * tests/test-getopt.h: New file.
35897         * tests/test-getopt_long.h: New file.
35898
35899         New modules 'getopt-posix', 'getopt-gnu'.
35900         * modules/getopt-gnu: New file, renamed from modules/getopt.
35901         * modules/getopt-posix: New file.
35902         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
35903         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
35904         (gl_GETOPT): Remove macro.
35905         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
35906         Disable the test against BSD systems that declare optreset. Test
35907         against mingw bug. Test against lack of support of optional arguments
35908         on many platforms.
35909         * doc/glibc-headers/getopt.texi: Update module name and list of
35910         relevant platforms.
35911         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
35912         'getopt-gnu' and more portability problems.
35913         * NEWS: Mention the changes.
35914
35915 2009-08-12  Bruno Haible  <bruno@clisp.org>
35916
35917         Ensure that optarg etc. get declared by <unistd.h>.
35918         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
35919         AC_USE_SYSTEM_EXTENSIONS.
35920         * modules/getopt (Depends-on): Add 'extensions'.
35921
35922 2009-08-12  Bruno Haible  <bruno@clisp.org>
35923
35924         Avoid test link errors.
35925         * modules/pipe-filter-ii-tests (Makefile.am): Define
35926         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
35927         * modules/pipe-filter-gi-tests (Makefile.am): Define
35928         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
35929         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35930
35931 2009-08-12  Bruno Haible  <bruno@clisp.org>
35932
35933         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
35934         gl_GETOPT_SUBSTITUTE before.
35935         (gl_GETOPT): Use it.
35936         * m4/argp.m4 (gl_ARGP): Update.
35937         Reported by Sergey Poznyakoff.
35938
35939         * m4/getopt.m4: Reorder macros.
35940         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
35941         (gl_GETOPT_SUBSTITUTE): Remove macro.
35942
35943 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35944
35945         Minor improvement in gitlog-to-changelog
35946
35947         * build-aux/gitlog-to-changelog: New option `--format' makes
35948         output format string configurable.
35949
35950 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35951
35952         Optimize exclude: use hash tables for non-wildcard patterns.
35953
35954         * lib/exclude.c: Include hash.h and mbuiter.h
35955         (struct exclude_pattern, exclude_segment): New data types.
35956         (struct exclude): Rewrite.
35957         (fnmatch_pattern_has_wildcards): New function.
35958         (new_exclude_segment, free_exclude_segment): New functions.
35959         (excluded_file_pattern_p, excluded_file_name_p): New functions.
35960         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
35961         * lib/exclude.h (is_fnmatch_pattern): New prototype.
35962         * modules/exclude: Depend on hash and mbuiter.
35963
35964         * modules/exclude-tests: New file.
35965         * tests/test-exclude.c: New file.
35966         * tests/test-exclude1.sh: New file.
35967         * tests/test-exclude2.sh: New file.
35968         * tests/test-exclude3.sh: New file.
35969         * tests/test-exclude4.sh: New file.
35970         * tests/test-exclude5.sh: New file.
35971         * tests/test-exclude6.sh: New file.
35972         * tests/test-exclude7.sh: New file.
35973
35974 2009-08-12  Bruno Haible  <bruno@clisp.org>
35975
35976         Ensure that getopt() gets declared by <unistd.h>.
35977         * lib/unistd.in.h: Conditionally include getopt.h.
35978         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
35979         Set GNULIB_UNISTD_H_GETOPT.
35980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35981         GNULIB_UNISTD_H_GETOPT.
35982         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
35983
35984 2009-08-12  Bruno Haible  <bruno@clisp.org>
35985
35986         Clarify logic.
35987         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
35988         gl_replace_getopt instead of GETOPT_H.
35989
35990 2009-08-12  Bruno Haible  <bruno@clisp.org>
35991
35992         * m4/getopt.m4: Add comments.
35993
35994 2009-08-12  Bruno Haible  <bruno@clisp.org>
35995
35996         Disable multithread support by default on Cygwin 1.5.x.
35997         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
35998         set gl_use_threads=no if not specified otherwise.
35999
36000 2009-08-11  Bruno Haible  <bruno@clisp.org>
36001
36002         Avoid compilation error on NetBSD 5.0.
36003         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36004         * tests/test-stdio.c: Likewise.
36005         * tests/test-stdlib.c: Likewise.
36006         * tests/test-string.c: Likewise.
36007         * tests/test-unistd.c: Likewise.
36008         Reported by Greg Troxel <gdt@ir.bbn.com>
36009         at <https://savannah.gnu.org/support/?106973>.
36010
36011 2009-08-11  Bruno Haible  <bruno@clisp.org>
36012
36013         * modules/dup2-tests (Depends-on): Remove close.
36014
36015         Undo 2009-07-19 commit.
36016         * modules/acl-tests (Depends-on): Remove close.
36017         * modules/binary-io-tests (Depends-on): Likewise.
36018         * modules/closein-tests (Depends-on): Likewise.
36019         * modules/flock-tests (Depends-on): Likewise.
36020         * modules/fsync-tests (Depends-on): Likewise.
36021         * modules/lseek-tests (Depends-on): Likewise.
36022         * modules/pipe-tests (Depends-on): Likewise.
36023         * modules/posix_spawn-tests (Depends-on): Likewise.
36024         * modules/posix_spawnp-tests (Depends-on): Likewise.
36025         * modules/stat-time-tests (Depends-on): Likewise.
36026         * modules/yesno-tests (Depends-on): Likewise.
36027
36028 2009-08-10  Bruno Haible  <bruno@clisp.org>
36029
36030         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36031
36032 2009-08-10  Bruno Haible  <bruno@clisp.org>
36033
36034         Fix a gcc warning.
36035         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36036
36037 2009-08-10  Bruno Haible  <bruno@clisp.org>
36038
36039         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36040         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36041         not only the first time.
36042         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36043         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36044         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36045         is 1, not only the the first time.
36046
36047 2009-08-10  Bruno Haible  <bruno@clisp.org>
36048
36049         Make it possible to use module 'gethostname' without module 'close'.
36050         * lib/unistd.in.h (close): Evoke a link error only if
36051         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36053         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36054         * modules/unistd (Makefile.am): Substitute
36055         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36056         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36057         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36058         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36059         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36060         * modules/sys_ioctl (Makefile.am): Substitute
36061         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36062         * modules/socket (configure.ac): On native Windows, set
36063         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36064         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36065         Reported by Sam Steingold <sds@gnu.org>.
36066
36067 2009-08-10  Bruno Haible  <bruno@clisp.org>
36068
36069         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36070         * modules/ioctl (configure.ac): Likewise.
36071
36072 2009-08-10  Bruno Haible  <bruno@clisp.org>
36073
36074         Avoid collision between gnulib wrapper and libintl wrapper.
36075         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36076         already defined in intl/printf.c.
36077         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36078         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36079
36080 2009-08-09  Bruno Haible  <bruno@clisp.org>
36081
36082         Make <sys/select.h> really self-contained, also on Solaris 10.
36083         * lib/sys_select.in.h: Include <string.h>.
36084         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36085         Solaris 10 problem.
36086         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36087         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36088         Reported by Jim Meyering.
36089
36090 2009-08-09  Bruno Haible  <bruno@clisp.org>
36091
36092         Avoid warnings from 'aclocal' that are due to a use of macro name
36093         AM_XGETTEXT_OPTION that is not defined in automake.
36094         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36095         automake.
36096         * modules/error (configure.ac): Likewise.
36097         * modules/propername (configure.ac): Likewise.
36098         * modules/vasprintf (configure.ac): Likewise.
36099         * modules/verror (configure.ac): Likewise.
36100         * modules/xprintf (configure.ac): Likewise.
36101         * modules/xvasprintf (configure.ac): Likewise.
36102
36103 2009-08-08  Bruno Haible  <bruno@clisp.org>
36104
36105         Avoid compilation error in C++ mode.
36106         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36107         Reported by Sam Steingold <sds@gnu.org>.
36108
36109 2009-08-08  Bruno Haible  <bruno@clisp.org>
36110
36111         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36112         for the various Unix platforms.
36113         * doc/posix-headers/limits.texi: Update platforms list regarding
36114         HOST_NAME_MAX.
36115         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36116
36117 2009-08-07  Jim Meyering  <meyering@redhat.com>
36118
36119         selinux-at: fix typo in a comment
36120         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36121         Spotted by Paolo Bonzini.
36122
36123         selinux-at: remove redundant m4 code, add documentation
36124         * modules/selinux-at (configure.ac): Remove redundant code.
36125         LIB_SELINUX is already set via the dependent module, selinux-h.
36126         (Include): Add quotes around selinux-at.h.
36127         * lib/selinux-at.h: Add documentation.
36128         Reported by Bruno Haible in
36129         http://marc.info/?l=gnulib-bug&m=124958988300749
36130
36131 2009-08-07  Bruno Haible  <bruno@clisp.org>
36132
36133         Avoid link error on MacOS X 10.3 and 10.4.
36134         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
36135         on non-ELF systems.
36136         * lib/argp-pv.c (argp_program_version): Likewise.
36137         Reported by Simon Josefsson.
36138
36139 2009-08-07  Simon Josefsson  <simon@josefsson.org>
36140
36141         * tests/test-version-etc.sh: Use $EXEEXT.
36142
36143 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
36144
36145         update-copyright: update documentation to point to maint.mk
36146         * build-aux/update-copyright: Here.
36147
36148 2009-08-06  Jim Meyering  <meyering@redhat.com>
36149
36150         maint.mk: support update-copyright-local
36151         * top/maint.mk (update-copyright-local): Define place-holder.
36152         (update-copyright): Depend on $(update-copyright-local).
36153
36154 2009-08-06  Jim Meyering  <meyering@redhat.com>
36155
36156         selinux-at: new module
36157         Initially written for coreutils, this module will soon be
36158         used by findutils, too.
36159         * MODULES.html.sh [Misc]: Add selinux-at.
36160         * lib/selinux-at.h: New file, from coreutils.
36161         * lib/selinux-at.c: Likewise.
36162         * modules/selinux-at: Likewise.
36163         (License): Change from LGPL to GPL, since it depends
36164         on the GPL'd openat module.
36165
36166         doc: update README
36167         * README: Remove references to cogito.
36168         Remove cvs-repo-updating instructions from 2007.
36169         Don't imply that CVS is better if you have limited disk space.
36170
36171 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36172
36173         update-copyright: support C-style comments
36174         * build-aux/update-copyright: Implement and document.
36175         * tests/test-update-copyright.sh: Test.
36176
36177 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36178
36179         update-copyright: support omitted "(C)"
36180         * build-aux/update-copyright: Implement and document.  Also,
36181         allow variable whitespace before "(C)".
36182         * tests/test-update-copyright.sh: Test.
36183
36184 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36185
36186         update-copyright: don't trip on non-FSF copyright statements
36187         * build-aux/update-copyright: Fix so that the first correctly
36188         formatted FSF copyright statement is recognized no matter what
36189         appears before it.  Update documentation.
36190         * tests/test-update-copyright.sh: Test that.
36191
36192 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36193
36194         update-copyright: clean up code a little
36195         * build-aux/update-copyright: Append "_re" to the name of any
36196         variable holding a regular expression.
36197         Replace "old" and "new" with "stmt" in variable names.
36198         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36199         handled correctly.
36200         Format code more consistently.
36201
36202 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36203
36204         update-copyright-tests: improve portability
36205         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
36206         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
36207
36208 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36209
36210         update-copyright: support @copyright{} and &copy;
36211         * build-aux/update-copyright: Implement and document.
36212         * tests/test-update-copyright.sh: Test.
36213
36214 2009-08-04  Jim Meyering  <meyering@redhat.com>
36215
36216         update-copyright-tests: correctly test EOL=\r\n handling
36217         * tests/test-update-copyright.sh: Put \r at the end of some lines
36218         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36219
36220         maint.mk: make update-copyright exclusion list more configurable
36221         * top/maint.mk (update-copyright): Default to excluding COPYING,
36222         but allow an override, in case someone does want to update that file.
36223
36224         maint.mk: don't update copyright date in COPYING
36225         * top/maint.mk (update-copyright): Exclude COPYING.
36226
36227         maint.mk: add a copyright-updating rule
36228         * top/maint.mk (update-copyright): New rule.
36229         Derived from coreutils/Makefile.am.
36230
36231         update-copyright: rename some variables
36232         * build-aux/update-copyright: Rename a few variables for clarity.
36233         Tweak syntax.  List Joel E. Denny as coauthor.
36234
36235 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36236
36237         update-copyright: fix bug for 2-digit last year and add tests
36238         * build-aux/update-copyright: Fix bug.
36239         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
36240         specified.
36241         * modules/update-copyright-tests: New
36242         * tests/test-update-copyright.sh: New.
36243
36244 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36245
36246         update-copyright: handle leading tabs in line prefix
36247         * build-aux/update-copyright: Count leading tabs as 8 spaces
36248         when computing margin.  This helps with the formatting of
36249         ChangeLogs, for example.
36250         Fix documentation a little.
36251
36252 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36253
36254         update-copyright: support EOL=\r\n
36255         * build-aux/update-copyright: Implement that.
36256
36257 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36258
36259         update-copyright: automatically format copyright statements
36260         * build-aux/update-copyright: Implement that.
36261         Also, be a little more predictable and safer by always failing
36262         when the full copyright format is not perfectly recognized as an
36263         unbroken whole.  Discussed at
36264         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
36265         Rewrite documentation.
36266
36267 2009-08-03  Bruno Haible  <bruno@clisp.org>
36268
36269         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
36270
36271 2009-08-02  Bruno Haible  <bruno@clisp.org>
36272
36273         Tests for module 'uname'.
36274         * modules/uname-tests: New file.
36275         * tests/test-uname.c: New file.
36276
36277         New module 'uname'.
36278         * lib/uname.c: New file.
36279         * m4/uname.m4: New file.
36280         * modules/uname: New file.
36281         * doc/posix-functions/uname.texi: Mention the new module.
36282
36283 2009-08-02  Bruno Haible  <bruno@clisp.org>
36284
36285         Tests for module 'sys_utsname'.
36286         * modules/sys_utsname-tests: New file.
36287         * tests/test-sys_utsname.c: New file.
36288
36289         New module 'sys_utsname'.
36290         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
36291         * m4/sys_utsname_h.m4: New file.
36292         * modules/sys_utsname: New file.
36293         * doc/posix-headers/sys_utsname.texi: Mention the new module.
36294
36295 2009-08-02  Bruno Haible  <bruno@clisp.org>
36296
36297         Implicitly initialize the sockets library.
36298         * lib/gethostname.c: Include sockets.h.
36299         (rpl_gethostname): Invoke gl_sockets_startup.
36300         * lib/socket.c: Include sockets.h.
36301         (rpl_socket): Invoke gl_sockets_startup.
36302         * modules/gethostname (Depends-on): Add sockets.
36303         * modules/socket (Depends-on): Likewise.
36304         * tests/test-poll.c: Don't include sockets.h.
36305         (main): Don't invoke gl_sockets_startup.
36306         * tests/test-select.c: Don't include sockets.h.
36307         (main): Don't invoke gl_sockets_startup.
36308
36309 2009-08-02  Bruno Haible  <bruno@clisp.org>
36310
36311         Allow multiple calls to gl_sockets_startup.
36312         * lib/sockets.c (initialized_sockets_version): New variable.
36313         (gl_sockets_startup): Do nothing if already called for this or a higher
36314         version.
36315         (gl_sockets_cleanup): Reset initialized_sockets_version.
36316
36317 2009-08-03  Simon Josefsson  <simon@josefsson.org>
36318
36319         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
36320         different project/version.
36321
36322 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
36323             Bruno Haible  <bruno@clisp.org>
36324
36325         Tests for module 'pipe-filter-gi'.
36326         * modules/pipe-filter-gi-tests: New file.
36327         * tests/test-pipe-filter-gi1.sh: New file.
36328         * tests/test-pipe-filter-gi1.c: New file.
36329         * tests/test-pipe-filter-gi2.sh: New file.
36330         * tests/test-pipe-filter-gi2-main.c: New file.
36331         * tests/test-pipe-filter-gi2-child.c: New file.
36332
36333         New module 'pipe-filter-gi'.
36334         * lib/pipe-filter-gi.c: New file.
36335         * modules/pipe-filter-gi: New file.
36336
36337 2009-08-02  Bruno Haible  <bruno@clisp.org>
36338             Paolo Bonzini  <bonzini@gnu.org>
36339
36340         Tests for module 'pipe-filter-ii'.
36341         * modules/pipe-filter-ii-tests: New file.
36342         * tests/test-pipe-filter-ii1.sh: New file.
36343         * tests/test-pipe-filter-ii1.c: New file.
36344         * tests/test-pipe-filter-ii2.sh: New file.
36345         * tests/test-pipe-filter-ii2-main.c: New file.
36346         * tests/test-pipe-filter-ii2-child.c: New file.
36347
36348         New module 'pipe-filter-ii'.
36349         * lib/pipe-filter.h: New file.
36350         * lib/pipe-filter-ii.c: New file.
36351         * lib/pipe-filter-aux.h: New file.
36352         * modules/pipe-filter-ii: New file.
36353
36354 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36355
36356         * lib/gc-libgcrypt.c: Change copyright to FSF.
36357         * lib/gc-gnulib.c: Likewise.
36358
36359 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
36360
36361         * lib/gethostname.c: Include limits.h.
36362
36363 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36364             Bruno Haible  <bruno@clisp.org>
36365
36366         Ensure HOST_NAME_MAX as part of the gethostname module.
36367         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
36368         define also HOST_NAME_MAX.
36369         * tests/test-gethostname.c: Include <limits.h>.
36370         (main): Check also HOST_NAME_MAX.
36371         * doc/posix-headers/limits.texi: Document the mingw problem.
36372
36373 2009-08-02  Bruno Haible  <bruno@clisp.org>
36374
36375         * lib/gethostname.c (gethostname): Fix handling of large len argument.
36376         Add comments.
36377
36378 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36379
36380         * lib/gethostname.c: Add Windows wrapper.
36381         * m4/gethostname.m4: Look for gethostname in -lws2_32.
36382         * modules/gethostname: Depend on sys_socket & errno, for also
36383         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
36384         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
36385
36386 2009-07-31  Jim Meyering  <meyering@redhat.com>
36387
36388         getloadavg: fix symbol name in comment
36389         * lib/getloadavg.c: Correct a typo I introduced when adding
36390         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
36391         Matt Kraai spotted the problem.
36392
36393 2009-07-29  Matt Kraai  <mkraai@beckman.com>
36394
36395         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
36396         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
36397         code also if ! defined N_NAME_POINTER.
36398         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
36399         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
36400         but the n_name member is a 12-byte array.
36401
36402 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
36403
36404         update-copyright: generalize comment handling
36405         * build-aux/update-copyright: Handle copyright statements
36406         within more comment styles.
36407         Document usage.
36408         Report any file with an external copyright holder or parse failure.
36409
36410 2009-07-29  Jim Meyering  <meyering@redhat.com>
36411
36412         mktime: correct setting of REPLACE_MKTIME
36413         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
36414
36415         update-copyright: new module
36416         * modules/update-copyright: New file.
36417         * build-aux/update-copyright: New file.
36418         * MODULES.html.sh (maint+release support): Add update-copyright.
36419
36420 2009-07-27  Bruno Haible  <bruno@clisp.org>
36421
36422         Fix compilation error when <ctime> is used and mktime is replaced.
36423         * lib/time.in.h (mktime): New declaration.
36424         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
36425         REPLACE_MKTIME instead of defining mktime in config.h.
36426         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
36427         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
36428         Reported by Ross McFarland <rwmcfa1@neces.com>.
36429
36430 2009-07-27  Bruno Haible  <bruno@clisp.org>
36431
36432         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
36433         Reported by Matt Kraai <mkraai@beckman.com>.
36434
36435 2009-07-25  Jim Meyering  <meyering@redhat.com>
36436
36437         maint.mk: avoid warnings about missing files
36438         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
36439         diagnostic when .prev-version does not exist.
36440         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
36441         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
36442         nonexistent cfg.mk.
36443         Suggestions from Simon Josefsson.
36444
36445 2009-07-25  Bruno Haible  <bruno@clisp.org>
36446
36447         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
36448         defined as macros. Needed on QNX 6.4.1.
36449         Reported by Matt Kraai <mkraai@beckman.com>.
36450
36451 2009-07-23  Jim Meyering  <meyering@redhat.com>
36452
36453         maint.mk: invoke "make dist" with a working value of XZ_OPT
36454         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
36455
36456 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
36457
36458         Make fseeko.c compile on QNX.
36459         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
36460
36461 2009-07-22  Peter Simons  <simons@cryp.to>
36462
36463         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
36464         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
36465         * lib/md4.h: Likewise.
36466         * lib/md5.h: Likewise.
36467         * lib/sha1.h: Likewise.
36468         * lib/sha256.h: Likewise.
36469         * lib/sha512.h: Likewise.
36470
36471         tests-sha1: don't assign literal string to 'char *' variable
36472         * tests/test-sha1.c (main): Declare locals with "const" to match
36473         attributes of the right hand side.
36474
36475 2009-07-21  Eric Blake  <ebb9@byu.net>
36476
36477         dup2: fix more mingw problems
36478         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
36479         fd to itself.
36480         * doc/posix-functions/dup2.texi (dup2): Document the bug.
36481         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
36482         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
36483         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
36484         care of mingw bugs.
36485
36486 2009-07-21  Jim Meyering  <meyering@redhat.com>
36487
36488         vc-list-files: avoid failure when /bin/sh is dash
36489         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
36490         On some Debian based systems, /bin/sh is a symlink to dash, and running
36491         this command would omit the "/" following each 'tests' prefix:
36492           dash -x build-aux/vc-list-files -C . tests
36493         That is because bash and dash work differently:
36494           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
36495           bash ok
36496           dash odd
36497
36498 2009-07-21  Eric Blake  <ebb9@byu.net>
36499
36500         dup2-tests: test previous patch
36501         * modules/dup2-tests: New file.
36502         * tests/test-dup2.c: Likewise.
36503         * tests/test-open.c (main): Avoid unspecified behavior.
36504         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
36505         test.
36506
36507         dup2: work around mingw and cygwin 1.5 bug
36508         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
36509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36510         * modules/unistd (Makefile.am): Substitute it.
36511         * lib/unistd.in.h (dup2): Declare the replacement.
36512         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
36513         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
36514         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
36515         * modules/execute (Depends-on): Add dup2.
36516         * modules/fseterr (Depends-on): Likewise.
36517         * modules/pipe (Depends-on): Likewise.
36518         * modules/posix_spawn-internal (Depends-on): Likewise.
36519
36520 2009-07-21  Bruno Haible  <bruno@clisp.org>
36521
36522         * modules/.gitattributes: New file.
36523
36524 2009-07-20  Bruno Haible  <bruno@clisp.org>
36525
36526         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
36527         (main): Use it.
36528
36529 2009-07-20  Eric Blake  <ebb9@byu.net>
36530
36531         test-pipe: make a bit more robust.
36532         * tests/test-pipe.c (myerr): Allow error messages regardless of
36533         what we do to stderr.
36534         (test_pipe): Rearrange to avoid deadlock.
36535         (child_main): Try a larger read, to ensure we avoided deadlock.
36536         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
36537         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
36538         if misused.
36539
36540 2009-07-19  Jim Meyering  <meyering@redhat.com>
36541
36542         fts: avoid false-positive cycle-detection
36543         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
36544         for each new command line argument.
36545
36546 2009-07-19  Bruno Haible  <bruno@clisp.org>
36547
36548         Fix build error on mingw with the modules sys_select and unistd.
36549         * modules/acl-tests (Depends-on): Add close.
36550         * modules/binary-io-tests (Depends-on): Likewise.
36551         * modules/closein-tests (Depends-on): Likewise.
36552         * modules/flock-tests (Depends-on): Likewise.
36553         * modules/fsync-tests (Depends-on): Likewise.
36554         * modules/lseek-tests (Depends-on): Likewise.
36555         * modules/pipe-tests (Depends-on): Likewise.
36556         * modules/posix_spawn-tests (Depends-on): Likewise.
36557         * modules/posix_spawnp-tests (Depends-on): Likewise.
36558         * modules/stat-time-tests (Depends-on): Likewise.
36559         * modules/yesno-tests (Depends-on): Likewise.
36560
36561 2009-07-19  Bruno Haible  <bruno@clisp.org>
36562
36563         Unify conditionals.
36564         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
36565         macros, not at the compiler macros.
36566         * lib/pipe.c: Likewise.
36567         * lib/execute.c: Likewise.
36568         * lib/spawni.c: Likewise.
36569
36570 2009-07-19  Bruno Haible  <bruno@clisp.org>
36571
36572         Fix handling of closed stdin/stdout/stderr on mingw.
36573         * lib/w32spawn.h: Include unistd.h.
36574         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
36575         file descriptor with O_NOINHERIT flag.
36576         (fd_safer_noinherit): New function, based on fd-safer.c.
36577         (dup_safer_noinherit): New function, based on dup-safer.c.
36578         (undup_safer_noinherit): New function.
36579         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
36580         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
36581         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
36582         instead of fd_safer.
36583         * tests/test-pipe.c: Include <windows.h>.
36584         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
36585         result.
36586
36587         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
36588         from main.
36589         (test_pipe): Pass an extra argument for disambiguation.
36590         (main): Invoke parent_main or child_main.
36591
36592         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
36593         consistently.
36594
36595 2009-07-18  Eric Blake  <ebb9@byu.net>
36596
36597         test-pipe: fix mingw build
36598         * tests/test-pipe.c (main): Avoid fcntl on mingw.
36599
36600 2009-07-18  Bruno Haible  <bruno@clisp.org>
36601
36602         * modules/pipe-tests (Makefile.am): Fix typo.
36603
36604 2009-07-18  Eric Blake  <ebb9@byu.net>
36605
36606         error: fix mingw build
36607         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
36608         Reported by Bruno Haible.
36609
36610         error: avoid undefined use of stdout
36611         * lib/error.c (error, error_at_line): Check that fd 1 is open
36612         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
36613         is handling faults and the close_stdout module wants to report the
36614         detection of closed stdout as an error.
36615
36616 2009-07-17  Eric Blake  <ebb9@byu.net>
36617
36618         pipe: be robust in face of closed fds
36619         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
36620         should cause child to misbehave.
36621         * modules/pipe-tests: New module.
36622         * tests/test-pipe.c: New file.
36623         * tests/test-pipe.sh: New file.
36624         Reported by Akim Demaille.
36625
36626 2009-07-14  Bruno Haible  <bruno@clisp.org>
36627
36628         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
36629         Reported by anonymous kc.
36630
36631 2009-07-07  Jim Meyering  <meyering@redhat.com>
36632
36633         maint.mk: don't look for translatable strings in *.m4 or *.mk
36634         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
36635         when searching for translatable strings.
36636
36637 2009-07-05  Jim Meyering  <meyering@redhat.com>
36638
36639         remove superfluous parentheses in STREQ definition
36640         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
36641         * lib/getugroups.c (STREQ): Likewise.
36642         * lib/fnmatch.c (STREQ): Likewise.
36643         Spotted by Bruno Haible.
36644
36645 2009-07-04  Jim Meyering  <meyering@redhat.com>
36646
36647         argv-iter: new module
36648         * MODULES.html.sh: Add argv-iter.
36649         * lib/argv-iter.c, lib/argv-iter.h: New files.
36650         * modules/argv-iter: New file.
36651         * modules/argv-iter-tests: New file.
36652         * tests/test-argv-iter.c: Test it.
36653
36654 2009-07-04  Bruno Haible  <bruno@clisp.org>
36655
36656         Fix assertion.
36657         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
36658         contains more exact copies of a given entry than file2, leave the extra
36659         copies unpaired rather than aborting.
36660         Reported by Eric Blake.
36661
36662 2009-07-02  Bruno Haible  <bruno@clisp.org>
36663
36664         Speedup git-merge-changelog for git cherry-pick.
36665         * lib/git-merge-changelog.c (struct entries_mapping): New type.
36666         (entries_mapping_get): New function, extracted from compute_mapping.
36667         (entries_mapping_reverse_get): New function.
36668         (compute_mapping): Add a 'full' argument. Return the result in a
36669         'struct entries_mapping'.
36670         (main): Update. Access the mappings through entries_mapping_get.
36671         Reported by Eric Blake.
36672
36673 2009-07-02  Bruno Haible  <bruno@clisp.org>
36674
36675         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
36676         best_i.
36677
36678 2009-07-02  Bruno Haible  <bruno@clisp.org>
36679
36680         Speed up approximate search for matching ChangeLog entries.
36681         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
36682         argument. Call fstrcmp_bounded instead of fstrcmp.
36683         (compute_mapping, try_split_merged_entry, main): Update callers.
36684
36685 2009-07-02  Bruno Haible  <bruno@clisp.org>
36686
36687         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
36688
36689 2009-06-30  Bruno Haible  <bruno@clisp.org>
36690
36691         Reduce the number of uc_is_cased calls.
36692         * lib/unicase.h (casing_suffix_context_t): Add
36693         'first_char_except_ignorable' field.
36694         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
36695         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
36696         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
36697         Update initializer.
36698         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
36699         case-ignorable characters.
36700         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
36701         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
36702         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
36703         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
36704         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
36705
36706 2009-06-30  Bruno Haible  <bruno@clisp.org>
36707
36708         Tests for module 'unicase/ignorable'.
36709         * modules/unicase/ignorable-tests: New file.
36710         * tests/unicase/test-ignorable.c: New file, generated by
36711         gen-uni-tables.
36712
36713         Tests for module 'unicase/cased'.
36714         * modules/unicase/cased-tests: New file.
36715         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
36716         * tests/unicase/test-predicate-part1.h: New file, derived from
36717         tests/unictype/test-predicate-part1.h.
36718         * tests/unicase/test-predicate-part2.h: New file, same as
36719         tests/unictype/test-predicate-part2.h.
36720
36721         Fix evaluation of "Before C" condition of FINAL_SIGMA.
36722         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
36723         (output_casing_properties): New function.
36724         (main): Call it.
36725         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
36726         * lib/unicase/cased.c: Include unictype/bitmap.h.
36727         (uc_is_cased): Define through a bitmap lookup.
36728         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
36729         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
36730         (uc_is_case_ignorable): Define through a bitmap lookup.
36731         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
36732         lib/unictype/bitmap.h.
36733         (Depends-on): Add inline. Clean up.
36734         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
36735         lib/unictype/bitmap.h.
36736         (Depends-on): Add inline. Clean up.
36737         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
36738         recognition.
36739         * tests/unicase/test-u16-tolower.c (main): Likewise.
36740         * tests/unicase/test-u32-tolower.c (main): Likewise.
36741
36742 2009-06-30  Bruno Haible  <bruno@clisp.org>
36743
36744         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
36745         * lib/unicase/u16-casemap.c: Likewise.
36746         * lib/unicase/u32-casemap.c: Likewise.
36747
36748 2009-06-29  Bruno Haible  <bruno@clisp.org>
36749
36750         Define u32_casefold as a wrapper around u32_ct_casefold.
36751         * lib/unicase/u32-casefold.c: Update.
36752         * modules/unicase/u32-casefold (Depends-on): Add
36753         unicase/u32-ct-casefold, unicase/empty-prefix-context,
36754         unicase/empty-suffix-context. Clean up.
36755
36756         Define u16_casefold as a wrapper around u16_ct_casefold.
36757         * lib/unicase/u16-casefold.c: Update.
36758         * modules/unicase/u16-casefold (Depends-on): Add
36759         unicase/u16-ct-casefold, unicase/empty-prefix-context,
36760         unicase/empty-suffix-context. Clean up.
36761
36762         Define u8_casefold as a wrapper around u8_ct_casefold.
36763         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
36764         * lib/unicase/u8-casefold.c: Update.
36765         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
36766         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36767
36768         Define u32_totitle as a wrapper around u32_ct_totitle.
36769         * lib/unicase/u32-totitle.c: Update.
36770         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
36771         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36772
36773         Define u16_totitle as a wrapper around u16_ct_totitle.
36774         * lib/unicase/u16-totitle.c: Update.
36775         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
36776         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36777
36778         Define u8_totitle as a wrapper around u8_ct_totitle.
36779         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
36780         functions.
36781         (FUNC): Delegate to U_CT_TOTITLE.
36782         * lib/unicase/u8-totitle.c: Update.
36783         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
36784         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36785
36786         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
36787         invocation.
36788         * modules/unicase/u32-tolower (Depends-on): Add
36789         unicase/empty-prefix-context, unicase/empty-suffix-context.
36790
36791         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
36792         invocation.
36793         * modules/unicase/u16-tolower (Depends-on): Add
36794         unicase/empty-prefix-context, unicase/empty-suffix-context.
36795
36796         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
36797         * modules/unicase/u8-tolower (Depends-on): Add
36798         unicase/empty-prefix-context, unicase/empty-suffix-context.
36799
36800         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
36801         invocation.
36802         * modules/unicase/u32-toupper (Depends-on): Add
36803         unicase/empty-prefix-context, unicase/empty-suffix-context.
36804
36805         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
36806         invocation.
36807         * modules/unicase/u16-toupper (Depends-on): Add
36808         unicase/empty-prefix-context, unicase/empty-suffix-context.
36809
36810         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
36811         * modules/unicase/u8-toupper (Depends-on): Add
36812         unicase/empty-prefix-context, unicase/empty-suffix-context.
36813
36814         New module 'unicase/u32-ct-casefold'.
36815         * lib/unicase/u32-ct-casefold.c: New file.
36816         * modules/unicase/u32-ct-casefold: New file.
36817
36818         New module 'unicase/u16-ct-casefold'.
36819         * lib/unicase/u16-ct-casefold.c: New file.
36820         * modules/unicase/u16-ct-casefold: New file.
36821
36822         New module 'unicase/u8-ct-casefold'.
36823         * lib/unicase/u8-ct-casefold.c: New file.
36824         * lib/unicase/u-ct-casefold.h: New file, derived from
36825         lib/unicase/u-casefold.h.
36826         * modules/unicase/u8-ct-casefold: New file.
36827
36828         New module 'unicase/u32-ct-totitle'.
36829         * lib/unicase/u32-ct-totitle.c: New file.
36830         * modules/unicase/u32-ct-totitle: New file.
36831
36832         New module 'unicase/u16-ct-totitle'.
36833         * lib/unicase/u16-ct-totitle.c: New file.
36834         * modules/unicase/u16-ct-totitle: New file.
36835
36836         New module 'unicase/u8-ct-totitle'.
36837         * lib/unicase/u8-ct-totitle.c: New file.
36838         * lib/unicase/u-ct-totitle.h: New file, derived from
36839         lib/unicase/u-totitle.h.
36840         * modules/unicase/u8-ct-totitle: New file.
36841
36842         New module 'unicase/u32-ct-tolower'.
36843         * lib/unicase/u32-ct-tolower.c: New file.
36844         * modules/unicase/u32-ct-tolower: New file.
36845
36846         New module 'unicase/u16-ct-tolower'.
36847         * lib/unicase/u16-ct-tolower.c: New file.
36848         * modules/unicase/u16-ct-tolower: New file.
36849
36850         New module 'unicase/u8-ct-tolower'.
36851         * lib/unicase/u8-ct-tolower.c: New file.
36852         * modules/unicase/u8-ct-tolower: New file.
36853
36854         New module 'unicase/u32-ct-toupper'.
36855         * lib/unicase/u32-ct-toupper.c: New file.
36856         * modules/unicase/u32-ct-toupper: New file.
36857
36858         New module 'unicase/u16-ct-toupper'.
36859         * lib/unicase/u16-ct-toupper.c: New file.
36860         * modules/unicase/u16-ct-toupper: New file.
36861
36862         New module 'unicase/u8-ct-toupper'.
36863         * lib/unicase/u8-ct-toupper.c: New file.
36864         * modules/unicase/u8-ct-toupper: New file.
36865
36866         Add context arguments to u*_casemap functions.
36867         * lib/unicase/unicasemap.h: Include unicase.h.
36868         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
36869         suffix_context arguments.
36870         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
36871         functions.
36872         (FUNC): Add prefix_context and suffix_context arguments. Use
36873         uc_is_cased and uc_is_case_ignorable.
36874         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
36875         * lib/unicase/u16-casemap.c: Likewise.
36876         * lib/unicase/u32-casemap.c: Likewise.
36877         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
36878         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36879         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
36880         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36881         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
36882         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36883
36884         New module 'unicase/u32-suffix-context'.
36885         * lib/unicase/u32-suffix-context.c: New file.
36886         * modules/unicase/u32-suffix-context: New file.
36887
36888         New module 'unicase/u16-suffix-context'.
36889         * lib/unicase/u16-suffix-context.c: New file.
36890         * modules/unicase/u16-suffix-context: New file.
36891
36892         New module 'unicase/u8-suffix-context'.
36893         * lib/unicase/u8-suffix-context.c: New file.
36894         * lib/unicase/u-suffix-context.h: New file.
36895         * modules/unicase/u8-suffix-context: New file.
36896
36897         New module 'unicase/empty-suffix-context'.
36898         * lib/unicase/empty-suffix-context.c: New file.
36899         * modules/unicase/empty-suffix-context: New file.
36900
36901         New module 'unicase/u32-prefix-context'.
36902         * lib/unicase/u32-prefix-context.c: New file.
36903         * modules/unicase/u32-prefix-context: New file.
36904
36905         New module 'unicase/u16-prefix-context'.
36906         * lib/unicase/u16-prefix-context.c: New file.
36907         * modules/unicase/u16-prefix-context: New file.
36908
36909         New module 'unicase/u8-prefix-context'.
36910         * lib/unicase/u8-prefix-context.c: New file.
36911         * lib/unicase/u-prefix-context.h: New file.
36912         * lib/unicase/context.h: New file.
36913         * modules/unicase/u8-prefix-context: New file.
36914
36915         New module 'unicase/empty-prefix-context'.
36916         * lib/unicase/empty-prefix-context.c: New file.
36917         * modules/unicase/empty-prefix-context: New file.
36918
36919         New module 'unicase/ignorable'.
36920         * lib/unicase/ignorable.c: New file.
36921         * modules/unicase/ignorable: New file.
36922
36923         New module 'unicase/cased'.
36924         * lib/unicase/caseprop.h: New file.
36925         * lib/unicase/cased.c: New file.
36926         * modules/unicase/cased: New file.
36927
36928         New functions for case mapping of substrings.
36929         * lib/unicase.h (casing_prefix_context_t): New type.
36930         (unicase_empty_prefix_context): New variable.
36931         (u8_casing_prefix_context, u16_casing_prefix_context,
36932         u32_casing_prefix_context, u8_casing_prefixes_context,
36933         u16_casing_prefixes_context, u32_casing_prefixes_context): New
36934         declarations.
36935         (casing_suffix_context_t): New type.
36936         (unicase_empty_suffix_context): New variable.
36937         (u8_casing_suffix_context, u16_casing_suffix_context,
36938         u32_casing_suffix_context, u8_casing_suffixes_context,
36939         u16_casing_suffixes_context, u32_casing_suffixes_context,
36940         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
36941         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
36942         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
36943         declarations.
36944
36945 2009-06-28  Jim Meyering  <meyering@redhat.com>
36946
36947         boostrap: indent only with spaces
36948         * build-aux/bootstrap: Indent only with spaces, never TABs.
36949
36950         bootstrap: split long lines
36951         * build-aux/bootstrap: Keep line length < 80.
36952
36953         bootstrap: sync from coreutils
36954         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
36955         just as autoreconf does.  Verify a list of prerequisite
36956         package-name,version-number pairs if defined in bootstrap.conf.
36957         Refer to README-prereq, if prerequisites are not satisfied.
36958
36959 2009-06-27  Eric Blake  <ebb9@byu.net>
36960
36961         tests: add test for bogus NULL definition
36962         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
36963         * tests/test-stdlib.c: Likewise.
36964         * tests/test-string.c: Likewise.
36965         * tests/test-locale.c: Likewise.
36966         * tests/test-unistd.c: Likewise.
36967         * modules/stdio-tests (Depends-on): Add verify.
36968         * modules/stdlib-tests (Depends-on): Likewise.
36969         * modules/string-tests (Depends-on): Likewise.
36970         * modules/locale-tests (Depends-on): Likewise.
36971         * modules/unistd-tests (Depends-on): Likewise.
36972
36973 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
36974
36975         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
36976         self-explaining comment.
36977         * m4/selinux-selinux-h: Update serial.
36978         (gl_LIBSELINUX): New macro, adding a warning for missing development
36979         packages to code extracted from...
36980         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
36981         Add warning for missing development packages here, too.
36982
36983 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
36984
36985         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
36986
36987 2009-06-25  Eric Blake  <ebb9@byu.net>
36988
36989         version-etc: fix regression
36990         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
36991         gcc.
36992         (version_etc): Use it, to catch bugs with trailing NULL.
36993         * lib/version-etc.c (version_etc_arn): Delete unused argument.
36994         (version_etc_va): Fix logic bug.
36995         * modules/version-etc-tests: Add test.
36996         * tests/test-version-etc.c: New file.
36997         * tests/test-version-etc.sh: Likewise.
36998
36999 2009-06-25  Sam Steingold  <sds@gnu.org>
37000
37001         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37002         mbtowc declaration.
37003
37004 2009-06-25  Eric Blake  <ebb9@byu.net>
37005
37006         fpurge: migrate into <stdio.h>
37007         * lib/fpurge.h: Delete...
37008         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37009         * lib/fpurge.c (fpurge): Change declaring header.
37010         * modules/fpurge (Files): Drop deleted file.
37011         (Depends-on): Add stdio.
37012         (configure.ac): Set witness.
37013         * modules/stdio (Makefile.am): Support fpurge macros.
37014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37015         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37016         * lib/fflush.c: Update client.
37017         * tests/test-fpurge.c: Likewise.
37018         * NEWS: Mention the change.
37019
37020 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37021
37022         * lib/argp-version-etc.c (program_authors): Add const
37023         qualifier.
37024         * lib/version-etc.c: Fix typos in the comments.
37025         * modules/argp-version-etc: Depends on version-etc.
37026
37027 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37028
37029         argp-version-etc: new module.
37030
37031         * lib/argp-version-etc.c: New file.
37032         * lib/argp-version-etc.h: New file.
37033         * modules/argp-version-etc: New file.
37034         * modules/argp-version-etc-tests: New file.
37035         * tests/test-argp-version-etc.c: New test.
37036         * tests/test-argp-version-etc-1.sh: New test.
37037
37038 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37039
37040         Provide additional interfaces and documentation for version-etc
37041         module.
37042
37043         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37044         interfaces.
37045         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37046         prototypes.
37047
37048 2009-06-24  Bruno Haible  <bruno@clisp.org>
37049
37050         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37051         HAVE_LIB${NAME} macro.
37052         Reported by Sam Steingold <sds@gnu.org>.
37053
37054 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37055
37056         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37057         needed.
37058
37059 2009-06-21  Bruno Haible  <bruno@clisp.org>
37060
37061         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37062         work.
37063         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37064         together with LIB${NAME}, LTLIB${NAME}.
37065         Reported by Sam Steingold <sds@gnu.org>.
37066
37067 2009-06-20  Jim Meyering  <meyering@redhat.com>
37068
37069         tests: make sc_require_test_exit_idiom more generic
37070         * top/maint.mk (Exit_witness_file): New overridable variable.
37071         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37072         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37073
37074 2009-06-19  Jim Meyering  <meyering@redhat.com>
37075
37076         hash: reverse order of src/dst parameters in an internal interface
37077         * lib/hash.c (transfer_entries): Reverse order of parameters to
37078         put DST before SRC.  Adjust callers.
37079
37080         tests: test-hash: avoid wholesale duplication
37081         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37082         Instead, use a loop and add a single conditional.
37083
37084         tests: test-hash: allow seed selection via a command line argument
37085         * tests/test-hash.c (get_seed): New function.
37086         (main): Use it.
37087
37088 2009-06-19  Eric Blake  <ebb9@byu.net>
37089
37090         hash: avoid memory leak on allocation failure
37091         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37092         failure.  Factor repeated algorithm...
37093         (transfer_entries): ...into new helper routine.
37094         (hash_delete): React to hash_rehash return value.
37095
37096         hash: reduce memory pressure in hash_rehash no-op case
37097         * lib/hash.c (next_prime): Avoid overflow.
37098         (hash_initialize): Factor bucket size computation...
37099         (compute_bucket_size): ...into new helper function.
37100         (hash_rehash): Use new function and open coding to reduce memory
37101         pressure, and avoid a memory leak in USE_OBSTACK code.
37102         Reported by Jim Meyering.
37103
37104 2009-06-18  Eric Blake  <ebb9@byu.net>
37105
37106         hash: make rotation more obvious
37107         * modules/hash (Depends-on): Add bitrotate and stdint.
37108         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37109         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37110         (SIZE_MAX): Rely on headers for definition.
37111         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37112         (raw_hasher): Use rotr_sz.
37113         Suggested by Jim Meyering.
37114
37115         hash: fix memory leak in last patch
37116         * lib/hash.c (hash_rehash): Avoid memory leak.
37117
37118         hash: avoid no-op rehashing
37119         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37120
37121         hash: provide default callback functions
37122         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37123         (hash_initialize): Use them as defaults.
37124         * tests/test-hash.c (main): Test this.
37125
37126         hash: minor optimization
37127         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
37128         when possible.
37129         (hash_initialize): Document this promise.
37130         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
37131         * tests/test-hash.c (hash_compare_strings): Test this.
37132
37133 2009-06-18  Bruno Haible  <bruno@clisp.org>
37134
37135         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
37136         going to be replaced anyway.
37137
37138 2009-06-18  Bruno Haible  <bruno@clisp.org>
37139
37140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
37141         in one place.
37142         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
37143         be replaced anyway.
37144
37145 2009-06-18  Eric Blake  <ebb9@byu.net>
37146
37147         hash: check for resize before insertion
37148         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
37149         threshold before insertion, so that a pathological hash_rehash
37150         that fills every bucket can still trigger another rehash.
37151
37152 2009-06-18  Jim Meyering  <meyering@redhat.com>
37153
37154         hash-tests: add a loop around the small tests
37155         * tests/test-hash.c (main): Repeat small tests with selected
37156         small initial table sizes.
37157
37158 2009-06-17  Eric Blake  <ebb9@byu.net>
37159
37160         hash: minor cleanups
37161         * lib/hash.h (hash_entry): Make opaque, by moving...
37162         * lib/hash.c (hash_entry): ...here.
37163         (hash_insert): Clarify restrictions on what can be inserted.
37164         (hash_get_next): Clarify when it is safe to remove an element
37165         during traversal.
37166         (check_tuning): Skip verification when tuning is known safe.
37167         (hash_initialize): Clarify restrictions on tuning.
37168
37169 2009-06-17  Jim Meyering  <jim@meyering.net>
37170         and Eric Blake  <ebb9@byu.net>
37171
37172         hash-tests: new module
37173         * modules/hash-tests: New file.
37174         * tests/test-hash.c: New file.
37175
37176 2009-06-17  Eric Blake  <ebb9@byu.net>
37177
37178         strstr-simple: document new module
37179         * MODULES.html.sh: Document new module.
37180
37181         strstr, strcasestr: replace on platforms with broken memchr
37182         * modules/strstr: Split into...
37183         * modules/strstr-simple: ...new module that does not care about
37184         performance, but does care about glibc bug.
37185         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37186         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37187         if platform memchr is broken, per Debian bug 521737.
37188         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37189         memchr.
37190         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37191         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37192         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37193         * modules/mountlist (Depends-on): Add strstr-simple.
37194         * modules/gen-uni-tables (Depends-on): Likewise.
37195         * modules/argz (Depends-on): Add strstr.
37196
37197 2009-06-17  Bruno Haible  <bruno@clisp.org>
37198
37199         * modules/posix_spawn-internal (Depends-on): Add errno.
37200
37201 2009-06-17  Bruno Haible  <bruno@clisp.org>
37202
37203         Define missing ESTALE on Interix 3.5.
37204         * lib/errno.in.h (ESTALE): Assign a value if missing.
37205         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
37206         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
37207         missing.
37208         * doc/posix-headers/errno.texi: Mention the Interix bug.
37209         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
37210
37211 2009-06-15  Eric Blake  <ebb9@byu.net>
37212
37213         memchr, memchr2: add valgrind exception
37214         * lib/memchr.valgrind: New file.
37215         * lib/memchr2.valgrind: New file.
37216         * modules/memchr (Files): Distribute valgrind file.
37217         * modules/memchr2 (Files): Likewise.
37218
37219         docs: memchr is no longer obsolete
37220         * MODULES.html.sh: Move memchr from obsolete to string.h section.
37221         * lib/string.in.h (memchr): Simplify logic.
37222
37223 2009-06-14  Jim Meyering  <meyering@redhat.com>
37224
37225         link-follow: fix the "checking..." message to not mention trailing slash
37226         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
37227         never considered trailing slashes.
37228
37229 2009-06-14  Bruno Haible  <bruno@clisp.org>
37230
37231         * m4/memchr.m4: Mention also the bug on IA-64.
37232         * doc/posix-functions/memchr.texi: Likewise.
37233
37234 2009-06-12  Eric Blake  <ebb9@byu.net>
37235
37236         memchr: detect broken x86_64 and alpha implementations
37237         * modules/memchr-tests (Depends-on): Move mmap detection...
37238         * modules/memchr (Depends-on): ...here.
37239         (configure.ac): Set indicator.
37240         * lib/string.in.h (memchr): Declare replacement.
37241         * modules/string (Makefile.am): Trigger replacement.
37242         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37243         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
37244         bugs.
37245         * doc/posix-functions/memchr.texi (memchr): Document the bug.
37246         * modules/getpagesize (License): Relax license.
37247
37248 2009-06-11  Bruno Haible  <bruno@clisp.org>
37249
37250         * lib/idpriv.h: Add more references.
37251
37252 2009-06-08  Bruno Haible  <bruno@clisp.org>
37253
37254         Tests for module 'idpriv-droptemp'.
37255         * modules/idpriv-droptemp-tests: New file.
37256         * tests/test-idpriv-droptemp.sh: New file.
37257         * tests/test-idpriv-droptemp.su.sh: New file.
37258         * tests/test-idpriv-droptemp.c: New file.
37259
37260         New module 'idpriv-droptemp'.
37261         * lib/idpriv-droptemp.c: New file.
37262         * modules/idpriv-droptemp: New file.
37263
37264 2009-06-08  Bruno Haible  <bruno@clisp.org>
37265
37266         Tests for module 'idpriv-drop'.
37267         * modules/idpriv-drop-tests: New file.
37268         * tests/test-idpriv-drop.sh: New file.
37269         * tests/test-idpriv-drop.su.sh: New file.
37270         * tests/test-idpriv-drop.c: New file.
37271
37272         New module 'idpriv-drop'.
37273         * lib/idpriv.h: New file.
37274         * lib-idpriv-drop.c: New file.
37275         * m4/idpriv.m4: New file.
37276         * modules/idpriv-drop: New file.
37277
37278 2009-06-08  Bruno Haible  <bruno@clisp.org>
37279
37280         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
37281         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37282         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37283         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37284         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37285         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37286         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37287
37288 2009-06-08  Eric Blake  <ebb9@byu.net>
37289
37290         test-strstr: use memory fence, when possible
37291         * tests/test-strstr.c (main): Use memory fence, in order to be
37292         more likely to trigger Debian bug 521737.
37293         * modules/strstr-tests (Files): Pull in additional files.
37294
37295         memchr: no longer obsolete, for wider field testing
37296         * modules/memchr (Status, Notice): Delete, this module is no
37297         longer obsolete.
37298         * modules/vasnprintf (Depends-on): Add memchr.
37299
37300 2009-06-07  Jim Meyering  <meyering@redhat.com>
37301
37302         hash: declare some functions with the warn_unused_result attribute
37303         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
37304
37305 2009-06-07  Bruno Haible  <bruno@clisp.org>
37306
37307         * tests/test-alignof.c: Don't test int64_t if it does not exist.
37308         Reported by Eric Blake.
37309
37310 2009-06-06  Eric Blake  <ebb9@byu.net>
37311
37312         test-alignof: fix typo with long double
37313         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
37314         compiler error.
37315
37316 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
37317
37318         Escape non-texinfo { and }s.
37319         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
37320         markup error.
37321
37322 2009-06-04  Jim Meyering  <meyering@redhat.com>
37323
37324         gitlog-to-changelog: don't infloop on an empty commit log
37325         * build-aux/gitlog-to-changelog: Warn about an empty log message.
37326         Reported by Boris Petersen <transacid@centerim.org>.
37327
37328 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
37329
37330         version-etc: extend for packagers
37331         Add three new configure options, intended for packagers:
37332           --with-packager="packager name"
37333           --with-packager-version="packager-specific version"
37334           --with-packager-bug-reports="packager bug reporting"
37335         An example with coreutils:
37336           $ ./configure \
37337             --with-packager=Gentoo \
37338             --with-packager-bug-report=http://bugs.gentoo.org/ \
37339             --with-packager-version="patchset 1.6"
37340           $ ./src/ls --version | head -n2
37341           ls (GNU coreutils) 7.1-dirty
37342           Packaged by Gentoo (patchset 1.6)
37343         Note that the bug reporting info via --help doesn't show up because
37344         coreutils uses its own custom emit_bug_reporting_address() implementation
37345         in src/system.h.  If it didn't, it'd look like:
37346           $ ./src/ls --help | tail -n4
37347           Report bugs to <bug-coreutils@gnu.org>.
37348           Report Gentoo bugs to <http://bugs.gentoo.org/>.
37349           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
37350           General help using GNU software: <http://www.gnu.org/gethelp/>.
37351         * lib/version-etc.c: Print new information, if provided.
37352         * m4/version-etc.m4: New file.
37353         * modules/version-etc (Files): Add m4/version-etc.m4.
37354         (configure.ac): Add gl_VERSION_ETC.
37355
37356 2009-05-31  Bruno Haible  <bruno@clisp.org>
37357
37358         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
37359         and 'int64_t'.
37360         * modules/alignof-tests (Dependencies): Add stdint.
37361         Reported by Eric Blake.
37362
37363 2009-05-31  Bruno Haible  <bruno@clisp.org>
37364
37365         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
37366         restriction due to compiler bugs.
37367         Reported by Eric Blake.
37368
37369 2009-05-31  Simon Josefsson  <simon@josefsson.org>
37370             Bruno Haible  <bruno@clisp.org>
37371
37372         Fix test-alignof failure.
37373         * lib/alignof.h (alignof_slot): New macro.
37374         (alignof_type): New macro, with the same semantics as the previous
37375         'alignof'.
37376         (alignof): Alias to alignof_slot.
37377         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
37378         check that the results are usable as constant expressions.
37379
37380 2009-05-31  Bruno Haible  <bruno@clisp.org>
37381
37382         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
37383         * tests/test-memchr.c (main): Check that memchr does not read past the
37384         first occurrence of the byte.
37385         * tests/test-strstr.c (main): Update comment.
37386         Suggested by Eric Blake.
37387
37388 2009-05-30  Bruno Haible  <bruno@clisp.org>
37389
37390         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
37391         detail how to use dumpbin.
37392         Reported by David Byron <dbyron@dbyron.com>.
37393
37394 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37395
37396         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
37397
37398 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37399
37400         * m4/manywarnings.m4: Add GCC 4.4 warnings.
37401
37402 2009-05-28  Bruno Haible  <bruno@clisp.org>
37403
37404         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
37405         build-aux/ files.
37406
37407 2009-05-28  Simon Josefsson  <simon@josefsson.org>
37408
37409         * gnulib-tool (func_import): Transform license on build-aux/ files too.
37410
37411 2009-05-27  Simon Josefsson  <simon@josefsson.org>
37412
37413         * gnulib-tool (sed_transform_main_lib_file)
37414         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
37415         regexps.
37416
37417 2009-05-26  Simon Josefsson  <simon@josefsson.org>
37418
37419         * tests/test-strstr.c: Add another self-test.
37420         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
37421         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
37422
37423 2009-05-23  Bruno Haible  <bruno@clisp.org>
37424
37425         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
37426         change.
37427
37428 2009-05-21  Bruno Haible  <bruno@clisp.org>
37429
37430         Simplify use of mode_t varargs.
37431         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
37432         uses 'mode_t' or 'int'.
37433         * lib/openat.c (openat): Likewise.
37434         * lib/open-safer.c (open_safer): Likewise.
37435         * m4/mode_t.m4: New file.
37436         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
37437         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
37438         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
37439         * modules/open (Files): Add m4/mode_t.m4.
37440         * modules/openat (Files): Likewise.
37441         * modules/fcntl-safer (Files): Likewise.
37442         Suggested by Eric Blake.
37443
37444 2009-05-21  Pádraig Brady  <P@draigbrady.com>
37445
37446         * doc/glibc-functions/fallocate.texi: New file.
37447         * doc/gnulib.texi: Include it.
37448
37449 2009-05-21  Eric Blake  <ebb9@byu.net>
37450             Bruno Haible  <bruno@clisp.org>
37451
37452         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
37453         invocations.
37454         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37455
37456 2009-05-21  Eric Blake  <ebb9@byu.net>
37457             Bruno Haible  <bruno@clisp.org>
37458
37459         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
37460         include_next. Fix of 2008-11-20 commit.
37461         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
37462         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
37463         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
37464         NEXT_MATH_H.
37465         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
37466         instead of NEXT_MATH_H.
37467
37468 2009-05-21  Bruno Haible  <bruno@clisp.org>
37469
37470         Avoid redefinition warnings for SIZE_MAX.
37471         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
37472         Reported by Simon Josefsson.
37473
37474 2009-05-21  Bruno Haible  <bruno@clisp.org>
37475
37476         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
37477         AC_CACHE_VAL.
37478
37479 2009-05-20  Bruno Haible  <bruno@clisp.org>
37480
37481         Make zeroptr.h work on mingw.
37482         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
37483         mprotect.
37484         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
37485         * modules/memchr2-tests (configure.ac): Likewise.
37486         * modules/memcmp-tests (configure.ac): Likewise.
37487         * modules/memmem-tests (configure.ac): Likewise.
37488         * modules/memrchr-tests (configure.ac): Likewise.
37489         Reported by Simon Josefsson.
37490
37491 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37492
37493         * tests/test-glob.c: Include string.h for strcmp prototype.
37494
37495 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37496
37497         * modules/getdelim (Depends-on): Add explicit stdint, although it
37498         was implicitly already pulled in via realloc-posix.
37499         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
37500
37501 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37502
37503         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37504         G. Christensen" <tgc@jupiterrise.com>.
37505         * m4/sys_socket_h.m4: Check for sa_family_t.
37506         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
37507         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
37508         * tests/test-sys_socket.c: Check that sa_family_t works.
37509
37510 2009-05-18  Eric Blake  <ebb9@byu.net>
37511
37512         maint.mk: allow gnulib_dir in VPATH build
37513         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
37514
37515 2009-05-15  Jim Meyering  <meyering@redhat.com>
37516
37517         maint.mk: Give gnulib_dir a default definition.
37518         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
37519         Thus, most packages no longer need to specify this variable in cfg.mk
37520
37521 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
37522
37523         rename.m4: fix typos that would make non-mingw cross-configure fail
37524         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
37525
37526 2009-05-13  Eric Blake  <ebb9@byu.net>
37527
37528         mmap-anon: avoid out-of-order autoconf expansion
37529         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
37530         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
37531         * modules/memchr-tests (Depends-on): Add extensions.
37532         * modules/memchr2-tests (Depends-on): Add extensions.
37533         * modules/memcmp-tests (Depends-on): Add extensions.
37534         * modules/memmem-tests (Depends-on): Add extensions.
37535         * modules/memrchr-tests (Depends-on): Add extensions.
37536
37537 2009-05-13  Bruno Haible  <bruno@clisp.org>
37538
37539         Make some tests ISO C 99 compliant.
37540         * tests/zerosize-ptr.h: New file.
37541         * tests/test-memchr.c: Include zerosize-ptr.h.
37542         (main): Use a zero-size object pointer instead of NULL.
37543         * tests/test-memchr2.c: Include zerosize-ptr.h.
37544         (main): Use a zero-size object pointer instead of NULL.
37545         * tests/test-memcmp.c: Include zerosize-ptr.h.
37546         (main): Use a zero-size object pointer instead of NULL.
37547         * tests/test-memmem.c: Include zerosize-ptr.h.
37548         (main): Use a zero-size object pointer instead of NULL.
37549         * tests/test-memrchr.c: Include zerosize-ptr.h.
37550         (main): Use a zero-size object pointer instead of NULL.
37551         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
37552         m4/mmap-anon.m4.
37553         (Depends-on): Add getpagesize.
37554         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37555         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
37556         m4/mmap-anon.m4.
37557         (Depends-on): Add getpagesize.
37558         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37559         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
37560         m4/mmap-anon.m4.
37561         (Depends-on): Add getpagesize.
37562         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37563         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
37564         m4/mmap-anon.m4.
37565         (Depends-on): Add getpagesize.
37566         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37567         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
37568         m4/mmap-anon.m4.
37569         (Depends-on): Add getpagesize.
37570         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37571
37572 2009-05-12  Bruno Haible  <bruno@clisp.org>
37573
37574         Tests for module 'alignof'.
37575         * modules/alignof-tests: New file.
37576         * tests/test-alignof.c: New file.
37577
37578 2009-05-12  Bruno Haible  <bruno@clisp.org>
37579
37580         Fix alignof macro.
37581         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
37582         vendor compilers that are always correct.
37583
37584 2009-05-12  Bruno Haible  <bruno@clisp.org>
37585
37586         Make the MAP_ANONYMOUS detection work on HP-UX 11.
37587         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
37588         not whether its fully works.
37589
37590 2009-05-12  Bruno Haible  <bruno@clisp.org>
37591
37592         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
37593
37594 2009-05-12  Jim Meyering  <meyering@redhat.com>
37595
37596         * top/maint.mk: Adjust backslash alignment.
37597
37598 2009-05-11  Simon Josefsson  <simon@josefsson.org>
37599
37600         * top/maint.mk: Make $(srcdir)/build-aux configurable.
37601
37602 2009-05-11  Eric Blake  <ebb9@byu.net>
37603
37604         argp: avoid undefined behavior
37605         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
37606         macros.
37607
37608 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37609
37610         * tests/test-vc-list-files-git.sh: Do git config of user.email and
37611         user.name to prevent git commit from complaining.
37612
37613 2009-05-10  Bruno Haible  <bruno@clisp.org>
37614
37615         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
37616         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
37617         it rewrites every file name only once.
37618         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
37619
37620 2009-05-08  Bruno Haible  <bruno@clisp.org>
37621
37622         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
37623         instead of 'max'.
37624
37625 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37626
37627         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
37628         sockaddr_storage test.
37629
37630 2009-05-07  Simon Josefsson  <simon@josefsson.org>
37631
37632         * modules/sys_socket (Makefile.am): Substitute
37633         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
37634         * m4/sys_socket_h.m4: Check for sockaddr_storage.
37635         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
37636         * tests/test-sys_socket.c: Check sockaddr_storage.
37637
37638 2009-05-08  Bruno Haible  <bruno@clisp.org>
37639
37640         New module 'alignof'.
37641         * lib/alignof.h: New file.
37642         * modules/alignof: New file.
37643
37644 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37645             Bruno Haible  <bruno@clisp.org>
37646
37647         Fix test-file-has-acl on FreeBSD.
37648         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
37649         mask is implicitly added.
37650         * tests/test-file-has-acl.c: Include <signal.h>.
37651         (main): Terminate the test after 5 seconds.
37652         * modules/acl-tests (configure.ac): Check for alarm function.
37653
37654 2009-05-04  Bruno Haible  <bruno@clisp.org>
37655
37656         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
37657         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
37658         * modules/errno (configure.ac): Drop AC_REQUIRE.
37659         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
37660         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
37661
37662 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37663
37664         * modules/glob-tests: New module.
37665         * tests/test-glob.c: Add.
37666
37667 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37668
37669         * modules/fnmatch-tests: New module.
37670         * tests/test-fnmatch.c: Add.
37671
37672 2009-05-04  Eric Blake  <ebb9@byu.net>
37673
37674         maint: make the new no-submodule-changes rule VPATH-safe
37675         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
37676
37677 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37678             Bruno Haible  <bruno@clisp.org>
37679
37680         acl: Fix infinite loop on FreeBSD.
37681         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
37682         of return value from acl_get_entry.
37683         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
37684         Likewise.
37685
37686 2009-05-03  Bruno Haible  <bruno@clisp.org>
37687
37688         * lib/acl-internal.h (acl_entries): Clarify return value.
37689         * lib/acl_entries.c (acl_entries): Likewise.
37690
37691 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37692
37693         Bug fix in acl module.
37694         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
37695
37696 2009-05-03  Bruno Haible  <bruno@clisp.org>
37697
37698         Create gperf-generated file in the source dir, not in the build dir.
37699         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
37700         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
37701         * modules/unicase/locale-language (unicase/locale-languages.h):
37702         Likewise.
37703         * modules/unicase/special-casing (unicase/special-casing-table.h):
37704         Likewise.
37705         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
37706         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
37707         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
37708         Reported by Ralf Wildenhues.
37709
37710 2009-05-03  Bruno Haible  <bruno@clisp.org>
37711
37712         * modules/fnmatch (Description, configure.ac): Taken from
37713         fnmatch-posix.
37714         * modules/fnmatch-posix: Turn into a symbolic reference to the
37715         'fnmatch' module, and deprecate.
37716         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
37717
37718 2009-05-03  Bruno Haible  <bruno@clisp.org>
37719
37720         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
37721         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
37722         Reported by Ralf Wildenhues.
37723
37724 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37725
37726         * m4/fnmatch.m4: Fix fnmatch re-define.
37727
37728 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37729
37730         priv-set: new module and tests; adapt write-any-file
37731         * lib/priv-set.c: New file.
37732         * lib/priv-set.h: New file.
37733         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
37734         * lib/write-any-file.c: Simplify by using priv-set module.
37735         * m4/priv-set.m4: New file.
37736         * modules/priv-set: New file.
37737         * modules/unlinkdir: Add dependency on priv-set module.
37738         * modules/write-any-file: Likewise.
37739
37740         Tests for module 'priv-set'.
37741         * modules/priv-set-tests: New file.
37742         * tests/test-priv-set.c: New file.
37743
37744 2009-05-03  Jim Meyering  <meyering@redhat.com>
37745             Bruno Haible  <bruno@clisp.org>
37746
37747         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
37748         use the converted UTF-8 variant of the name instead.
37749
37750 2009-05-03  Jim Meyering  <meyering@redhat.com>
37751
37752         tests: tighten some getdate tests
37753         * tests/test-getdate.c (main): Tighten tests: require equality,
37754         not just greater than.  Set TZ envvar to UTC0.
37755
37756 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
37757
37758         getdate: correctly interpret "next monday" when run on a Monday
37759         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
37760         that e.g., "next tues" (when run on a tuesday) results in a date
37761         that is one week in the future, and not today's date.
37762         I.e., add a week when the wday is the same as the current one.
37763         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
37764         and earlier by Martin Bernreuther and Jan Minář.
37765         * tests/test-getdate.c (main): Check that "next DAY" is always in
37766         the future and that "last DAY" is always in the past.
37767
37768 2009-05-02  Jim Meyering  <meyering@redhat.com>
37769
37770         build: ensure that a release build fails when a submodule is unclean
37771         * top/maint.mk (no-submodule-changes): New rule.
37772         (alpha beta major): Depend on it.
37773
37774 2009-05-02  Bruno Haible  <bruno@clisp.org>
37775
37776         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
37777         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
37778         shell variable gl_fnmatch_required to detect which variant is
37779         requested.
37780         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
37781         gl_FUNC_FNMATCH_POSIX.
37782         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
37783         exclude fnmatch-posix.
37784
37785 2009-05-02  Bruno Haible  <bruno@clisp.org>
37786
37787         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
37788         * modules/mbsrtowcs (License): Change to LGPLv2+.
37789         * modules/strnlen1 (License): Likewise.
37790         Reported by Simon Josefsson.
37791
37792 2009-05-02  Bruno Haible  <bruno@clisp.org>
37793
37794         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
37795         "cross".
37796         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
37797         gnulib-tool was called with option --source-base=lib.
37798
37799 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37800
37801         Use automake *-local hooks without commands, for extensibility.
37802         * modules/localcharset (Makefile.am): Rename install-exec-local
37803         rule to install-exec-localcharset, and make it a prerequisite of
37804         install-exec-local.  Likewise, rename the uninstall-local rule to
37805         uninstall-localcharset, and make it a prerequisite of the former.
37806
37807 2009-05-01  Bruno Haible  <bruno@clisp.org>
37808
37809         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
37810         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37811         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
37812         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
37813         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
37814         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37815         m4/locale-zh.m4, m4/codeset.m4.
37816
37817         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37818         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
37819         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37820         m4/locale-zh.m4.
37821
37822         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
37823         REPLACE_WCRTOMB if mbstate_t must be replaced.
37824         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
37825         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
37826
37827 2009-05-01  Bruno Haible  <bruno@clisp.org>
37828
37829         Avoid compiler warnings when redefining macros defined by <libintl.h>.
37830         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
37831         dngettext, dcngettext, textdomain, bindtextdomain,
37832         bind_textdomain_codeset): Undefine before redefining.
37833
37834 2009-04-30  Bruno Haible  <bruno@clisp.org>
37835
37836         Fix bug introduced on 2009-04-25.
37837         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
37838         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
37839         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
37840         is defined.
37841         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
37842         is defined.
37843         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
37844         is defined.
37845         Reported by Elbert_Pol <elbert.pol@gmail.com>.
37846
37847 2009-04-28  Bruno Haible  <bruno@clisp.org>
37848
37849         Comment tweaks.
37850         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
37851         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
37852         * lib/unicase.h (u*_casexfrm): Likewise.
37853         Reported by Paolo Bonzini.
37854
37855 2009-04-28  Bruno Haible  <bruno@clisp.org>
37856
37857         Fix a compilation error.
37858         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
37859         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37860         Reported by Jim Meyering.
37861
37862 2009-04-27  Bruno Haible  <bruno@clisp.org>
37863
37864         New module 'libunistring'.
37865         * modules/libunistring: New file.
37866         * m4/libunistring.m4: New file.
37867         * MODULES.html.sh (Unicode string functions): Add it.
37868
37869 2009-04-27  Eric Blake  <ebb9@byu.net>
37870
37871         maint.mk: allow package-specific header to provide <config.h>
37872         * top/maint.mk (sc_require_config_h): New variable.
37873         (sc_require_config_h, sc_require_config_h_first): Use it.
37874
37875 2009-04-27  Simon Josefsson  <simon@josefsson.org>
37876
37877         * top/maint.mk (sc_avoid_if_before_free): Except
37878         useless-if-before-free script.
37879
37880 2009-04-27  Eric Blake  <ebb9@byu.net>
37881
37882         maintainer-makefile: depend on all required helper scripts
37883         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
37884         useless-if-before-free.
37885         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
37886         version, rather than assuming gnulib checkout is available.
37887         Reported by Simen Josefsson.
37888
37889 2009-04-26  Bruno Haible  <bruno@clisp.org>
37890
37891         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
37892         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
37893         "../" or "..".
37894
37895 2009-04-26  Bruno Haible  <bruno@clisp.org>
37896
37897         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
37898         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
37899         AC_LIB_HAVE_LINKFLAGS.
37900
37901 2009-04-26  Bruno Haible  <bruno@clisp.org>
37902
37903         Simplify calling convention of u*_conv_from_encoding.
37904         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
37905         u32_conv_from_encoding): Expect a resultbuf argument and return the
37906         result directly as a pointer.
37907         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
37908         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
37909         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
37910         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
37911         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
37912         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37913         Update.
37914         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
37915         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
37916         * lib/vasnprintf.c (VASNPRINTF): Update.
37917         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
37918         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
37919         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
37920         * NEWS: Mention the change.
37921
37922 2009-04-26  Bruno Haible  <bruno@clisp.org>
37923
37924         Simplify calling convention of u*_conv_to_encoding.
37925         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37926         u32_conv_to_encoding): Expect a resultbuf argument and return the
37927         result directly as a pointer.
37928         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37929         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
37930         freeing scaled_offsets if mem_iconveha failed.
37931         * lib/unicase/u-casexfrm.h (FUNC): Update.
37932         * lib/uninorm/u-normxfrm.h (FUNC): Update.
37933         * lib/vasnprintf.c (VASNPRINTF): Update.
37934         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
37935         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
37936         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
37937         * NEWS: Mention the change.
37938
37939 2009-04-26  Bruno Haible  <bruno@clisp.org>
37940
37941         Avoid test failures on AIX and OSF/1.
37942         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
37943         malloc(0).
37944         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37945         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37946         Likewise.
37947         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
37948         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
37949         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
37950         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
37951         * doc/posix-functions/malloc.texi: Document the portability problem
37952         related to malloc(0).
37953
37954 2009-04-26  Bruno Haible  <bruno@clisp.org>
37955
37956         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
37957         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
37958         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
37959
37960 2009-04-25  Bruno Haible  <bruno@clisp.org>
37961
37962         Avoid link error when creating a namespace clean library.
37963         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
37964         as macro with arguments if already defined as an alias.
37965         * lib/signbitf.c (gl_signbitf): Don't undefine.
37966         * lib/signbitd.c (gl_signbitd): Don't undefine.
37967         * lib/signbitl.c (gl_signbitl): Don't undefine.
37968
37969 2009-04-25  Jim Meyering  <meyering@redhat.com>
37970
37971         vc-list-files: fix another quoting bug
37972         * build-aux/vc-list-files: Avoid sed backslash expansion
37973         of pathological directory names.
37974
37975 2009-04-25  Eric Blake  <ebb9@byu.net>
37976
37977         vc-list-files: fix shell quoting error
37978         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
37979         timestamp.
37980
37981 2009-04-25  Jim Meyering  <meyering@redhat.com>
37982
37983         vc-list-files: restore lost functionality with subdir argument
37984         * build-aux/vc-list-files: When given a non-"." sub-directory
37985         argument, substitute the $dir/ prefix back onto each resulting name.
37986         Otherwise, coreutils' root_tests check would fail.
37987
37988 2009-04-24  Eric Blake  <ebb9@byu.net>
37989
37990         vc-list-files: ignore git symlinks
37991         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
37992         than ls-files, to ignore git symlinks.
37993
37994         maint.mk: import improvements from m4
37995         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
37996         (move_if_change): Delete unused macro.
37997         (news-date-check, vc-diff-check): Support VPATH builds.
37998         (announcement): Likewise.  Split --bootstrap-tools list...
37999         (boostrap-tools): ...into separate list, which can be overridden
38000         in cfg.mk.
38001         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38002         requiring dependency on useless-if-before-free module.
38003         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38004         Support VPATH builds.
38005
38006 2009-04-24  Jim Meyering  <meyering@redhat.com>
38007
38008         maint.mk: remove coreutils-specific rules and variables
38009         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38010         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38011         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38012
38013         maint.mk: remove obsolete rule
38014         * top/maint.mk (rel-check): Remove rule.
38015         (WGET, WGETFLAGS): Remove now-unused variables.
38016
38017 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38018
38019         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38020         consistency.
38021
38022         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38023         '$(PATH_SEPARATOR)' instead of ':'.
38024
38025 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38026
38027         * lib/getopt1.c (main): Use 'const' for static array.
38028
38029 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38030
38031         * top/maint.mk: Sync with coreutils.
38032         * NEWS: Explain incompatibilities.
38033
38034 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38035             Bruno Haible  <bruno@clisp.org>
38036
38037         Fix cross-compilation results.
38038         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38039         statement, as third argument of AC_TRY_RUN.
38040         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38041         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38042         Likewise.
38043         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38044         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38045         Likewise.
38046         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38047         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38048         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38049
38050 2009-04-20  Bruno Haible  <bruno@clisp.org>
38051
38052         Avoid test failure on mingw.
38053         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38054
38055 2009-04-20  Bruno Haible  <bruno@clisp.org>
38056
38057         Avoid compilation error on mingw.
38058         * modules/localename-tests (Depends-on): Add locale.
38059
38060 2009-04-19  Bruno Haible  <bruno@clisp.org>
38061
38062         Support for building a shared library on Windows platforms.
38063         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38064         (main): Test the presence of UNINORM_NFC here.
38065         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38066         (main): Test the presence of UNINORM_NFD here.
38067         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38068         (main): Test the presence of UNINORM_NFKC here.
38069         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38070         (main): Test the presence of UNINORM_NFKD here.
38071
38072 2009-04-19  Bruno Haible  <bruno@clisp.org>
38073
38074         Avoid a compiler warning.
38075         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38076         Change type of variable 'sequence'.
38077
38078 2009-04-19  Bruno Haible  <bruno@clisp.org>
38079
38080         * modules/configmake (Makefile.am): When the contents of configmake.h
38081         does not change, arrange to preserve its modification time.
38082
38083 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38084
38085         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38086         gettext domain.
38087
38088 2009-04-16  Jim Meyering  <meyering@redhat.com>
38089
38090         useless-if-before-free: improve conversion code
38091         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38092         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38093
38094 2009-04-14  Bruno Haible  <bruno@clisp.org>
38095
38096         * modules/fcntl (Depends-on): Add extensions.
38097         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38098
38099 2009-04-12  Ben Pfaff  <blp@gnu.org>
38100
38101         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38102         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38103
38104 2009-03-20  Ben Pfaff  <blp@gnu.org>
38105
38106         Make rename replace existing destinations on Windows.
38107         * m4/rename.m4: Add test for Mingw.
38108         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38109         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38110         * doc/posix-functions/rename.texi: Document.
38111
38112 2009-04-10  Bruno Haible  <bruno@clisp.org>
38113
38114         New include file "iconveh.h".
38115         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38116         * lib/striconveh.h: Include it.
38117         (enum iconv_ilseq_handler): Remove definition.
38118         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38119         striconveh.h.
38120         * lib/striconveha.c: Include striconveh.h.
38121         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38122         * modules/striconveh (Files): Add lib/iconveh.h.
38123         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38124         lib/striconveh.h.
38125
38126 2009-04-10  Bruno Haible  <bruno@clisp.org>
38127
38128         * lib/uniconv.h: Update comment.
38129
38130 2009-04-10  Bruno Haible  <bruno@clisp.org>
38131
38132         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
38133         always.
38134         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38135         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38136         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38137         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
38138         "unistring-notinline.h", so that the function gets defined always.
38139         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38140         * lib/unistr/u8-uctomb.c: Likewise.
38141         * lib/unistr/u16-mbtouc.c: Likewise.
38142         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38143         * lib/unistr/u16-uctomb.c: Likewise.
38144         * lib/unistr/u32-mbtouc.c: Likewise.
38145         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38146         * lib/unistr/u32-uctomb.c: Likewise.
38147
38148 2009-04-10  Bruno Haible  <bruno@clisp.org>
38149
38150         Mark 'utime' obsolete.
38151         * modules/utime (Status, Notice): New sections.
38152         Suggested by Jim Meyering.
38153
38154         Fix cross-compile guess for utime test.
38155         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
38156         autoconf.
38157         * doc/posix-functions/utime.texi: Give more precisions.
38158         Reported by Jan <ipif@ymail.com>.
38159
38160 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
38161
38162         filevercmp: correct today's change
38163         * lib/filevercmp.c: Also handle coreutils' test inputs.
38164         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
38165
38166         Fix regression in 'filevercmp' module. Thanks Sven Joachim
38167         for reporting it.
38168         * lib/filevercmp.c: Special handle for "", "." and "..".
38169         * tests/test-filevercmp.c: Enlarge the set suite.
38170
38171 2009-04-07  Jim Meyering  <meyering@redhat.com>
38172
38173         useless-if-before-free: show how to remove braced useless free, too
38174         * build-aux/useless-if-before-free: still only in a comment, though.
38175
38176 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38177
38178         maint.mk: import changes to syntax-check macros from coreutils
38179         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38180         Use them in the relevant macros.
38181
38182 2009-04-06  Bruno Haible  <bruno@clisp.org>
38183
38184         Fix unportable use of bit-fields.
38185         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38186         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38187         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38188
38189 2009-04-06  Bruno Haible  <bruno@clisp.org>
38190
38191         Avoid test failures on AIX and OSF/1.
38192         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38193         that malloc(0) = NULL.
38194         * tests/unicase/test-u8-tolower.c (check): Likewise.
38195         * tests/unicase/test-u8-totitle.c (check): Likewise.
38196         * tests/unicase/test-u8-toupper.c (check): Likewise.
38197         * tests/unicase/test-u16-casefold.c (check): Likewise.
38198         * tests/unicase/test-u16-tolower.c (check): Likewise.
38199         * tests/unicase/test-u16-totitle.c (check): Likewise.
38200         * tests/unicase/test-u16-toupper.c (check): Likewise.
38201         * tests/unicase/test-u32-casefold.c (check): Likewise.
38202         * tests/unicase/test-u32-tolower.c (check): Likewise.
38203         * tests/unicase/test-u32-totitle.c (check): Likewise.
38204         * tests/unicase/test-u32-toupper.c (check): Likewise.
38205         * tests/uninorm/test-u8-nfc.c (check): Likewise.
38206         * tests/uninorm/test-u8-nfd.c (check): Likewise.
38207         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
38208         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
38209         * tests/uninorm/test-u16-nfc.c (check): Likewise.
38210         * tests/uninorm/test-u16-nfd.c (check): Likewise.
38211         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
38212         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
38213         * tests/uninorm/test-u32-nfc.c (check): Likewise.
38214         * tests/uninorm/test-u32-nfd.c (check): Likewise.
38215         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
38216         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
38217
38218 2009-04-05  Bruno Haible  <bruno@clisp.org>
38219
38220         Work around an autoconf limitation.
38221         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
38222         comment line if it would be longer than 3 KB.
38223
38224 2009-04-05  Bruno Haible  <bruno@clisp.org>
38225
38226         Avoid test failure with libiconv-1.13.
38227         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
38228         of the expected test results.
38229
38230 2009-04-05  Bruno Haible  <bruno@clisp.org>
38231
38232         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
38233         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
38234         that it should be installed.
38235
38236 2009-04-05  Bruno Haible  <bruno@clisp.org>
38237
38238         * gnulib-tool: New option --copy-file.
38239         (func_usage): Document it.
38240         (func_dest_tmpfilename): Moved out of func_import.
38241         (func_add_file, func_update_file): New functions, extracted from
38242         func_import.
38243         (func_import): Update.
38244
38245 2009-04-05  Karl Berry  <karl@gnu.org>
38246
38247         * README: prominently mention gnulib-tool.
38248         Rearrange sections so getting the code is near the top.
38249
38250 2009-04-05  Bruno Haible  <bruno@clisp.org>
38251
38252         * lib/unicase.h: Mention u*_cmp2.
38253         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38254         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
38255         * lib/unicase/ulc-casecmp.c: Likewise.
38256         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
38257         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
38258         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
38259         unistr/u8-cmp.
38260         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
38261         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
38262         unistr/u16-cmp.
38263         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
38264         unistr/u32-cmp.
38265
38266         * lib/uninorm.h: Mention u*_cmp2.
38267         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38268         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
38269         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
38270         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
38271         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
38272         unistr/u8-cmp.
38273         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
38274         unistr/u16-cmp.
38275         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
38276         unistr/u32-cmp.
38277
38278         New module 'unistr/u32-cmp2'.
38279         * lib/unistr/u32-cmp2.c: New file.
38280         * modules/unistr/u32-cmp2: New file.
38281
38282         New module 'unistr/u16-cmp2'.
38283         * lib/unistr/u16-cmp2.c: New file.
38284         * modules/unistr/u16-cmp2: New file.
38285
38286         New module 'unistr/u8-cmp2'.
38287         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
38288         * lib/unistr/u8-cmp2.c: New file.
38289         * lib/unistr/u-cmp2.h: New file.
38290         * modules/unistr/u8-cmp2: New file.
38291
38292 2009-04-05  Bruno Haible  <bruno@clisp.org>
38293
38294         * lib/unictype.h (uc_property_is_valid): New macro.
38295         * tests/unictype/test-pr_byname.c (main): Use it.
38296
38297         * lib/unistr.h: Doc fixes.
38298         * lib/uniconv.h: Doc fixes.
38299         * lib/unictype.h: Doc fixes.
38300
38301 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
38302
38303         Port coreutils 7.2 to Solaris 8.
38304
38305         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
38306         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
38307         for Solaris 8.  This is a bit of a hack, as it means it's the
38308         caller's responsibility to add -lnsl if needed, but most likely it
38309         won't be needed since only getaddrinfo uses this and getaddrinfo
38310         isn't needed on Solaris 8.
38311
38312         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
38313         problem to Solaris 8 encountered with coreutils 7.2, which
38314         resulted in a message "fnmatch.c:292: warning: passing argument 4
38315         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
38316         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
38317
38318 2009-04-03  Simon Josefsson  <simon@josefsson.org>
38319
38320         * m4/ld-version-script.m4: Add FIXME comment.
38321
38322 2009-04-02  Simon Josefsson  <simon@josefsson.org>
38323
38324         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
38325         SOVERSION variable.
38326
38327 2009-04-02  Bruno Haible  <bruno@clisp.org>
38328
38329         * Makefile (info, html, dvi, pdf): Combine the rules.
38330         Suggested by Jim Meyering.
38331
38332 2009-04-01  Bruno Haible  <bruno@clisp.org>
38333
38334         * Makefile (info, html, dvi, pdf): New targets.
38335         Reported by Reuben Thomas <rrt@sc3d.org>.
38336
38337 2009-04-01  Bruno Haible  <bruno@clisp.org>
38338
38339         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
38340         can be put into PATH.
38341         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
38342
38343 2009-04-01  Bruno Haible  <bruno@clisp.org>
38344
38345         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
38346
38347 2009-04-01  Bruno Haible  <bruno@clisp.org>
38348
38349         Rename module 'visibility'.
38350         * modules/lib-symbol-visibility: Renamed from modules/visibility.
38351         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
38352         * doc/gnulib.texi: Update.
38353         * MODULES.html.sh (Misc): Update.
38354         * NEWS: Mention the change.
38355
38356 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38357
38358         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
38359         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
38360         Eric Blake <ebb9@byu.net> for review.
38361         * MODULES.html.sh: Add lib-msvc-compat.
38362         * doc/gnulib.texi: Link to new section.
38363         * m4/ld-output-def.m4: New file.
38364         * doc/ld-output-def.texi: New file.
38365
38366 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38367
38368         Rename ld-version-script to lib-symbol-versions.  Suggested by
38369         Bruno Haible <bruno@clisp.org>.
38370         * modules/ld-version-script: Renamed to lib-symbol-versions.
38371         * doc/ld-version-script.texi: Fix module name.
38372         * MODULES.html.sh: Add lib-symbol-versions.
38373
38374 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38375
38376         * modules/u64-tests: New file.
38377         * tests/test-u64.c: New file.
38378
38379 2009-03-04  Simon Josefsson  <simon@josefsson.org>
38380
38381         * MODULES.html.sh: Mention u64.
38382         * modules/u64: New module.
38383         * modules/crypto/sha512: Depend on u64 module instead of providing
38384         u64.h.
38385
38386 2009-03-27  Eric Blake  <ebb9@byu.net>
38387
38388         test-strerror: make debugging EAI_SYSTEM easier
38389         * modules/getaddrinfo-tests (Depends-on): Add strerror.
38390         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
38391         failure was EAI_SYSTEM.
38392
38393 2009-03-25  Bruno Haible  <bruno@clisp.org>
38394
38395         Fix a problem with --enable-relocatable on Solaris 7.
38396         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
38397         since 2008-02-24.
38398
38399 2009-03-25  Eric Blake  <ebb9@byu.net>
38400
38401         test-sockets: avoid gcc warning
38402         * tests/test-sockets.c (main): Silence compiler warning.
38403
38404 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38405
38406         New modules nproc, pthread, contributed by Glen Lenker.
38407
38408         * MODULES.html.sh: Add pthread, nproc.
38409         * lib/nproc.c: New file.
38410         * lib/nproc.h: New file.
38411         * lib/pthread.in.h: New file.
38412         * m4/pthread.m4: New file.
38413         * modules/nproc: New file.
38414         * modules/pthread: New file.
38415
38416 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38417
38418         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
38419         New variable.
38420
38421 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
38422
38423         filevercmp: handle simple~ and numbered.~3~ backup suffixes
38424         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
38425         * tests/test-filevercmp.c: Add tests for backup suffixes.
38426
38427 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38428
38429         * modules/stdlib (Depends-on): Add stdint, needed when defining
38430         struct random_data on, for example, HP-UX 10.20.  Reported by
38431         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38432
38433 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38434
38435         * lib/readline.c (readline): Call fflush on stdout after printing
38436         prompt.
38437
38438 2009-03-20  Bruno Haible  <bruno@clisp.org>
38439
38440         Remove dependency from 'close' module to -lws2_32 on native Windows.
38441         * lib/close-hook.h: New file.
38442         * lib/close-hook.c: New file.
38443         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
38444         w32sock.h.
38445         (_gl_close_fd_maybe_socket): Remove function.
38446         (rpl_close): Invoke execute_all_close_hooks instead of
38447         _gl_close_fd_maybe_socket.
38448         * lib/sockets.c: Include close-hook.h, w32sock.h.
38449         (close_fd_maybe_socket): New function, essentially from lib/close.c.
38450         (close_sockets_hook): New variable.
38451         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
38452         (gl_sockets_cleanup): Unregister it.
38453         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
38454         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
38455         * modules/close-hook: New file.
38456         * modules/close (Files): Remove lib/w32sock.h.
38457         (Depends-on): Add close-hook.
38458         (Link): Remove section.
38459         * modules/sockets (Files): Add lib/w32sock.h.
38460         (Depends-on): Add close-hook.
38461         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
38462         invocation.
38463         * NEWS: Mention that LIB_CLOSE is gone.
38464
38465 2009-03-23  Eric Blake  <ebb9@byu.net>
38466
38467         signal-tests: test previous patch
38468         * tests/test-signal.c: New file.
38469         * modules/signal-tests: Likewise.
38470
38471         signal.h: always support 'volatile sig_atomic_t'
38472         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
38473         (gl_SIGNAL_H_DEFAULTS): Add a default.
38474         * modules/signal (Makefile.am): Substitute if needed.
38475         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
38476         users can blindly add volatile.
38477         * doc/posix-headers/signal.texi (signal.h): Document it.
38478         Reported by Matthew Woehlke.
38479
38480 2009-03-23  Jim Meyering  <meyering@redhat.com>
38481
38482         pathmax: PATH_MAX: use pathconf only when available
38483         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
38484         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
38485         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
38486         This avoids a link failure in a PSP cross-compilation environment
38487         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
38488
38489         * lib/vasnprintf.c (divide): Fix typo in comment.
38490
38491 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38492
38493         * gnulib-tool (func_filter_filelist): Fix comment.
38494
38495 2009-03-20  Bruno Haible  <bruno@clisp.org>
38496
38497         Make sockets.h self-contained.
38498         * lib/sockets.c: Include sockets.h first.
38499         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
38500
38501 2009-03-19  Eric Blake  <ebb9@byu.net>
38502
38503         doc: mention more functions added in cygwin 1.7.0
38504         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
38505         addition.
38506         * doc/posix-functions/log2f.texi: Likewise.
38507
38508 2009-03-19  Jim Meyering  <meyering@redhat.com>
38509
38510         fsusage: avoid syntax error due to statement-before-declaration
38511         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
38512         after all declarations.  Reported by Matthew Woehlke in
38513         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
38514
38515 2009-03-18  Eric Blake  <ebb9@byu.net>
38516
38517         build-aux/compile: sync from automake
38518         * build-aux/compile: New file, from automake.
38519         * config/srclist.txt: Mention build-aux/compile.
38520
38521 2009-03-17  Bruno Haible  <bruno@clisp.org>
38522
38523         * lib/git-merge-changelog.c: Fix typo in comment.
38524         Reported by Reuben Thomas <rrt@sc3d.org>.
38525
38526 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
38527
38528         * m4/regex.m4: update and improve help for
38529         --without-included-regex.
38530
38531 2009-03-17  Simon Josefsson  <simon@josefsson.org>
38532
38533         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
38534         failure on missing include files.
38535
38536 2009-03-17  Eric Blake  <ebb9@byu.net>
38537
38538         doc: mention more functions added in cygwin 1.7.0
38539         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
38540         addition.
38541         * doc/posix-functions/fwscanf.texi: Likewise.
38542         * doc/posix-functions/swprintf.texi: Likewise.
38543         * doc/posix-functions/swscanf.texi: Likewise.
38544         * doc/posix-functions/vfwprintf.texi: Likewise.
38545         * doc/posix-functions/vfwscanf.texi: Likewise.
38546         * doc/posix-functions/vswprintf.texi: Likewise.
38547         * doc/posix-functions/vswscanf.texi: Likewise.
38548         * doc/posix-functions/vwprintf.texi: Likewise.
38549         * doc/posix-functions/vwscanf.texi: Likewise.
38550         * doc/posix-functions/wcscasecmp.texi: Likewise.
38551         * doc/posix-functions/wcsdup.texi: Likewise.
38552         * doc/posix-functions/wcsftime.texi: Likewise.
38553         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38554         * doc/posix-functions/wprintf.texi: Likewise.
38555         * doc/posix-functions/wscanf.texi: Likewise.
38556         * doc/glibc-functions/gethostbyname2.texi: Likewise.
38557
38558 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38559
38560         maint.mk: really add $(AM_MAKEFLAGS)
38561         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
38562         was inadvertently omitted in the last commit.
38563         Spotted by Bruno Haible.
38564
38565         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
38566         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
38567         $(AM_MAKEFLAGS)' rather than plain `make'.
38568
38569         gnulib-tool: execute $MAKE not make
38570         * gnulib-tool: Default $MAKE to 'make'.
38571         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
38572         than make.  Initialize $MAKE in the do-autobuild script.
38573
38574         gnulib-tool: use $MAKE not make in generated files
38575         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
38576         make, in generated files.  Initialize $MAKE in the do-autobuild
38577         script.
38578
38579         * top/GNUmakefile (_have-git-version-gen): Fix typo.
38580
38581         GNUmakefile: disable parallelism only for multiple, recursive targets
38582         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
38583         additions in the Makefile.
38584         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
38585         by Automake.
38586         (.NOTPARALLEL): Only disable parallel builds if multiple targets
38587         are listed on the command line and at least one of them is
38588         listed in $(ALL_RECURSIVE_TARGETS).
38589
38590 2009-03-14  Bruno Haible  <bruno@clisp.org>
38591
38592         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
38593         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
38594         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
38595         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
38596         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
38597         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
38598         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
38599         unistr/u8-uctomb.
38600         * modules/unistr/u8-strchr (Depends-on): Likewise.
38601         * modules/unistr/u8-strrchr (Depends-on): Likewise.
38602         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
38603         unistr/u16-uctomb.
38604         * modules/unistr/u16-strchr (Depends-on): Likewise.
38605         * modules/unistr/u16-strrchr (Depends-on): Likewise.
38606
38607 2009-03-12  Bruno Haible  <bruno@clisp.org>
38608
38609         Work around select() bug on Interix 3.5.
38610         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
38611         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
38612         * m4/select.m4: New file.
38613         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
38614         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
38615         * modules/select (Files): Add m4/select.m4.
38616         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
38617         * modules/nanosleep (Depends-on): Add select.
38618         * modules/poll (Depends-on): Likewise.
38619         * doc/posix-functions/select.texi: Mention the Interix bug.
38620         Reported by Markus Duft <mduft@gentoo.org>.
38621
38622         * lib/select.c: Renamed from lib/winsock-select.c.
38623         * modules/select (Files): Add lib/select.c, remove
38624         lib/winsock-select.c.
38625         (configure.ac): Update.
38626
38627 2009-03-12  Jim Meyering  <meyering@redhat.com>
38628
38629         avoid gcc warnings about unused macro definitions
38630         * lib/readtokens.c (STREQ): Remove unused definition.
38631         * lib/xmalloc.c (SIZE_MAX): Likewise.
38632         * lib/openat-die.c (N_): Likewise.
38633         * lib/mountlist.c (SIZE_MAX): Remove definition.
38634         Instead, include <stdint.h>.
38635         * lib/readutmp.c: Likewise.
38636         * modules/readutmp (Depends-on): Add stdint.
38637         * modules/mountlist (Depends-on): Add stdint.
38638         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
38639
38640 2009-03-10  Bruno Haible  <bruno@clisp.org>
38641
38642         Tests for module 'mbmemcasecoll'.
38643         * modules/mbmemcasecoll-tests: New file.
38644         * tests/test-mbmemcasecoll1.sh: New file.
38645         * tests/test-mbmemcasecoll2.sh: New file.
38646         * tests/test-mbmemcasecoll3.sh: New file.
38647         * tests/test-mbmemcasecoll.c: New file.
38648
38649         New module 'mbmemcasecoll'.
38650         * lib/mbmemcasecoll.h: New file.
38651         * lib/mbmemcasecoll.c: New file.
38652         * modules/mbmemcasecoll: New file.
38653
38654         * tests/test-mbmemcasecmp.h: New file, extracted from
38655         tests/test-mbmemcasecmp.c.
38656         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
38657         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
38658         (main): Update.
38659         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
38660
38661 2009-03-09  Bruno Haible  <bruno@clisp.org>
38662
38663         Tests for module 'mbmemcasecmp'.
38664         * modules/mbmemcasecmp-tests: New file.
38665         * tests/test-mbmemcasecmp1.sh: New file.
38666         * tests/test-mbmemcasecmp2.sh: New file.
38667         * tests/test-mbmemcasecmp3.sh: New file.
38668         * tests/test-mbmemcasecmp.c: New file.
38669
38670         New module 'mbmemcasecmp'.
38671         * lib/mbmemcasecmp.h: New file.
38672         * lib/mbmemcasecmp.c: New file.
38673         * modules/mbmemcasecmp: New file.
38674
38675 2009-03-09  Bruno Haible  <bruno@clisp.org>
38676
38677         Tests for module 'unicase/ulc-casecoll'.
38678         * modules/unicase/ulc-casecoll-tests: New file.
38679         * tests/unicase/test-ulc-casecoll1.sh: New file.
38680         * tests/unicase/test-ulc-casecoll2.sh: New file.
38681         * tests/unicase/test-ulc-casecoll.c: New file.
38682
38683         New module 'unicase/ulc-casecoll'.
38684         * lib/unicase.h (ulc_casecoll): New declaration.
38685         * lib/unicase/ulc-casecoll.c: New file.
38686         * modules/unicase/ulc-casecoll: New file.
38687
38688         New module 'unicase/ulc-casexfrm'.
38689         * lib/unicase.h (ulc_casexfrm): New declaration.
38690         * lib/unicase/ulc-casexfrm.c: New file.
38691         * modules/unicase/ulc-casexfrm: New file.
38692
38693 2009-03-09  Bruno Haible  <bruno@clisp.org>
38694
38695         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
38696         invocations.
38697
38698         * m4/mbscasecmp.m4: Remove file.
38699         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
38700         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
38701
38702         * m4/mbscasestr.m4: Remove file.
38703         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
38704         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
38705
38706         * m4/mbschr.m4: Remove file.
38707         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
38708         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
38709
38710         * m4/mbscspn.m4: Remove file.
38711         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
38712         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
38713
38714         * m4/mbslen.m4: Remove file.
38715         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
38716         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
38717
38718         * m4/mbsncasecmp.m4: Remove file.
38719         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
38720         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
38721
38722         * m4/mbsnlen.m4: Remove file.
38723         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
38724         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
38725
38726         * m4/mbspbrk.m4: Remove file.
38727         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
38728         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
38729
38730         * m4/mbspcasecmp.m4: Remove file.
38731         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
38732         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
38733
38734         * m4/mbsrchr.m4: Remove file.
38735         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
38736         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
38737
38738         * m4/mbssep.m4: Remove file.
38739         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
38740         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
38741
38742         * m4/mbsspn.m4: Remove file.
38743         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
38744         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
38745
38746         * m4/mbsstr.m4: Remove file.
38747         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
38748         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
38749
38750         * m4/mbstok_r.m4: Remove file.
38751         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
38752         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
38753
38754         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
38755
38756         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
38757         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
38758
38759         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
38760
38761 2009-03-08  Bruno Haible  <bruno@clisp.org>
38762
38763         Tests for module 'unicase/ulc-casecmp'.
38764         * modules/unicase/ulc-casecmp-tests: New file.
38765         * tests/unicase/test-ulc-casecmp1.sh: New file.
38766         * tests/unicase/test-ulc-casecmp2.sh: New file.
38767         * tests/unicase/test-ulc-casecmp.c: New file.
38768
38769         New module 'unicase/ulc-casecmp'.
38770         * lib/unicase.h (ulc_casecmp): New declaration.
38771         * lib/unicase/ulc-casecmp.c: New file.
38772         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
38773         'const SRC_UNIT *'.
38774         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
38775         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
38776         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
38777         * modules/unicase/ulc-casecmp: New file.
38778
38779         Tests for module 'unicase/u32-is-cased'.
38780         * modules/unicase/u32-is-cased-tests: New file.
38781         * tests/unicase/test-u32-is-cased.c: New file.
38782
38783         Tests for module 'unicase/u16-is-cased'.
38784         * modules/unicase/u16-is-cased-tests: New file.
38785         * tests/unicase/test-u16-is-cased.c: New file.
38786
38787         Tests for module 'unicase/u8-is-cased'.
38788         * modules/unicase/u8-is-cased-tests: New file.
38789         * tests/unicase/test-u8-is-cased.c: New file.
38790         * tests/unicase/test-is-cased.h: New file.
38791
38792         New module 'unicase/u32-is-cased'.
38793         * lib/unicase/u32-is-cased.c: New file.
38794         * modules/unicase/u32-is-cased: New file.
38795
38796         New module 'unicase/u16-is-cased'.
38797         * lib/unicase/u16-is-cased.c: New file.
38798         * modules/unicase/u16-is-cased: New file.
38799
38800         New module 'unicase/u8-is-cased'.
38801         * lib/unicase/u8-is-cased.c: New file.
38802         * lib/unicase/u-is-cased.h: New file.
38803         * modules/unicase/u8-is-cased: New file.
38804
38805         Tests for module 'unicase/u32-is-casefolded'.
38806         * modules/unicase/u32-is-casefolded-tests: New file.
38807         * tests/unicase/test-u32-is-casefolded.c: New file.
38808
38809         Tests for module 'unicase/u16-is-casefolded'.
38810         * modules/unicase/u16-is-casefolded-tests: New file.
38811         * tests/unicase/test-u16-is-casefolded.c: New file.
38812
38813         Tests for module 'unicase/u8-is-casefolded'.
38814         * modules/unicase/u8-is-casefolded-tests: New file.
38815         * tests/unicase/test-u8-is-casefolded.c: New file.
38816         * tests/unicase/test-is-casefolded.h: New file.
38817
38818         New module 'unicase/u32-is-casefolded'.
38819         * lib/unicase/u32-is-casefolded.c: New file.
38820         * modules/unicase/u32-is-casefolded: New file.
38821
38822         New module 'unicase/u16-is-casefolded'.
38823         * lib/unicase/u16-is-casefolded.c: New file.
38824         * modules/unicase/u16-is-casefolded: New file.
38825
38826         New module 'unicase/u8-is-casefolded'.
38827         * lib/unicase/u8-is-casefolded.c: New file.
38828         * modules/unicase/u8-is-casefolded: New file.
38829
38830         Tests for module 'unicase/u32-is-titlecase'.
38831         * modules/unicase/u32-is-titlecase-tests: New file.
38832         * tests/unicase/test-u32-is-titlecase.c: New file.
38833
38834         Tests for module 'unicase/u16-is-titlecase'.
38835         * modules/unicase/u16-is-titlecase-tests: New file.
38836         * tests/unicase/test-u16-is-titlecase.c: New file.
38837
38838         Tests for module 'unicase/u8-is-titlecase'.
38839         * modules/unicase/u8-is-titlecase-tests: New file.
38840         * tests/unicase/test-u8-is-titlecase.c: New file.
38841         * tests/unicase/test-is-titlecase.h: New file.
38842
38843         New module 'unicase/u32-is-titlecase'.
38844         * lib/unicase/u32-is-titlecase.c: New file.
38845         * modules/unicase/u32-is-titlecase: New file.
38846
38847         New module 'unicase/u16-is-titlecase'.
38848         * lib/unicase/u16-is-titlecase.c: New file.
38849         * modules/unicase/u16-is-titlecase: New file.
38850
38851         New module 'unicase/u8-is-titlecase'.
38852         * lib/unicase/u8-is-titlecase.c: New file.
38853         * modules/unicase/u8-is-titlecase: New file.
38854
38855         Tests for module 'unicase/u32-is-lowercase'.
38856         * modules/unicase/u32-is-lowercase-tests: New file.
38857         * tests/unicase/test-u32-is-lowercase.c: New file.
38858
38859         Tests for module 'unicase/u16-is-lowercase'.
38860         * modules/unicase/u16-is-lowercase-tests: New file.
38861         * tests/unicase/test-u16-is-lowercase.c: New file.
38862
38863         Tests for module 'unicase/u8-is-lowercase'.
38864         * modules/unicase/u8-is-lowercase-tests: New file.
38865         * tests/unicase/test-u8-is-lowercase.c: New file.
38866         * tests/unicase/test-is-lowercase.h: New file.
38867
38868         New module 'unicase/u32-is-lowercase'.
38869         * lib/unicase/u32-is-lowercase.c: New file.
38870         * modules/unicase/u32-is-lowercase: New file.
38871
38872         New module 'unicase/u16-is-lowercase'.
38873         * lib/unicase/u16-is-lowercase.c: New file.
38874         * modules/unicase/u16-is-lowercase: New file.
38875
38876         New module 'unicase/u8-is-lowercase'.
38877         * lib/unicase/u8-is-lowercase.c: New file.
38878         * modules/unicase/u8-is-lowercase: New file.
38879
38880         Tests for module 'unicase/u32-is-uppercase'.
38881         * modules/unicase/u32-is-uppercase-tests: New file.
38882         * tests/unicase/test-u32-is-uppercase.c: New file.
38883
38884         Tests for module 'unicase/u16-is-uppercase'.
38885         * modules/unicase/u16-is-uppercase-tests: New file.
38886         * tests/unicase/test-u16-is-uppercase.c: New file.
38887
38888         Tests for module 'unicase/u8-is-uppercase'.
38889         * modules/unicase/u8-is-uppercase-tests: New file.
38890         * tests/unicase/test-u8-is-uppercase.c: New file.
38891         * tests/unicase/test-is-uppercase.h: New file.
38892
38893         New module 'unicase/u32-is-uppercase'.
38894         * lib/unicase/u32-is-uppercase.c: New file.
38895         * modules/unicase/u32-is-uppercase: New file.
38896
38897         New module 'unicase/u16-is-uppercase'.
38898         * lib/unicase/u16-is-uppercase.c: New file.
38899         * modules/unicase/u16-is-uppercase: New file.
38900
38901         New module 'unicase/u8-is-uppercase'.
38902         * lib/unicase/u8-is-uppercase.c: New file.
38903         * modules/unicase/u8-is-uppercase: New file.
38904
38905         New module 'unicase/u32-is-invariant'.
38906         * lib/unicase/u32-is-invariant.c: New file.
38907         * modules/unicase/u32-is-invariant: New file.
38908
38909         New module 'unicase/u16-is-invariant'.
38910         * lib/unicase/u16-is-invariant.c: New file.
38911         * modules/unicase/u16-is-invariant: New file.
38912
38913         New module 'unicase/u8-is-invariant'.
38914         * lib/unicase/u8-is-invariant.c: New file.
38915         * lib/unicase/invariant.h: New file.
38916         * lib/unicase/u-is-invariant.h: New file.
38917         * modules/unicase/u8-is-invariant: New file.
38918
38919         Tests for module 'unicase/u32-casecoll'.
38920         * modules/unicase/u32-casecoll-tests: New file.
38921         * tests/unicase/test-u32-casecoll.c: New file.
38922
38923         Tests for module 'unicase/u16-casecoll'.
38924         * modules/unicase/u16-casecoll-tests: New file.
38925         * tests/unicase/test-u16-casecoll.c: New file.
38926
38927         Tests for module 'unicase/u8-casecoll'.
38928         * modules/unicase/u8-casecoll-tests: New file.
38929         * tests/unicase/test-u8-casecoll.c: New file.
38930
38931         New module 'unicase/u32-casecoll'.
38932         * lib/unicase/u32-casecoll.c: New file.
38933         * modules/unicase/u32-casecoll: New file.
38934
38935         New module 'unicase/u16-casecoll'.
38936         * lib/unicase/u16-casecoll.c: New file.
38937         * modules/unicase/u16-casecoll: New file.
38938
38939         New module 'unicase/u8-casecoll'.
38940         * lib/unicase/u8-casecoll.c: New file.
38941         * lib/unicase/u-casecoll.h: New file.
38942         * modules/unicase/u8-casecoll: New file.
38943
38944         New module 'unicase/u32-casexfrm'.
38945         * lib/unicase/u32-casexfrm.c: New file.
38946         * modules/unicase/u32-casexfrm: New file.
38947
38948         New module 'unicase/u16-casexfrm'.
38949         * lib/unicase/u16-casexfrm.c: New file.
38950         * modules/unicase/u16-casexfrm: New file.
38951
38952         New module 'unicase/u8-casexfrm'.
38953         * lib/unicase/u8-casexfrm.c: New file.
38954         * lib/unicase/u-casexfrm.h: New file.
38955         * modules/unicase/u8-casexfrm: New file.
38956
38957         Tests for module 'unicase/u32-casecmp'.
38958         * modules/unicase/u32-casecmp-tests: New file.
38959         * tests/unicase/test-u32-casecmp.c: New file.
38960
38961         Tests for module 'unicase/u16-casecmp'.
38962         * modules/unicase/u16-casecmp-tests: New file.
38963         * tests/unicase/test-u16-casecmp.c: New file.
38964
38965         Tests for module 'unicase/u8-casecmp'.
38966         * modules/unicase/u8-casecmp-tests: New file.
38967         * tests/unicase/test-u8-casecmp.c: New file.
38968         * tests/unicase/test-casecmp.h: New file.
38969
38970         New module 'unicase/u32-casecmp'.
38971         * lib/unicase/u32-casecmp.c: New file.
38972         * modules/unicase/u32-casecmp: New file.
38973
38974         New module 'unicase/u16-casecmp'.
38975         * lib/unicase/u16-casecmp.c: New file.
38976         * modules/unicase/u16-casecmp: New file.
38977
38978         New module 'unicase/u8-casecmp'.
38979         * lib/unicase/u8-casecmp.c: New file.
38980         * lib/unicase/u-casecmp.h: New file.
38981         * modules/unicase/u8-casecmp: New file.
38982
38983         Tests for module 'unicase/u32-casefold'.
38984         * modules/unicase/u32-casefold-tests: New file.
38985         * tests/unicase/test-u32-casefold.c: New file.
38986
38987         Tests for module 'unicase/u16-casefold'.
38988         * modules/unicase/u16-casefold-tests: New file.
38989         * tests/unicase/test-u16-casefold.c: New file.
38990
38991         Tests for module 'unicase/u8-casefold'.
38992         * modules/unicase/u8-casefold-tests: New file.
38993         * tests/unicase/test-u8-casefold.c: New file.
38994
38995         New module 'unicase/u32-casefold'.
38996         * lib/unicase/u32-casefold.c: New file.
38997         * modules/unicase/u32-casefold: New file.
38998
38999         New module 'unicase/u16-casefold'.
39000         * lib/unicase/u16-casefold.c: New file.
39001         * modules/unicase/u16-casefold: New file.
39002
39003         New module 'unicase/u8-casefold'.
39004         * lib/unicase/u8-casefold.c: New file.
39005         * lib/unicase/u-casefold.h: New file.
39006         * modules/unicase/u8-casefold: New file.
39007
39008         New module 'unicase/tocasefold'.
39009         * lib/unicase/casefold.h: New file.
39010         * lib/unicase/tocasefold.c: New file.
39011         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39012         * modules/unicase/tocasefold: New file.
39013
39014         Tests for module 'unicase/u32-totitle'.
39015         * modules/unicase/u32-totitle-tests: New file.
39016         * tests/unicase/test-u32-totitle.c: New file.
39017
39018         Tests for module 'unicase/u16-totitle'.
39019         * modules/unicase/u16-totitle-tests: New file.
39020         * tests/unicase/test-u16-totitle.c: New file.
39021
39022         Tests for module 'unicase/u8-totitle'.
39023         * modules/unicase/u8-totitle-tests: New file.
39024         * tests/unicase/test-u8-totitle.c: New file.
39025
39026         New module 'unicase/u32-totitle'.
39027         * lib/unicase/u32-totitle.c: New file.
39028         * modules/unicase/u32-totitle: New file.
39029
39030         New module 'unicase/u16-totitle'.
39031         * lib/unicase/u16-totitle.c: New file.
39032         * modules/unicase/u16-totitle: New file.
39033
39034         New module 'unicase/u8-totitle'.
39035         * lib/unicase/u8-totitle.c: New file.
39036         * lib/unicase/u-totitle.h: New file.
39037         * modules/unicase/u8-totitle: New file.
39038
39039         Tests for module 'unicase/u32-tolower'.
39040         * modules/unicase/u32-tolower-tests: New file.
39041         * tests/unicase/test-u32-tolower.c: New file.
39042
39043         Tests for module 'unicase/u16-tolower'.
39044         * modules/unicase/u16-tolower-tests: New file.
39045         * tests/unicase/test-u16-tolower.c: New file.
39046
39047         Tests for module 'unicase/u8-tolower'.
39048         * modules/unicase/u8-tolower-tests: New file.
39049         * tests/unicase/test-u8-tolower.c: New file.
39050
39051         New module 'unicase/u32-tolower'.
39052         * lib/unicase/u32-tolower.c: New file.
39053         * modules/unicase/u32-tolower: New file.
39054
39055         New module 'unicase/u16-tolower'.
39056         * lib/unicase/u16-tolower.c: New file.
39057         * modules/unicase/u16-tolower: New file.
39058
39059         New module 'unicase/u8-tolower'.
39060         * lib/unicase/u8-tolower.c: New file.
39061         * modules/unicase/u8-tolower: New file.
39062
39063         Tests for module 'unicase/u32-toupper'.
39064         * modules/unicase/u32-toupper-tests: New file.
39065         * tests/unicase/test-u32-toupper.c: New file.
39066
39067         Tests for module 'unicase/u16-toupper'.
39068         * modules/unicase/u16-toupper-tests: New file.
39069         * tests/unicase/test-u16-toupper.c: New file.
39070
39071         Tests for module 'unicase/u8-toupper'.
39072         * modules/unicase/u8-toupper-tests: New file.
39073         * tests/unicase/test-u8-toupper.c: New file.
39074
39075         New module 'unicase/u32-toupper'.
39076         * lib/unicase/u32-toupper.c: New file.
39077         * modules/unicase/u32-toupper: New file.
39078
39079         New module 'unicase/u16-toupper'.
39080         * lib/unicase/u16-toupper.c: New file.
39081         * modules/unicase/u16-toupper: New file.
39082
39083         New module 'unicase/u8-toupper'.
39084         * lib/unicase/u8-toupper.c: New file.
39085         * modules/unicase/u8-toupper: New file.
39086
39087         New module 'unicase/u32-casemap'.
39088         * lib/unicase/u32-casemap.c: New file.
39089         * modules/unicase/u32-casemap: New file.
39090
39091         New module 'unicase/u16-casemap'.
39092         * lib/unicase/u16-casemap.c: New file.
39093         * modules/unicase/u16-casemap: New file.
39094
39095         New module 'unicase/u8-casemap'.
39096         * lib/unicase/unicasemap.h: New file.
39097         * lib/unicase/u8-casemap.c: New file.
39098         * lib/unicase/u-casemap.h: New file.
39099         * modules/unicase/u8-casemap: New file.
39100
39101         New module 'unicase/special-casing'.
39102         * lib/unicase/special-casing.h: New file.
39103         * lib/unicase/special-casing.c: New file.
39104         * lib/unicase/special-casing-table.gperf: New file, generated by
39105         gen-uni-tables.c.
39106         * modules/unicase/special-casing: New file.
39107
39108         Tests for module 'unicase/locale-language'.
39109         * modules/unicase/locale-language-tests: New file.
39110         * tests/unicase/test-locale-language.sh: New file.
39111         * tests/unicase/test-locale-language.c: New file.
39112
39113         New module 'unicase/locale-language'.
39114         * lib/unicase/locale-language.c: New file.
39115         * lib/unicase/locale-languages.gperf: New file.
39116         * modules/unicase/locale-language: New file.
39117
39118         Generate more tables for case conversion and case folding.
39119         * lib/gen-uni-tables.c (SCC_*): New enum items.
39120         (struct special_casing_rule): New type.
39121         (casing_rules, num_casing_rules, allocated_casing_rules): New
39122         variables.
39123         (add_casing_rule, fill_casing_rules): New functions.
39124         (struct casefold_rule): New type.
39125         (casefolding_rules, num_casefolding_rules,
39126         allocated_casefolding_rules): New variables.
39127         (fill_casefolding_rules): New function.
39128         (unicode_casefold): New variable.
39129         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
39130         sort_casing_rules, output_casing_rules): New functions.
39131         (main): Accept to more arguments: SpecialCasing.txt and
39132         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
39133         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
39134         Output mapping for casefolding.
39135
39136         * lib/unicase.h: Include stdbool.h, uninorm.h.
39137         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
39138         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
39139         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
39140         arguments.
39141         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
39142         resultp arguments.
39143         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
39144         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
39145         resultp arguments.
39146         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
39147         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
39148         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
39149         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
39150         declarations.
39151         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
39152
39153 2009-03-08  Bruno Haible  <bruno@clisp.org>
39154
39155         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39156         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
39157         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
39158         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39159
39160 2009-03-07  Bruno Haible  <bruno@clisp.org>
39161
39162         Adjust u*_normcmp, u*_normcoll API.
39163         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39164         u16_normcoll, u32_normcoll): Change failure conventions.
39165         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
39166         errno and return -1.
39167         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39168
39169 2009-03-07  Bruno Haible  <bruno@clisp.org>
39170
39171         Tests for module 'uninorm/u32-normcoll'.
39172         * modules/uninorm/u32-normcoll-tests: New file.
39173         * tests/uninorm/test-u32-normcoll.c: New file.
39174
39175         Tests for module 'uninorm/u16-normcoll'.
39176         * modules/uninorm/u16-normcoll-tests: New file.
39177         * tests/uninorm/test-u16-normcoll.c: New file.
39178
39179         Tests for module 'uninorm/u8-normcoll'.
39180         * modules/uninorm/u8-normcoll-tests: New file.
39181         * tests/uninorm/test-u8-normcoll.c: New file.
39182
39183 2009-03-07  Bruno Haible  <bruno@clisp.org>
39184
39185         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39186         tests/uninorm/test-u32-normcmp.c.
39187         * tests/uninorm/test-u32-normcmp.c: Include it.
39188         (test_nonascii): New function, extracted from main. Add some more
39189         tests.
39190         (main): Invoke test_ascii and test_nonascii.
39191         * modules/uninorm/u32-normcmp-tests (Files): Add
39192         tests/uninorm/test-u32-normcmp.h.
39193         (Depends-on): Remove uninorm/u32-normcmp.
39194
39195         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39196         tests/uninorm/test-u16-normcmp.c.
39197         * tests/uninorm/test-u16-normcmp.c: Include it.
39198         (test_nonascii): New function, extracted from main. Add some more
39199         tests.
39200         (main): Invoke test_ascii and test_nonascii.
39201         * modules/uninorm/u16-normcmp-tests (Files): Add
39202         tests/uninorm/test-u16-normcmp.h.
39203         (Depends-on): Remove uninorm/u16-normcmp.
39204
39205         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
39206         tests/uninorm/test-u8-normcmp.c.
39207         * tests/uninorm/test-u8-normcmp.c: Include it.
39208         (test_nonascii): New function, extracted from main. Add some more
39209         tests.
39210         (main): Invoke test_ascii and test_nonascii.
39211         * modules/uninorm/u8-normcmp-tests (Files): Add
39212         tests/uninorm/test-u8-normcmp.h.
39213         (Depends-on): Remove uninorm/u8-normcmp.
39214
39215 2009-03-07  Bruno Haible  <bruno@clisp.org>
39216
39217         New module 'uninorm/u32-normcoll'.
39218         * lib/uninorm/u32-normcoll.c: New file.
39219         * modules/uninorm/u32-normcoll: New file.
39220
39221         New module 'uninorm/u16-normcoll'.
39222         * lib/uninorm/u16-normcoll.c: New file.
39223         * modules/uninorm/u16-normcoll: New file.
39224
39225         New module 'uninorm/u8-normcoll'.
39226         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
39227         declarations.
39228         * lib/uninorm/u8-normcoll.c: New file.
39229         * lib/uninorm/u-normcoll.h: New file.
39230         * modules/uninorm/u8-normcoll: New file.
39231
39232         New module 'uninorm/u32-normxfrm'.
39233         * lib/uninorm/u32-normxfrm.c: New file.
39234         * modules/uninorm/u32-normxfrm: New file.
39235
39236         New module 'uninorm/u16-normxfrm'.
39237         * lib/uninorm/u16-normxfrm.c: New file.
39238         * modules/uninorm/u16-normxfrm: New file.
39239
39240         New module 'uninorm/u8-normxfrm'.
39241         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
39242         declarations.
39243         * lib/uninorm/u8-normxfrm.c: New file.
39244         * lib/uninorm/u-normxfrm.h: New file.
39245         * modules/uninorm/u8-normxfrm: New file.
39246
39247 2009-03-07  Bruno Haible  <bruno@clisp.org>
39248
39249         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
39250         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
39251         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
39252
39253 2009-03-07  Bruno Haible  <bruno@clisp.org>
39254
39255         New module 'memxfrm'.
39256         * lib/memxfrm.h: New file.
39257         * lib/memxfrm.c: New file.
39258         * modules/memxfrm: New file.
39259
39260 2009-03-07  Bruno Haible  <bruno@clisp.org>
39261
39262         New module 'memcmp2'.
39263         * lib/memcmp2.h: New file.
39264         * lib/memcmp2.c: New file.
39265         * modules/memcmp2: New file.
39266
39267 2009-03-07  Bruno Haible  <bruno@clisp.org>
39268
39269         Tests for module 'uninorm/decomposing-form'.
39270         * modules/uninorm/decomposing-form-tests: New file.
39271         * tests/uninorm/test-decomposing-form.c: New file.
39272
39273         New module 'uninorm/decomposing-form'.
39274         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
39275         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
39276         Add 'decomposing_variant' field.
39277         * lib/uninorm/decomposing-form.c: New file.
39278         * lib/uninorm/nfc.c (uninorm_nfc): Update.
39279         * lib/uninorm/nfd.c (uninorm_nfd): Update.
39280         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
39281         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
39282         * modules/uninorm/decomposing-form: New file.
39283         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
39284         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
39285
39286 2009-03-07  Bruno Haible  <bruno@clisp.org>
39287
39288         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
39289         strings.
39290
39291 2009-03-06  Bruno Haible  <bruno@clisp.org>
39292
39293         Tests for module 'uninorm/u32-normcmp'.
39294         * tests/uninorm/test-u32-normcmp.c: New file.
39295         * modules/uninorm/u32-normcmp-tests: New file.
39296
39297         Tests for module 'uninorm/u16-normcmp'.
39298         * tests/uninorm/test-u16-normcmp.c: New file.
39299         * modules/uninorm/u16-normcmp-tests: New file.
39300
39301         Tests for module 'uninorm/u8-normcmp'.
39302         * tests/uninorm/test-u8-normcmp.c: New file.
39303         * modules/uninorm/u8-normcmp-tests: New file.
39304
39305         New module 'uninorm/u32-normcmp'.
39306         * lib/uninorm/u32-normcmp.c: New file.
39307         * modules/uninorm/u32-normcmp: New file.
39308
39309         New module 'uninorm/u16-normcmp'.
39310         * lib/uninorm/u16-normcmp.c: New file.
39311         * modules/uninorm/u16-normcmp: New file.
39312
39313         New module 'uninorm/u8-normcmp'.
39314         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
39315         declarations.
39316         * lib/uninorm/u8-normcmp.c: New file.
39317         * lib/uninorm/u-normcmp.h: New file.
39318         * modules/uninorm/u8-normcmp: New file.
39319
39320 2009-03-06  Bruno Haible  <bruno@clisp.org>
39321
39322         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
39323         Reported by Eric Blake.
39324
39325 2009-03-06  Eric Blake  <ebb9@byu.net>
39326             Bruno Haible  <bruno@clisp.org>
39327
39328         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
39329         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
39330         condition.
39331         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39332         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
39333         condition.
39334         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39335
39336 2009-03-06  Eric Blake  <ebb9@byu.net>
39337
39338         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
39339         to avoid compiler warnings.
39340         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
39341
39342 2009-03-05  Bruno Haible  <bruno@clisp.org>
39343
39344         * tests/test-ftell.c (main): Disable test beyond end of file on
39345         FreeMiNT.
39346         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39347
39348 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
39349
39350         * lib/filevercmp.c: Move hidden files up in ordering.
39351         * tests/test-filevercmp.c: Add tests for hidden files.
39352
39353 2009-03-04  Bruno Haible  <bruno@clisp.org>
39354
39355         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
39356         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
39357         AM_CFLAGS.
39358         Reported by Simon Josefsson.
39359
39360 2009-03-03  Bruno Haible  <bruno@clisp.org>
39361
39362         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
39363         Reported by Simon Josefsson.
39364
39365         * doc/ld-version-script.texi: Update node reference.
39366
39367 2009-03-03  Bruno Haible  <bruno@clisp.org>
39368
39369         * modules/visibility (License): Change to 'unlimited'.
39370         Suggested by Simon Josefsson.
39371
39372 2009-03-03  Jim Meyering  <meyering@redhat.com>
39373
39374         unlinkdir: cannot_unlink_dir may modify process state
39375         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
39376         it's neither thread-safe nor appropriate for use in a library.
39377
39378 2009-03-03  Eric Blake  <ebb9@byu.net>
39379
39380         test-closein: silence test under Darwin
39381         * tests/test-closein.sh: Ignore stderr from cat, since we don't
39382         care if it dies from EPIPE or EBADF.
39383
39384 2009-03-03  Bruno Haible  <bruno@clisp.org>
39385
39386         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
39387         earlier.
39388         * doc/visibility.texi: Fix @node and @section.
39389
39390 2009-03-03  Simon Josefsson  <simon@josefsson.org>
39391
39392         * doc/gnulib.texi: Link to sections for ld version script and
39393         visibility.
39394         * doc/visibility.texi: Add @node and @section.
39395         * modules/ld-version-script: New module.
39396         * m4/ld-version-script.m4: New file.
39397         * doc/ld-version-script.texi: New file.
39398
39399 2009-03-02  David Lutterkort  <lutter@redhat.com>
39400
39401         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
39402         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39403
39404 2009-03-02  Bruno Haible  <bruno@clisp.org>
39405
39406         * doc/visibility.texi: Mention libtool's -export-symbols option.
39407
39408 2009-03-02  Jim Meyering  <meyering@redhat.com>
39409
39410         announce-gen: new option: --no-print-checksums
39411         * build-aux/announce-gen (usage): Describe it.
39412         (print_checksums): Print a newline here, not in the [*] footnote.
39413         (main): Honor it.
39414
39415 2009-03-01  Bruno Haible  <bruno@clisp.org>
39416
39417         Use socklen_t in the native Windows replacements prototypes.
39418         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
39419         instead of 'int'.
39420         * lib/getsockopt.c (rpl_getsockopt): Likewise.
39421         * lib/setsockopt.c (rpl_setsockopt): Likewise.
39422         * modules/getsockopt (Depends-on): Add socklen.
39423         * modules/setsockopt (Depends-on): Add socklen.
39424
39425 2009-03-01  Bruno Haible  <bruno@clisp.org>
39426
39427         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
39428         least 4.2.
39429
39430 2009-03-01  Eric Blake  <ebb9@byu.net>
39431             Bruno Haible  <bruno@clisp.org>
39432
39433         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
39434         error messages.
39435         * lib/wait-process.c (wait_subprocess): Omit error message about
39436         deadly signal sent to the child of termsigp != NULL.
39437
39438 2009-03-01  Eric Blake  <ebb9@byu.net>
39439
39440         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
39441
39442 2009-03-01  Bruno Haible  <bruno@clisp.org>
39443
39444         Avoid a gcc warning.
39445         * tests/test-sched.c (b): Make global.
39446         Reported by Eric Blake.
39447
39448 2009-01-19  Martin Lambers  <marlam@marlam.de>
39449
39450         Provide POSIX semantics for socket timeout options on W32.
39451         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
39452         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
39453         * modules/setsockopt: Depend on sys_time module for struct timeval.
39454         * modules/getsockopt: Depend on sys_time module for struct timeval.
39455
39456 2009-03-01  Simon Josefsson  <simon@josefsson.org>
39457
39458         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
39459         __USE_GNU, for consistency with netdb.in.h.
39460         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39461
39462 2009-03-01  Bruno Haible  <bruno@clisp.org>
39463
39464         More support for FreeMiNT.
39465         * lib/fseeko.c (rpl_fseeko): Complete last commit.
39466         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39467
39468 2009-03-01  Bruno Haible  <bruno@clisp.org>
39469
39470         More support for FreeMiNT.
39471         * lib/fpurge.c (fpurge): Correct last commit.
39472         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39473
39474 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39475
39476         Fix unportable awk script in vc-list-files.
39477         * build-aux/vc-list-files: In the replacement awk script, use
39478         substr with a second argument of 1, not zero.
39479         Report by Simon Josefsson.
39480
39481 2009-02-28  Bruno Haible  <bruno@clisp.org>
39482
39483         More support for FreeMiNT.
39484         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
39485         to FreeMiNT today.
39486         * lib/fwriting.c (fwriting): Likewise.
39487         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
39488
39489 2009-02-28  Bruno Haible  <bruno@clisp.org>
39490
39491         * tests/test-freadseek.c (main): Disable test beyond end of file on
39492         FreeMiNT.
39493         * tests/test-ftello.c (main): Likewise.
39494         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39495
39496 2009-02-28  Bruno Haible  <bruno@clisp.org>
39497
39498         Add tentative support for FreeMiNT.
39499         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
39500         * lib/fpurge.c (fpurge): Likewise.
39501         * lib/freadable.c (freadable): Likewise.
39502         * lib/freading.c (freading): Likewise.
39503         * lib/freadptr.c (freadptr): Likewise.
39504         * lib/freadseek.c (freadptrinc): Likewise.
39505         * lib/fseeko.c (rpl_fseeko): Likewise.
39506         * lib/fseterr.c (fseterr): Likewise.
39507         * lib/fwritable.c (fwritable): Likewise.
39508         * lib/fwriting.c (fwriting): Likewise.
39509         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
39510         Hourihane.
39511         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39512
39513 2009-02-28  Bruno Haible  <bruno@clisp.org>
39514
39515         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
39516         SIGCHLD.
39517         Reported by Jim Meyering.
39518
39519 2009-02-28  Bruno Haible  <bruno@clisp.org>
39520
39521         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
39522         Mention the results of these tests on various platforms.
39523         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
39524         order.
39525         * doc/posix-functions/printf.texi: Likewise.
39526         * doc/posix-functions/snprintf.texi: Likewise.
39527         * doc/posix-functions/sprintf.texi: Likewise.
39528         * doc/posix-functions/vfprintf.texi: Likewise.
39529         * doc/posix-functions/vprintf.texi: Likewise.
39530         * doc/posix-functions/vsnprintf.texi: Likewise.
39531         * doc/posix-functions/vsprintf.texi: Likewise.
39532         * doc/glibc-functions/obstack_printf.texi: Likewise.
39533         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39534
39535 2009-02-28  Bruno Haible  <bruno@clisp.org>
39536
39537         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
39538         Reported by Loïc Minier <lool@dooz.org>.
39539
39540 2009-02-27  Bruno Haible  <bruno@clisp.org>
39541
39542         * gnulib-tool (func_import): Make the sed expression used to create the
39543         sed script for updating the .gitignore file POSIX compliant.
39544         Reported by Eric Blake.
39545
39546 2009-02-27  Bruno Haible  <bruno@clisp.org>
39547
39548         * gnulib-tool (sed): Don't alias as "sed --posix".
39549         Reported by Eric Blake.
39550
39551 2009-02-27  Bruno Haible  <bruno@clisp.org>
39552
39553         Avoid test link errors.
39554         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
39555         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
39556         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
39557         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
39558         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39559
39560 2009-02-27  Bruno Haible  <bruno@clisp.org>
39561
39562         Avoid spurious "(cached)" in configure output.
39563         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
39564         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
39565         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39566         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39567         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39568         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
39569         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39570         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
39571         Reported by Eric Blake.
39572
39573 2009-02-27  Eric Blake  <ebb9@byu.net>
39574
39575         printf: fix regression in previous patch
39576         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
39577
39578 2009-02-27  Bruno Haible  <bruno@clisp.org>
39579
39580         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
39581         value.
39582         * lib/stdint.in.h: Likewise.
39583         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
39584
39585 2009-02-27  Eric Blake  <ebb9@byu.net>
39586
39587         doc: mention more functions added in cygwin 1.7.0
39588         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
39589         addition.
39590         * doc/posix-functions/open_wmemstream.texi: Likewise.
39591         * doc/posix-functions/wcsnlen.texi: Likewise.
39592         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39593         * doc/posix-functions/wcstod.texi: Likewise.
39594         * doc/posix-functions/wcstof.texi: Likewise.
39595         * doc/posix-functions/wcstoimax.texi: Likewise.
39596         * doc/posix-functions/wcstok.texi: Likewise.
39597         * doc/posix-functions/wcstoumax.texi: Likewise.
39598
39599         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
39600         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
39601         * doc/posix-functions/fprintf.texi: Update.
39602         * doc/posix-functions/printf.texi: Update.
39603         * doc/posix-functions/snprintf.texi: Update.
39604         * doc/posix-functions/sprintf.texi: Update.
39605         * doc/posix-functions/vfprintf.texi: Update.
39606         * doc/posix-functions/vprintf.texi: Update.
39607         * doc/posix-functions/vsnprintf.texi: Update.
39608         * doc/posix-functions/vsprintf.texi: Update.
39609         * doc/glibc-functions/obstack_printf.texi: Update.
39610         * doc/glibc-functions/obstack_vprintf.texi: Update.
39611
39612 2009-02-26  Eric Blake  <ebb9@byu.net>
39613
39614         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
39615         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
39616         compilation bug by using runtime conversion.
39617         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
39618         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
39619         * modules/ceill-tests (Files): Use nan.h.
39620         * modules/floorl-tests (Files): Likewise.
39621         * modules/frexpl-tests (Files): Likewise.
39622         * modules/isnanl-tests (Files): Likewise.
39623         * modules/ldexpl-tests (Files): Likewise.
39624         * modules/roundl-tests (Files): Likewise.
39625         * modules/truncl-tests (Files): Likewise.
39626         * tests/test-ceill.c (main): Use a working NaN.
39627         * tests/test-floorl.c (main): Likewise.
39628         * tests/test-frexpl.c (main): Likewise.
39629         * tests/test-isnan.c (test_long_double): Likewise.
39630         * tests/test-isnanl.h (main): Likewise.
39631         * tests/test-ldexpl.h (main): Likewise.
39632         * tests/test-roundl.h (main): Likewise.
39633         * tests/test-truncl.h (main): Likewise.
39634         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
39635
39636 2009-02-26  Eric Blake  <ebb9@byu.net>
39637             Bruno Haible  <bruno@clisp.org>
39638
39639         Work around a *printf bug with %ls on Solaris.
39640         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
39641         precision is specified, sprintf stops converting the wide string
39642         argument when the number of bytes that have been produced by this
39643         conversion equals or exceeds the precision.
39644         * doc/posix-functions/fprintf.texi: Update.
39645         * doc/posix-functions/printf.texi: Update.
39646         * doc/posix-functions/snprintf.texi: Update.
39647         * doc/posix-functions/sprintf.texi: Update.
39648         * doc/posix-functions/vfprintf.texi: Update.
39649         * doc/posix-functions/vprintf.texi: Update.
39650         * doc/posix-functions/vsnprintf.texi: Update.
39651         * doc/posix-functions/vsprintf.texi: Update.
39652         * doc/glibc-functions/obstack_printf.texi: Update.
39653         * doc/glibc-functions/obstack_vprintf.texi: Update.
39654
39655 2009-02-26  Eric Blake  <ebb9@byu.net>
39656
39657         stdlib: favor compiler check of random.h
39658         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
39659         to avoid an ObjC random.h installed by Swarm.
39660
39661 2009-02-26  Bruno Haible  <bruno@clisp.org>
39662
39663         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
39664         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
39665         Reported by Gary V. Vaughan <gary@gnu.org>.
39666
39667 2009-02-26  Bruno Haible  <bruno@clisp.org>
39668
39669         Fix *printf behaviour regarding the %ls directive.
39670         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
39671         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
39672         NEED_PRINTF_DIRECTIVE_LS.
39673         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
39674         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39675         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39676         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
39677         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
39678         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
39679         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39680         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39681         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39682         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39683         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39684         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
39685         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39686         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39687         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39688         * doc/posix-functions/fprintf.texi: Update.
39689         * doc/posix-functions/printf.texi: Update.
39690         * doc/posix-functions/snprintf.texi: Update.
39691         * doc/posix-functions/sprintf.texi: Update.
39692         * doc/posix-functions/vfprintf.texi: Update.
39693         * doc/posix-functions/vprintf.texi: Update.
39694         * doc/posix-functions/vsnprintf.texi: Update.
39695         * doc/posix-functions/vsprintf.texi: Update.
39696         * doc/glibc-functions/obstack_printf.texi: Update.
39697         * doc/glibc-functions/obstack_vprintf.texi: Update.
39698         Reported by Eric Blake.
39699
39700 2009-02-25  Bruno Haible  <bruno@clisp.org>
39701
39702         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
39703         with known value.
39704         Reported by Gary V. Vaughan <gary@gnu.org>.
39705
39706 2009-02-25  Bruno Haible  <bruno@clisp.org>
39707
39708         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
39709         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
39710         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
39711         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
39712         Reported by Gary V. Vaughan <gary@gnu.org>.
39713
39714 2009-02-25  Bruno Haible  <bruno@clisp.org>
39715
39716         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
39717         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
39718         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
39719         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
39720         Reported by Gary V. Vaughan <gary@gnu.org>.
39721
39722 2009-02-25  Eric Blake  <ebb9@byu.net>
39723
39724         tests: skip fseek/ftell tests if ungetc is broken
39725         * m4/ungetc.m4: New file.
39726         * modules/fseek-tests: Split test, so ungetc dependency is
39727         separate from rest of test.
39728         * modules/fseeko-tests: Likewise.
39729         * modules/ftell-tests: Likewise.
39730         * modules/ftello-tests: Likewise.
39731         * tests/test-fseek.c (main): Isolate ungetc dependency.
39732         * tests/test-fseeko.c (main): Likewise.
39733         * tests/test-ftell.c (main): Likewise.
39734         * tests/test-ftello.c (main): Likewise.
39735         * tests/test-fseek2.sh: New file.
39736         * tests/test-fseeko2.sh: Likewise.
39737         * tests/test-ftell2.sh: Likewise.
39738         * tests/test-ftello2.sh: Likewise.
39739
39740 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
39741
39742         test-getaddrinfo: fix usage of skip return code 77
39743         * tests/test-gettaddrinfo.c: Return skip code 77 only
39744         for first occurance of skip (4x77 is not 77)
39745
39746 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
39747
39748         strtod: avoid C99 decl-after-statement
39749         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
39750
39751 2009-02-24  Eric Blake  <ebb9@byu.net>
39752
39753         strtod: detect HP-UX 11.31 bug
39754         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
39755         Reported by Gary V. Vaughan.
39756
39757 2009-02-23  Bruno Haible  <bruno@clisp.org>
39758
39759         Fix invalid read past end of memory block.
39760         * lib/vasnprintf.c (DCHAR_SET): Define.
39761         (local_wcslen): Define only when needed.
39762         (local_strnlen, local_wcsnlen): New functions.
39763         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
39764         directives that involve a conversion ourselves.
39765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
39766         wcsnlen, mbrtowc, wcrtomb.
39767         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
39768         * tests/test-vasprintf-posix.c (test_function): Likewise.
39769         * tests/test-snprintf-posix.h (test_function): Likewise.
39770         * tests/test-sprintf-posix.h (test_function): Likewise.
39771         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39772
39773 2009-02-22  Bruno Haible  <bruno@clisp.org>
39774
39775         Implement new clarified decomposition of Hangul syllables.
39776         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
39777         of type LTV, return only a pairwise decomposition.
39778         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
39779         Likewise.
39780         * tests/uninorm/test-decomposition.c (main): Updated expected result.
39781         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
39782         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
39783
39784 2009-02-22  Bruno Haible  <bruno@clisp.org>
39785
39786         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
39787         zero-length results and shrink excess allocated memory.
39788         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
39789         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
39790         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
39791         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
39792         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
39793         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
39794         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
39795         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
39796         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
39797         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
39798         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
39799         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
39800
39801 2009-02-21  Bruno Haible  <bruno@clisp.org>
39802
39803         * doc/gnulib.texi: Include safe-alloc.texi earlier.
39804         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
39805         spaces after a period. Put a space between a macro name and its
39806         argument list. Trivial rewordings.
39807         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
39808         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
39809         (main): Return 0 explicitly.
39810
39811 2009-02-21  Bruno Haible  <bruno@clisp.org>
39812
39813         Tests for module 'uninorm/filter'.
39814         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
39815         * modules/uninorm/filter-tests: New file.
39816
39817         New module 'uninorm/filter'.
39818         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
39819         uninorm_filter_flush, uninorm_filter_free): New declarations.
39820         * lib/uninorm/uninorm-filter.c: New file.
39821         * modules/uninorm/filter: New file.
39822
39823 2009-02-21  Bruno Haible  <bruno@clisp.org>
39824
39825         Tests for module 'uninorm/nfkc'.
39826         * tests/uninorm/test-nfkc.c: New file.
39827         * tests/uninorm/test-u8-nfkc.c: New file.
39828         * tests/uninorm/test-u16-nfkc.c: New file.
39829         * tests/uninorm/test-u32-nfkc.c: New file.
39830         * tests/uninorm/test-u32-nfkc-big.sh: New file.
39831         * tests/uninorm/test-u32-nfkc-big.c: New file.
39832         * modules/uninorm/nfkc-tests: New file.
39833
39834         New module 'uninorm/nfkc'.
39835         * lib/uninorm/nfkc.c: New file.
39836         * modules/uninorm/nfkc: New file.
39837
39838         Tests for module 'uninorm/nfkd'.
39839         * tests/uninorm/test-nfkd.c: New file.
39840         * tests/uninorm/test-u8-nfkd.c: New file.
39841         * tests/uninorm/test-u16-nfkd.c: New file.
39842         * tests/uninorm/test-u32-nfkd.c: New file.
39843         * tests/uninorm/test-u32-nfkd-big.sh: New file.
39844         * tests/uninorm/test-u32-nfkd-big.c: New file.
39845         * modules/uninorm/nfkd-tests: New file.
39846
39847         New module 'uninorm/nfkd'.
39848         * lib/uninorm/nfkd.c: New file.
39849         * modules/uninorm/nfkd: New file.
39850
39851         Tests for module 'uninorm/nfc'.
39852         * tests/uninorm/test-nfc.c: New file.
39853         * tests/uninorm/test-u8-nfc.c: New file.
39854         * tests/uninorm/test-u16-nfc.c: New file.
39855         * tests/uninorm/test-u32-nfc.c: New file.
39856         * tests/uninorm/test-u32-nfc-big.sh: New file.
39857         * tests/uninorm/test-u32-nfc-big.c: New file.
39858         * modules/uninorm/nfc-tests: New file.
39859
39860         New module 'uninorm/nfc'.
39861         * lib/uninorm/nfc.c: New file.
39862         * modules/uninorm/nfc: New file.
39863
39864         Tests for module 'uninorm/nfd'.
39865         * tests/uninorm/test-nfd.c: New file.
39866         * tests/uninorm/test-u8-nfd.c: New file.
39867         * tests/uninorm/test-u16-nfd.c: New file.
39868         * tests/uninorm/test-u32-nfd.c: New file.
39869         * tests/uninorm/test-u32-nfd-big.sh: New file.
39870         * tests/uninorm/test-u32-nfd-big.c: New file.
39871         * tests/uninorm/test-u32-normalize-big.h: New file.
39872         * tests/uninorm/test-u32-normalize-big.c: New file.
39873         * tests/uninorm/NormalizationTest.txt: New file, created from
39874         Unicode 5.1.0 NormalizationTest.txt.
39875         * modules/uninorm/nfd-tests: New file.
39876
39877         New module 'uninorm/nfd'.
39878         * lib/uninorm/nfd.c: New file.
39879         * modules/uninorm/nfd: New file.
39880
39881         New module 'uninorm/u32-normalize'.
39882         * lib/uninorm/u32-normalize.c: New file.
39883         * modules/uninorm/u32-normalize: New file.
39884
39885         New module 'uninorm/u16-normalize'.
39886         * lib/uninorm/u16-normalize.c: New file.
39887         * modules/uninorm/u16-normalize: New file.
39888
39889         New module 'uninorm/u8-normalize'.
39890         * lib/uninorm/u8-normalize.c: New file.
39891         * lib/uninorm/normalize-internal.h: New file.
39892         * lib/uninorm/u-normalize-internal.h: New file.
39893         * modules/uninorm/u8-normalize: New file.
39894
39895         New module 'uninorm/decompose-internal'.
39896         * lib/uninorm/decompose-internal.c: New file.
39897         * modules/uninorm/decompose-internal: New file.
39898
39899         Tests for module 'uninorm/composition'.
39900         * tests/uninorm/test-composition.c: New file.
39901         * modules/uninorm/composition-tests: New file.
39902
39903         New module 'uninorm/composition'.
39904         * lib/uninorm/composition.c: New file.
39905         * lib/uninorm/composition-table.gperf: New file, generated by
39906         gen-uni-tables.
39907         * modules/uninorm/composition: New file.
39908
39909         Tests for module 'uninorm/compat-decomposition'.
39910         * tests/uninorm/test-compat-decomposition.c: New file.
39911         * modules/uninorm/compat-decomposition-tests: New file.
39912
39913         New module 'uninorm/compat-decomposition'.
39914         * lib/uninorm/decompose-internal.h: New file.
39915         * lib/uninorm/compat-decomposition.c: New file.
39916         * modules/uninorm/compat-decomposition: New file.
39917
39918         Tests for module 'uninorm/canonical-decomposition'.
39919         * tests/uninorm/test-canonical-decomposition.c: New file.
39920         * modules/uninorm/canonical-decomposition-tests: New file.
39921
39922         New module 'uninorm/canonical-decomposition'.
39923         * lib/uninorm/canonical-decomposition.c: New file.
39924         * modules/uninorm/canonical-decomposition: New file.
39925
39926         Tests for module 'uninorm/decomposition'.
39927         * tests/uninorm/test-decomposition.c: New file.
39928         * modules/uninorm/decomposition-tests: New file.
39929
39930         New module 'uninorm/decomposition'.
39931         * lib/uninorm/decomposition.c: New file.
39932         * modules/uninorm/decomposition: New file.
39933
39934         New module 'uninorm/decomposition-table'.
39935         * lib/uninorm/decomposition-table.h: New file.
39936         * lib/uninorm/decomposition-table.c: New file.
39937         * lib/uninorm/decomposition-table1.h: New file, generated by
39938         gen-uni-tables.
39939         * lib/uninorm/decomposition-table2.h: New file, generated by
39940         gen-uni-tables.
39941         * modules/uninorm/decomposition-table: New file.
39942
39943         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
39944         (UC_DECOMP_*): New enumeration items.
39945         (get_decomposition): New function.
39946         (struct decomp_table): New type.
39947         (output_decomposition, output_decomposition_tables): New functions.
39948         (unicode_composition_exclusions): New variable.
39949         (fill_composition_exclusions, debug_output_composition_tables): New
39950         functions.
39951         (main): Accept one more argument. Invoke fill_composition_exclusions.
39952         Output decomposition and composition tables.
39953
39954         New module 'uninorm/base'.
39955         * lib/uninorm.h: New file.
39956         * lib/unictype.h: Update comment.
39957         * modules/uninorm/base: New file.
39958
39959 2009-02-21  David Lutterkort  <lutter@redhat.com>
39960
39961         Tests for module 'safe-alloc'.
39962         * tests/test-safe-alloc.c: New file.
39963         * modules/safe-alloc-tests: New file.
39964
39965         New module 'safe-alloc'.
39966         * lib/safe-alloc.h: New file.
39967         * lib/safe-alloc.c: New file.
39968         * m4/safe-alloc.m4: New file.
39969         * modules/safe-alloc: New file.
39970         * doc/safe-alloc.texi: New file.
39971         * doc/gnulib.texi: Include it.
39972         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
39973         safe-alloc.
39974
39975 2009-02-18  Bruno Haible  <bruno@clisp.org>
39976
39977         Fix link error on non-glibc systems.
39978         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
39979         variable.
39980         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39981
39982 2009-02-18  Jim Meyering  <meyering@redhat.com>
39983
39984         fts: avoid used-uninitialized error due to recent change
39985         * lib/fts.c (fts_read): Guard uses of the new member,
39986         parent->fts_n_dirs_remaining, since it's not relevant for
39987         the parent of a directory specified on the command-line.
39988
39989 2009-02-17  James Youngman  <jay@gnu.org>
39990             Bruno Haible  <bruno@clisp.org>
39991
39992         * m4/include_next.m4: Reformulate comment.
39993
39994 2009-02-16  Jim Meyering  <meyering@redhat.com>
39995
39996         fts: add #if guards so that the fts_lgpl module still builds
39997         * lib/fts.c: Guard just-added hash-table-using parts with
39998         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
39999         Reported by Simon Josefsson.
40000
40001 2009-02-15  Bruno Haible  <bruno@clisp.org>
40002
40003         * modules/array-mergesort-tests: New file.
40004         * tests/test-array-mergesort.c: New file.
40005
40006         New module 'array-mergesort'.
40007         * modules/array-mergesort: New file.
40008         * lib/array-mergesort.h: New file.
40009
40010 2009-02-15  Bruno Haible  <bruno@clisp.org>
40011
40012         Fix 2009-02-07 commit.
40013         * lib/gen-uni-tables.c (output_predicate, output_category,
40014         output_combclass, output_bidi_category, output_decimal_digit,
40015         output_digit, output_numeric, output_mirror, output_scripts,
40016         output_ident_category, output_simple_mapping): Fix format directives.
40017         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40018
40019 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40020
40021         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40022         fixes are available from IBM.
40023
40024 2009-02-13  Jim Meyering  <meyering@redhat.com>
40025
40026         fts: arrange not to stat non-directories in more cases
40027         This makes GNU find (when it doesn't need to stat each file)
40028         *much* more efficient at traversing reiserfs file systems.
40029         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40030         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40031         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40032         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40033         (leaf_optimization_applies): New function.
40034         (LCO_hash, LCO_compare): New helper functions.
40035         (link_count_optimize_ok): New function.
40036         (fts_stat): Initialize new member (if dir).
40037         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40038         we've just stat'ed a directory.  Skip the stat call when possible.
40039         ---
40040         Note this AFS-related exchange:
40041         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40042         and note find's pioctl call in find/fstype.c.
40043         But that is necessary only if you want to enable the
40044         optimization for AFS, and for now, I don't.
40045
40046         fts: move a function definition "up" (no semantic change)
40047         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40048         "up" to precede upcoming use of a related function.
40049
40050 2009-02-11  Jim Meyering  <meyering@redhat.com>
40051
40052         fts: correct internal computation of nlinks (optimization-related)
40053         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40054         whether the current entry is a directory, so don't test it.
40055
40056 2009-02-10  Bruno Haible  <bruno@clisp.org>
40057
40058         Tests for module 'uniwbrk/ulc-wordbreaks'.
40059         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40060         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40061         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40062
40063         Tests for module 'uniwbrk/u32-wordbreaks'.
40064         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40065         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40066
40067         Tests for module 'uniwbrk/u16-wordbreaks'.
40068         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40069         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40070
40071         Tests for module 'uniwbrk/u8-wordbreaks'.
40072         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40073         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40074
40075 2009-02-10  Bruno Haible  <bruno@clisp.org>
40076
40077         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40078         property.
40079         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40080         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40081         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40082
40083 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40084
40085         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40086         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40087
40088 2009-02-10  Bruno Haible  <bruno@clisp.org>
40089
40090         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40091         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40092         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40093         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40094         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40095         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40096
40097 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40098
40099         * lib/sockets.h (gl_fd_to_handle): New function.
40100
40101         * tests/test-sockets.c: Call gl_fd_to_handle.
40102
40103 2009-02-09  Bruno Haible  <bruno@clisp.org>
40104
40105         * doc/havelib.texi: Document the conventions on bi-arch systems.
40106
40107 2009-02-08  Bruno Haible  <bruno@clisp.org>
40108
40109         Document the AC_LIB_LINKFLAGS macro.
40110         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40111         * doc/gnulib.texi: Include it.
40112
40113 2009-02-08  Bruno Haible  <bruno@clisp.org>
40114
40115         Fix wrong order of sections, compared to TOC.
40116         * doc/gnulib.texi: Include relocatable-maint.texi after the
40117         "Regular expressions" node, not before.
40118
40119 2009-02-08  Bruno Haible  <bruno@clisp.org>
40120
40121         Tests for module 'unicase/totitle'.
40122         * modules/unicase/totitle-tests: New file.
40123
40124         Tests for module 'unicase/tolower'.
40125         * modules/unicase/tolower-tests: New file.
40126
40127         Tests for module 'unicase/toupper'.
40128         * modules/unicase/toupper-tests: New file.
40129         * tests/unicase/test-mapping-part1.h: New file.
40130         * tests/unicase/test-mapping-part2.h: New file.
40131
40132         New module 'unicase/totitle'.
40133         * modules/unicase/totitle: New file.
40134         * lib/unicase/totitle.c: New file.
40135
40136         New module 'unicase/tolower'.
40137         * modules/unicase/tolower: New file.
40138         * lib/unicase/tolower.c: New file.
40139
40140         New module 'unicase/toupper'.
40141         * modules/unicase/toupper: New file.
40142         * lib/unicase/toupper.c: New file.
40143         * lib/unicase/simple-mapping.h: New file.
40144
40145         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
40146         (mapping_table): New structure.
40147         (output_simple_mapping): New function.
40148         (main): Invoke output_simple_mapping_test and output_simple_mapping.
40149         * modules/gen-uni-tables (Description): Update.
40150         * lib/unicase/toupper.h: New file, automatically generated by
40151         gen-uni-tables.
40152         * lib/unicase/tolower.h: New file, automatically generated by
40153         gen-uni-tables.
40154         * lib/unicase/totitle.h: New file, automatically generated by
40155         gen-uni-tables.
40156         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
40157         gen-uni-tables.
40158         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
40159         gen-uni-tables.
40160         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
40161         gen-uni-tables.
40162
40163         New module 'unicase/base'.
40164         * modules/unicase/base: New file.
40165         * lib/unicase.h: New file.
40166
40167 2009-02-08  Bruno Haible  <bruno@clisp.org>
40168
40169         New module 'uniwbrk/ulc-wordbreaks'.
40170         * modules/uniwbrk/ulc-wordbreaks: New file.
40171         * lib/uniwbrk/ulc-wordbreaks.c: New file.
40172
40173         New module 'uniwbrk/u32-wordbreaks'.
40174         * modules/uniwbrk/u32-wordbreaks: New file.
40175         * lib/uniwbrk/u32-wordbreaks.c: New file.
40176
40177         New module 'uniwbrk/u16-wordbreaks'.
40178         * modules/uniwbrk/u16-wordbreaks: New file.
40179         * lib/uniwbrk/u16-wordbreaks.c: New file.
40180
40181         New module 'uniwbrk/u8-wordbreaks'.
40182         * modules/uniwbrk/u8-wordbreaks: New file.
40183         * lib/uniwbrk/u8-wordbreaks.c: New file.
40184         * lib/uniwbrk/u-wordbreaks.h: New file.
40185
40186         New module 'uniwbrk/table'.
40187         * modules/uniwbrk/table: New file.
40188         * lib/uniwbrk/wbrktable.h: New file.
40189         * lib/uniwbrk/wbrktable.c: New file.
40190
40191         New module 'uniwbrk/wordbreak-property'.
40192         * modules/uniwbrk/wordbreak-property: New file.
40193         * lib/uniwbrk/wordbreak-property.c: New file.
40194
40195         * lib/gen-uni-tables.c (WBP_*): New enum items.
40196         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40197         (unicode_org_wbp): New variable.
40198         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40199         New functions.
40200         (wbp_table): New structure.
40201         (output_wbp, output_wbrk_tables): New functions.
40202         (main): Accept additional argument. Invoke fill_org_wbp,
40203         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40204         output_wbrk_tables.
40205         * modules/gen-uni-tables (Description): Update.
40206         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
40207         gen-uni-tables.
40208
40209         New module 'uniwbrk/base'.
40210         * modules/uniwbrk/base: New file.
40211         * lib/uniwbrk.h: New file.
40212
40213 2009-02-08  Bruno Haible  <bruno@clisp.org>
40214
40215         Update to Unicode 5.1.0.
40216         * lib/gen-uni-tables.c (is_property_alphabetic): Include
40217         U+2185..U+2188.
40218         (is_property_default_ignorable_code_point): Don't include characters
40219         of category Cc or Cs and not-a-characters.
40220         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
40221         U+0D79, U+109E, U+109F, U+A60C.
40222         * lib/unictype/bidi_of.h: Regenerated.
40223         * lib/unictype/blocks.h: Regenerated.
40224         * lib/unictype/categ_C.h: Regenerated.
40225         * lib/unictype/categ_Cf.h: Regenerated.
40226         * lib/unictype/categ_Cn.h: Regenerated.
40227         * lib/unictype/categ_L.h: Regenerated.
40228         * lib/unictype/categ_Ll.h: Regenerated.
40229         * lib/unictype/categ_Lm.h: Regenerated.
40230         * lib/unictype/categ_Lo.h: Regenerated.
40231         * lib/unictype/categ_Lu.h: Regenerated.
40232         * lib/unictype/categ_M.h: Regenerated.
40233         * lib/unictype/categ_Mc.h: Regenerated.
40234         * lib/unictype/categ_Me.h: Regenerated.
40235         * lib/unictype/categ_Mn.h: Regenerated.
40236         * lib/unictype/categ_N.h: Regenerated.
40237         * lib/unictype/categ_Nd.h: Regenerated.
40238         * lib/unictype/categ_Nl.h: Regenerated.
40239         * lib/unictype/categ_No.h: Regenerated.
40240         * lib/unictype/categ_P.h: Regenerated.
40241         * lib/unictype/categ_Pd.h: Regenerated.
40242         * lib/unictype/categ_Pe.h: Regenerated.
40243         * lib/unictype/categ_Pf.h: Regenerated.
40244         * lib/unictype/categ_Pi.h: Regenerated.
40245         * lib/unictype/categ_Po.h: Regenerated.
40246         * lib/unictype/categ_Ps.h: Regenerated.
40247         * lib/unictype/categ_S.h: Regenerated.
40248         * lib/unictype/categ_Sk.h: Regenerated.
40249         * lib/unictype/categ_Sm.h: Regenerated.
40250         * lib/unictype/categ_So.h: Regenerated.
40251         * lib/unictype/categ_of.h: Regenerated.
40252         * lib/unictype/combining.h: Regenerated.
40253         * lib/unictype/ctype_alnum.h: Regenerated.
40254         * lib/unictype/ctype_alpha.h: Regenerated.
40255         * lib/unictype/ctype_graph.h: Regenerated.
40256         * lib/unictype/ctype_lower.h: Regenerated.
40257         * lib/unictype/ctype_print.h: Regenerated.
40258         * lib/unictype/ctype_punct.h: Regenerated.
40259         * lib/unictype/ctype_upper.h: Regenerated.
40260         * lib/unictype/decdigit.h: Regenerated.
40261         * lib/unictype/digit.h: Regenerated.
40262         * lib/unictype/mirror.h: Regenerated.
40263         * lib/unictype/numeric.h: Regenerated.
40264         * lib/unictype/pr_alphabetic.h: Regenerated.
40265         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
40266         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
40267         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
40268         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
40269         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
40270         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
40271         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
40272         * lib/unictype/pr_combining.h: Regenerated.
40273         * lib/unictype/pr_dash.h: Regenerated.
40274         * lib/unictype/pr_decimal_digit.h: Regenerated.
40275         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
40276         * lib/unictype/pr_deprecated.h: Regenerated.
40277         * lib/unictype/pr_diacritic.h: Regenerated.
40278         * lib/unictype/pr_extender.h: Regenerated.
40279         * lib/unictype/pr_format_control.h: Regenerated.
40280         * lib/unictype/pr_grapheme_base.h: Regenerated.
40281         * lib/unictype/pr_grapheme_extend.h: Regenerated.
40282         * lib/unictype/pr_grapheme_link.h: Regenerated.
40283         * lib/unictype/pr_id_continue.h: Regenerated.
40284         * lib/unictype/pr_id_start.h: Regenerated.
40285         * lib/unictype/pr_ideographic.h: Regenerated.
40286         * lib/unictype/pr_ignorable_control.h: Regenerated.
40287         * lib/unictype/pr_lowercase.h: Regenerated.
40288         * lib/unictype/pr_math.h: Regenerated.
40289         * lib/unictype/pr_numeric.h: Regenerated.
40290         * lib/unictype/pr_other_alphabetic.h: Regenerated.
40291         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
40292         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
40293         * lib/unictype/pr_other_id_continue.h: Regenerated.
40294         * lib/unictype/pr_other_lowercase.h: Regenerated.
40295         * lib/unictype/pr_other_math.h: Regenerated.
40296         * lib/unictype/pr_punctuation.h: Regenerated.
40297         * lib/unictype/pr_sentence_terminal.h: Regenerated.
40298         * lib/unictype/pr_soft_dotted.h: Regenerated.
40299         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
40300         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
40301         * lib/unictype/pr_unified_ideograph.h: Regenerated.
40302         * lib/unictype/pr_uppercase.h: Regenerated.
40303         * lib/unictype/pr_xid_continue.h: Regenerated.
40304         * lib/unictype/pr_xid_start.h: Regenerated.
40305         * lib/unictype/pr_zero_width.h: Regenerated.
40306         * lib/unictype/scripts.h: Regenerated.
40307         * lib/unictype/scripts_byname.gperf: Regenerated.
40308         * lib/unictype/sy_java_ident.h: Regenerated.
40309         * lib/unilbrk/lbrkprop1.h: Regenerated.
40310         * lib/unilbrk/lbrkprop2.h: Regenerated.
40311         * tests/unictype/test-categ_C.c: Regenerated.
40312         * tests/unictype/test-categ_Cf.c: Regenerated.
40313         * tests/unictype/test-categ_Cn.c: Regenerated.
40314         * tests/unictype/test-categ_L.c: Regenerated.
40315         * tests/unictype/test-categ_Ll.c: Regenerated.
40316         * tests/unictype/test-categ_Lm.c: Regenerated.
40317         * tests/unictype/test-categ_Lo.c: Regenerated.
40318         * tests/unictype/test-categ_Lu.c: Regenerated.
40319         * tests/unictype/test-categ_M.c: Regenerated.
40320         * tests/unictype/test-categ_Mc.c: Regenerated.
40321         * tests/unictype/test-categ_Me.c: Regenerated.
40322         * tests/unictype/test-categ_Mn.c: Regenerated.
40323         * tests/unictype/test-categ_N.c: Regenerated.
40324         * tests/unictype/test-categ_Nd.c: Regenerated.
40325         * tests/unictype/test-categ_Nl.c: Regenerated.
40326         * tests/unictype/test-categ_No.c: Regenerated.
40327         * tests/unictype/test-categ_P.c: Regenerated.
40328         * tests/unictype/test-categ_Pd.c: Regenerated.
40329         * tests/unictype/test-categ_Pe.c: Regenerated.
40330         * tests/unictype/test-categ_Pf.c: Regenerated.
40331         * tests/unictype/test-categ_Pi.c: Regenerated.
40332         * tests/unictype/test-categ_Po.c: Regenerated.
40333         * tests/unictype/test-categ_Ps.c: Regenerated.
40334         * tests/unictype/test-categ_S.c: Regenerated.
40335         * tests/unictype/test-categ_Sk.c: Regenerated.
40336         * tests/unictype/test-categ_Sm.c: Regenerated.
40337         * tests/unictype/test-categ_So.c: Regenerated.
40338         * tests/unictype/test-ctype_alnum.c: Regenerated.
40339         * tests/unictype/test-ctype_alpha.c: Regenerated.
40340         * tests/unictype/test-ctype_graph.c: Regenerated.
40341         * tests/unictype/test-ctype_lower.c: Regenerated.
40342         * tests/unictype/test-ctype_print.c: Regenerated.
40343         * tests/unictype/test-ctype_punct.c: Regenerated.
40344         * tests/unictype/test-ctype_upper.c: Regenerated.
40345         * tests/unictype/test-decdigit.h: Regenerated.
40346         * tests/unictype/test-digit.h: Regenerated.
40347         * tests/unictype/test-numeric.h: Regenerated.
40348         * tests/unictype/test-pr_alphabetic.c: Regenerated.
40349         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
40350         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
40351         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
40352         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
40353         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
40354         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
40355         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
40356         * tests/unictype/test-pr_combining.c: Regenerated.
40357         * tests/unictype/test-pr_dash.c: Regenerated.
40358         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
40359         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
40360         * tests/unictype/test-pr_deprecated.c: Regenerated.
40361         * tests/unictype/test-pr_diacritic.c: Regenerated.
40362         * tests/unictype/test-pr_extender.c: Regenerated.
40363         * tests/unictype/test-pr_format_control.c: Regenerated.
40364         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
40365         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
40366         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
40367         * tests/unictype/test-pr_id_continue.c: Regenerated.
40368         * tests/unictype/test-pr_id_start.c: Regenerated.
40369         * tests/unictype/test-pr_ideographic.c: Regenerated.
40370         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
40371         * tests/unictype/test-pr_lowercase.c: Regenerated.
40372         * tests/unictype/test-pr_math.c: Regenerated.
40373         * tests/unictype/test-pr_numeric.c: Regenerated.
40374         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
40375         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
40376         Regenerated.
40377         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
40378         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
40379         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
40380         * tests/unictype/test-pr_other_math.c: Regenerated.
40381         * tests/unictype/test-pr_punctuation.c: Regenerated.
40382         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
40383         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
40384         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
40385         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
40386         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
40387         * tests/unictype/test-pr_uppercase.c: Regenerated.
40388         * tests/unictype/test-pr_xid_continue.c: Regenerated.
40389         * tests/unictype/test-pr_xid_start.c: Regenerated.
40390         * tests/unictype/test-pr_zero_width.c: Regenerated.
40391
40392         Update to Unicode 5.1.0.
40393         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
40394         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
40395         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
40396         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
40397         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
40398         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
40399         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
40400         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
40401         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
40402         (nonspacing_table_ind): Update.
40403         * tests/uniwidth/test-uc_width2.sh: Update expected result.
40404
40405         Update to Unicode 5.1.0.
40406         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
40407         code transform.
40408         * lib/uniname/uniname.c (unicode_character_name,
40409         unicode_name_character): Add the range 0x1Fxxx to the code transform.
40410         * lib/uniname/uninames.h: Regenerated.
40411         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
40412
40413 2009-02-07  Bruno Haible  <bruno@clisp.org>
40414
40415         Merge gen-ctype and gen-lbrk into a single program.
40416         * lib/gen-uni-tables.c: New file, incorporating
40417         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
40418         Add directory prefixes to the names of the generated files.
40419         * lib/unictype/gen-ctype.c: Remove file.
40420         * lib/unilbrk/gen-lbrk.c: Remove file.
40421         * modules/gen-uni-tables: New file.
40422         * modules/unictype/gen-ctype: Remove file.
40423         * modules/unilbrk/gen-lbrk: Remove file.
40424
40425 2009-02-07  Bruno Haible  <bruno@clisp.org>
40426
40427         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
40428
40429         New module 'unistr/u32-strcoll'.
40430         * modules/unistr/u32-strcoll: New file.
40431         * lib/unistr/u32-strcoll.c: New file.
40432
40433         New module 'unistr/u16-strcoll'.
40434         * modules/unistr/u16-strcoll: New file.
40435         * lib/unistr/u16-strcoll.c: New file.
40436
40437         New module 'unistr/u8-strcoll'.
40438         * modules/unistr/u8-strcoll: New file.
40439         * lib/unistr/u8-strcoll.c: New file.
40440         * lib/unistr/u-strcoll.h: New file.
40441
40442 2009-02-07  Bruno Haible  <bruno@clisp.org>
40443
40444         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
40445         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40446         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40447         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
40448         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
40449         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
40450
40451 2009-02-07  Bruno Haible  <bruno@clisp.org>
40452
40453         Make 64-bit clean.
40454         * lib/unictype/gen-ctype.c (output_predicate, output_category,
40455         output_combclass, output_bidi_category, output_decimal_digit,
40456         output_digit, output_numeric, output_mirror, output_scripts,
40457         output_ident_category): Use proper width specifier in format strings.
40458
40459 2009-02-07  Bruno Haible  <bruno@clisp.org>
40460
40461         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
40462         failure behaviour.
40463
40464 2009-02-07  Jim Meyering  <meyering@redhat.com>
40465
40466         regex: avoid compilation failure with upcoming gcc-4.4
40467         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
40468         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
40469         "... error: integer overflow in preprocessor expression".
40470
40471 2009-02-05  Ben Pfaff  <blp@gnu.org>
40472
40473         Fix link errors on Windows when close module is used.
40474         * modules/close: Add $(LIB_CLOSE) to Link section.
40475         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
40476         $(LIB_CLOSE) on Windows.
40477
40478 2009-02-05  Jim Meyering  <meyering@redhat.com>
40479
40480         still avoid unused-parameter warnings, but do it cleanly
40481         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
40482         (get_fs_usage): Cast to void instead.
40483         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
40484         (dev_from_mount_options, read_file_system_list): Cast to void.
40485         Prompted by Bruno Haible.
40486
40487 2009-02-04  Jim Meyering  <meyering@redhat.com>
40488
40489         fsusage.c: correct copyright year
40490         * lib/fsusage.c: Reflect year in which the change is pushed into
40491
40492         avoid misc. warnings
40493         * lib/fsusage.c (UNUSED_PARAM): Define.
40494         (get_fs_usage): Mark parameter "disk" as unused.
40495         * lib/getugroups.c (getgrent): Use "void" in prototype.
40496         * lib/mountlist.c: Mark unused parameters.
40497         (read_file_system_list): Declare a local with "const".
40498         * lib/nanosleep.c (getnow): Declare static.
40499         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
40500
40501         dirfd: set errno upon failure
40502         * lib/dirfd.c: Include <errno.h>.
40503         Set errno to ENOTSUP when returning -1.
40504         * modules/dirfd (Depends-on): Add errno.
40505         Suggested by John Kodis <kodis@comcast.net>.
40506
40507 2009-02-01  Bruno Haible  <bruno@clisp.org>
40508
40509         Don't assume sizeof (long) >= sizeof (void *).
40510         * lib/memcmp.c: Include stdint.h.
40511         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
40512         srcp2 to 'const byte *'.
40513         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
40514         types to uintptr_t.
40515         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
40516         * modules/memcmp (Depends-on): Add stdint.
40517         Reported by Ozkan Sezer <sezeroz@gmail.com>.
40518
40519 2009-01-30  Eric Blake  <ebb9@byu.net>
40520
40521         fix more require-before-expand issues
40522         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
40523         expand, AC_PROG_AWK.
40524         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
40525
40526 2009-01-28  Eric Blake  <ebb9@byu.net>
40527
40528         version-etc: use consistent URL formatting
40529         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
40530         Improve formatting.  Use fputs for string without %.
40531
40532 2009-01-28  Jim Meyering  <meyering@redhat.com>
40533
40534         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
40535         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
40536         "underquoted definition of NAME" from autoconf-2.59.
40537
40538 2009-01-28  Bruno Haible  <bruno@clisp.org>
40539
40540         * doc/gnulib.texi: Add "Obsolete modules" to index.
40541
40542 2009-01-28  Jim Meyering  <meyering@redhat.com>
40543
40544         useless-if-before-free: recognize more variants
40545         * build-aux/useless-if-before-free: Also recognize e.g.,
40546         if (NULL != p) free (p);
40547
40548 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
40549
40550         test-getaddrinfo: skip (don't fail) this test when there's no network
40551         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
40552         on the presumption that it means you lack network access.
40553
40554 2009-01-26  Jim Meyering  <meyering@redhat.com>
40555
40556         fflush: avoid warnings on modern systems
40557         * lib/fflush.c (rpl_fflush): Move declarations of locals,
40558         pos and result, into scopes where they're used.
40559
40560 2009-01-26  Eric Blake  <ebb9@byu.net>
40561
40562         Silence warning reintroduced by recent extensions patch.
40563         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
40564         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
40565         autoconf.
40566
40567         Backport improved autoconf semantics of AC_DEFUN_ONCE.
40568         * m4/00gnulib.m4: New file.
40569         * gnulib-tool (func_get_filelist): Always use it.
40570         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
40571         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
40572
40573 2009-01-25  Bruno Haible  <bruno@clisp.org>
40574
40575         Make test-quotearg work on MacOS X and AIX.
40576         * tests/test-quotearg.sh: New file.
40577         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
40578         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
40579         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
40580         include <libintl.h>.
40581         (fake_locale): Remove variable.
40582         (gettext, dgettext, dcgettext): Remove functions.
40583         (main): Instead of setting a fake locale, set a real locale. Call
40584         textdomain and bindtextdomain.
40585         * modules/quotearg-tests (Files): Add the new files.
40586         (Depends-on): Add gettext, setenv, unsetenv.
40587         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40588         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
40589         Augment TESTS_ENVIRONMENT.
40590
40591 2009-01-25  Bruno Haible  <bruno@clisp.org>
40592
40593         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
40594         fr_FR.ISO8859-1 locale on MacOS X.
40595         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
40596         ja_JP.eucJP locale on MacOS X.
40597         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
40598         zh_CN.GB18030 locale on MacOS X.
40599
40600 2009-01-25  Bruno Haible  <bruno@clisp.org>
40601
40602         Avoid link errors on MacOS X 10.3.
40603         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
40604         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40605
40606 2009-01-25  Bruno Haible  <bruno@clisp.org>
40607
40608         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40609         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
40610         * modules/pipe (Files): Remove m4/posix_spawn.m4.
40611         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40612         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
40613         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40614         posix_spawnattr_init, posix_spawnattr_setsigmask,
40615         posix_spawnattr_setflags, posix_spawnattr_destroy.
40616
40617         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40618         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
40619         * modules/execute (Files): Remove m4/posix_spawn.m4.
40620         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40621         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40622         posix_spawnattr_init, posix_spawnattr_setsigmask,
40623         posix_spawnattr_setflags, posix_spawnattr_destroy.
40624
40625 2009-01-25  Bruno Haible  <bruno@clisp.org>
40626
40627         * lib/glthread/threadlib.c: Include <stdlib.h>.
40628
40629 2009-01-25  Bruno Haible  <bruno@clisp.org>
40630
40631         * lib/glthread/threadlib.c (dummy): New declaration.
40632
40633 2009-01-25  Bruno Haible  <bruno@clisp.org>
40634
40635         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
40636         multibyte characters also for the GB18030 encoding. Don't crash when
40637         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
40638
40639 2009-01-25  Bruno Haible  <bruno@clisp.org>
40640
40641         Avoid redefining 'struct random_data' on OSF/1 5.1.
40642         * lib/stdlib.in.h: Include <random.h> if it exists.
40643         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
40644         HAVE_RANDOM_H. Include <random.h> when testing whether
40645         'struct random_data' exists.
40646         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
40647
40648 2009-01-25  Bruno Haible  <bruno@clisp.org>
40649
40650         Don't install charset.alias on MacOS X >= 10.3.
40651         * lib/localcharset.c (DARWIN7): New macro.
40652         (get_charset_aliases): Hardcode the result for Darwin7.
40653         * modules/localcharset (install-exec-local): Don't install
40654         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
40655
40656 2009-01-25  Bruno Haible  <bruno@clisp.org>
40657
40658         Don't install charset.alias on mingw and Cygwin.
40659         * modules/localcharset (install-exec-local): Don't install
40660         charset.alias on mingw and Cygwin, if the file does not yet exist.
40661         The result for these platforms is hardcoded in localcharset.c.
40662
40663 2009-01-25  Bruno Haible  <bruno@clisp.org>
40664
40665         Make it possible again to use AC_GNU_SOURCE together with gnulib.
40666         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
40667         before requiring AC_USE_SYSTEM_EXTENSIONS.
40668
40669 2009-01-25  Jim Meyering  <meyering@redhat.com>
40670
40671         c-strtod: avoid warnings
40672         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
40673         "assignment discards qualifiers from pointer target type" warnings.
40674
40675 2009-01-24  Bruno Haible  <bruno@clisp.org>
40676
40677         Add support for non-UTF-8 locales on MacOS X.
40678         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
40679         canonical encodings. For Darwin 7 and newer, don't map traditional
40680         encodings to UTF-8.
40681         Reported by Vincent Lefevre <vincent@vinc17.org>
40682         at <http://savannah.gnu.org/bugs/?25235>.
40683
40684 2009-01-24  Bruno Haible  <bruno@clisp.org>
40685
40686         * doc/gnulib.texi (Obsolete modules): New section.
40687         Reported by Mike Frysinger <vapier@gentoo.org>.
40688
40689 2009-01-24  Bruno Haible  <bruno@clisp.org>
40690
40691         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
40692         (%.dvi): New rule.
40693
40694 2009-01-24  Bruno Haible  <bruno@clisp.org>
40695
40696         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
40697         Reported by Eric Blake.
40698
40699 2009-01-24  Bruno Haible  <bruno@clisp.org>
40700
40701         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
40702         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
40703         Reported by Gary V. Vaughan <gary@gnu.org>.
40704
40705 2009-01-24  Bruno Haible  <bruno@clisp.org>
40706
40707         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
40708
40709 2009-01-23  Bruno Haible  <bruno@clisp.org>
40710
40711         Make c-strtod, c-strtold usable in libraries.
40712         * lib/c-strtod.c: Include string.h instead of xalloc.h.
40713         (C_STRTOD): Call strdup instead of xstrdup.
40714         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
40715         * modules/c-strtold (Depends-on): Likewise.
40716         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
40717         * NEWS: Mention the change.
40718         Reported by Michael Gold <mgold@ncf.ca>.
40719
40720 2009-01-23  Jim Meyering  <meyering@redhat.com>
40721
40722         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
40723         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
40724         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
40725
40726 2009-01-23  Simon Josefsson  <simon@josefsson.org>
40727
40728         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
40729         GNU CoreUtils.
40730         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
40731         * modules/version-etc (Description): Update.
40732
40733 2009-01-22  Bruno Haible  <bruno@clisp.org>
40734
40735         Cache the C locale object.
40736         * lib/c-strtod.c (c_locale_cache): New variable.
40737         (c_locale): New function.
40738         (C_STRTOD): Use it, and don't call freelocale.
40739         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
40740         Suggested by Paolo Bonzini.
40741
40742 2009-01-21  Bruno Haible  <bruno@clisp.org>
40743
40744         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
40745         conditions other than overflow.
40746
40747 2009-01-21  Bruno Haible  <bruno@clisp.org>
40748
40749         * lib/c-strtod.c: Include errno.h.
40750         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
40751         value from STRTOD_L and STRTOD.
40752
40753 2009-01-21  Bruno Haible  <bruno@clisp.org>
40754         and Jim Meyering  <meyering@redhat.com>
40755
40756         nanosleep: skip configure test (fail it) for apple universal builds
40757         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
40758         universal builds, assume that nanosleep does not work.
40759         * modules/nanosleep (Depends-on): Add multiarch.
40760
40761         mktime: skip configure test (fail it) for apple universal builds
40762         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
40763         universal builds, assume that mktime does not work.
40764         * modules/mktime (Depends-on): Add multiarch.
40765
40766 2009-01-21  Eric Blake  <ebb9@byu.net>
40767
40768         multiarch: avoid expand-before-require warning
40769         * modules/multiarch (configure.ac): Require, rather than expand,
40770         gl_MULTIARCH.
40771         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
40772         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
40773         enforce that all clients require it.  Partial reversion of
40774         2008-12-29 patch.
40775
40776         error: avoid expand-before-require warning
40777         * modules/errno (configure.ac): Require, rather than expand,
40778         gl_HEADER_ERRNO_H.
40779         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
40780         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
40781         enforce that all clients require it.
40782
40783         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
40784         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
40785         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
40786         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
40787
40788 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
40789
40790         Revert:
40791         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40792
40793         regex: do not depend on obsolete modules.
40794         * modules/regex: Remove memcmp and memmove.
40795
40796 2009-01-20  Bruno Haible  <bruno@clisp.org>
40797
40798         Make the 'link' module link on Windows NT 4.
40799         * lib/link.c (_WIN32_WINNT): Don't define.
40800         (CreateHardLinkFuncType): New type.
40801         (CreateHardLinkFunc, initialized): New variables.
40802         (initialize): New function.
40803         (link): Invoke CreateHardLink indirectly through the function pointer.
40804
40805 2009-01-20  Bruno Haible  <bruno@clisp.org>
40806
40807         Fix compilation failure on mingw.
40808         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
40809
40810 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
40811
40812         * doc/c-strtod.texi: Mention a couple of restrictions.
40813
40814 2009-01-20  Jim Meyering  <meyering@redhat.com>
40815
40816         gettimeofday: move more declarations out of functions
40817         * lib/gettimeofday.c: Move extern declarations of tzset and
40818         gmtime out of containing functions.  Prompted by Bruno Haible.
40819
40820 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40821
40822         regex: do not depend on obsolete modules.
40823         * modules/regex: Remove memcmp and memmove.
40824
40825 2009-01-19  Bruno Haible  <bruno@clisp.org>
40826
40827         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40828         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
40829         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40830         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
40831         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
40832
40833 2009-01-19  Bruno Haible  <bruno@clisp.org>
40834
40835         * tests/test-link.c: Include <errno.h>.
40836         (main): Exit with code 77 when a hard link cannot be created due to
40837         the file system.
40838         * tests/test-link.sh: Skip test when a hard link cannot be created due
40839         to the file system.
40840         Suggested by Eric Blake.
40841
40842 2009-01-19  Martin Lambers  <marlam@marlam.de>
40843
40844         * modules/link-tests: New file.
40845         * tests/test-link.sh: New file.
40846         * tests/test-link.c: New file.
40847
40848 2009-01-19  Eric Blake  <ebb9@byu.net>
40849
40850         doc: mention another function added in cygwin 1.7.0
40851         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
40852         Another new function in cygwin 1.7.
40853
40854 2009-01-19  Bruno Haible  <bruno@clisp.org>
40855
40856         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40857         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
40858         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
40859         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40860         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40861         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
40862         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40863         * m4/md4.m4 (gl_MD4): Likewise.
40864         * m4/md5.m4 (gl_MD5): Likewise.
40865         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
40866         * m4/sha1.m4 (gl_SHA1): Likewise.
40867         * m4/sha256.m4 (gl_SHA256): Likewise.
40868         * m4/sha512.m4 (gl_SHA512): Likewise.
40869
40870 2009-01-19  Bruno Haible  <bruno@clisp.org>
40871
40872         * modules/uniname/uniname-tests (Depends-on): Add progname.
40873         * tests/uniname/test-uninames.c: Include progname.h.
40874         (main): Call set_program_name.
40875
40876         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
40877         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
40878         (main): Call set_program_name.
40879
40880         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
40881         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
40882         (main): Call set_program_name.
40883
40884         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
40885         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
40886         (main): Call set_program_name.
40887
40888         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
40889         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
40890         (main): Call set_program_name.
40891
40892         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
40893         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
40894         (main): Call set_program_name.
40895
40896         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
40897         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
40898         (main): Call set_program_name.
40899
40900         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
40901         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
40902         (main): Call set_program_name.
40903
40904         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
40905         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
40906         (main): Call set_program_name.
40907
40908 2009-01-19  Eric Blake  <ebb9@byu.net>
40909
40910         test-unistd: test previous patch
40911         * tests/test-unistd.c: Test *_FILENO macros.
40912
40913         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
40914         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40915         Guarantee a definition.
40916         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
40917         * modules/unistd-safer (Depends-on): Add dependency on unistd.
40918         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
40919         * lib/dup-safer.c (STDERR_FILENO): Likewise.
40920         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40921         Likewise.
40922         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
40923         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
40924         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40925         Likewise.
40926         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
40927         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
40928         (STDERR_FILENO): Likewise.
40929         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
40930         (STDERR_FILENO): Likewise.
40931         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
40932         (STDERR_FILENO): Likewise.
40933         Reported by Elbert Pol.
40934
40935 2009-01-19  Eric Blake  <ebb9@byu.net>
40936
40937         doc: mention more functions added in cygwin 1.7.0
40938         * doc/posix-functions/abort.texi (abort): Update wording related
40939         to cygwin.
40940         * doc/posix-functions/daylight.texi (daylight): Likewise.
40941         * doc/posix-functions/optarg.texi (optarg): Likewise.
40942         * doc/posix-functions/optarg.texi (opterr): Likewise.
40943         * doc/posix-functions/optarg.texi (optind): Likewise.
40944         * doc/posix-functions/optarg.texi (optopt): Likewise.
40945         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
40946         worked in 1.5.x, and was withdrawn in 1.7.
40947         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
40948         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
40949         cygwin versions.
40950         * doc/posix-functions/perror.texi (perror): Likewise.
40951         * doc/posix-functions/printf.texi (printf): Likewise.
40952         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
40953         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
40954         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
40955         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
40956         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40957         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
40958         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40959         Likewise.
40960         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40961         Likewise.
40962         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
40963         this function.
40964         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
40965         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
40966         Likewise.
40967         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
40968         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
40969         * doc/posix-functions/confstr.texi (confstr): Likewise.
40970         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
40971         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
40972         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
40973         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
40974         * doc/posix-functions/fputws.texi (fputws): Likewise.
40975         * doc/posix-functions/fwide.texi (fwide): Likewise.
40976         * doc/posix-functions/getwc.texi (getwc): Likewise.
40977         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
40978         * doc/posix-functions/putwc.texi (putwc): Likewise.
40979         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
40980         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
40981         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
40982         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
40983         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
40984         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
40985         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
40986         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
40987         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
40988         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
40989         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
40990
40991 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40992
40993         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
40994         * lib/ioctl.c: Include <sys/ioctl.h>.
40995
40996 2009-01-19  Simon Josefsson  <simon@josefsson.org>
40997
40998         * modules/getdate-tests (Depends-on): Add progname.
40999         * tests/test-getdate.c: Use progname module, to avoid link errors
41000         on non-glibc systems.
41001
41002 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41003
41004         * modules/filenamecat-tests (Depends-on): Add progname.
41005         * modules/fstrcmp-tests (Depends-on): Likewise.
41006
41007         * tests/test-filenamecat.c: Use progname module, to avoid link
41008         errors on non-glibc systems.
41009         * tests/test-fstrcmp.c: Likewise.
41010
41011 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41012
41013         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41014         * lib/gettimeofday.c: Move extern declaration out of function.
41015
41016 2009-01-18  Bruno Haible  <bruno@clisp.org>
41017
41018         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41019         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41020         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41021
41022 2009-01-18  Bruno Haible  <bruno@clisp.org>
41023
41024         * lib/strftime.c (MEMPCPY): Remove unused macro.
41025         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41026
41027 2009-01-18  Martin Lambers  <marlam@marlam.de>
41028
41029         New module 'link'.
41030         * lib/unistd.in.h (link): New declaration.
41031         * lib/link.c: New file.
41032         * m4/link.m4: New file.
41033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41034         HAVE_LINK.
41035         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41036         * modules/link: New file.
41037         * doc/posix-functions/link.texi: Mention the new module.
41038
41039 2009-01-18  Bruno Haible  <bruno@clisp.org>
41040
41041         * tests/test-avltree_list.c (main): Call set_program_name.
41042         * tests/test-avltree_oset.c (main): Likewise.
41043         * tests/test-obstack-printf.c: Include progname.h.
41044         (main): Call set_program_name.
41045         * tests/test-quotearg.c: Include progname.h.
41046         (main): Call set_program_name.
41047         * tests/test-xmemdup0.c: Include progname.h.
41048         (main): Call set_program_name.
41049
41050 2009-01-18  Bruno Haible  <bruno@clisp.org>
41051
41052         New module 'alphasort'.
41053         * lib/dirent.in.h (alphasort): New declaration.
41054         * lib/alphasort.c: New file, from glibc with modifications.
41055         * m4/alphasort.m4: New file.
41056         * modules/alphasort: New file.
41057         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41058         HAVE_ALPHASORT.
41059         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41060         HAVE_ALPHASORT.
41061         * doc/posix-functions/alphasort.texi: Mention the new module and the
41062         portability problems.
41063
41064 2009-01-18  Bruno Haible  <bruno@clisp.org>
41065
41066         New module 'scandir'.
41067         * lib/dirent.in.h (scandir): New declaration.
41068         * lib/scandir.c: New file, from glibc with modifications.
41069         * m4/scandir.m4: New file.
41070         * modules/scandir: New file.
41071         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41072         HAVE_SCANDIR.
41073         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41074         HAVE_SCANDIR.
41075         * doc/posix-functions/scandir.texi: Mention the new module and the
41076         portability problems.
41077
41078 2009-01-17  Bruno Haible  <bruno@clisp.org>
41079
41080         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41081         Update documentation.
41082         (func_remove_suffix): Escape all dots in the suffix. Update
41083         documentation.
41084         (func_filter_filelist): Update documentation.
41085         Reported by Ralf Wildenhues.
41086
41087 2009-01-17  Bruno Haible  <bruno@clisp.org>
41088
41089         * modules/dprintf-posix-tests: New file.
41090         * tests/test-dprintf-posix.sh: New file.
41091         * tests/test-dprintf-posix.c: New file.
41092
41093         New modules 'dprintf', 'dprintf-posix'.
41094         * lib/stdio.in.h (dprintf): New declaration.
41095         * lib/dprintf.c: New file.
41096         * m4/dprintf.m4: New file.
41097         * m4/dprintf-posix.m4: New file.
41098         * modules/dprintf: New file.
41099         * modules/dprintf-posix: New file.
41100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41101         HAVE_DPRINTF, REPLACE_DPRINTF.
41102         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41103         HAVE_DPRINTF, REPLACE_DPRINTF.
41104         * doc/posix-functions/dprintf.texi: Mention the new modules.
41105
41106 2009-01-17  Bruno Haible  <bruno@clisp.org>
41107
41108         * modules/vdprintf-posix-tests: New file.
41109         * tests/test-vdprintf-posix.sh: New file.
41110         * tests/test-vdprintf-posix.c: New file.
41111
41112         New modules 'vdprintf', 'vdprintf-posix'.
41113         * lib/stdio.in.h (vdprintf): New declaration.
41114         * lib/vdprintf.c: New file.
41115         * m4/vdprintf.m4: New file.
41116         * m4/vdprintf-posix.m4: New file.
41117         * modules/vdprintf: New file.
41118         * modules/vdprintf-posix: New file.
41119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41120         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41121         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41122         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41123         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41124
41125 2009-01-17  Bruno Haible  <bruno@clisp.org>
41126
41127         Fix replacement of fopen on mingw.
41128         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
41129         mingw.
41130
41131 2009-01-17  Bruno Haible  <bruno@clisp.org>
41132
41133         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
41134         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
41135
41136 2009-01-17  Bruno Haible  <bruno@clisp.org>
41137
41138         Avoid test-fflush2.sh failure on mingw.
41139         * tests/test-fflush2.c: Include binary-io.h.
41140         (main): Put standard input into binary mode.
41141         * modules/fflush-tests (Depends-on): Add binary-io.
41142
41143 2009-01-17  Bruno Haible  <bruno@clisp.org>
41144
41145         * lib/wchar.in.h: In another particular situation, include only the
41146         system's <wchar.h> file.
41147         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
41148         Reported by Albert Chin-A-Young <china@thewrittenword.com>
41149         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
41150
41151 2009-01-17  Bruno Haible  <bruno@clisp.org>
41152
41153         Support for stripping executables in --enable-relocatable.
41154         * build-aux/install-reloc: Expect one more argument, or an environment
41155         variable RELOC_STRIP_PROG. If set, strip the destination program and
41156         its wrapper.
41157         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
41158         RELOC_STRIP_PROG.
41159         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
41160         to set RELOCATABLE_STRIP.
41161         * NEWS: Mention the new Makefile requirement.
41162
41163 2009-01-17  Bruno Haible  <bruno@clisp.org>
41164
41165         * build-aux/install-reloc: Remove debugging information left over by
41166         C compiler on MacOS X.
41167
41168 2009-01-17  Bruno Haible  <bruno@clisp.org>
41169
41170         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
41171         * lib/progreloc.c (find_executable): Fix type of pointer passed to
41172         _NSGetExecutablePath.
41173
41174 2009-01-16  Jim Meyering  <meyering@redhat.com>
41175
41176         strerror: avoid warnings about discarding "const"
41177         * lib/strerror.c (rpl_strerror): Instead of returning a const
41178         string from each and every "case", use a variable, and add a single
41179         cast after the switch.
41180
41181 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41182
41183         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41184
41185 2009-01-16  Bruno Haible  <bruno@clisp.org>
41186
41187         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41188         array initializer syntax that also works in C++ mode.
41189         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41190
41191 2009-01-16  Jim Meyering  <meyering@redhat.com>
41192
41193         poll: suppress a warning
41194         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41195         to ignore "...unsigned expression < 0 is always false" warnings.
41196
41197 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41198
41199         poll: remove declarations of unused variables
41200         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41201         sockbuf and optlen.
41202
41203 2009-01-15  Bruno Haible  <bruno@clisp.org>
41204
41205         Make fflush-after-ungetc POSIX compliant on BSD systems.
41206         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
41207         (clear_ungetc_buffer): Implement also for other systems.
41208         (rpl_fflush): On glibc systems, invoke
41209         clear_ungetc_buffer_preserving_position. Otherwise, invoke
41210         clear_ungetc_buffer after fetching the stream's position, not before.
41211
41212 2009-01-15  Bruno Haible  <bruno@clisp.org>
41213
41214         Make fflush-after-ungetc POSIX compliant on glibc systems.
41215         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
41216         after ungetc.
41217         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
41218         (rpl_fflush): On glibc systems, simply call the system's fflush
41219         function after clearing the ungetc buffer.
41220         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
41221         Instead, lseek only to the end of file, then use the system's fseeko
41222         for the rest. On glibc systems, reset the EOF indicator bit.
41223
41224 2009-01-15  Jim Meyering  <meyering@redhat.com>
41225
41226         openmp.m4: revert quote-adding change, for portability to older autoconf
41227         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
41228         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
41229         Simon Josefsson noticed the problem when using autoconf-2.61.
41230
41231 2009-01-15  Bruno Haible  <bruno@clisp.org>
41232
41233         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
41234         * tests/test-fflush2.c (ASSERT): Always fail.
41235         (main): Add two tests for fflush() after ungetc(), taking into account
41236         the Austin Group's clarification.
41237         Suggested by Eric Blake.
41238
41239 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
41240
41241         mktime.m4: remove K&R-style function prototypes
41242         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
41243         for the Sun C++ compiler.
41244
41245 2009-01-14  Bruno Haible  <bruno@clisp.org>
41246
41247         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
41248         while including <wchar.h>.
41249         * lib/wchar.in.h: In two particular situations on HP-UX, include only
41250         the system's <wchar.h> file.
41251         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41252
41253 2009-01-14  Bruno Haible  <bruno@clisp.org>
41254
41255         * m4/csharp.m4: Don't mention gettext on the serial number line.
41256         * m4/csharpexec.m4: Likewise.
41257         * m4/eaccess.m4: Likewise.
41258         * m4/javaexec.m4: Likewise.
41259         * m4/sig_atomic_t.m4: Likewise.
41260         * m4/tmpdir.m4: Likewise.
41261         * m4/intldir.m4: Bump gettext version.
41262         * m4/lib-ld.m4: Likewise.
41263
41264 2009-01-14  Bruno Haible  <bruno@clisp.org>
41265
41266         * lib/progname.c (set_program_name): Add more comments.
41267         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41268
41269 2009-01-14  Simon Josefsson  <simon@josefsson.org>
41270
41271         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
41272         were sys/stat.h does not define it.
41273
41274 2009-01-14  Jim Meyering  <meyering@redhat.com>
41275
41276         many *.m4 files: improve m4 quoting
41277         99% of this change was performed by running the following commands:
41278         git ls-files | grep '\.m4$' | xargs perl -pi \
41279           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
41280           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41281           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41282           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
41283         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
41284         The remainder were to add Copyright dates, increment serial numbers,
41285         undo some changes in comments, exclude m4/intl.m4, and add quotes
41286         around the "1" in ",1" where the unusual spacing prohibited the
41287         above regexps from doing the job.  For more details, see
41288         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
41289         * m4/acl.m4: Modified.
41290         * m4/afs.m4: Likewise.
41291         * m4/alloca.m4: Likewise.
41292         * m4/argp.m4: Likewise.
41293         * m4/argz.m4: Likewise.
41294         * m4/atexit.m4: Likewise.
41295         * m4/bison-i18n.m4: Likewise.
41296         * m4/bison.m4: Likewise.
41297         * m4/byteswap.m4: Likewise.
41298         * m4/c-stack.m4: Likewise.
41299         * m4/c-strtod.m4: Likewise.
41300         * m4/calloc.m4: Likewise.
41301         * m4/canonicalize-lgpl.m4: Likewise.
41302         * m4/chown.m4: Likewise.
41303         * m4/clock_time.m4: Likewise.
41304         * m4/codeset.m4: Likewise.
41305         * m4/copy-file.m4: Likewise.
41306         * m4/csharp.m4: Likewise.
41307         * m4/csharpcomp.m4: Likewise.
41308         * m4/csharpexec.m4: Likewise.
41309         * m4/d-ino.m4: Likewise.
41310         * m4/d-type.m4: Likewise.
41311         * m4/dirfd.m4: Likewise.
41312         * m4/double-slash-root.m4: Likewise.
41313         * m4/eaccess.m4: Likewise.
41314         * m4/eealloc.m4: Likewise.
41315         * m4/environ.m4: Likewise.
41316         * m4/errno_h.m4: Likewise.
41317         * m4/euidaccess.m4: Likewise.
41318         * m4/execute.m4: Likewise.
41319         * m4/fatal-signal.m4: Likewise.
41320         * m4/fchdir.m4: Likewise.
41321         * m4/fcntl_h.m4: Likewise.
41322         * m4/fileblocks.m4: Likewise.
41323         * m4/filenamecat.m4: Likewise.
41324         * m4/findprog.m4: Likewise.
41325         * m4/flexmember.m4: Likewise.
41326         * m4/fnmatch.m4: Likewise.
41327         * m4/fopen.m4: Likewise.
41328         * m4/fpending.m4: Likewise.
41329         * m4/fprintf-posix.m4: Likewise.
41330         * m4/free.m4: Likewise.
41331         * m4/frexp.m4: Likewise.
41332         * m4/frexpl.m4: Likewise.
41333         * m4/fsusage.m4: Likewise.
41334         * m4/ftruncate.m4: Likewise.
41335         * m4/gc-camellia.m4: Likewise.
41336         * m4/gc-random.m4: Likewise.
41337         * m4/gc.m4: Likewise.
41338         * m4/getaddrinfo.m4: Likewise.
41339         * m4/getcwd-abort-bug.m4: Likewise.
41340         * m4/getcwd-path-max.m4: Likewise.
41341         * m4/getdate.m4: Likewise.
41342         * m4/getdomainname.m4: Likewise.
41343         * m4/getgroups.m4: Likewise.
41344         * m4/gethostname.m4: Likewise.
41345         * m4/gethrxtime.m4: Likewise.
41346         * m4/getline.m4: Likewise.
41347         * m4/getloadavg.m4: Likewise.
41348         * m4/getndelim2.m4: Likewise.
41349         * m4/getpass.m4: Likewise.
41350         * m4/gettext.m4: Likewise.
41351         * m4/gettime.m4: Likewise.
41352         * m4/gettimeofday.m4: Likewise.
41353         * m4/gnulib-common.m4: Likewise.
41354         * m4/group-member.m4: Likewise.
41355         * m4/host-os.m4: Likewise.
41356         * m4/iconv.m4: Likewise.
41357         * m4/iconv_open.m4: Likewise.
41358         * m4/inet_ntop.m4: Likewise.
41359         * m4/inet_pton.m4: Likewise.
41360         * m4/inline.m4: Likewise.
41361         * m4/intldir.m4: Likewise.
41362         * m4/intlmacosx.m4: Likewise.
41363         * m4/intmax.m4: Likewise.
41364         * m4/intmax_t.m4: Likewise.
41365         * m4/inttypes.m4: Likewise.
41366         * m4/inttypes_h.m4: Likewise.
41367         * m4/inttypes-pri.m4: Likewise.
41368         * m4/isapipe.m4: Likewise.
41369         * m4/isnand.m4: Likewise.
41370         * m4/isnanf.m4: Likewise.
41371         * m4/isnanl.m4: Likewise.
41372         * m4/javacomp.m4: Likewise.
41373         * m4/javaexec.m4: Likewise.
41374         * m4/jm-winsz1.m4: Likewise.
41375         * m4/jm-winsz2.m4: Likewise.
41376         * m4/lchown.m4: Likewise.
41377         * m4/lcmessage.m4: Likewise.
41378         * m4/ldexpl.m4: Likewise.
41379         * m4/lib-ld.m4: Likewise.
41380         * m4/lib-link.m4: Likewise.
41381         * m4/libsigsegv.m4: Likewise.
41382         * m4/link-follow.m4: Likewise.
41383         * m4/localcharset.m4: Likewise.
41384         * m4/locale-fr.m4: Likewise.
41385         * m4/locale-ja.m4: Likewise.
41386         * m4/locale-tr.m4: Likewise.
41387         * m4/locale-zh.m4: Likewise.
41388         * m4/lock.m4: Likewise.
41389         * m4/longlong.m4: Likewise.
41390         * m4/ls-mntd-fs.m4: Likewise.
41391         * m4/lstat.m4: Likewise.
41392         * m4/malloc.m4: Likewise.
41393         * m4/mathl.m4: Likewise.
41394         * m4/mbrtowc.m4: Likewise.
41395         * m4/mbstate_t.m4: Likewise.
41396         * m4/mbswidth.m4: Likewise.
41397         * m4/memchr.m4: Likewise.
41398         * m4/memcmp.m4: Likewise.
41399         * m4/memcpy.m4: Likewise.
41400         * m4/memmem.m4: Likewise.
41401         * m4/memmove.m4: Likewise.
41402         * m4/mempcpy.m4: Likewise.
41403         * m4/memrchr.m4: Likewise.
41404         * m4/memset.m4: Likewise.
41405         * m4/minmax.m4: Likewise.
41406         * m4/mkdir-slash.m4: Likewise.
41407         * m4/mkdtemp.m4: Likewise.
41408         * m4/mktime.m4: Likewise.
41409         * m4/mmap-anon.m4: Likewise.
41410         * m4/mountlist.m4: Likewise.
41411         * m4/nanosleep.m4: Likewise.
41412         * m4/nls.m4: Likewise.
41413         * m4/nocrash.m4: Likewise.
41414         * m4/open.m4: Likewise.
41415         * m4/openat.m4: Likewise.
41416         * m4/openmp.m4: Likewise.
41417         * m4/pathmax.m4: Likewise.
41418         * m4/perl.m4: Likewise.
41419         * m4/physmem.m4: Likewise.
41420         * m4/pipe.m4: Likewise.
41421         * m4/po.m4: Likewise.
41422         * m4/poll.m4: Likewise.
41423         * m4/posixtm.m4: Likewise.
41424         * m4/posixver.m4: Likewise.
41425         * m4/printf-frexp.m4: Likewise.
41426         * m4/printf-frexpl.m4: Likewise.
41427         * m4/printf-posix.m4: Likewise.
41428         * m4/printf-posix-rpl.m4: Likewise.
41429         * m4/printf.m4: Likewise.
41430         * m4/progtest.m4: Likewise.
41431         * m4/putenv.m4: Likewise.
41432         * m4/readline.m4: Likewise.
41433         * m4/readlink.m4: Likewise.
41434         * m4/readutmp.m4: Likewise.
41435         * m4/realloc.m4: Likewise.
41436         * m4/regex.m4: Likewise.
41437         * m4/relocatable.m4: Likewise.
41438         * m4/relocatable-lib.m4: Likewise.
41439         * m4/rename-dest-slash.m4: Likewise.
41440         * m4/rename.m4: Likewise.
41441         * m4/rmdir-errno.m4: Likewise.
41442         * m4/rmdir.m4: Likewise.
41443         * m4/roundf.m4: Likewise.
41444         * m4/roundl.m4: Likewise.
41445         * m4/rpmatch.m4: Likewise.
41446         * m4/save-cwd.m4: Likewise.
41447         * m4/selinux-selinux-h.m4: Likewise.
41448         * m4/setenv.m4: Likewise.
41449         * m4/settime.m4: Likewise.
41450         * m4/sig2str.m4: Likewise.
41451         * m4/sig_atomic_t.m4: Likewise.
41452         * m4/signalblocking.m4: Likewise.
41453         * m4/signbit.m4: Likewise.
41454         * m4/sigpipe.m4: Likewise.
41455         * m4/sockets.m4: Likewise.
41456         * m4/sockpfaf.m4: Likewise.
41457         * m4/st_dm_mode.m4: Likewise.
41458         * m4/stat-time.m4: Likewise.
41459         * m4/stdbool.m4: Likewise.
41460         * m4/stdint.m4: Likewise.
41461         * m4/stdint_h.m4: Likewise.
41462         * m4/stpcpy.m4: Likewise.
41463         * m4/stpncpy.m4: Likewise.
41464         * m4/strcase.m4: Likewise.
41465         * m4/strchrnul.m4: Likewise.
41466         * m4/strcspn.m4: Likewise.
41467         * m4/strdup.m4: Likewise.
41468         * m4/strftime.m4: Likewise.
41469         * m4/strndup.m4: Likewise.
41470         * m4/strnlen.m4: Likewise.
41471         * m4/strpbrk.m4: Likewise.
41472         * m4/strptime.m4: Likewise.
41473         * m4/strsep.m4: Likewise.
41474         * m4/strtod.m4: Likewise.
41475         * m4/strtoimax.m4: Likewise.
41476         * m4/strtok_r.m4: Likewise.
41477         * m4/strtol.m4: Likewise.
41478         * m4/strtoll.m4: Likewise.
41479         * m4/strtoul.m4: Likewise.
41480         * m4/strtoull.m4: Likewise.
41481         * m4/strtoumax.m4: Likewise.
41482         * m4/strverscmp.m4: Likewise.
41483         * m4/threadlib.m4: Likewise.
41484         * m4/timegm.m4: Likewise.
41485         * m4/tm_gmtoff.m4: Likewise.
41486         * m4/tmpdir.m4: Likewise.
41487         * m4/tmpfile.m4: Likewise.
41488         * m4/tzset.m4: Likewise.
41489         * m4/uintmax_t.m4: Likewise.
41490         * m4/unlinkdir.m4: Likewise.
41491         * m4/unlocked-io.m4: Likewise.
41492         * m4/uptime.m4: Likewise.
41493         * m4/userspec.m4: Likewise.
41494         * m4/utimbuf.m4: Likewise.
41495         * m4/utime.m4: Likewise.
41496         * m4/utimes-null.m4: Likewise.
41497         * m4/utimes.m4: Likewise.
41498         * m4/vararrays.m4: Likewise.
41499         * m4/vasnprintf.m4: Likewise.
41500         * m4/vfprintf-posix.m4: Likewise.
41501         * m4/vprintf-posix.m4: Likewise.
41502         * m4/wait-process.m4: Likewise.
41503         * m4/wchar_t.m4: Likewise.
41504         * m4/wint_t.m4: Likewise.
41505         * m4/write-any-file.m4: Likewise.
41506         * m4/yield.m4: Likewise.
41507
41508 2009-01-13  Bruno Haible  <bruno@clisp.org>
41509
41510         Avoid test-copy-file.sh failures when ACL support insufficient.
41511         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
41512         TESTS_ENVIRONMENT.
41513         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
41514         Reported by Jim Meyering.
41515
41516 2009-01-13  Bruno Haible  <bruno@clisp.org>
41517
41518         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
41519         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
41520         * modules/unistdio/u8-printf-parse (Files): Likewise.
41521         * modules/unistdio/u32-printf-parse (Files): Likewise.
41522         * modules/unistdio/ulc-printf-parse (Files): Likewise.
41523
41524 2009-01-13  Simon Josefsson  <simon@josefsson.org>
41525
41526         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
41527         and m4/inttypes_h.m4 too.
41528
41529 2009-01-12  Eric Blake  <ebb9@byu.net>
41530
41531         tests: IRIX 6.2 cc can't compile -0.0 into .data
41532         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
41533         rather than at compile-time.
41534         * tests/test-floorl.c (minus_zero): Likewise.
41535         * tests/test-frexpl.c (minus_zero): Likewise.
41536         * tests/test-isnan.c (minus_zerol): Likewise.
41537         * tests/test-isnanl.h (minus_zero): Likewise.
41538         * tests/test-ldexpl.c (minus_zero): Likewise.
41539         * tests/test-roundl.c (minus_zero): Likewise.
41540         * tests/test-signbit.c (minus_zerol): Likewise.
41541         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41542         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41543         * tests/test-truncl.c (minus_zero): Likewise.
41544         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41545         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41546         Reported by Tom G. Christensen and Nelson H. F. Beebe.
41547
41548 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41549
41550         regex: fix glibc bug 9697
41551         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
41552         handling.
41553
41554 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41555
41556         regex: fix glibc bug 697
41557         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
41558         being NULL also if there are no backreferences.
41559
41560 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41561
41562         regex: merge glibc changes
41563         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
41564         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
41565         re_string_skip_chars, re_string_reconstruct): Likewise.
41566         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
41567
41568 2009-01-07  Jim Meyering  <meyering@redhat.com>
41569
41570         poll: filter through cppi
41571         * lib/poll.c: Indent cpp directives to reflect nesting.
41572
41573 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
41574
41575         poll: don't return uninitialized
41576         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
41577
41578 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
41579
41580         avoid compile failure on AIX 6.1
41581         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
41582         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
41583
41584 2009-01-04  Jim Meyering  <meyering@redhat.com>
41585
41586         remove duplicate inclusion of <stdio.h>
41587         * tests/test-fprintf-posix.c: Likewise.
41588         * tests/test-printf-posix.c: Likewise.
41589         * tests/test-snprintf-posix.c: Likewise.
41590         * tests/test-sprintf-posix.c: Likewise.
41591         * tests/test-vasprintf-posix.c: Likewise.
41592         * tests/test-vfprintf-posix.c: Likewise.
41593         * tests/test-vprintf-posix.c: Likewise.
41594         * tests/test-vsnprintf-posix.c: Likewise.
41595         * tests/test-vsprintf-posix.c: Likewise.
41596
41597 2009-01-03  Jim Meyering  <meyering@redhat.com>
41598
41599         gnulib-tool: fix sed-based filtering
41600         * gnulib-tool (func_filter_filelist): Remove extra backslash
41601         in sed_fff_filter definition.
41602
41603 2009-01-02  Jim Meyering  <meyering@redhat.com>
41604
41605         strftime: avoid compilation failure on Solaris 2.6
41606         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
41607         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
41608         Don't #define mbrlen or mbsinit, since now they're guaranteed to
41609         be available.  Reported by Tom G. Christensen.  Details in
41610         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
41611
41612 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41613             Bruno Haible  <bruno@clisp.org>
41614
41615         Speed up gnulib-tool by doing more string processing through shell
41616         built-ins.
41617         * gnulib-tool (fast_func_append): New variable.
41618         (func_remove_prefix, func_remove_suffix): New functions.
41619         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
41620         (func_filter_filelist): New function.
41621         (func_get_dependencies): Use func_remove_suffix instead of sed.
41622         (func_get_automake_snippet): Use func_filter_filelist instead of a
41623         subshell and sed invocation.
41624
41625 2009-01-01  Bruno Haible  <bruno@clisp.org>
41626
41627         Fix a security bug.
41628         * gnulib-tool (func_import, import, update): Don't allow the characters
41629         '"', '$', '`', '\' in macro arguments that become part of commands that
41630         are evaluated.
41631
41632 2009-01-01  Bruno Haible  <bruno@clisp.org>
41633
41634         * gnulib-tool (func_reset_sigpipe): Add more comments.
41635
41636 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41637
41638         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
41639         func_emit_tests_Makefile_am, func_import): Abort loops early if we
41640         already know the answer.
41641
41642 2009-01-01  Jim Meyering  <meyering@redhat.com>
41643
41644         * lib/version-etc.c (version_etc_va): Update copyright year.
41645
41646 2008-12-30  Bruno Haible  <bruno@clisp.org>
41647
41648         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
41649         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
41650         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
41651
41652 2008-12-29  Eric Blake  <ebb9@byu.net>
41653
41654         multiarch: avoid autoconf AC_REQUIRE bug
41655         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
41656         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
41657         2.63 and older.
41658         Reported by Bruno Haible, and analyzed in
41659         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
41660
41661 2008-12-29  Bruno Haible  <bruno@clisp.org>
41662
41663         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
41664         files in subdirectories correctly.
41665         Reported by Ralf Wildenhues.
41666
41667 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41668
41669         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
41670         rather than 'join FILE -', for Solaris join.
41671
41672 2008-12-29  Bruno Haible  <bruno@clisp.org>
41673
41674         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
41675         quoting.
41676         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41677         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
41678         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
41679         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
41680         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
41681         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
41682         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
41683         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
41684         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41685         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
41686         * m4/nls.m4 (AM_NLS): Likewise.
41687         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
41688         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
41689         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41690         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
41691         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
41692         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
41693         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
41694         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
41695         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
41696         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
41697         * m4/xsize.m4 (gl_XSIZE): Likewise.
41698         Suggested by Jim Meyering.
41699
41700 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41701
41702         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
41703         * lib/parse-duration.c: use a switch instead of cascading if's.
41704
41705 2008-12-29  Eric Blake  <ebb9@byu.net>
41706
41707         wchar.h: supply WEOF on Irix 5.3
41708         * lib/wchar.in.h (wint_t): Also supply WEOF.
41709         * lib/wctype.in.h (wint_t): Likewise.
41710         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
41711         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
41712         Reported by Tom G. Christensen.
41713
41714 2008-12-26  Bruno Haible  <bruno@clisp.org>
41715
41716         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
41717         i486, i586, i686.
41718
41719 2008-12-26  Bruno Haible  <bruno@clisp.org>
41720
41721         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
41722
41723 2008-12-26  Bruno Haible  <bruno@clisp.org>
41724
41725         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
41726         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
41727         not __STDC_CONSTANT_MACROS.
41728         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41729
41730 2008-12-25  Bruno Haible  <bruno@clisp.org>
41731
41732         Add support for universal builds to vasnprintf.
41733         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
41734         universal builds, guess no.
41735         * modules/vasnprintf-posix (Depends-on): Add multiarch.
41736         * modules/vasprintf-posix (Depends-on): Likewise.
41737         * modules/fprintf-posix (Depends-on): Likewise.
41738         * modules/vfprintf-posix (Depends-on): Likewise.
41739         * modules/snprintf-posix (Depends-on): Likewise.
41740         * modules/vsnprintf-posix (Depends-on): Likewise.
41741         * modules/sprintf-posix (Depends-on): Likewise.
41742         * modules/vsprintf-posix (Depends-on): Likewise.
41743         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41744         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41745         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41746         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41747         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41748         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41749         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41750
41751         Add support for universal builds to <inttypes.h>.
41752         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
41753         _SCNu64_PREFIX): In Apple
41754         universal builds, define directly, using _LP64.
41755         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
41756         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
41757         * modules/inttypes (Depends-on): Add multiarch.
41758         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41759
41760         Add support for universal builds to <stdint.h>.
41761         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
41762         universal builds, define directly, using _LP64.
41763         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
41764         Apple universal builds, don't test for the size and suffix of ptrdiff_t
41765         and size_t.
41766         * modules/stdint (Depends-on): Add multiarch.
41767         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41768
41769         New module 'multiarch'.
41770         * modules/multiarch: New file.
41771         * m4/multiarch.m4: New file.
41772
41773 2008-12-25  Bruno Haible  <bruno@clisp.org>
41774
41775         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
41776
41777 2008-12-25  Bruno Haible  <bruno@clisp.org>
41778
41779         * modules/btowc (License): Relicense under LGPLv2+.
41780         * modules/mbsinit (License): Likewise.
41781         * modules/mbrtowc (License): Likewise.
41782         * modules/wcrtomb (License): Likewise.
41783         * modules/streq (License): Likewise.
41784         Reported by David Lutterkort <lutter@redhat.com>.
41785
41786 2008-12-23  Bruno Haible  <bruno@clisp.org>
41787
41788         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
41789
41790 2008-12-23  Bruno Haible  <bruno@clisp.org>
41791
41792         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
41793         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
41794         GETADDRINFO_LIB, not in LIBS.
41795         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
41796         * modules/canon-host (Link): Likewise.
41797         * NEWS: Mention the change.
41798         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
41799         GETADDRINFO_LIB.
41800
41801 2008-12-22  Bruno Haible  <bruno@clisp.org>
41802
41803         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
41804         * doc/posix-functions/iswalpha_l.texi: Likewise.
41805         * doc/posix-functions/iswblank_l.texi: Likewise.
41806         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41807         * doc/posix-functions/iswctype_l.texi: Likewise.
41808         * doc/posix-functions/iswdigit_l.texi: Likewise.
41809         * doc/posix-functions/iswgraph_l.texi: Likewise.
41810         * doc/posix-functions/iswlower_l.texi: Likewise.
41811         * doc/posix-functions/iswprint_l.texi: Likewise.
41812         * doc/posix-functions/iswpunct_l.texi: Likewise.
41813         * doc/posix-functions/iswspace_l.texi: Likewise.
41814         * doc/posix-functions/iswupper_l.texi: Likewise.
41815         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41816         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
41817         * doc/posix-functions/open_wmemstream.texi: Likewise.
41818         * doc/posix-functions/swscanf.texi: Likewise.
41819         * doc/posix-functions/towctrans_l.texi: Likewise.
41820         * doc/posix-functions/towlower.texi: Likewise.
41821         * doc/posix-functions/towlower_l.texi: Likewise.
41822         * doc/posix-functions/towupper.texi: Likewise.
41823         * doc/posix-functions/towupper_l.texi: Likewise.
41824         * doc/posix-functions/vfwprintf.texi: Likewise.
41825         * doc/posix-functions/vfwscanf.texi: Likewise.
41826         * doc/posix-functions/vswscanf.texi: Likewise.
41827         * doc/posix-functions/vwprintf.texi: Likewise.
41828         * doc/posix-functions/vwscanf.texi: Likewise.
41829         * doc/posix-functions/wcpcpy.texi: Likewise.
41830         * doc/posix-functions/wcpncpy.texi: Likewise.
41831         * doc/posix-functions/wcscasecmp.texi: Likewise.
41832         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
41833         * doc/posix-functions/wcscoll_l.texi: Likewise.
41834         * doc/posix-functions/wcsdup.texi: Likewise.
41835         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41836         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
41837         * doc/posix-functions/wcsnlen.texi: Likewise.
41838         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41839         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41840         * doc/posix-functions/wctrans_l.texi: Likewise.
41841         * doc/posix-functions/wctype_l.texi: Likewise.
41842         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
41843         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
41844         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
41845         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
41846         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
41847         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
41848         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
41849         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
41850         * doc/glibc-functions/wcschrnul.texi: Likewise.
41851         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41852         * doc/glibc-functions/wcstod_l.texi: Likewise.
41853         * doc/glibc-functions/wcstof_l.texi: Likewise.
41854         * doc/glibc-functions/wcstol_l.texi: Likewise.
41855         * doc/glibc-functions/wcstold_l.texi: Likewise.
41856         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41857         * doc/glibc-functions/wcstoq.texi: Likewise.
41858         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41859         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41860         * doc/glibc-functions/wcstouq.texi: Likewise.
41861         * doc/glibc-functions/wmempcpy.texi: Likewise.
41862
41863 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
41864             Eric Blake  <ebb9@byu.net>
41865             Paolo Bonzini  <bonzini@gnu.org>
41866             Bruno Haible  <bruno@clisp.org>
41867
41868         Make c-stack work on Haiku.
41869         * lib/c-stack.c (SA_ONSTACK): Define fallback.
41870         (c_stack_action): Use SA_ONSTACK flag.
41871
41872 2008-12-22  Bruno Haible  <bruno@clisp.org>
41873
41874         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
41875
41876 2008-12-22  Bruno Haible  <bruno@clisp.org>
41877
41878         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
41879         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
41880         being overridden.
41881         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
41882         New macros.
41883         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
41884         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
41885         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
41886         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
41887
41888 2008-12-22  Bruno Haible  <bruno@clisp.org>
41889
41890         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
41891         from test code.
41892
41893 2008-12-22  Eric Blake  <ebb9@byu.net>
41894
41895         Avoid gcc warnings on cygwin.
41896         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
41897         Avoid unused variable.
41898         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
41899         Likewise.
41900
41901 2008-12-22  Bruno Haible  <bruno@clisp.org>
41902
41903         Remove HAVE_MBRTOWC conditionals.
41904         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
41905         (mbscasecmp): Assume mbrtowc function.
41906         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
41907         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
41908         * lib/mbschr.c: Include mbuiter.h unconditionally.
41909         (mbschr): Assume mbrtowc function.
41910         * lib/mbscspn.c: Include mbuiter.h unconditionally.
41911         (mbscspn): Assume mbrtowc function.
41912         * lib/mbslen.c: Include mbuiter.h unconditionally.
41913         (mbslen): Assume mbrtowc function.
41914         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
41915         (mbsncasecmp): Assume mbrtowc function.
41916         * lib/mbsnlen.c: Include mbiter.h unconditionally.
41917         (mbsnlen): Assume mbrtowc function.
41918         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
41919         (mbspbrk): Assume mbrtowc function.
41920         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
41921         (mbspcasecmp): Assume mbrtowc function.
41922         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
41923         (mbsrchr): Assume mbrtowc function.
41924         * lib/mbssep.c: Include mbuiter.h unconditionally.
41925         (mbssep): Assume mbrtowc function.
41926         * lib/mbsspn.c: Include mbuiter.h unconditionally.
41927         (mbsspn): Assume mbrtowc function.
41928         * lib/mbsstr.c: Include mbuiter.h unconditionally.
41929         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
41930         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
41931         (mbstok_r): Assume mbrtowc function.
41932         * lib/propername.c: Include mbuiter.h unconditionally.
41933         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
41934         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
41935         (trim2): Assume mbrtowc function.
41936         * lib/mbswidth.c (mbsinit): Remove fallback definition.
41937         (mbsnwidth): Assume mbrtowc function.
41938         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
41939         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
41940         fallback definitions.
41941         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
41942
41943 2008-12-22  Bruno Haible  <bruno@clisp.org>
41944
41945         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
41946
41947 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
41948
41949         * modules/regex: Request emulations for the mb*/wc* functions we need.
41950         * m4/regex.m4: Don't look for those functions here.
41951         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
41952
41953 2008-12-22  Bruno Haible  <bruno@clisp.org>
41954
41955         * modules/fnmatch (Depends-on): Remove duplicated dependency.
41956
41957 2008-12-21  Bruno Haible  <bruno@clisp.org>
41958
41959         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
41960         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
41961         (Include): Remove conditionalization.
41962         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
41963         (Include): Remove conditionalization.
41964         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
41965         (Include): Remove conditionalization.
41966         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
41967         * m4/mbfile.m4 (gl_MBFILE): Likewise.
41968         * NEWS: Mention the change.
41969         Reported by Alan Hourihane <alanh@fairlite.co.uk>
41970         via Sergey Poznyakoff <gray@gnu.org.ua>.
41971
41972 2008-12-21  Bruno Haible  <bruno@clisp.org>
41973
41974         * MODULES.html.sh (Extended multibyte and wide character utilities
41975         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
41976         wcrtomb, wcsrtombs.
41977         (Support for systems lacking POSIX:2008): Add accept, bind, close,
41978         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
41979         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
41980         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
41981
41982 2008-12-21  Bruno Haible  <bruno@clisp.org>
41983
41984         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
41985
41986 2008-12-21  Bruno Haible  <bruno@clisp.org>
41987
41988         * modules/wcsnrtombs-tests: New file.
41989         * tests/test-wcsnrtombs1.sh: New file.
41990         * tests/test-wcsnrtombs2.sh: New file.
41991         * tests/test-wcsnrtombs3.sh: New file.
41992         * tests/test-wcsnrtombs4.sh: New file.
41993         * tests/test-wcsnrtombs.c: New file.
41994
41995         New module 'wcsnrtombs'.
41996         * lib/wchar.in.h (wcsnrtombs): New declaration.
41997         * lib/wcsnrtombs.c: New file.
41998         * lib/wcsrtombs-state.c: New file.
41999         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42000         (internal_state): Remove variable.
42001         * m4/wcsnrtombs.m4: New file.
42002         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42003         compilation units.
42004         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42005         HAVE_WCSNRTOMBS.
42006         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42007         HAVE_WCSNRTOMBS.
42008         * modules/wcsnrtombs: New file.
42009         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42010         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42011
42012 2008-12-21  Bruno Haible  <bruno@clisp.org>
42013
42014         * modules/wcsrtombs-tests: New file.
42015         * tests/test-wcsrtombs1.sh: New file.
42016         * tests/test-wcsrtombs2.sh: New file.
42017         * tests/test-wcsrtombs3.sh: New file.
42018         * tests/test-wcsrtombs4.sh: New file.
42019         * tests/test-wcsrtombs.c: New file.
42020
42021         New module 'wcsrtombs'.
42022         * lib/wchar.in.h (wcsrtombs): New declaration.
42023         * lib/wcsrtombs.c: New file.
42024         * m4/wcsrtombs.m4: New file.
42025         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42026         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42028         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42029         * modules/wcsrtombs: New file.
42030         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42031         bugs.
42032
42033 2008-12-21  Bruno Haible  <bruno@clisp.org>
42034
42035         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42036         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42037         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42038         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42039         if not correct.
42040         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42041         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42042         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42043         m4/locale-zh.m4, m4/codeset.m4.
42044         * doc/posix-functions/wcrtomb.texi: Document the bug.
42045
42046 2008-12-21  Bruno Haible  <bruno@clisp.org>
42047
42048         Work around a btowc() bug on IRIX 6.5.
42049         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42050         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42051         REPLACE_WTOBC if not.
42052         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42053         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42054         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42055
42056 2008-12-21  Bruno Haible  <bruno@clisp.org>
42057
42058         * modules/wcrtomb-tests: New file.
42059         * tests/test-wcrtomb.sh: New file.
42060         * tests/test-wcrtomb.c: New file.
42061
42062         New module 'wcrtomb'.
42063         * lib/wchar.in.h (wcrtomb): New declaration.
42064         * lib/wcrtomb.c: New file.
42065         * m4/wcrtomb.m4: New file.
42066         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42067         HAVE_WCRTOMB.
42068         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42069         HAVE_WCRTOMB.
42070         * modules/wcrtomb: New file.
42071         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42072
42073 2008-12-21  Bruno Haible  <bruno@clisp.org>
42074
42075         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42076         * modules/mbsrtowcs (Files): Likewise.
42077         * modules/wctob (Files): Likewise.
42078         * modules/c-strcase-tests (Files): Likewise.
42079         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42080         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42081         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42082         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42083         * modules/vasnprintf-posix-tests (Files): Likewise.
42084
42085 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42086
42087         gitlog-to-changelog: pass all command-line arguments to git-log
42088         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42089         it is sometimes convenient to filter the commits in various ways.
42090         gitlog-to-changelog only allows --since to specify a start date,
42091         but git-log itself supports many other filtering mechanisms.
42092         At the moment, I want to filter by branch name.  Rather than
42093         adding a --branch option to gitlog-to-changelog, it seems more
42094         flexible to simply pass all options directly to git-log and let
42095         git do the work.  Notice that this effectively makes --since a
42096         redundant option for gitlog-to-changelog, but removing it would
42097         require current usage to change since calls would then require
42098         an additional '--'.
42099
42100 2008-12-21  Bruno Haible  <bruno@clisp.org>
42101
42102         * modules/mbsnrtowcs-tests: New file.
42103         * tests/test-mbsnrtowcs1.sh: New file.
42104         * tests/test-mbsnrtowcs2.sh: New file.
42105         * tests/test-mbsnrtowcs3.sh: New file.
42106         * tests/test-mbsnrtowcs4.sh: New file.
42107         * tests/test-mbsnrtowcs.c: New file.
42108
42109         New module 'mbsnrtowcs'.
42110         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42111         * lib/mbsnrtowcs.c: New file.
42112         * lib/mbsrtowcs-state.c: New file.
42113         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42114         (internal_state): Remove variable.
42115         * m4/mbsnrtowcs.m4: New file.
42116         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42117         compilation units.
42118         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42119         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42120         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42121         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42122         * modules/mbsnrtowcs: New file.
42123         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42124         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
42125         portability problem.
42126
42127 2008-12-21  Bruno Haible  <bruno@clisp.org>
42128
42129         Work around mbsrtowcs bug.
42130         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
42131         (gl_FUNC_MBSRTOWCS): Invoke it.
42132         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42133         m4/locale-zh.m4.
42134         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
42135
42136 2008-12-21  Bruno Haible  <bruno@clisp.org>
42137
42138         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
42139
42140 2008-12-21  Bruno Haible  <bruno@clisp.org>
42141
42142         Update doc for AIX.
42143         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
42144         16-bit wchar_t type.
42145         * doc/posix-functions/btowc.texi: Likewise.
42146         * doc/posix-functions/fgetwc.texi: Likewise.
42147         * doc/posix-functions/fgetws.texi: Likewise.
42148         * doc/posix-functions/fputwc.texi: Likewise.
42149         * doc/posix-functions/fputws.texi: Likewise.
42150         * doc/posix-functions/fwide.texi: Likewise.
42151         * doc/posix-functions/fwprintf.texi: Likewise.
42152         * doc/posix-functions/fwscanf.texi: Likewise.
42153         * doc/posix-functions/getwchar.texi: Likewise.
42154         * doc/posix-functions/getwc.texi: Likewise.
42155         * doc/posix-functions/iswalnum.texi: Likewise.
42156         * doc/posix-functions/iswalpha.texi: Likewise.
42157         * doc/posix-functions/iswblank.texi: Likewise.
42158         * doc/posix-functions/iswcntrl.texi: Likewise.
42159         * doc/posix-functions/iswctype.texi: Likewise.
42160         * doc/posix-functions/iswdigit.texi: Likewise.
42161         * doc/posix-functions/iswgraph.texi: Likewise.
42162         * doc/posix-functions/iswlower.texi: Likewise.
42163         * doc/posix-functions/iswprint.texi: Likewise.
42164         * doc/posix-functions/iswpunct.texi: Likewise.
42165         * doc/posix-functions/iswspace.texi: Likewise.
42166         * doc/posix-functions/iswupper.texi: Likewise.
42167         * doc/posix-functions/iswxdigit.texi: Likewise.
42168         * doc/posix-functions/mbrtowc.texi: Likewise.
42169         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42170         * doc/posix-functions/mbstowcs.texi: Likewise.
42171         * doc/posix-functions/mbtowc.texi: Likewise.
42172         * doc/posix-functions/putwchar.texi: Likewise.
42173         * doc/posix-functions/putwc.texi: Likewise.
42174         * doc/posix-functions/swprintf.texi: Likewise.
42175         * doc/posix-functions/tolower.texi: Likewise.
42176         * doc/posix-functions/toupper.texi: Likewise.
42177         * doc/posix-functions/towctrans.texi: Likewise.
42178         * doc/posix-functions/ungetwc.texi: Likewise.
42179         * doc/posix-functions/vswprintf.texi: Likewise.
42180         * doc/posix-functions/wcrtomb.texi: Likewise.
42181         * doc/posix-functions/wcscat.texi: Likewise.
42182         * doc/posix-functions/wcschr.texi: Likewise.
42183         * doc/posix-functions/wcscmp.texi: Likewise.
42184         * doc/posix-functions/wcscoll.texi: Likewise.
42185         * doc/posix-functions/wcscpy.texi: Likewise.
42186         * doc/posix-functions/wcscspn.texi: Likewise.
42187         * doc/posix-functions/wcsftime.texi: Likewise.
42188         * doc/posix-functions/wcslen.texi: Likewise.
42189         * doc/posix-functions/wcsncat.texi: Likewise.
42190         * doc/posix-functions/wcsncmp.texi: Likewise.
42191         * doc/posix-functions/wcsncpy.texi: Likewise.
42192         * doc/posix-functions/wcspbrk.texi: Likewise.
42193         * doc/posix-functions/wcsrchr.texi: Likewise.
42194         * doc/posix-functions/wcsrtombs.texi: Likewise.
42195         * doc/posix-functions/wcsspn.texi: Likewise.
42196         * doc/posix-functions/wcsstr.texi: Likewise.
42197         * doc/posix-functions/wcstod.texi: Likewise.
42198         * doc/posix-functions/wcstof.texi: Likewise.
42199         * doc/posix-functions/wcstoimax.texi: Likewise.
42200         * doc/posix-functions/wcstok.texi: Likewise.
42201         * doc/posix-functions/wcstold.texi: Likewise.
42202         * doc/posix-functions/wcstoll.texi: Likewise.
42203         * doc/posix-functions/wcstol.texi: Likewise.
42204         * doc/posix-functions/wcstombs.texi: Likewise.
42205         * doc/posix-functions/wcstoull.texi: Likewise.
42206         * doc/posix-functions/wcstoul.texi: Likewise.
42207         * doc/posix-functions/wcstoumax.texi: Likewise.
42208         * doc/posix-functions/wcswidth.texi: Likewise.
42209         * doc/posix-functions/wcsxfrm.texi: Likewise.
42210         * doc/posix-functions/wctob.texi: Likewise.
42211         * doc/posix-functions/wctomb.texi: Likewise.
42212         * doc/posix-functions/wctrans.texi: Likewise.
42213         * doc/posix-functions/wctype.texi: Likewise.
42214         * doc/posix-functions/wcwidth.texi: Likewise.
42215         * doc/posix-functions/wmemchr.texi: Likewise.
42216         * doc/posix-functions/wmemcmp.texi: Likewise.
42217         * doc/posix-functions/wmemcpy.texi: Likewise.
42218         * doc/posix-functions/wmemmove.texi: Likewise.
42219         * doc/posix-functions/wmemset.texi: Likewise.
42220         * doc/posix-functions/wprintf.texi: Likewise.
42221         * doc/posix-functions/wscanf.texi: Likewise.
42222
42223 2008-12-21  Bruno Haible  <bruno@clisp.org>
42224
42225         Update doc for HP-UX 11.11.
42226         * doc/posix-functions/btowc.texi: Clarify that the function is missing
42227         in HP-UX version 11.00, not in all versions of HP-UX 11.
42228         * doc/posix-functions/fwide.texi: Likewise.
42229         * doc/posix-functions/fwprintf.texi: Likewise.
42230         * doc/posix-functions/fwscanf.texi: Likewise.
42231         * doc/posix-functions/inet_ntop.texi: Likewise.
42232         * doc/posix-functions/inet_pton.texi: Likewise.
42233         * doc/posix-functions/mbrlen.texi: Likewise.
42234         * doc/posix-functions/mbrtowc.texi: Likewise.
42235         * doc/posix-functions/mbsinit.texi: Likewise.
42236         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42237         * doc/posix-functions/swprintf.texi: Likewise.
42238         * doc/posix-functions/swscanf.texi: Likewise.
42239         * doc/posix-functions/towctrans.texi: Likewise.
42240         * doc/posix-functions/vfwprintf.texi: Likewise.
42241         * doc/posix-functions/vswprintf.texi: Likewise.
42242         * doc/posix-functions/vwprintf.texi: Likewise.
42243         * doc/posix-functions/wcrtomb.texi: Likewise.
42244         * doc/posix-functions/wcsrtombs.texi: Likewise.
42245         * doc/posix-functions/wcsstr.texi: Likewise.
42246         * doc/posix-functions/wctob.texi: Likewise.
42247         * doc/posix-functions/wctrans.texi: Likewise.
42248         * doc/posix-functions/wmemchr.texi: Likewise.
42249         * doc/posix-functions/wmemcmp.texi: Likewise.
42250         * doc/posix-functions/wmemcpy.texi: Likewise.
42251         * doc/posix-functions/wmemmove.texi: Likewise.
42252         * doc/posix-functions/wmemset.texi: Likewise.
42253         * doc/posix-functions/wprintf.texi: Likewise.
42254         * doc/posix-functions/wscanf.texi: Likewise.
42255
42256 2008-12-21  Bruno Haible  <bruno@clisp.org>
42257
42258         Work around a portability problem.
42259         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
42260         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
42261
42262 2008-12-20  Bruno Haible  <bruno@clisp.org>
42263
42264         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
42265         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
42266         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
42267         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
42268         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
42269
42270         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
42271         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
42272         set.
42273         (GNULIB_defined_mbstate_t): New macro.
42274         (mbsinit): Redefine if REPLACE_MBSINIT is set.
42275         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
42276         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
42277         reuses the system's mbrtowc function but works around the bugs.
42278         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
42279         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
42280         macros.
42281         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
42282         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
42283         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
42284         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
42285         REPLACE_MBSINIT if mbsinit needs to be overridden.
42286         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
42287         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42288         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
42289         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42290         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42291         m4/locale-zh.m4.
42292         (Depends): Add mbsinit.
42293         * modules/mbsinit (Depends): Add mbrtowc.
42294         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
42295
42296 2008-12-20  Bruno Haible  <bruno@clisp.org>
42297
42298         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
42299         so that there are no conversion errors on AIX.
42300         * tests/test-mbsrtowcs.c (main): LIkewise.
42301
42302 2008-12-20  Bruno Haible  <bruno@clisp.org>
42303
42304         Work around wctob bug on Solaris <= 9.
42305         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
42306         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
42307         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
42308         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
42309         * modules/wctob (Files): Add m4/locale-fr.m4.
42310         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
42311
42312 2008-12-20  Bruno Haible  <bruno@clisp.org>
42313
42314         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
42315         /dev/null.
42316         * tests/test-select-in.sh: Likewise.
42317         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42318
42319 2008-12-20  Bruno Haible  <bruno@clisp.org>
42320
42321         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
42322         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
42323         Cygwin 1.5.x.
42324
42325 2008-12-20  Bruno Haible  <bruno@clisp.org>
42326
42327         Ensure mbstate_t is defined on HP-UX 11.11.
42328         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
42329         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
42330         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
42331         AC_USE_SYSTEM_EXTENSIONS.
42332         * modules/fnmatch (Depends-on): Add extensions.
42333         * modules/mbrlen (Depends-on): Likewise.
42334         * modules/mbrtowc (Depends-on): Likewise.
42335         * modules/mbsinit (Depends-on): Likewise.
42336         * modules/mbsrtowcs (Depends-on): Likewise.
42337         * modules/mbswidth (Depends-on): Likewise.
42338         * modules/quotearg (Depends-on): Likewise.
42339         * modules/strftime (Depends-on): Likewise.
42340
42341 2008-12-20  Bruno Haible  <bruno@clisp.org>
42342
42343         Ensure wctob is declared on IRIX 6.5.
42344         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
42345         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
42346         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
42347         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
42348         of HAVE_WCTOB.
42349         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
42350         HAVE_WCTOB.
42351         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
42352
42353 2008-12-19  Bruno Haible  <bruno@clisp.org>
42354
42355         * modules/mbsrtowcs-tests: New file.
42356         * tests/test-mbsrtowcs1.sh: New file.
42357         * tests/test-mbsrtowcs2.sh: New file.
42358         * tests/test-mbsrtowcs3.sh: New file.
42359         * tests/test-mbsrtowcs4.sh: New file.
42360         * tests/test-mbsrtowcs.c: New file.
42361
42362         New module 'mbsrtowcs'.
42363         * lib/wchar.in.h (mbsrtowcs): New declaration.
42364         * lib/mbsrtowcs.c: New file.
42365         * m4/mbsrtowcs.m4: New file.
42366         * modules/mbsrtowcs: New file.
42367         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
42368         HAVE_MBSRTOWCS.
42369         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
42370         HAVE_MBSRTOWCS.
42371         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
42372
42373 2008-12-19  Bruno Haible  <bruno@clisp.org>
42374
42375         New module 'mbrlen'.
42376         * lib/wchar.in.h (mbrlen): New declaration.
42377         * lib/mbrlen.c: New file.
42378         * m4/mbrlen.m4: New file.
42379         * modules/mbrlen: New file.
42380         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
42381         HAVE_MBRLEN.
42382         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
42383         HAVE_MBRLEN.
42384         * doc/posix-functions/mbrlen.texi: Document the new module.
42385
42386 2008-12-19  Bruno Haible  <bruno@clisp.org>
42387
42388         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
42389         * modules/mbrtowc (Depends-on): Add verify.
42390         Suggested by Paul Eggert.
42391
42392 2008-12-18  Bruno Haible  <bruno@clisp.org>
42393
42394         * modules/mbsinit-tests: New file.
42395         * tests/test-mbsinit.sh: New file.
42396         * tests/test-mbsinit.c: New file.
42397
42398 2008-12-18  Bruno Haible  <bruno@clisp.org>
42399
42400         * modules/mbrtowc-tests: New file.
42401         * tests/test-mbrtowc1.sh: New file.
42402         * tests/test-mbrtowc2.sh: New file.
42403         * tests/test-mbrtowc3.sh: New file.
42404         * tests/test-mbrtowc4.sh: New file.
42405         * tests/test-mbrtowc.c: New file.
42406
42407         New module 'mbrtowc'.
42408         * lib/wchar.in.h (mbstate_t): Override when the system does not have
42409         mbsinit and mbrtowc.
42410         (mbrtowc): New declaration.
42411         * lib/mbrtowc.c: New file.
42412         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
42413         * modules/mbrtowc: New file.
42414         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
42415         HAVE_MBRTOWC.
42416         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
42417         HAVE_MBRTOWC.
42418         * doc/posix-functions/mbrtowc.texi: Document the new module.
42419
42420 2008-12-18  Bruno Haible  <bruno@clisp.org>
42421
42422         New module 'wctob'.
42423         * lib/wchar.in.h (wctob): New declaration.
42424         * lib/wctob.c: New file.
42425         * m4/wctob.m4: New file.
42426         * modules/wctob: New file.
42427         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
42428         HAVE_WCTOB.
42429         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
42430         * doc/posix-functions/wctob.texi: Document the new module.
42431
42432 2008-12-18  Bruno Haible  <bruno@clisp.org>
42433
42434         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
42435         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
42436
42437 2008-12-18  Simon Josefsson  <simon@josefsson.org>
42438
42439         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
42440         G. Christensen" <tgc@jupiterrise.com>.
42441
42442         * lib/flock.c: Need to include errno.h.  Reported by "Tom
42443         G. Christensen" <tgc@jupiterrise.com>.
42444
42445         * lib/flock.c: Need to include string.h.  Reported by "Tom
42446         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
42447         <ebb9@byu.net>.
42448
42449 2008-12-18  Bruno Haible  <bruno@clisp.org>
42450
42451         * m4/locale-ja.m4: New file, from GNU gettext.
42452
42453 2008-12-17  Bruno Haible  <bruno@clisp.org>
42454
42455         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
42456         Suggested by Eric Blake.
42457
42458 2008-12-17  Bruno Haible  <bruno@clisp.org>
42459
42460         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
42461
42462 2008-12-17  Bruno Haible  <bruno@clisp.org>
42463
42464         * lib/mbsinit.c: Include verify.h. Verify an assumption.
42465         * modules/mbsinit (Depends-on): Add verify.
42466         Suggested by Paul Eggert.
42467
42468 2008-12-17  Bruno Haible  <bruno@clisp.org>
42469
42470         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
42471         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
42472         gl_FUNC_MBRTOWC.
42473         * m4/mbiter.m4 (gl_MBITER): LIkewise.
42474         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
42475         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
42476         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
42477         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
42478         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
42479         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
42480         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
42481         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
42482         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
42483         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
42484         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
42485         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
42486         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
42487         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
42488         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42489         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
42490         * modules/trim (configure.ac): Likewise.
42491
42492 2008-12-17  Bruno Haible  <bruno@clisp.org>
42493
42494         * modules/btowc-tests: New file.
42495         * tests/test-btowc1.sh: New file.
42496         * tests/test-btowc2.sh: New file.
42497         * tests/test-btowc.c: New file.
42498
42499         New module 'btowc'.
42500         * lib/wchar.in.h (btowc): New declaration.
42501         * lib/btowc.c: New file.
42502         * m4/btowc.m4: New file.
42503         * modules/btowc: New file.
42504         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
42505         HAVE_BTOWC.
42506         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
42507         * doc/posix-functions/btowc.texi: Document the new module.
42508
42509 2008-12-17  Bruno Haible  <bruno@clisp.org>
42510
42511         New module 'mbsinit'.
42512         * lib/wchar.in.h (mbsinit): New declaration.
42513         * lib/mbsinit.c: New file.
42514         * m4/mbsinit.m4: New file.
42515         * modules/mbsinit: New file.
42516         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
42517         HAVE_MBSINIT.
42518         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
42519         HAVE_MBSINIT.
42520         * doc/posix-functions/mbsinit.texi: Document the new module.
42521
42522 2008-12-16  Bruno Haible  <bruno@clisp.org>
42523
42524         * lib/unistd.in.h: Add comment.
42525         * tests/test-environ.c: Don't include <stdlib.h>.
42526
42527 2008-12-16  Bruno Haible  <bruno@clisp.org>
42528
42529         * lib/parse-duration.h (parse_duration): Document return value
42530         convention.
42531         * lib/parse-duration.c: Include specification header first. Add
42532         comments.
42533         (_): Remove macro.
42534         (parse_year_month_day, parse_hour_minute_second): Move side effects
42535         outside of strchr call.
42536         (parse_non_iso8601): Move side effects outside of isspace call.
42537         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
42538         call.
42539
42540 2008-12-16  Bruno Haible  <bruno@clisp.org>
42541
42542         * tests/test-parse-duration.sh: Produce no output when the test
42543         succeeds.
42544
42545 2008-12-16  Bruno Haible  <bruno@clisp.org>
42546
42547         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
42548         expressions.
42549
42550 2008-12-15  Bruno Haible  <bruno@clisp.org>
42551
42552         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
42553         * doc/glibc-functions/flistxattr.texi: Likewise.
42554         * doc/glibc-functions/fopencookie.texi: Likewise.
42555         * doc/glibc-functions/fremovexattr.texi: Likewise.
42556         * doc/glibc-functions/fsetxattr.texi: Likewise.
42557         * doc/glibc-functions/getxattr.texi: Likewise.
42558         * doc/glibc-functions/lgetxattr.texi: Likewise.
42559         * doc/glibc-functions/listxattr.texi: Likewise.
42560         * doc/glibc-functions/llistxattr.texi: Likewise.
42561         * doc/glibc-functions/lremovexattr.texi: Likewise.
42562         * doc/glibc-functions/lsetxattr.texi: Likewise.
42563         * doc/glibc-functions/removexattr.texi: Likewise.
42564         * doc/glibc-functions/setxattr.texi: Likewise.
42565         * doc/posix-functions/open_memstream.texi: Likewise.
42566
42567 2008-12-15  Eric Blake  <ebb9@byu.net>
42568
42569         Update doc for cygwin 1.7.
42570         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
42571         functions.
42572         * doc/posix-functions/fchmodat.texi: Likewise.
42573         * doc/posix-functions/fchownat.texi: Likewise.
42574         * doc/posix-functions/fdopendir.texi: Likewise.
42575         * doc/posix-functions/fmemopen.texi: Likewise.
42576         * doc/posix-functions/freeaddrinfo.texi: Likewise.
42577         * doc/posix-functions/fstatat.texi: Likewise.
42578         * doc/posix-functions/futimens.texi: Likewise.
42579         * doc/posix-functions/gai_strerror.texi: Likewise.
42580         * doc/posix-functions/getaddrinfo.texi: Likewise.
42581         * doc/posix-functions/getnameinfo.texi: Likewise.
42582         * doc/posix-functions/if_freenameindex.texi: Likewise.
42583         * doc/posix-functions/if_indextoname.texi: Likewise.
42584         * doc/posix-functions/if_nameindex.texi: Likewise.
42585         * doc/posix-functions/if_nametoindex.texi: Likewise.
42586         * doc/posix-functions/insque.texi: Likewise.
42587         * doc/posix-functions/linkat.texi: Likewise.
42588         * doc/posix-functions/llrint.texi: Likewise.
42589         * doc/posix-functions/llrintf.texi: Likewise.
42590         * doc/posix-functions/llrintl.texi: Likewise.
42591         * doc/posix-functions/lockf.texi: Likewise.
42592         * doc/posix-functions/lrintl.texi: Likewise.
42593         * doc/posix-functions/mkdirat.texi: Likewise.
42594         * doc/posix-functions/mkfifoat.texi: Likewise.
42595         * doc/posix-functions/mknodat.texi: Likewise.
42596         * doc/posix-functions/mq_close.texi: Likewise.
42597         * doc/posix-functions/mq_getattr.texi: Likewise.
42598         * doc/posix-functions/mq_notify.texi: Likewise.
42599         * doc/posix-functions/mq_open.texi: Likewise.
42600         * doc/posix-functions/mq_receive.texi: Likewise.
42601         * doc/posix-functions/mq_send.texi: Likewise.
42602         * doc/posix-functions/mq_setattr.texi: Likewise.
42603         * doc/posix-functions/mq_timedreceive.texi: Likewise.
42604         * doc/posix-functions/mq_timedsend.texi: Likewise.
42605         * doc/posix-functions/mq_unlink.texi: Likewise.
42606         * doc/posix-functions/open_memstream.texi: Likewise.
42607         * doc/posix-functions/openat.texi: Likewise.
42608         * doc/posix-functions/posix_fadvise.texi: Likewise.
42609         * doc/posix-functions/posix_fallocate.texi: Likewise.
42610         * doc/posix-functions/posix_madvise.texi: Likewise.
42611         * doc/posix-functions/posix_memalign.texi: Likewise.
42612         * doc/posix-functions/posix_openpt.texi: Likewise.
42613         * doc/posix-functions/readlinkat.texi: Likewise.
42614         * doc/posix-functions/remque.texi: Likewise.
42615         * doc/posix-functions/renameat.texi: Likewise.
42616         * doc/posix-functions/rintl.texi: Likewise.
42617         * doc/posix-functions/sem_unlink.texi: Likewise.
42618         * doc/posix-functions/shm_open.texi: Likewise.
42619         * doc/posix-functions/shm_unlink.texi: Likewise.
42620         * doc/posix-functions/signgam.texi: Likewise.
42621         * doc/posix-functions/sigset.texi: Likewise.
42622         * doc/posix-functions/stpcpy.texi: Likewise.
42623         * doc/posix-functions/stpncpy.texi: Likewise.
42624         * doc/posix-functions/strerror.texi: Likewise.
42625         * doc/posix-functions/strtod.texi: Likewise.
42626         * doc/posix-functions/symlinkat.texi: Likewise.
42627         * doc/posix-functions/unlinkat.texi: Likewise.
42628         * doc/posix-functions/utimensat.texi: Likewise.
42629         * doc/glibc-functions/bindresvport.texi: Likewise.
42630         * doc/glibc-functions/dn_expand.texi: Likewise.
42631         * doc/glibc-functions/exp10.texi: Likewise.
42632         * doc/glibc-functions/exp10f.texi: Likewise.
42633         * doc/glibc-functions/fgetxattr.texi: Likewise.
42634         * doc/glibc-functions/flistxattr.texi: Likewise.
42635         * doc/glibc-functions/fopencookie.texi: Likewise.
42636         * doc/glibc-functions/freeifaddrs.texi: Likewise.
42637         * doc/glibc-functions/fremovexattr.texi: Likewise.
42638         * doc/glibc-functions/fsetxattr.texi: Likewise.
42639         * doc/glibc-functions/getifaddrs.texi: Likewise.
42640         * doc/glibc-functions/getxattr.texi: Likewise.
42641         * doc/glibc-functions/lgetxattr.texi: Likewise.
42642         * doc/glibc-functions/listxattr.texi: Likewise.
42643         * doc/glibc-functions/llistxattr.texi: Likewise.
42644         * doc/glibc-functions/lremovexattr.texi: Likewise.
42645         * doc/glibc-functions/lsetxattr.texi: Likewise.
42646         * doc/glibc-functions/pow10.texi: Likewise.
42647         * doc/glibc-functions/pow10f.texi: Likewise.
42648         * doc/glibc-functions/rcmd_af.texi: Likewise.
42649         * doc/glibc-functions/removexattr.texi: Likewise.
42650         * doc/glibc-functions/res_init.texi: Likewise.
42651         * doc/glibc-functions/res_mkquery.texi: Likewise.
42652         * doc/glibc-functions/res_query.texi: Likewise.
42653         * doc/glibc-functions/res_querydomain.texi: Likewise.
42654         * doc/glibc-functions/res_send.texi: Likewise.
42655         * doc/glibc-functions/rresvport_af.texi: Likewise.
42656         * doc/glibc-functions/setxattr.texi: Likewise.
42657         * doc/glibc-functions/strcasestr.texi: Likewise.
42658
42659 2008-12-15  Bruno Haible  <bruno@clisp.org>
42660
42661         Fix compilation error on OSF/1 4.0.
42662         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
42663         <sys/time.h>, simply delegate to the system header.
42664         Reported by Daniel Richard G. <oss@teragram.com>.
42665
42666 2008-12-15  Bruno Haible  <bruno@clisp.org>
42667
42668         * doc/posix-functions/openat.texi: Mention the 'openat' module.
42669         * doc/posix-functions/fchmodat.texi: Likewise.
42670         * doc/posix-functions/fchownat.texi: Likewise.
42671         * doc/posix-functions/fdopendir.texi: Likewise.
42672         * doc/posix-functions/fstatat.texi: Likewise.
42673         * doc/posix-functions/mkdirat.texi: Likewise.
42674         * doc/posix-functions/unlinkat.texi: Likewise.
42675
42676 2008-12-14  Bruno Haible  <bruno@clisp.org>
42677
42678         Update doc for POSIX:2008.
42679         * doc/posix-functions/faccessat.texi: New file.
42680         * doc/posix-functions/fchmodat.texi: New file.
42681         * doc/posix-functions/fchownat.texi: New file.
42682         * doc/posix-functions/fdopendir.texi: New file.
42683         * doc/posix-functions/fstatat.texi: New file.
42684         * doc/posix-functions/futimens.texi: New file.
42685         * doc/posix-functions/linkat.texi: New file.
42686         * doc/posix-functions/mkdirat.texi: New file.
42687         * doc/posix-functions/mkfifoat.texi: New file.
42688         * doc/posix-functions/mknodat.texi: New file.
42689         * doc/posix-functions/open_wmemstream.texi: New file.
42690         * doc/posix-functions/openat.texi: New file.
42691         * doc/posix-functions/psiginfo.texi: New file.
42692         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
42693         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
42694         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
42695         * doc/posix-functions/readlinkat.texi: New file.
42696         * doc/posix-functions/renameat.texi: New file.
42697         * doc/posix-functions/strerror_l.texi: New file.
42698         * doc/posix-functions/symlinkat.texi: New file.
42699         * doc/posix-functions/unlinkat.texi: New file.
42700         * doc/posix-functions/utimensat.texi: New file.
42701         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42702
42703 2008-12-14  Bruno Haible  <bruno@clisp.org>
42704
42705         Update doc for POSIX:2008.
42706         * doc/posix-functions/alphasort.texi: Renamed from
42707         doc/glibc-functions/alphasort.texi.
42708         * doc/posix-functions/dirfd.texi: Renamed from
42709         doc/glibc-functions/dirfd.texi.
42710         * doc/posix-functions/dprintf.texi: Renamed from
42711         doc/glibc-functions/dprintf.texi.
42712         * doc/posix-functions/duplocale.texi: Renamed from
42713         doc/glibc-functions/duplocale.texi.
42714         * doc/posix-functions/fexecve.texi: Renamed from
42715         doc/glibc-functions/fexecve.texi.
42716         * doc/posix-functions/fmemopen.texi: Renamed from
42717         doc/glibc-functions/fmemopen.texi.
42718         * doc/posix-functions/freelocale.texi: Renamed from
42719         doc/glibc-functions/freelocale.texi.
42720         * doc/posix-functions/getdate_err.texi: Renamed from
42721         doc/glibc-functions/getdate_err.texi.
42722         * doc/posix-functions/isalnum_l.texi: Renamed from
42723         doc/glibc-functions/isalnum_l.texi.
42724         * doc/posix-functions/isalpha_l.texi: Renamed from
42725         doc/glibc-functions/isalpha_l.texi.
42726         * doc/posix-functions/isblank_l.texi: Renamed from
42727         doc/glibc-functions/isblank_l.texi.
42728         * doc/posix-functions/iscntrl_l.texi: Renamed from
42729         doc/glibc-functions/iscntrl_l.texi.
42730         * doc/posix-functions/isdigit_l.texi: Renamed from
42731         doc/glibc-functions/isdigit_l.texi.
42732         * doc/posix-functions/isgraph_l.texi: Renamed from
42733         doc/glibc-functions/isgraph_l.texi.
42734         * doc/posix-functions/islower_l.texi: Renamed from
42735         doc/glibc-functions/islower_l.texi.
42736         * doc/posix-functions/isprint_l.texi: Renamed from
42737         doc/glibc-functions/isprint_l.texi.
42738         * doc/posix-functions/ispunct_l.texi: Renamed from
42739         doc/glibc-functions/ispunct_l.texi.
42740         * doc/posix-functions/isspace_l.texi: Renamed from
42741         doc/glibc-functions/isspace_l.texi.
42742         * doc/posix-functions/isupper_l.texi: Renamed from
42743         doc/glibc-functions/isupper_l.texi.
42744         * doc/posix-functions/iswalnum_l.texi: Renamed from
42745         doc/glibc-functions/iswalnum_l.texi.
42746         * doc/posix-functions/iswalpha_l.texi: Renamed from
42747         doc/glibc-functions/iswalpha_l.texi.
42748         * doc/posix-functions/iswblank_l.texi: Renamed from
42749         doc/glibc-functions/iswblank_l.texi.
42750         * doc/posix-functions/iswcntrl_l.texi: Renamed from
42751         doc/glibc-functions/iswcntrl_l.texi.
42752         * doc/posix-functions/iswctype_l.texi: Renamed from
42753         doc/glibc-functions/iswctype_l.texi.
42754         * doc/posix-functions/iswdigit_l.texi: Renamed from
42755         doc/glibc-functions/iswdigit_l.texi.
42756         * doc/posix-functions/iswgraph_l.texi: Renamed from
42757         doc/glibc-functions/iswgraph_l.texi.
42758         * doc/posix-functions/iswlower_l.texi: Renamed from
42759         doc/glibc-functions/iswlower_l.texi.
42760         * doc/posix-functions/iswprint_l.texi: Renamed from
42761         doc/glibc-functions/iswprint_l.texi.
42762         * doc/posix-functions/iswpunct_l.texi: Renamed from
42763         doc/glibc-functions/iswpunct_l.texi.
42764         * doc/posix-functions/iswspace_l.texi: Renamed from
42765         doc/glibc-functions/iswspace_l.texi.
42766         * doc/posix-functions/iswupper_l.texi: Renamed from
42767         doc/glibc-functions/iswupper_l.texi.
42768         * doc/posix-functions/iswxdigit_l.texi: Renamed from
42769         doc/glibc-functions/iswxdigit_l.texi.
42770         * doc/posix-functions/isxdigit_l.texi: Renamed from
42771         doc/glibc-functions/isxdigit_l.texi.
42772         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
42773         doc/glibc-functions/mbsnrtowcs.texi.
42774         * doc/posix-functions/mkdtemp.texi: Renamed from
42775         doc/glibc-functions/mkdtemp.texi.
42776         * doc/posix-functions/newlocale.texi: Renamed from
42777         doc/glibc-functions/newlocale.texi.
42778         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
42779         doc/glibc-functions/nl_langinfo_l.texi.
42780         * doc/posix-functions/open_memstream.texi: Renamed from
42781         doc/glibc-functions/open_memstream.texi.
42782         * doc/posix-functions/opterr.texi: Renamed from
42783         doc/glibc-functions/opterr.texi.
42784         * doc/posix-functions/optind.texi: Renamed from
42785         doc/glibc-functions/optind.texi.
42786         * doc/posix-functions/optopt.texi: Renamed from
42787         doc/glibc-functions/optopt.texi.
42788         * doc/posix-functions/psignal.texi: Renamed from
42789         doc/glibc-functions/psignal.texi.
42790         * doc/posix-functions/scandir.texi: Renamed from
42791         doc/glibc-functions/scandir.texi.
42792         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
42793         doc/glibc-functions/sched_get_priority_min.texi.
42794         * doc/posix-functions/signgam.texi: Renamed from
42795         doc/glibc-functions/signgam.texi.
42796         * doc/posix-functions/stpcpy.texi: Renamed from
42797         doc/glibc-functions/stpcpy.texi.
42798         * doc/posix-functions/stpncpy.texi: Renamed from
42799         doc/glibc-functions/stpncpy.texi.
42800         * doc/posix-functions/strcasecmp_l.texi: Renamed from
42801         doc/glibc-functions/strcasecmp_l.texi.
42802         * doc/posix-functions/strcoll_l.texi: Renamed from
42803         doc/glibc-functions/strcoll_l.texi.
42804         * doc/posix-functions/strfmon_l.texi: Renamed from
42805         doc/glibc-functions/strfmon_l.texi.
42806         * doc/posix-functions/strftime_l.texi: Renamed from
42807         doc/glibc-functions/strftime_l.texi.
42808         * doc/posix-functions/strncasecmp_l.texi: Renamed from
42809         doc/glibc-functions/strncasecmp_l.texi.
42810         * doc/posix-functions/strndup.texi: Renamed from
42811         doc/glibc-functions/strndup.texi.
42812         * doc/posix-functions/strnlen.texi: Renamed from
42813         doc/glibc-functions/strnlen.texi.
42814         * doc/posix-functions/strsignal.texi: Renamed from
42815         doc/glibc-functions/strsignal.texi.
42816         * doc/posix-functions/strxfrm_l.texi: Renamed from
42817         doc/glibc-functions/strxfrm_l.texi.
42818         * doc/posix-functions/timer_gettime.texi: Renamed from
42819         doc/glibc-functions/timer_gettime.texi.
42820         * doc/posix-functions/tolower_l.texi: Renamed from
42821         doc/glibc-functions/tolower_l.texi.
42822         * doc/posix-functions/toupper_l.texi: Renamed from
42823         doc/glibc-functions/toupper_l.texi.
42824         * doc/posix-functions/towctrans_l.texi: Renamed from
42825         doc/glibc-functions/towctrans_l.texi.
42826         * doc/posix-functions/towlower_l.texi: Renamed from
42827         doc/glibc-functions/towlower_l.texi.
42828         * doc/posix-functions/towupper_l.texi: Renamed from
42829         doc/glibc-functions/towupper_l.texi.
42830         * doc/posix-functions/uselocale.texi: Renamed from
42831         doc/glibc-functions/uselocale.texi.
42832         * doc/posix-functions/vdprintf.texi: Renamed from
42833         doc/glibc-functions/vdprintf.texi.
42834         * doc/posix-functions/wcpcpy.texi:
42835         Renamed from doc/glibc-functions/wcpcpy.texi.
42836         * doc/posix-functions/wcpncpy.texi: Renamed from
42837         doc/glibc-functions/wcpncpy.texi.
42838         * doc/posix-functions/wcscasecmp.texi: Renamed from
42839         doc/glibc-functions/wcscasecmp.texi.
42840         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
42841         doc/glibc-functions/wcscasecmp_l.texi.
42842         * doc/posix-functions/wcscoll_l.texi: Renamed from
42843         doc/glibc-functions/wcscoll_l.texi.
42844         * doc/posix-functions/wcsdup.texi: Renamed from
42845         doc/glibc-functions/wcsdup.texi.
42846         * doc/posix-functions/wcsncasecmp.texi: Renamed from
42847         doc/glibc-functions/wcsncasecmp.texi.
42848         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
42849         doc/glibc-functions/wcsncasecmp_l.texi.
42850         * doc/posix-functions/wcsnlen.texi: Renamed from
42851         doc/glibc-functions/wcsnlen.texi.
42852         * doc/posix-functions/wcsnrtombs.texi: Renamed from
42853         doc/glibc-functions/wcsnrtombs.texi.
42854         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
42855         doc/glibc-functions/wcsxfrm_l.texi.
42856         * doc/posix-functions/wctrans_l.texi: Renamed from
42857         doc/glibc-functions/wctrans_l.texi.
42858         * doc/posix-functions/wctype_l.texi: Renamed from
42859         doc/glibc-functions/wctype_l.texi.
42860         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42861         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
42862         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
42863         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
42864         these subsections.
42865         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
42866         Remove sections.
42867
42868 2008-12-14  Bruno Haible  <bruno@clisp.org>
42869
42870         Update doc for POSIX:2008.
42871         * doc/posix-functions/*.texi: Update URL of POSIX specification.
42872
42873 2008-12-14  Bruno Haible  <bruno@clisp.org>
42874
42875         Update doc for POSIX:2008.
42876         * doc/pastposix-functions/bcmp.texi: Renamed from
42877         doc/posix-functions/bcmp.texi.
42878         * doc/pastposix-functions/bcopy.texi: Renamed from
42879         doc/posix-functions/bcopy.texi.
42880         * doc/pastposix-functions/bsd_signal.texi: Renamed from
42881         doc/posix-functions/bsd_signal.texi.
42882         * doc/pastposix-functions/bzero.texi: Renamed from
42883         doc/posix-functions/bzero.texi.
42884         * doc/pastposix-functions/ecvt.texi: Renamed from
42885         doc/posix-functions/ecvt.texi.
42886         * doc/pastposix-functions/fcvt.texi: Renamed from
42887         doc/posix-functions/fcvt.texi.
42888         * doc/pastposix-functions/ftime.texi: Renamed from
42889         doc/posix-functions/ftime.texi.
42890         * doc/pastposix-functions/gcvt.texi: Renamed from
42891         doc/posix-functions/gcvt.texi.
42892         * doc/pastposix-functions/getcontext.texi: Renamed from
42893         doc/posix-functions/getcontext.texi.
42894         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
42895         doc/posix-functions/gethostbyaddr.texi.
42896         * doc/pastposix-functions/gethostbyname.texi: Renamed from
42897         doc/posix-functions/gethostbyname.texi.
42898         * doc/pastposix-functions/getwd.texi: Renamed from
42899         doc/posix-functions/getwd.texi.
42900         * doc/pastposix-functions/h_errno.texi: Renamed from
42901         doc/posix-functions/h_errno.texi.
42902         * doc/pastposix-functions/index.texi: Renamed from
42903         doc/posix-functions/index.texi.
42904         * doc/pastposix-functions/makecontext.texi: Renamed from
42905         doc/posix-functions/makecontext.texi.
42906         * doc/pastposix-functions/mktemp.texi: Renamed from
42907         doc/posix-functions/mktemp.texi.
42908         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
42909         doc/posix-functions/pthread_attr_getstackaddr.texi.
42910         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
42911         doc/posix-functions/pthread_attr_setstackaddr.texi.
42912         * doc/pastposix-functions/rindex.texi: Renamed from
42913         doc/posix-functions/rindex.texi.
42914         * doc/pastposix-functions/scalb.texi: Renamed from
42915         doc/posix-functions/scalb.texi.
42916         * doc/pastposix-functions/setcontext.texi: Renamed from
42917         doc/posix-functions/setcontext.texi.
42918         * doc/pastposix-functions/swapcontext.texi: Renamed from
42919         doc/posix-functions/swapcontext.texi.
42920         * doc/pastposix-functions/ualarm.texi: Renamed from
42921         doc/posix-functions/ualarm.texi.
42922         * doc/pastposix-functions/usleep.texi: Renamed from
42923         doc/posix-functions/usleep.texi.
42924         * doc/pastposix-functions/vfork.texi: Renamed from
42925         doc/posix-functions/vfork.texi.
42926         * doc/pastposix-functions/wcswcs.texi: Renamed from
42927         doc/posix-functions/wcswcs.texi.
42928         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
42929         (Function Substitutes): Update.
42930
42931 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42932
42933         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
42934         m4/strerror.m4.
42935
42936 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42937             Bruno Haible  <bruno@clisp.org>
42938
42939         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
42940
42941 2008-12-13  Bruno Haible  <bruno@clisp.org>
42942
42943         * modules/strtoull (Depends-on): Remove unistd.
42944
42945 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42946
42947         * modules/strtoull (Depends-on): Add stdlib.
42948
42949 2008-12-11  Simon Josefsson  <simon@josefsson.org>
42950
42951         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
42952
42953 2008-12-10  Jim Meyering  <meyering@redhat.com>
42954
42955         gl_ASSERT: don't say assertions are disabled when they're not
42956         * m4/assert.m4 (gl_ASSERT): Do not make configure report
42957         "checking whether to enable assertions... no", when they are in
42958         fact enabled.  This is solely a bug in the output of configure.
42959         In spite of saying "no", NDEBUG was not defined in that case.
42960         Also, as noted by Eric Blake, leave assertions enabled upon
42961         --enable-assert=INVALID.
42962
42963 2008-12-10  Bruno Haible  <bruno@clisp.org>
42964
42965         Change MODULES.html to refer to POSIX:2008 where possible.
42966         * MODULES.html.sh (POSIX2008_URL): New variable.
42967         (posix_headers): Remove sys/timeb, ucontext.
42968         (posix2001_headers): New variable.
42969         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
42970         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
42971         index, makecontext, mktemp, pthread_attr_getstackaddr,
42972         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
42973         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
42974         (posix2001_functions): New variable.
42975         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
42976         otherwise.
42977
42978 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42979
42980         add missing include to parse-duration.c
42981         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
42982         * modules/parse-duration (Depends-on): Add xalloc.
42983
42984         fix sed script reading maint.mk
42985         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
42986         (syntax-check-rules): Use it.
42987
42988 2008-12-09  Bruno Haible  <bruno@clisp.org>
42989
42990         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
42991         MacOS X 10.4/PowerPC.
42992         Reported by Simon Josefsson.
42993
42994 2008-12-08  Jim Meyering  <meyering@redhat.com>
42995
42996         work around mingw's lack of some S_IF definitions
42997         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
42998         Reported by Simon Josefsson.
42999
43000 2008-12-08  Bruno Haible  <bruno@clisp.org>
43001
43002         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43003         applied to variables. Needed on MacOS X 10.4/PowerPC.
43004         Reported by Simon Josefsson.
43005
43006 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43007         and Eric Blake  <ebb9@byu.net>
43008
43009         assert: honor --enable-assert
43010         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43011         order to honor --enable-assert, rather than treating it as a
43012         synonym for --disable-assert.
43013
43014 2008-12-08  Jim Meyering  <meyering@redhat.com>
43015
43016         * lib/posixtm.c: Remove now-useless declaration of mktime.
43017
43018         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43019
43020 2008-12-07  Bruno Haible  <bruno@clisp.org>
43021
43022         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43023         test_once): Mark functions as static.
43024         * tests/test-tls.c (test_tls): Likewise.
43025
43026 2008-12-07  Bruno Haible  <bruno@clisp.org>
43027
43028         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43029         iconv_register_autodetect.
43030
43031 2008-12-07  Jim Meyering  <meyering@redhat.com>
43032
43033         posixtm.c: avoid a warning
43034         * lib/posixtm.c (posixtime): Don't initialize tm0.
43035         It's no longer needed to placate gcc4's -Wuninitialized,
43036         and the attempt to placate would elicit a new warning.
43037
43038         unicodeio.c: mark unused parameters
43039         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43040         (fallback_failure_callback): Likewise.
43041
43042 2008-12-07  Bruno Haible  <bruno@clisp.org>
43043
43044         * gnulib-tool (func_create_testdir): When building the tests
43045         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43046         Reported by Simon Josefsson.
43047
43048 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43049
43050         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43051
43052 2008-12-06  Bruno Haible  <bruno@clisp.org>
43053
43054         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43055         Suggested by Eric Blake.
43056
43057 2008-12-06  Bruno Haible  <bruno@clisp.org>
43058
43059         Fix a c-stack test failure on MacOS X.
43060         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43061         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43062         handler for SIGBUS as well.
43063         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43064         install a signal handler for SIGBUS as well.
43065         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43066
43067 2008-12-06  Bruno Haible  <bruno@clisp.org>
43068
43069         Advocacy documentation.
43070         * doc/gnulib-intro.texi (Benefits): New section.
43071         * doc/gnulib.texi: Update.
43072
43073 2008-12-06  Bruno Haible  <bruno@clisp.org>
43074
43075         Document the 'manywarnings' module.
43076         * doc/manywarnings.texi: New file.
43077         * doc/gnulib.texi: Include it.
43078
43079 2008-12-05  Eric Blake  <ebb9@byu.net>
43080
43081         tests: silence some gcc warnings
43082         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43083         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43084         type mismatches.
43085
43086 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43087             Bruno Haible  <bruno@clisp.org>
43088
43089         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43090
43091 2008-11-29  Jim Meyering  <meyering@redhat.com>
43092
43093         unicodeio.c: mark unused parameters
43094         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43095         (fallback_failure_callback): Likewise.
43096
43097         fts: fix a thinko
43098         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43099         (set_stat_type): Return S_IF*-valued "type" directly.
43100         Prompted by James Youngman's spotting a related bug.
43101         Confirmed by further testing through find.
43102
43103         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43104         * lib/fts.c (D_TYPE): Define.
43105         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43106         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43107         (s_ifmt_shift_bits): New function.
43108         (set_stat_type): New function.
43109         (fts_build): When not calling fts_stat, call set_stat_type
43110         to propagate dirent.d_type info to fts_read caller.
43111         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43112         fts_statp->st_mode type information may be valid.
43113
43114 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43115
43116         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43117         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43118         <sds@gnu.org>.
43119
43120 2008-11-20  Bruno Haible  <bruno@clisp.org>
43121
43122         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43123         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43124         INCLUDE_NEXT.
43125         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
43126         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
43127         * modules/math (Makefile.am): Substitute
43128         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
43129         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43130
43131 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
43132             Bruno Haible  <bruno@clisp.org>
43133
43134         * lib/stdint.in.h: Define all type macros so that their expansion is
43135         a single typedef'ed token. Fixes a compilation failure in Boost which
43136         does "using ::int8_t;".
43137
43138 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43139
43140         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
43141         gl_MANYWARN_ALL_GCC.
43142         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
43143         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
43144         * modules/manywarnings: New file.
43145         * MODULES.html.sh: Mention manywarnings module.
43146
43147 2008-11-18  Bruno Haible  <bruno@clisp.org>
43148
43149         * doc/gnulib-tool.texi (Unit tests): New section.
43150
43151 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43152
43153         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
43154         paths like 'lib/po/foo.po'.
43155
43156 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43157
43158         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
43159         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
43160
43161 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43162
43163         * m4/warnings.m4: Use CPPFLAGS to really check whether the
43164         parameter works.
43165
43166 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43167
43168         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
43169
43170 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43171
43172         * modules/parse-duration-tests: New file.
43173         * tests/test-parse-duration.sh: New file.
43174         * tests/test-parse-duration.c: New file.
43175
43176         New module 'parse-duration'.
43177         * lib/parse-duration.h: New file.
43178         * lib/parse-duration.c: New file.
43179         * modules/parse-duration: New file.
43180
43181 2008-11-17  Bruno Haible  <bruno@clisp.org>
43182
43183         * tests/test-select-out.sh: Comment out the first pipe test.
43184         Reported by Simon Josefsson.
43185
43186 2008-11-17  Bruno Haible  <bruno@clisp.org>
43187
43188         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43189         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43190         gl_HOSTENT.
43191
43192 2008-11-17  Bruno Haible  <bruno@clisp.org>
43193
43194         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43195         -lnetwork and -lnet. Needed for Haiku and BeOS.
43196
43197 2008-11-16  Bruno Haible  <bruno@clisp.org>
43198
43199         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43200
43201 2008-11-16  Bruno Haible  <bruno@clisp.org>
43202
43203         Avoid test failure on Haiku.
43204         * tests/test-fsync.c: Include <errno.h>.
43205         (main): Don't require that fsync (0) fails.
43206
43207 2008-11-15  Bruno Haible  <bruno@clisp.org>
43208
43209         New module 'hostent'.
43210         * modules/hostent: New file.
43211         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
43212
43213 2008-11-15  Bruno Haible  <bruno@clisp.org>
43214
43215         New module 'servent'.
43216         * modules/servent: New file.
43217         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
43218
43219 2008-11-15  Bruno Haible  <bruno@clisp.org>
43220
43221         Avoid generating same test program with two different rules.
43222         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
43223         test-frexp to test-frexp-nolibm.
43224         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
43225         test-frexpl to test-frexpl-nolibm.
43226
43227 2008-11-15  Bruno Haible  <bruno@clisp.org>
43228
43229         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
43230         $(FREXPL_LIBM).
43231
43232 2008-11-15  Bruno Haible  <bruno@clisp.org>
43233
43234         * lib/netdb.in.h: Activate the definitions also when the system's
43235         <netdb.h> has 'struct addrinfo'.
43236         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
43237         EAI_OVERFLOW or AI_NUMERICSERV.
43238         * doc/posix-headers/netdb.texi: Document the problem.
43239
43240 2008-11-15  Bruno Haible  <bruno@clisp.org>
43241
43242         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
43243
43244         Make the 'sched' module work on platforms where <sched.h> exists but
43245         is incomplete (such as Haiku).
43246         * lib/sched.in.h; Include the system's <sched.h> if it exists.
43247         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
43248         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
43249         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
43250         HAVE_STRUCT_SCHED_PARAM.
43251         * modules/sched (Depends-on): Add include_next.
43252         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
43253         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
43254         * doc/posix-headers/sched.texi: Document the issue.
43255
43256 2008-11-13  Jim Meyering  <meyering@redhat.com>
43257
43258         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
43259         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
43260         test would fail due to the difference in the Report bugs to ...
43261         line.  The expected address is empty, "<>", while the actual
43262         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
43263
43264 2008-11-12  Bruno Haible  <bruno@clisp.org>
43265
43266         lstat: don't compile lstat.c on systems lacking lstat
43267         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
43268         which don't have lstat; this is handled by lib/sys_stat.in.h already.
43269         Reported by Daniel P. Berrange via Jim Meyering.
43270
43271 2008-11-12  Jim Meyering  <meyering@redhat.com>
43272
43273         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
43274
43275 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43276
43277         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
43278         instead.
43279
43280 2008-11-12  Bruno Haible  <bruno@clisp.org>
43281
43282         * lib/unicodeio.c: Include unistr.h.
43283         (utf8_wctomb): Remove function.
43284         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
43285
43286 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43287
43288         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
43289         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
43290         <bruno@clisp.org>.
43291         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
43292
43293 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43294
43295         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
43296         * doc/gnulib.texi: Add section for warnings.
43297
43298 2008-11-11  Bruno Haible  <bruno@clisp.org>
43299
43300         * lib/sockets.h: Add a comment.
43301
43302 2008-11-11  Karl Berry  <karl@gnu.org>
43303
43304         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
43305
43306 2008-11-11  Eric Blake  <ebb9@byu.net>
43307
43308         fdl.texi: avoid git symlinks
43309         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
43310
43311 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43312
43313         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
43314
43315 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43316
43317         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
43318         (gl_WARN_ADD): Substitute $2 if literal.
43319
43320 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43321
43322         * m4/warning.m4: Remove.
43323
43324 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43325
43326         * m4/warnings.m4: Almost complete rewrite. :-)
43327
43328 2008-11-10  Simon Josefsson  <simon@josefsson.org>
43329
43330         * modules/warnings: New module.
43331         * m4/warnings.m4: New file.
43332         * MODULES.html.sh: Mention warnings module.
43333         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
43334         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43335
43336 2008-11-10  Eric Blake  <ebb9@byu.net>
43337
43338         fdl.texi: make a symlink to the latest version
43339         * doc/standards.texi: Revert today's earlier change.
43340         * doc/fdl-1.2.texi: Rename from old fdl.texi...
43341         * doc/fdl.texi: ...and replace this with a symlink to the newer
43342         fdl-1.3.texi.
43343
43344 2008-11-10  Bruno Haible  <bruno@clisp.org>
43345
43346         * tests/test-select-fd.c (main): Accept the result file name as fourth
43347         argument.
43348         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
43349         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
43350
43351 2008-11-10  Bruno Haible  <bruno@clisp.org>
43352
43353         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
43354         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
43355         as autoconf-substituted macros.
43356         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
43357         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
43358         gl_NETDB_H_DEFAULTS. Set these variables.
43359         * modules/netdb (Makefile.am): Substitute these variables.
43360
43361 2008-11-10  Eric Blake  <ebb9@byu.net>
43362
43363         standards.texi: include correct file for FDL 1.3
43364         * doc/standards.texi (GNU Free Documentation License): Change
43365         include file to pull in FDL 1.3, not 1.2.
43366
43367         fdl.texi: revert accidental change to license
43368         * doc/fdl.texi: This is FDL 1.2, not 1.3.
43369
43370 2008-11-10  Bruno Haible  <bruno@clisp.org>
43371
43372         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
43373         cross-compiling guesses also when the native compile gives no result.
43374
43375 2008-11-10  Bruno Haible  <bruno@clisp.org>
43376
43377         * lib/spawni.c (__spawni): Force variable into the stack.
43378
43379 2008-11-10  Bruno Haible  <bruno@clisp.org>
43380
43381         Add support for Haiku.
43382         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
43383         glibc and BeOS, but also on Haiku.
43384         * lib/fpurge.c (fpurge): Likewise.
43385         * lib/freadable.c (freadable): Likewise.
43386         * lib/freadahead.c (freadahead): Likewise.
43387         * lib/freading.c (freading): Likewise.
43388         * lib/freadptr.c (freadptr): Likewise.
43389         * lib/freadseek.c (freadptrinc): Likewise.
43390         * lib/fseeko.c (rpl_fseeko): Likewise.
43391         * lib/fseterr.c (fseterr): Likewise.
43392         * lib/fwritable.c (fwritable): Likewise.
43393         * lib/fwriting.c (fwriting): Likewise.
43394         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
43395
43396 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43397
43398         * lib/config.charset: Treat Haiku like BeOS.
43399
43400 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43401
43402         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
43403         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
43404
43405 2008-11-08  Bruno Haible  <bruno@clisp.org>
43406
43407         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
43408         AC_CACHE_CHECK.
43409
43410 2008-11-08  Bruno Haible  <bruno@clisp.org>
43411
43412         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
43413
43414 2008-11-08  Bruno Haible  <bruno@clisp.org>
43415
43416         * tests/test-select-fd.c: New file.
43417         * tests/test-select-in.sh: New file.
43418         * tests/test-select-out.sh: New file.
43419         * tests/test-select-stdin.c: New file.
43420         * modules/select-tests (Files): Add the new files.
43421         (Depends-on): Add gettimeofday.
43422         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
43423         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
43424         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
43425
43426 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
43427             Bruno Haible  <bruno@clisp.org>
43428
43429         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
43430
43431 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
43432
43433         * build-aux/pmccabe2html: Added support for C++ source files.
43434
43435 2008-11-05  Ben Pfaff  <blp@gnu.org>
43436
43437         Fix lib/close.c build on Windows.
43438         * modules/close (Files): Add lib/w32sock.h.
43439
43440 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
43441
43442         Accept Bison's NEWS format.
43443         * build-aux/announce-gen (print_news_deltas): Tweak
43444         $re_prefix.
43445
43446 2008-11-04  Bruno Haible  <bruno@clisp.org>
43447
43448         * modules/random_r (Maintainer): Add glibc.
43449
43450 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43451
43452         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
43453         by karl@freefriends.org (Karl Berry).
43454         * doc/alloca.texi: Likewise.
43455         * doc/c-ctype.texi: Likewise.
43456         * doc/c-strcase.texi: Likewise.
43457         * doc/c-strcaseeq.texi: Likewise.
43458         * doc/c-strcasestr.texi: Likewise.
43459         * doc/c-strstr.texi: Likewise.
43460         * doc/c-strtod.texi: Likewise.
43461         * doc/c-strtold.texi: Likewise.
43462         * doc/ctime.texi: Likewise.
43463         * doc/error.texi: Likewise.
43464         * doc/fdl.texi: Likewise.
43465         * doc/gcd.texi: Likewise.
43466         * doc/getdate.texi: Likewise.
43467         * doc/gnulib-intro.texi: Likewise.
43468         * doc/gnulib-tool.texi: Likewise.
43469         * doc/gnulib.texi: Likewise.
43470         * doc/inet_ntoa.texi: Likewise.
43471         * doc/maintain.texi: Likewise.
43472         * doc/make-stds.texi: Likewise.
43473         * doc/quote.texi: Likewise.
43474         * doc/regexprops-generic.texi: Likewise.
43475         * doc/standards.texi: Likewise.
43476         * doc/verify.texi: Likewise.
43477         * doc/visibility.texi: Likewise.
43478         * doc/gnulib.texi (GNU Free Documentation License): Include
43479         fdl-1.3.texi instead of fdl.texi.
43480
43481 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43482
43483         * doc/fdl-1.3.texi: New file, from
43484         <http://www.gnu.org/licenses/fdl-1.3.texi>.
43485         * modules/fdl-1.3: Add.
43486         * MODULES.html.sh: Add fdl-1.3.
43487
43488 2008-11-03  Bruno Haible  <bruno@clisp.org>
43489
43490         Make determination of absolute name of header file work with AIX xlc.
43491         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
43492         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
43493         preprocessing.
43494         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43495         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43496
43497 2008-11-03  Simon Josefsson  <simon@josefsson.org>
43498
43499         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
43500         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
43501         <ludo@gnu.org>.
43502
43503 2008-11-02  Bruno Haible  <bruno@clisp.org>
43504
43505         Mark 'strpbrk' obsolete.
43506         * modules/strpbrk (Status, Notice): New sections.
43507         * modules/strtok_r (Depends-on): Add strpbrk.
43508
43509 2008-11-02  Bruno Haible  <bruno@clisp.org>
43510
43511         Mark 'strdup' obsolete.
43512         * modules/strdup (Status, Notice): New sections.
43513         * modules/findprog (Depends-on): Add strdup.
43514         * modules/getaddrinfo (Depends-on): Likewise.
43515         * modules/localename (Depends-on): Likewise.
43516         * modules/relocatable-lib (Depends-on): Likewise.
43517         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
43518         * modules/relocatable-prog (Depends-on): Likewise.
43519         * modules/trim (Depends-on): Likewise.
43520         * modules/unictype/gen-ctype (Depends-on): Likewise.
43521         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43522
43523 2008-11-02  Bruno Haible  <bruno@clisp.org>
43524
43525         Mark 'strcspn' obsolete.
43526         * modules/strcspn (Status, Notice): New sections.
43527
43528 2008-11-02  Bruno Haible  <bruno@clisp.org>
43529
43530         Mark 'rmdir' obsolete.
43531         * modules/rmdir (Status, Notice): New sections.
43532         * modules/clean-temp (Depends-on): Add rmdir.
43533         * modules/openat (Depends-on): Likewise.
43534
43535 2008-11-02  Bruno Haible  <bruno@clisp.org>
43536
43537         Mark 'raise' obsolete.
43538         * modules/raise (Status, Notice): New sections.
43539         (Include): Specify <signal.h>.
43540         * modules/stdio (Depends-on): Add raise.
43541         * modules/write (Depends-on): Likewise.
43542
43543 2008-11-02  Bruno Haible  <bruno@clisp.org>
43544
43545         Mark 'memset' obsolete.
43546         * modules/memset (Status, Notice): New sections.
43547
43548 2008-11-02  Bruno Haible  <bruno@clisp.org>
43549
43550         Mark 'memmove' obsolete.
43551         * modules/memmove (Status, Notice): New sections.
43552         * modules/argp (Depends-on): Add memmove.
43553         * modules/argz (Depends-on): Likewise.
43554         * modules/canonicalize (Depends-on): Likewise.
43555         * modules/canonicalize-lgpl (Depends-on): Likewise.
43556         * modules/fts (Depends-on): Likewise.
43557         * modules/getcwd (Depends-on): Likewise.
43558         * modules/human (Depends-on): Likewise.
43559         * modules/regex (Depends-on): Likewise.
43560         * modules/striconveh (Depends-on): Likewise.
43561         * modules/trim (Depends-on): Likewise.
43562         * modules/unistr/u8-move (Depends-on): Likewise.
43563         * modules/unistr/u16-move (Depends-on): Likewise.
43564         * modules/unistr/u32-move (Depends-on): Likewise.
43565
43566 2008-11-02  Bruno Haible  <bruno@clisp.org>
43567
43568         Mark 'memcpy' obsolete.
43569         * modules/memcpy (Status, Notice): New sections.
43570
43571 2008-11-02  Bruno Haible  <bruno@clisp.org>
43572
43573         Mark 'memcmp' obsolete.
43574         * modules/memcmp (Status, Notice): New sections.
43575         * modules/argmatch (Depends-on): Add memchr.
43576         * modules/backupfile (Depends-on): Likewise.
43577         * modules/c-strcasestr (Depends-on): Likewise.
43578         * modules/crypto/des (Depends-on): Likewise.
43579         * modules/csharpcomp (Depends-on): Likewise.
43580         * modules/fnmatch (Depends-on): Likewise.
43581         * modules/git-merge-changelog (Depends-on): Likewise.
43582         * modules/isnand (Depends-on): Likewise.
43583         * modules/isnand-nolibm (Depends-on): Likewise.
43584         * modules/isnanf (Depends-on): Likewise.
43585         * modules/isnanf-nolibm (Depends-on): Likewise.
43586         * modules/isnanl (Depends-on): Likewise.
43587         * modules/isnanl-nolibm (Depends-on): Likewise.
43588         * modules/mbchar (Depends-on): Likewise.
43589         * modules/memcoll (Depends-on): Likewise.
43590         * modules/quotearg (Depends-on): Likewise.
43591         * modules/regex (Depends-on): Likewise.
43592         * modules/relocatable-prog (Depends-on): Likewise.
43593         * modules/same (Depends-on): Likewise.
43594         * modules/signbit (Depends-on): Likewise.
43595         * modules/strcasestr-simple (Depends-on): Likewise.
43596         * modules/unictype/gen-ctype (Depends-on): Likewise.
43597         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43598         * modules/uniname/uniname (Depends-on): Likewise.
43599         * modules/unistr/u8-cmp (Depends-on): Likewise.
43600
43601 2008-11-02  Bruno Haible  <bruno@clisp.org>
43602
43603         Mark 'memchr' obsolete.
43604         * modules/memchr (Status, Notice): New sections.
43605         * modules/argp (Depends-on): Add memchr.
43606         * modules/base64 (Depends-on): Likewise.
43607         * modules/c-strcasestr (Depends-on): Likewise.
43608         * modules/chdir-long (Depends-on): Likewise.
43609         * modules/fnmatch (Depends-on): Likewise.
43610         * modules/getsubopt (Depends-on): Likewise.
43611         * modules/git-merge-changelog (Depends-on): Likewise.
43612         * modules/glob (Depends-on): Likewise.
43613         * modules/strcasestr-simple (Depends-on): Likewise.
43614         * modules/strnlen (Depends-on): Likewise.
43615
43616 2008-11-02  Bruno Haible  <bruno@clisp.org>
43617
43618         Mark 'atexit' obsolete.
43619         * modules/atexit (Status, Notice): New sections.
43620         * modules/chdir-long (Depends-on): Add atexit.
43621         * modules/wait-process (Depends-on): Likewise.
43622
43623 2008-11-02  Bruno Haible  <bruno@clisp.org>
43624
43625         * gnulib-tool: New option --with-obsolete.
43626         (func_usage): Document it.
43627         (func_modules_transitive_closure): Drop obsolete dependencies if
43628         incobsolete is not true.
43629         (func_import): Read and save the incobsolete variable to the cache.
43630
43631 2008-11-02  Bruno Haible  <bruno@clisp.org>
43632
43633         * modules/TEMPLATE-EXTENDED: New field 'Status'.
43634         * gnulib-tool: New option --extract-status.
43635         (func_usage): Document it.
43636         (sed_extract_prog): Recognize it.
43637         (func_get_status): New function.
43638
43639 2008-10-30  Simon Josefsson  <simon@josefsson.org>
43640
43641         * modules/sockets (License): Change from LGPL to LGPLv2+.
43642
43643 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43644
43645         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
43646
43647 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43648
43649         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43650         Mention times and sys_times.
43651         * modules/sys_times, modules/sys_times-tests: New modules.
43652         * modules/times, modules/times-tests: Likewise
43653         * m4/sys_times_h.m4: New file.
43654         * lib/sys_times.in.h: Likewise
43655         * lib/times.c: Likewise.
43656         * tests/test-sys_times.c: Likewise.
43657         * tests/test-times.c: Likewise.
43658         * doc/posix-headers/sys_times.texi: Update.
43659         * doc/posix-functions/times.texi: Update.
43660
43661 2008-10-28  Jim Meyering  <meyering@redhat.com>
43662
43663         * modules/tempname (Depends-on): Add lstat.
43664
43665         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
43666
43667 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43668
43669         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
43670         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
43671         using idiom used elsewhere in gnulib.
43672
43673 2008-10-27  Jim Meyering  <meyering@redhat.com>
43674
43675         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
43676
43677 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43678
43679         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
43680         TESTS_ENVIRONMENT, for shell scripts that needs to call built
43681         programs.
43682         * tests/test-argp-2.sh: Use $EXEEXT when needed.
43683
43684 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43685
43686         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
43687
43688 2008-10-27  Bruno Haible  <bruno@clisp.org>
43689
43690         * tests/test-lstat.c: Include <stdio.h>.
43691
43692 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43693
43694         * modules/lstat-tests: New module.
43695         * tests/test-lstat.c: New file.
43696
43697 2008-10-26  Jim Meyering  <meyering@redhat.com>
43698
43699         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
43700
43701 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43702             Bruno Haible  <bruno@clisp.org>
43703
43704         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
43705         * modules/configmake (Include): Add a note that the include must come
43706         after all system headers.
43707         * lib/javaversion.c: Include configmake.h after all other includes.
43708
43709 2008-10-26  Bruno Haible  <bruno@clisp.org>
43710
43711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
43712         HAVE_STRUCT_RANDOM_DATA to 1.
43713         (gl_STDLIB_H): Simplify.
43714
43715 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43716
43717         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
43718         substitute HAVE_STRUCT_RANDOM_DATA.
43719         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
43720         random_data.
43721         * modules/stdlib (Makefile.am): Substitute
43722         HAVE_STRUCT_RANDOM_DATA.
43723
43724 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43725
43726         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
43727         * doc/gnulib-intro.texi (Copyright): Likewise.
43728
43729 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43730
43731         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
43732         findings.
43733
43734 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
43735             Bruno Haible  <bruno@clisp.org>
43736
43737         * lib/unistd.in.h: Include <winsock2.h>.
43738         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
43739         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
43740         Provide dummy declarations.
43741         (gethostname): Override.
43742         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
43743         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
43744         gl_PREREQ_SYS_H_WINSOCK2.
43745         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
43746         * doc/posix-functions/gethostname.texi: More details.
43747
43748 2008-10-25  Bruno Haible  <bruno@clisp.org>
43749
43750         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43751         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
43752         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
43753
43754         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
43755         here ...
43756         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
43757         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
43758         gl_UNISTD_H_DEFAULTS.
43759
43760 2008-10-25  Eric Blake  <ebb9@byu.net>
43761
43762         signbit: avoid spurious compiler failure
43763         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
43764         declarations inside function.
43765
43766 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43767             Bruno Haible  <bruno@clisp.org>
43768
43769         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
43770         * modules/random_r (Depends-on): Add stdint.
43771
43772 2008-10-24  Bruno Haible  <bruno@clisp.org>
43773
43774         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
43775         Eggert.
43776         * modules/strerror (License): Likewise.
43777
43778 2008-10-24  Jim Meyering  <meyering@redhat.com>
43779
43780         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
43781         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
43782
43783 2008-10-24  Eric Blake  <ebb9@byu.net>
43784
43785         getgroups: fix compilation when getgroups is available
43786         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
43787         but with <config.h> override of getgroups disabled.
43788
43789 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43790
43791         * doc/gnulib.texi (Header files): Add note about C++ problems.
43792         Explained by Bruno Haible <bruno@clisp.org>.
43793
43794 2008-10-23  Bruno Haible  <bruno@clisp.org>
43795
43796         Define a dummy SA_NODEFER macro on Interix.
43797         * lib/signal.in.h (SA_NODEFER): Define fallback.
43798         Reported by Aleksey Cheusov <cheusov@tut.by> via
43799         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
43800
43801 2008-10-23  Bruno Haible  <bruno@clisp.org>
43802
43803         * modules/freadahead (License): Change to LGPLv2+.
43804         Suggested by Simon Josefsson.
43805
43806 2008-10-23  Jim Meyering  <meyering@redhat.com>
43807
43808         random_r: new module
43809         * modules/random_r: New file.
43810         * m4/random_r.m4: New file.
43811         * lib/random_r.c: New file, from glibc.
43812         * modules/random_r-tests: New file.
43813         * tests/test-random_r.c: New file.
43814         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
43815          Declare.
43816         (RAND_MAX): Define.
43817         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
43818         * modules/stdlib: Substitute them, too.
43819         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
43820         * doc/glibc-functions/initstate_r.texi: Mention the new module.
43821         * doc/glibc-functions/random_r.texi: Likewise.
43822         * doc/glibc-functions/setstate_r.texi: Likewise.
43823         * doc/glibc-functions/srandom_r.texi: Likewise.
43824         * config/srclist.txt: Mention it.
43825
43826 2008-10-23  David Lutterkort  <lutter@redhat.com>
43827
43828         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
43829         link requirement
43830
43831 2008-10-23  Jim Meyering  <meyering@redhat.com>
43832
43833         selinux-h: mark parameters of stub functions as intentionally unused
43834         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
43835         * lib/se-context.in.h: Likewise.
43836
43837 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43838
43839         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
43840
43841 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43842
43843         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
43844
43845 2008-10-22  Eric Blake  <ebb9@byu.net>
43846
43847         glthread/thread: avoid compiler warning
43848         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
43849         Add unreachable abort to silence compiler.
43850
43851 2008-10-22  Eric Blake  <ebb9@byu.net>
43852
43853         netdb: also supply struct addrinfo for cygwin 1.5.x
43854         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
43855         older cygwin.
43856         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
43857         cygwin.
43858         * doc/posix-headers/netdb.texi (netdb.h): Document this.
43859
43860 2008-10-22  Bruno Haible  <bruno@clisp.org>
43861
43862         * users.txt: Update entry about pspp.
43863
43864 2008-10-21  Bruno Haible  <bruno@clisp.org>
43865
43866         Simplification.
43867         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
43868         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
43869
43870         Simplification.
43871         * lib/ioctl.c (ioctl): Don't undefine.
43872         * lib/socket.c (socket): Don't undefine.
43873
43874         Remove unused module indicator macros.
43875         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
43876         GNULIB_$1 as a C macro.
43877
43878         * doc/posix-functions/close.texi: Undo last change.
43879         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
43880         Windows platforms.
43881
43882 2008-10-21  Bruno Haible  <bruno@clisp.org>
43883
43884         Add gethostname() declaration to <unistd.h>.
43885         * lib/unistd.in.h (gethostname): New declaration.
43886         * lib/gethostname.c: Include <unistd.h>.
43887         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
43888         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
43889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
43890         and HAVE_GETHOSTNAME.
43891         * modules/gethostname (Depends-on): Add unistd.
43892         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43893         (Include): Specify <unistd.h>.
43894         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
43895         HAVE_GETHOSTNAME.
43896         * tests/test-gethostname.c: Include <unistd.h> first.
43897
43898 2008-10-21  Bruno Haible  <bruno@clisp.org>
43899
43900         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
43901         * modules/select-tests (Depends-on): Likewise.
43902         Reported by Simon Josefsson.
43903
43904 2008-10-21  Simon Josefsson  <simon@josefsson.org>
43905
43906         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
43907         * lib/accept.c: New file, based on winsock.c.
43908         * lib/bind.c: New file, based on winsock.c.
43909         * lib/connect.c: New file, based on winsock.c.
43910         * lib/getpeername.c: New file, based on winsock.c.
43911         * lib/getsockname.c: New file, based on winsock.c.
43912         * lib/getsockopt.c: New file, based on winsock.c.
43913         * lib/ioctl.c: New file, based on winsock.c.
43914         * lib/listen.c: New file, based on winsock.c.
43915         * lib/recv.c: New file, based on winsock.c.
43916         * lib/recvfrom.c: New file, based on winsock.c.
43917         * lib/send.c: New file, based on winsock.c.
43918         * lib/sendto.c: New file, based on winsock.c.
43919         * lib/setsockopt.c: New file, based on winsock.c.
43920         * lib/shutdown.c: New file, based on winsock.c.
43921         * lib/socket.c: New file, based on winsock.c.
43922         * lib/w32sock.h: New file, based on winsock.c.
43923         * lib/winsock.c: Remove file.
43924         * modules/accept: Likewise.
43925         * modules/bind: Likewise.
43926         * modules/connect: Likewise.
43927         * modules/getpeername: Likewise.
43928         * modules/getsockname: Likewise.
43929         * modules/getsockopt: Likewise.
43930         * modules/ioctl: Likewise.
43931         * modules/listen: Likewise.
43932         * modules/recv: Likewise.
43933         * modules/recvfrom: Likewise.
43934         * modules/send: Likewise.
43935         * modules/sendto: Likewise.
43936         * modules/setsockopt: Likewise.
43937         * modules/shutdown: Likewise.
43938         * modules/socket: Use socket.c instead of winsock.c.
43939         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
43940         * doc/posix-functions/accept.texi: Doc fix.
43941         * doc/posix-functions/bind.texi: Doc fix.
43942         * doc/posix-functions/close.texi: Doc fix.
43943         * doc/posix-functions/connect.texi: Doc fix.
43944         * doc/posix-functions/getpeername.texi: Doc fix.
43945         * doc/posix-functions/getsockname.texi: Doc fix.
43946         * doc/posix-functions/getsockopt.texi: Doc fix.
43947         * doc/posix-functions/ioctl.texi: Doc fix.
43948         * doc/posix-functions/listen.texi: Doc fix.
43949         * doc/posix-functions/recv.texi: Doc fix.
43950         * doc/posix-functions/recvfrom.texi: Doc fix.
43951         * doc/posix-functions/send.texi: Doc fix.
43952         * doc/posix-functions/sendto.texi: Doc fix.
43953         * doc/posix-functions/setsockopt.texi: Doc fix.
43954         * doc/posix-functions/shutdown.texi: Doc fix.
43955         * doc/posix-functions/socket.texi: Doc fix.
43956
43957 2008-10-20  Bruno Haible  <bruno@clisp.org>
43958
43959         Take into account the role of SIGABRT_COMPAT on Windows 2008.
43960         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
43961         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
43962         as an alias for SIGABRT.
43963         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
43964         (sigaction): Map it to SIGABRT.
43965         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
43966
43967 2008-10-20  Bruno Haible  <bruno@clisp.org>
43968
43969         * lib/fts.c: Don't include lstat.h.
43970         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
43971
43972         Move the lstat() declaration to <sys/stat.h>.
43973         * lib/lstat.h: Remove file.
43974         * lib/sys_stat.in.h: Add special invocation convention.
43975         (lstat): New declaration.
43976         * lib/lstat.c (orig_lstat): New function.
43977         (rpl_lstat): Use orig_lstat instead of lstat.
43978         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
43979         AC_C_INLINE. Set REPLACE_LSTAT.
43980         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
43981         and REPLACE_LSTAT.
43982         * modules/lstat (Files): Remove lib/lstat.h.
43983         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43984         (Include): Specify <sys/stat.h> instead of lstat.h.
43985         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
43986         REPLACE_LSTAT.
43987         * NEWS: Mention the change.
43988
43989 2008-10-20  Bruno Haible  <bruno@clisp.org>
43990
43991         * modules/posix_spawn-tests: New file.
43992         * tests/test-posix_spawn3.c: New file.
43993
43994 2008-10-20  Bruno Haible  <bruno@clisp.org>
43995
43996         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
43997         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43998         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
43999         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44000         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44001
44002 2008-10-20  Bruno Haible  <bruno@clisp.org>
44003
44004         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44005         of posix_spawn on AIX 5.3.
44006
44007 2008-10-20  Bruno Haible  <bruno@clisp.org>
44008
44009         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44010
44011 2008-10-20  Bruno Haible  <bruno@clisp.org>
44012
44013         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44014         of AC_LANG_PROGRAM.
44015
44016 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44017
44018         * lib/netdb.in.h: Don't define GNU specific constants until they
44019         are supported or needed.  Reported by Bruno Haible
44020         <bruno@clisp.org>.
44021
44022 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44023
44024         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44025
44026 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44027
44028         * lib/getaddrinfo.h: Remove file.
44029         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44030         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44031         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44032         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44033         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44034         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44035         * tests/test-getaddrinfo.c: Likewise.
44036         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44037         * NEWS: Mention change.
44038
44039 2008-10-19  Bruno Haible  <bruno@clisp.org>
44040
44041         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44042
44043 2008-10-19  Bruno Haible  <bruno@clisp.org>
44044
44045         * lib/wait-process.c: Include simply <sys/wait.h>.
44046         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44047         WIFSTOPPED): Remove fallback definitions.
44048         * modules/wait-process (Depends-on): Add sys_wait.
44049
44050         New module 'sys_wait'.
44051         * modules/sys_wait: New file.
44052         * lib/sys_wait.in.h: New file, partially copied from
44053         lib/wait-process.c.
44054         * m4/sys_wait_h.m4: New file.
44055         * doc/posix-headers/sys_wait.texi: Mention the new module.
44056
44057 2008-10-19  Bruno Haible  <bruno@clisp.org>
44058
44059         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44060
44061 2008-10-19  Bruno Haible  <bruno@clisp.org>
44062
44063         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44064         * lib/wait-process.c (WAIT_T): Remove type.
44065         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44066         (wait_subprocess): Update.
44067
44068 2008-10-19  Bruno Haible  <bruno@clisp.org>
44069
44070         New module 'atoll'.
44071         * modules/atoll: New file.
44072         * lib/stdlib.in.h (atoll): New declaration.
44073         * lib/atoll.c: New file, from glibc with modifications.
44074         * m4/atoll.m4: New file.
44075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44076         HAVE_ATOLL.
44077         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44078         * doc/posix-functions/atoll.texi: Mention the new module.
44079
44080 2008-10-19  Bruno Haible  <bruno@clisp.org>
44081
44082         Add strtoull() declaration to <stdlib.h>.
44083         * lib/stdlib.in.h (strtoull): New declaration.
44084         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44085         Set HAVE_STRTOULL.
44086         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44087         HAVE_STRTOULL.
44088         * modules/strtoull (Depends-on): Add stdlib.
44089         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44090         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44091         HAVE_STRTOULL.
44092
44093 2008-10-19  Bruno Haible  <bruno@clisp.org>
44094
44095         Add strtoll() declaration to <stdlib.h>.
44096         * lib/stdlib.in.h (strtoll): New declaration.
44097         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44098         Set HAVE_STRTOLL.
44099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44100         HAVE_STRTOLL.
44101         * modules/strtoll (Depends-on): Add stdlib.
44102         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44103         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44104
44105 2008-10-19  Bruno Haible  <bruno@clisp.org>
44106
44107         * modules/bcopy (Depends-on): Add strings.
44108         (Include): Specify <strings.h>.
44109
44110 2008-10-19  Bruno Haible  <bruno@clisp.org>
44111
44112         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44113
44114 2008-10-19  Bruno Haible  <bruno@clisp.org>
44115
44116         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44117         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44118         mingw.
44119
44120 2008-10-19  Bruno Haible  <bruno@clisp.org>
44121
44122         * lib/atanl.c: Don't include isnanl.h.
44123         * lib/cosl.c: Likewise.
44124         * lib/ldexpl.c: Likewise.
44125         * lib/logl.c: Likewise.
44126         * lib/sinl.c: Likewise.
44127         * lib/sqrtl.c: Likewise.
44128         * lib/tanl.c: Likewise.
44129
44130         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
44131         * lib/isnanf.h: Remove file.
44132         * lib/isnand.h: Remove file.
44133         * lib/isnanl.h: Remove file.
44134         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
44135         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44136         macros.
44137         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
44138         HAVE_ISNANF, don't define it as a C macro.
44139         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
44140         HAVE_ISNAND, don't define it as a C macro.
44141         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
44142         HAVE_ISNANL, don't define it as a C macro.
44143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
44144         HAVE_ISNAN[FDL].
44145         * modules/isnanf (Files): Remove lib/isnanf.h.
44146         (Depends-on): Add math.
44147         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44148         (Include): Specify <math.h> instead of isnanf.h.
44149         * modules/isnand (Files): Remove lib/isnand.h.
44150         (Depends-on): Add math.
44151         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44152         (Include): Specify <math.h> instead of isnand.h.
44153         * modules/isnanl (Files): Remove lib/isnanl.h.
44154         (Depends-on): Add math.
44155         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44156         (Include): Specify <math.h> instead of isnanl.h.
44157         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
44158         HAVE_ISNAN[FDL].
44159         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
44160         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
44161         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
44162         * NEWS: Mention the change.
44163
44164 2008-10-18  Bruno Haible  <bruno@clisp.org>
44165
44166         Add getusershell(), setusershell(), endusershell() declarations to
44167         <unistd.h>.
44168         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
44169         declarations.
44170         * lib/getusershell.c: Include unistd.h.
44171         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
44172         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44173         HAVE_GETUSERSHELL.
44174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
44175         and HAVE_GETUSERSHELL.
44176         * modules/getusershell (Depends-on): Add unistd, extensions.
44177         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44178         (Include): Specify <unistd.h>.
44179         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44180         HAVE_GETUSERSHELL.
44181
44182 2008-10-18  Bruno Haible  <bruno@clisp.org>
44183
44184         Add a getloadavg() declaration to <stdlib.h>.
44185         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44186         getloadavg declaration.
44187         (getloadavg): New declaration.
44188         * lib/getloadavg.c: Include <stdlib.h> first.
44189         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44190         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44191         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44193         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44194         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44195         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44196         (Include): Specify <stdlib.h>.
44197         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44198         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44199
44200 2008-10-18  Bruno Haible  <bruno@clisp.org>
44201
44202         * lib/dirchownmod.c: Don't include lchmod.h.
44203
44204         Move the lchmod() declaration to <sys/stat.h>.
44205         * lib/lchmod.h: Remove file.
44206         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44207         (lchmod): New declaration, moved here from lib/lchown.h.
44208         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
44209         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
44210         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
44211         and HAVE_LCHMOD.
44212         * modules/lchmod (Files): Remove lib/lchmod.h.
44213         (Depends-on): Add sys_stat, extensions.
44214         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44215         (Include): Specify <sys/stat.h> instead of lchmod.h.
44216         * modules/sys_stat (Depends-on): Add link-warning.
44217         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
44218         definition of GL_LINK_WARNING.
44219         * NEWS: Mention the change.
44220
44221 2008-10-18  Bruno Haible  <bruno@clisp.org>
44222
44223         * lib/fchdir.c: Don't include dirfd.h.
44224         * lib/fts.c: Likewise.
44225         * lib/getcwd.c: Likewise.
44226         * lib/glob.c: Likewise.
44227
44228         Move the dirfd() declaration to <dirent.h>.
44229         * lib/dirfd.h: Remove file.
44230         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
44231         (dirfd): New declaration.
44232         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
44233         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
44234         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
44235         HAVE_DECL_DIRFD.
44236         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
44237         HAVE_DECL_DIRFD.
44238         * modules/dirfd (Files): Remove lib/dirfd.h.
44239         (Depends-on): Add dirent, extensions.
44240         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
44241         (Include): Specify <dirent.h> instead of dirfd.h.
44242         * modules/dirent (Depends-on): Add link-warning.
44243         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
44244         definition of GL_LINK_WARNING.
44245         * NEWS: Mention the change.
44246
44247 2008-10-18  Bruno Haible  <bruno@clisp.org>
44248
44249         Move the euidaccess() declaration to <unistd.h>.
44250         * lib/euidaccess.h: Remove file.
44251         * lib/unistd.in.h (euidaccess): New declaration.
44252         * lib/euidaccess.c: Don't include euidaccess.h.
44253         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
44254         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
44255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
44256         and HAVE_EUIDACCESS.
44257         * modules/euidaccess (Files): Remove lib/euidaccess.h.
44258         (Depends-on): Add unistd.
44259         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44260         (Include): Specify <unistd.h> instead of euidaccess.h.
44261         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
44262         HAVE_EUIDACCESS.
44263         * NEWS: Mention the change.
44264
44265 2008-10-18  Bruno Haible  <bruno@clisp.org>
44266
44267         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
44268
44269         Move the getdomainname() declaration to <unistd.h>.
44270         * lib/getdomainname.h: Remove file.
44271         * lib/unistd.in.h (getdomainname): New declaration.
44272         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
44273         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44274         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44275         HAVE_GETDOMAINNAME.
44276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44277         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
44278         * modules/getdomainname (Files): Remove lib/getdomainname.h.
44279         (Depends-on): Add unistd, extensions.
44280         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44281         (Includes): Specify <unistd.h> instead of getdomainname.h.
44282         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
44283         HAVE_GETDOMAINNAME.
44284         * NEWS: Mention the change.
44285
44286 2008-10-18  Bruno Haible  <bruno@clisp.org>
44287
44288         * modules/dirent: New file.
44289         * m4/dirent_h.m4: New file.
44290         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
44291         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
44292         * modules/fchdir (Files): Remove lib/dirent.in.h.
44293         (Depends-on): Add dirent.
44294         (Makefile.am): Move rules to modules/dirent.
44295         * doc/posix-headers/dirent.texi: Mention the new module.
44296
44297 2008-10-18  Bruno Haible  <bruno@clisp.org>
44298
44299         Avoid -Wunused-parameter warnings in public gnulib header files.
44300         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
44301         macro.
44302         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
44303
44304 2008-10-18  Bruno Haible  <bruno@clisp.org>
44305
44306         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
44307         * doc/glibc-functions/error.texi: Mention the module 'error'.
44308         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
44309         * doc/glibc-functions/getdomainname.texi: Mention the module
44310         'getdomainname'.
44311         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
44312         * doc/glibc-functions/getpagesize.texi: Mention the module
44313         'getpagesize'.
44314         * doc/glibc-functions/getusershell.texi: Mention the module
44315         'getusershell'.
44316         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
44317         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
44318         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
44319         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
44320         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
44321         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
44322         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
44323         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
44324         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
44325         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
44326         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
44327         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
44328         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
44329         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
44330
44331 2008-10-17  Bruno Haible  <bruno@clisp.org>
44332
44333         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
44334         HP-UX and IRIX, use -0.0L.
44335         * tests/test-ceill.c (minus_zero): Likewise.
44336         * tests/test-floorl.c (minus_zero): Likewise.
44337         * tests/test-frexpl.c (minus_zero): Likewise.
44338         * tests/test-isnan.c (minus_zerol): Likewise.
44339         * tests/test-isnanl.h (minus_zero): Likewise.
44340         * tests/test-ldexpl.c (minus_zero): Likewise.
44341         * tests/test-roundl.c (minus_zero): Likewise.
44342         * tests/test-signbit.c (minus_zerol): Likewise.
44343         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44344         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44345         * tests/test-truncl.c (minus_zero): Likewise.
44346         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44347         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44348         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
44349         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44350
44351 2008-10-17  Bruno Haible  <bruno@clisp.org>
44352
44353         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
44354         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
44355         that it gets activated only for gcc >= 3.0.
44356         * lib/dirent.in.h: Likewise.
44357         * lib/errno.in.h: Likewise.
44358         * lib/fcntl.in.h: Likewise.
44359         * lib/float.in.h: Likewise.
44360         * lib/iconv.in.h: Likewise.
44361         * lib/inttypes.in.h: Likewise.
44362         * lib/locale.in.h: Likewise.
44363         * lib/math.in.h: Likewise.
44364         * lib/netdb.in.h: Likewise.
44365         * lib/netinet_in.in.h: Likewise.
44366         * lib/search.in.h: Likewise.
44367         * lib/signal.in.h: Likewise.
44368         * lib/spawn.in.h: Likewise.
44369         * lib/stdarg.in.h: Likewise.
44370         * lib/stdint.in.h: Likewise.
44371         * lib/stdio.in.h: Likewise.
44372         * lib/stdlib.in.h: Likewise.
44373         * lib/string.in.h: Likewise.
44374         * lib/strings.in.h: Likewise.
44375         * lib/sys_file.in.h: Likewise.
44376         * lib/sys_ioctl.in.h: Likewise.
44377         * lib/sys_select.in.h: Likewise.
44378         * lib/sys_socket.in.h: Likewise.
44379         * lib/sys_stat.in.h: Likewise.
44380         * lib/sys_time.in.h: Likewise.
44381         * lib/sysexits.in.h: Likewise.
44382         * lib/time.in.h: Likewise.
44383         * lib/unistd.in.h: Likewise.
44384         * lib/wchar.in.h: Likewise.
44385         * lib/wctype.in.h: Likewise.
44386         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44387
44388 2008-10-17  Jim Meyering  <meyering@redhat.com>
44389
44390         ignore-value: don't depend on inline module
44391         * modules/ignore-value (Depends-on): Remove 'inline'.
44392         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
44393         Suggestion from Bruno Haible.
44394
44395 2008-10-17  Bruno Haible  <bruno@clisp.org>
44396
44397         New implementation of condition variables for Win32.
44398         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
44399         (gl_linked_waitqueue_t): New type.
44400         (gl_cond_t): Use it.
44401         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
44402         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
44403         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
44404         (glthread_cond_init_func, glthread_cond_wait_func,
44405         glthread_cond_timedwait_func, glthread_cond_signal_func,
44406         glthread_cond_broadcast_func, glthread_cond_destroy_func):
44407         Reimplemented on the basis of gl_linked_waitqueue_t.
44408         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
44409         gl_waitqueue_t.
44410         (gl_rwlock_t): Update.
44411         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
44412
44413 2008-10-17  Simon Josefsson  <simon@josefsson.org>
44414
44415         * modules/recvfrom (Depends-on): Add dependency on getpeername.
44416         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44417
44418 2008-10-17  Jim Meyering  <meyering@redhat.com>
44419
44420         ignore-value: new module
44421         * modules/ignore-value: New file.
44422         * lib/ignore-value.h: New file.
44423         * MODULES.html.sh (Compiler warning management): New section,
44424         just for this module.  More to come.
44425
44426 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44427
44428         open-safer.c: avoid 'signed and unsigned in conditional...' warning
44429         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
44430         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
44431
44432 2008-10-16  Jim Meyering  <meyering@redhat.com>
44433
44434         openat-die.c: avoid 'no previous prototype' warning
44435         * lib/openat-die.c: Include "openat.h".
44436         Reported by Reuben Thomas <rrt@sc3d.org>.
44437
44438 2008-10-16  Simon Josefsson  <simon@josefsson.org>
44439
44440         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
44441         * lib/netdb.in.h: Fix typo.
44442         Reported by Bruno Haible  <bruno@clisp.org>
44443
44444         * lib/netdb.in.h: Include sys/socket.h for platforms without
44445         netdb.h, to get structures like hostent on MinGW.
44446         * modules/netdb (Depends-on): Add sys_socket.
44447
44448 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44449
44450         * modules/netdb, modules/netdb-tests: New file.
44451         * m4/netdb_h.m4: New file.
44452         * lib/netdb.in.h: Add, currently just an empty file pending
44453         definitions.
44454         * tests/test-netdb.c: New file.
44455         * doc/posix-headers/netdb.texi: Mention that we replace it if
44456         needed.
44457         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44458         netdb.
44459
44460 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44461
44462         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
44463         with code.
44464
44465 2008-10-13  Bruno Haible  <bruno@clisp.org>
44466
44467         * lib/glthread/cond.c (glthread_cond_wait_func,
44468         glthread_cond_timedwait_func): Add a comment.
44469
44470 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44471
44472         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
44473         * tests/test-select.c: Likewise,
44474
44475 2008-10-13  Bruno Haible  <bruno@clisp.org>
44476
44477         * lib/glthread/cond.c (glthread_cond_wait_func,
44478         glthread_cond_timedwait_func): Fix variable name.
44479         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44480
44481 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
44482
44483         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
44484         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
44485         struct sockaddr.sa_len.
44486         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
44487
44488 2008-10-13  Simon Josefsson  <simon@josefsson.org>
44489
44490         * build-aux/pmccabe2html: Add css and css_url parameters.
44491
44492 2008-10-12  Bruno Haible  <bruno@clisp.org>
44493
44494         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
44495         calling aclx_get.
44496         Reported by Rainer Tammer <tammer@tammer.net>.
44497
44498 2008-10-12  Bruno Haible  <bruno@clisp.org>
44499
44500         Use msvcrt aware primitives for creation/termination of Win32 threads.
44501         * lib/glthread/thread.c: Include <process.h>.
44502         (glthread_create_func): Use _beginthreadex instead of CreateThread.
44503         (wrapper_func): Update signature.
44504         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
44505
44506 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44507             Bruno Haible  <bruno@clisp.org>
44508
44509         Provide a Win32 implementation of the 'cond' module.
44510         * lib/glthread/cond.h [USE_WIN32]: New implementation.
44511         * lib/glthread/cond.c (glthread_cond_init_func,
44512         glthread_cond_wait_func, glthread_cond_timedwait_func,
44513         glthread_cond_signal_func, glthread_cond_broadcast_func,
44514         glthread_cond_destroy_func) [USE_WIN32]: New functions.
44515         * modules/cond (Dependencies): Add gettimeofday.
44516
44517 2008-10-11  Bruno Haible  <bruno@clisp.org>
44518
44519         Make sleep work on older versions of mingw.
44520         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
44521         only whether it exists.
44522         * doc/posix-functions/sleep.texi: Mention the problem with older
44523         versions of mingw.
44524
44525 2008-10-11  Bruno Haible  <bruno@clisp.org>
44526
44527         New module 'shutdown'.
44528         * modules/shutdown: New file.
44529         * lib/sys_socket.in.h (shutdown): New declaration.
44530         * lib/winsock.c (shutdown): New function.
44531         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44532         GNULIB_SHUTDOWN.
44533         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
44534         * doc/posix-functions/shutdown.texi: Document the new module.
44535
44536 2008-10-11  Jim Meyering  <meyering@redhat.com>
44537
44538         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
44539
44540 2008-10-11  Bruno Haible  <bruno@clisp.org>
44541
44542         New module 'fclose'.
44543         * modules/fclose: New file.
44544         * lib/stdio.in.h (fclose): New declaration.
44545         * lib/fclose.c: New file.
44546         * m4/fclose.m4: New file.
44547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
44548         REPLACE_FCLOSE.
44549         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
44550         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
44551         REPLACE_FCLOSE.
44552         * modules/close (Depends-on): fclose.
44553         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
44554
44555 2008-10-11  Bruno Haible  <bruno@clisp.org>
44556
44557         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
44558         set errno and don't call _close.
44559
44560 2008-10-10  Bruno Haible  <bruno@clisp.org>
44561
44562         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
44563         ACL, not afterwards. Fixes test failure on Cygwin.
44564
44565 2008-10-09  Ben Pfaff  <blp@gnu.org>
44566
44567         * build-aux/announce-gen: Fix gnulib version related part of usage
44568         message.  Die with a useful error message if no tarballs are
44569         found.
44570
44571 2008-10-10  Jim Meyering  <meyering@redhat.com>
44572
44573         bootstrap: use git's --depth=N option only if it's supported
44574         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
44575         recognize the --depth option.  Reported by Pádraig Brady.
44576
44577 2008-10-09  Bruno Haible  <bruno@clisp.org>
44578
44579         New module 'ioctl'.
44580         * modules/ioctl: New file.
44581         * lib/sys_socket.in.h (ioctl): Remove declaration.
44582         * lib/winsock.c: Include <sys/ioctl.h>.
44583         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
44584         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44585         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
44586         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
44587         * doc/posix-functions/ioctl.texi: Mention the new module.
44588
44589 2008-10-09  Bruno Haible  <bruno@clisp.org>
44590
44591         New module 'sys_ioctl'.
44592         * lib/sys_ioctl.in.h: New file.
44593         * m4/sys_ioctl_h.m4: New file.
44594         * modules/sys_ioctl: New file.
44595         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
44596
44597 2008-10-09  Bruno Haible  <bruno@clisp.org>
44598
44599         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
44600         * lib/winsock.c: Include <stdarg.h>.
44601         (rpl_ioctl): Change to second argument 'int' and then varargs.
44602
44603 2008-10-09  Bruno Haible  <bruno@clisp.org>
44604
44605         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
44606         when the sys_socket module is present and the system has <winsock2.h>.
44607
44608 2008-10-09  Bruno Haible  <bruno@clisp.org>
44609
44610         * doc/posix-functions/close.texi: Mention module 'close' instead of
44611         module 'sys_socket'.
44612
44613 2008-10-09  Bruno Haible  <bruno@clisp.org>
44614
44615         * doc/glibc-headers/sys_ioctl.texi: New file.
44616         * doc/gnulib.texi: Include it.
44617
44618 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44619             Bruno Haible  <bruno@clisp.org>
44620
44621         Combine the two replacements of 'close'.
44622         * lib/sys_socket.in.h (close): Define to a reminder to include
44623         <unistd.h>.
44624         (_gl_close_fd_maybe_socket): New declaration.
44625         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
44626         * lib/winsock.c (close): Remove undefinition.
44627         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
44628         needed for the gnulib module 'close'.
44629         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
44630         define to an error symbol or to a warning, if suitable.
44631         * lib/close.c: Include <sys/socket.h>.
44632         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
44633         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
44634         UNISTD_H_HAVE_WINSOCK2_H.
44635         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
44636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44637         UNISTD_H_HAVE_WINSOCK2_H.
44638         * modules/sys_socket (Files): Add m4/unistd_h.m4.
44639         (configure.ac): Set a module indicator.
44640         (Makefile.am): Substitute GNULIB_CLOSE.
44641         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
44642         * modules/poll-tests (Depends-on): Add close.
44643         * modules/select-tests (Depends-on): Likewise.
44644
44645 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44646             Bruno Haible  <bruno@clisp.org>
44647
44648         New module 'close'.
44649         * modules/close: New file.
44650         * lib/unistd.in.h (close): Move declaration out of the
44651         FCHDIR_REPLACEMENT scope.
44652         (_gl_unregister_fd): New declaration.
44653         * lib/close.c: New file.
44654         * lib/fchdir.c (rpl_close): Remove function.
44655         * m4/close.m4: New file.
44656         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44657         close.
44658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
44659         REPLACE_CLOSE.
44660         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
44661         REPLACE_CLOSE.
44662         * modules/fchdir (Depends-on): Add close.
44663
44664 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44665             Bruno Haible  <bruno@clisp.org>
44666
44667         * lib/fcntl.in.h (open): Simplify conditionals.
44668         (_gl_register_fd): New declaration.
44669         * lib/fchdir.c (rpl_open): Remove function.
44670         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
44671         also.
44672         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
44673         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44674         open.
44675
44676 2008-10-09  Jim Meyering  <meyering@redhat.com>
44677
44678         GNUmakefile: use the more name-space-friendly "_version"
44679         * top/GNUmakefile (_dummy): Update.
44680         (_version): Rename from "version".
44681
44682 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44683             Bruno Haible  <bruno@clisp.org>
44684
44685         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
44686         rpl_close.
44687         (_gl_register_fd): New function, extracted from rpl_open.
44688         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
44689         (rpl_open, rpl_opendir): Use _gl_register_fd.
44690
44691 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44692
44693         Fix organization of 'open' replacement.
44694         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
44695         (gl_FUNC_OPEN): Use it.
44696         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
44697
44698 2008-10-08  Bruno Haible  <bruno@clisp.org>
44699
44700         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
44701
44702 2008-10-08  Simon Josefsson  <simon@josefsson.org>
44703
44704         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
44705         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
44706         listen).
44707
44708 2008-10-08  Eric Blake  <ebb9@byu.net>
44709
44710         GNUmakefile: add 'make version' target
44711         * top/GNUmakefile (_curr-ver): Split version update rules...
44712         (version): ...into a target.
44713
44714 2008-10-07  Bruno Haible  <bruno@clisp.org>
44715
44716         Use a more portable replacement expression for -0.0L.
44717         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
44718         instead of -0.0L. Fix m4 quotation.
44719
44720         * tests/test-signbit.c: Include <float.h>.
44721         (minus_zero): New variable.
44722         (test_signbitl): Use minus_zero instead of -zero.
44723         * modules/signbit-tests (Depends-on): Add float.
44724
44725         * tests/test-ceill.c: Include <float.h>.
44726         (zero): Remove variable.
44727         (minus_zero): New variable.
44728         (main): Use minus_zero instead of -zero.
44729         * modules/ceill-tests (Depends-on): Add float.
44730
44731         * tests/test-floorl.c: Include <float.h>.
44732         (zero): Remove variable.
44733         (minus_zero): New variable.
44734         (main): Use minus_zero instead of -zero.
44735         * modules/floorl-tests (Depends-on): Add float.
44736
44737         * tests/test-roundl.c: Include <float.h>.
44738         (zero): Remove variable.
44739         (minus_zero): New variable.
44740         (main): Use minus_zero instead of -zero.
44741         * modules/roundl-tests (Depends-on): Add float.
44742
44743         * tests/test-truncl.c: Include <float.h>.
44744         (zero): Remove variable.
44745         (minus_zero): New variable.
44746         (main): Use minus_zero instead of -zero.
44747         * modules/truncl-tests (Depends-on): Add float.
44748
44749         * tests/test-frexpl.c (zero): Remove variable.
44750         (minus_zero): New variable.
44751         (main): Use minus_zero instead of -zero.
44752         * modules/frexpl-tests (Depends-on): Add float.
44753
44754         * tests/test-isnan.c (zerol): Remove variable.
44755         (minus_zerol): New variable.
44756         (test_long_double): Use minus_zerol instead of -zerol.
44757         * modules/isnan-tests (Depends-on): Add float.
44758
44759         * tests/test-isnanl.h (zero): Remove variable.
44760         (minus_zero): New variable.
44761         (main): Use minus_zero instead of -zero.
44762         * modules/isnanl-nolibm-tests (Depends-on): Add float.
44763         * modules/isnanl-tests (Depends-on): Add float.
44764
44765         * tests/test-ldexpl.c (zero): Remove variable.
44766         (minus_zero): New variable.
44767         (main): Use minus_zero instead of -zero.
44768         * modules/ldexpl-tests (Depends-on): Add float.
44769
44770         * tests/test-snprintf-posix.h (zerol): Remove variable.
44771         (minus_zerol): New variable.
44772         (test_function): Use minus_zerol instead of -zerol.
44773         * modules/snprintf-posix-tests (Depends-on): Add float.
44774         * modules/vsnprintf-posix-tests (Depends-on): Add float.
44775
44776         * tests/test-sprintf-posix.h (zerol): Remove variable.
44777         (minus_zerol): New variable.
44778         (test_function): Use minus_zerol instead of -zerol.
44779         * modules/sprintf-posix-tests (Depends-on): Add float.
44780         * modules/vsprintf-posix-tests (Depends-on): Add float.
44781
44782         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
44783         (minus_zerol): New variable.
44784         (test_function): Use minus_zerol instead of -zerol.
44785         * modules/vasnprintf-posix-tests (Depends-on): Add float.
44786
44787         * tests/test-vasprintf-posix.c (zerol): Remove variable.
44788         (minus_zerol): New variable.
44789         (test_function): Use minus_zerol instead of -zerol.
44790         * modules/vasprintf-posix-tests (Depends-on): Add float.
44791
44792 2008-10-07  Simon Josefsson  <simon@josefsson.org>
44793
44794         * MODULES.html.sh (Support for building documentation): Mention
44795         pmccabe2html.  Sort entries.
44796
44797         Add pmccabe2html module, from gnupdf.
44798         * build-aux/pmccabe.css: New file.
44799         * build-aux/pmccabe2html: New file.
44800         * m4/pmccabe2html.m4: New file.
44801         * modules/pmccabe2html: New file.
44802
44803 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
44804
44805         flock: new module
44806         * MODULES.html.sh: Add to list of modules.
44807         * lib/flock.c: flock implementation for Windows and Unix systems
44808         which have fcntl.
44809         * doc/glibc-functions/flock.texi: Update documentation.
44810         * lib/sys_file.in.h: <sys/file.h> header file.
44811         * m4/flock.m4: M4 macros.
44812         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
44813         * modules/flock: flock module.
44814         * modules/flock-tests: flock tests module.
44815         * modules/sys_file: sys/file.h module.
44816         * tests/test-flock.c: test suite for flock.
44817
44818 2008-10-06  Jim Meyering  <meyering@redhat.com>
44819
44820         bootstrap: check for LT_INIT more portably still ;-)
44821         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
44822         Spotted by Bruno Haible.
44823
44824 2008-10-06  Eric Blake  <ebb9@byu.net>
44825
44826         test-signbit: avoid tripping Irix cc bug on -0.0L
44827         * tests/test-signbit.c (minus_zerol): Delete, and replace with
44828         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
44829         entire testsuite consistent and avoids an Irix 6.2 bug.
44830
44831 2008-10-05  Bruno Haible  <bruno@clisp.org>
44832             Jim Meyering  <jim@meyering.net>
44833
44834         Add an option for ignoring EPIPE during close_stdout.
44835         * lib/closeout.h: Include <stdbool.h>.
44836         (close_stdout_set_ignore_EPIPE): New declaration.
44837         * lib/closeout.c: Include <stdbool.h>.
44838         (ignore_EPIPE): New variable.
44839         (close_stdout_set_ignore_EPIPE): New function.
44840         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
44841         * lib/close-stream.c (close_stream): Mention the possible EPIPE
44842         failure.
44843         * modules/closeout (Depends-on): Add stdbool.
44844
44845 2008-10-05  Bruno Haible  <bruno@clisp.org>
44846
44847         * modules/accept: New file.
44848         * modules/bind: New file.
44849         * modules/connect: New file.
44850         * modules/getpeername: New file.
44851         * modules/getsockname: New file.
44852         * modules/getsockopt: New file.
44853         * modules/listen: New file.
44854         * modules/recv: New file.
44855         * modules/recvfrom: New file.
44856         * modules/send: New file.
44857         * modules/sendto: New file.
44858         * modules/setsockopt: New file.
44859         * modules/socket: New file.
44860         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
44861         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
44862         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
44863         the particular module is requested. Add a link warning when the
44864         particular module is not requested.
44865         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
44866         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
44867         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
44868         the particular module is requested.
44869         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
44870         gl_SYS_SOCKET_H_DEFAULTS): New macros.
44871         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
44872         * modules/sys_socket (Depends-on): Add link-warning.
44873         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
44874         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
44875         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
44876         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
44877         GL_LINK_WARNING.
44878         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
44879         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
44880         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
44881         * doc/posix-functions/getpeername.texi: Mention the new module
44882         'getpeername'.
44883         * doc/posix-functions/getsockname.texi: Mention the new module
44884         'getsockname'.
44885         * doc/posix-functions/getsockopt.texi: Mention the new module
44886         'getsockopt'.
44887         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
44888         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
44889         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
44890         * doc/posix-functions/send.texi: Mention the new module 'send'.
44891         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
44892         * doc/posix-functions/setsockopt.texi: Mention the new module
44893         'setsockopt'.
44894         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
44895         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
44896         listen, connect, accept.
44897         * modules/select-tests (Depends-on): Likewise.
44898
44899 2008-10-05  Bruno Haible  <bruno@clisp.org>
44900
44901         * lib/winsock.c (strerror): Remove unused #undef.
44902         (rpl_close): Remove unused local variable.
44903
44904         * modules/sys_socket (Depends-on); Add errno.
44905
44906 2008-10-05  Bruno Haible  <bruno@clisp.org>
44907
44908         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
44909         (select): Add a link warning when the 'select' module is not used.
44910         * modules/sys_select (Depends-on): Add link-warning.
44911         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
44912         Suggested by Paolo Bonzini.
44913
44914 2008-10-05  Jim Meyering  <meyering@redhat.com>
44915
44916         bootstrap: check for LT_INIT more portably
44917         * build-aux/bootstrap: Avoid using grep -E, since it's not
44918         portable enough.  Suggestion from Bruno Haible.
44919
44920 2008-10-05  Bruno Haible  <bruno@clisp.org>
44921
44922         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
44923         as being fixed by gnulib.
44924
44925 2008-10-05  Bruno Haible  <bruno@clisp.org>
44926
44927         * modules/select-tests: New file, mostly copied from
44928         modules/sys_select-tests.
44929         * tests/test-select.c: New file, mostly copied from
44930         tests/test-sys_select.c.
44931         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
44932         * modules/sys_select-tests (Depends-on): Remove all dependencies.
44933         (Makefile.am): Remove test_sys_select_LDADD.
44934
44935         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
44936         to an undefined symbol, for an error message.
44937         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
44938         (gl_SYS_SELECT_H_DEFAULTS): New macro.
44939         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
44940         winsock-select.c here.
44941         * modules/sys_select (Files): Remove lib/winsock-select.c.
44942         (Depends-on): Remove alloca.
44943         (Makefile.am): Substitute GNULIB_SELECT.
44944         * modules/select: New file.
44945         * doc/posix-functions/select.texi: Update.
44946
44947 2008-10-05  Bruno Haible  <bruno@clisp.org>
44948
44949         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
44950         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
44951         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
44952         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
44953         getdtablesize.
44954         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
44955         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
44956
44957 2008-10-05  Bruno Haible  <bruno@clisp.org>
44958
44959         * modules/getdtablesize-tests: New file.
44960         * tests/test-getdtablesize.c: New file.
44961
44962         New module 'getdtablesize'.
44963         * lib/unistd.in.h (getdtablesize): New declaration.
44964         * lib/getdtablesize.c: New file.
44965         * m4/getdtablesize.m4: New file.
44966         * modules/getdtablesize: New file.
44967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44968         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
44969         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
44970         HAVE_GETDTABLESIZE.
44971         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
44972
44973 2008-10-05  Bruno Haible  <bruno@clisp.org>
44974
44975         * modules/sched (Makefile.am): Fix typo.
44976         Reported by Simon Josefsson.
44977
44978 2008-10-05  Jim Meyering  <meyering@redhat.com>
44979
44980         bootstrap: check for LT_INIT, too
44981         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
44982         are deprecated.  Suggestion from Ralf Wildenhues.
44983
44984 2008-10-05  Bruno Haible  <bruno@clisp.org>
44985
44986         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
44987         overriding them by ours.
44988         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
44989
44990 2008-10-05  Jim Meyering  <meyering@redhat.com>
44991
44992         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
44993         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
44994         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
44995
44996 2008-10-04  Bruno Haible  <bruno@clisp.org>
44997
44998         * modules/dup2 (License): Change to LGPLv2+.
44999         * modules/sleep (License): Likewise.
45000         * modules/perror (License): Likewise.
45001         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45002         Blake.
45003         * modules/signal (License): Likewise.
45004         * modules/sigprocmask (License): Likewise.
45005         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45006         Meyering.
45007
45008 2008-10-04  Bruno Haible  <bruno@clisp.org>
45009
45010         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45011         Reported by Rainer Tammer <tammer@tammer.net>.
45012
45013 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45014             Bruno Haible  <bruno@clisp.org>
45015
45016         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45017         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45018         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45019
45020 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45021
45022         filevercmp: new module
45023         * lib/filevercmp.h: New function filevercmp comparing version strings.
45024         * lib/filevercmp.c: Implementation of filevercmp function.
45025         * modules/filevercmp: Module metadata.
45026         * tests/test-filevercmp.c: Unit test for new module.
45027         * modules/filevercmp-tests: Unit test metadata.
45028         * MODULES.html.sh: Add filevercmp module.
45029
45030 2008-10-03  Bruno Haible  <bruno@clisp.org>
45031
45032         * lib/c-ctype.h: Add comment.
45033         Reported by Jim Meyering.
45034
45035 2008-10-02  Bruno Haible  <bruno@clisp.org>
45036
45037         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45038
45039 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45040
45041         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45042         name of bootstrap.conf accordingly.
45043
45044 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45045
45046         * build-aux/bootstrap: Install git-merge-changelog configuration
45047         items into .gitconfig if needed.
45048
45049 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45050
45051         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45052         git repository, and initialize/update it accordingly.
45053
45054 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45055
45056         * modules/fsync-tests: New file.
45057         * tests/test-fsync.c: New file.
45058
45059         New module 'fsync'.
45060         * lib/fsync.c: New file.
45061         * m4/fsync.m4: New file.
45062         * modules/fsync: New file.
45063         * lib/unistd.in.h (fsync): New declaration.
45064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45065         GNULIB_FSYNC and HAVE_FSYNC.
45066         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45067         * MODULES.html.sh (posix_functions): Add fsync.
45068         * doc/posix-functions/fsync.texi: Mention the new module.
45069
45070 2008-10-02  Jim Meyering  <meyering@redhat.com>
45071
45072         fts.c: sync with similar code from coreutils' remove.c
45073         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45074         Guard also with "#if defined __linux__", since for now at least,
45075         this code is Linux-kernel-specific.
45076
45077 2008-10-02  Jim Meyering  <meyering@redhat.com>
45078
45079         fts: bug fixes
45080         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45081         Include <sys/vfs.h>, not <sys/statfs.h>.
45082
45083         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45084         Include <sys/vfs.h>, not <sys/statfs.h>.
45085
45086 2008-10-01  Bruno Haible  <bruno@clisp.org>
45087
45088         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45089         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45090         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45091         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45092         * doc/posix-functions/posix_spawnp.texi: Likewise.
45093         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45094         whether posix_spawn actually works.
45095         * m4/pipe.m4 (gl_PIPE): Likewise.
45096         * modules/execute (Files): Add m4/posix_spawn.m4.
45097         * modules/pipe (Files): Add m4/posix_spawn.m4.
45098         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45099
45100 2008-10-01  Jim Meyering  <meyering@redhat.com>
45101
45102         remove trailing spaces
45103         * NEWS: Likewise.
45104         * lib/poll.c (poll): Likewise.
45105         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45106         * lib/winsock.c (rpl_close): Likewise.
45107         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45108         * modules/yield: Likewise.
45109         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45110         * tests/test-sys_select.c (connect_to_socket): Likewise.
45111
45112         fts.c: adjust a new interface to be more generally useful
45113         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45114         (fts_build): Adjust caller.
45115
45116 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45117
45118         * modules/cond-tests: New file.
45119         * tests/test-cond.c: New file.
45120
45121 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45122             Bruno Haible  <bruno@clisp.org>
45123
45124         * modules/cond (Dependencies): Add errno, time.
45125         * lib/glthread/cond.h: Include <time.h>.
45126         (gl_cond_define, gl_cond_define_initialized): Use the same definition
45127         across platforms.
45128
45129 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45130             Bruno Haible  <bruno@clisp.org>
45131
45132         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
45133
45134 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45135             Bruno Haible  <bruno@clisp.org>
45136
45137         * modules/tls-tests (Depends-on): Add thread, yield.
45138         (configure.ac): Remove all checks.
45139         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
45140         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45141         gl_thread_self): Remove definitions. Include glthread/thread.h and
45142         glthread/yield.h instead.
45143         (test_tls): Pass an additional NULL argument to gl_thread_join.
45144
45145 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45146             Bruno Haible  <bruno@clisp.org>
45147
45148         * modules/lock-tests (Depends-on): Add thread, yield.
45149         (configure.ac): Remove all checks.
45150         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
45151         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45152         gl_thread_self): Remove definitions. Include glthread/thread.h and
45153         glthread/yield.h instead.
45154         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
45155         additional NULL argument to gl_thread_join.
45156
45157 2008-09-30  Bruno Haible  <bruno@clisp.org>
45158
45159         Fix the Win32 implementation of the 'thread' module.
45160         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
45161         pointer type.
45162         (gl_thread_self): Invoke gl_thread_self_func.
45163         (gl_thread_self_func): New declaration.
45164         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
45165         (do_init_self_key, init_self_key): New functions.
45166         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
45167         Remove some fields.
45168         (running_threads, running_lock): Remove variables.
45169         (get_current_thread_handle): New function.
45170         (gl_thread_self_func, wrapper_func, glthread_create_func,
45171         glthread_join_func, gl_thread_exit_func): Largely rewritten and
45172         simplified.
45173
45174 2008-09-30  Bruno Haible  <bruno@clisp.org>
45175
45176         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45177         files.
45178
45179 2008-09-30  Jim Meyering  <meyering@redhat.com>
45180
45181         fts.m4: correct the test for statfs.f_type
45182         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45183         when checking for statfs.f_type.
45184
45185 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45186
45187         tests: avoid some compiler warnings
45188         * tests/test-memchr.c (main): Pass NULL indirectly.
45189         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45190
45191 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
45192
45193         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45194         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45195         exactly specified dayshifts.
45196         (dayshift): New rule.
45197         (rel): Add dayshift.
45198         (relative_time_table) [tomorrow, yesterday, today, now]:
45199         Use tDAY_SHIFT in place of tDAY_UNIT.
45200         * tests/test-getdate.c: Add tests for now-disallowed countable
45201         dayshifts, e.g., "4 yesterday ago".
45202
45203 2008-09-29  Bruno Haible  <bruno@clisp.org>
45204
45205         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
45206         * tests/test-posix_spawn1.in.sh: Renamed from
45207         tests/test-posix_spawn.in.sh.
45208         * tests/test-posix_spawn2.c: New file.
45209         * tests/test-posix_spawn2.in.sh: New file.
45210         * modules/posix_spawnp-tests (Files): Update.
45211         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
45212
45213 2008-09-29  Bruno Haible  <bruno@clisp.org>
45214
45215         Propagate effects of putenv/setenv/unsetenv to child processes.
45216         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
45217         * lib/pipe.c (create_pipe): Likewise.
45218
45219 2008-09-29  Bruno Haible  <bruno@clisp.org>
45220
45221         Enable use of shell scripts as executables in mingw.
45222         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
45223         run the program as a shell script.
45224         * lib/pipe.c (create_pipe): Likewise.
45225         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
45226         resulting array.
45227
45228 2008-09-29  Eric Blake  <ebb9@byu.net>
45229
45230         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
45231
45232 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
45233
45234         * doc/posix-functions/accept.texi: Update mingw problems.
45235         * doc/posix-functions/bind.texi: Update mingw problems.
45236         * doc/posix-functions/close.texi: Update mingw problems.
45237         * doc/posix-functions/connect.texi: Update mingw problems.
45238         * doc/posix-functions/getpeername.texi: Update mingw problems.
45239         * doc/posix-functions/getsockname.texi: Update mingw problems.
45240         * doc/posix-functions/getsockopt.texi: Update mingw problems.
45241         * doc/posix-functions/ioctl.texi: Update mingw problems.
45242         * doc/posix-functions/listen.texi: Update mingw problems.
45243         * doc/posix-functions/recv.texi: Update mingw problems.
45244         * doc/posix-functions/recvfrom.texi: Update mingw problems.
45245         * doc/posix-functions/select.texi: Update mingw problems.
45246         * doc/posix-functions/send.texi: Update mingw problems.
45247         * doc/posix-functions/sendto.texi: Update mingw problems.
45248         * doc/posix-functions/setsockopt.texi: Update mingw problems.
45249         * doc/posix-functions/socket.texi: Update mingw problems.
45250
45251 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
45252             Bruno Haible  <bruno@clisp.org>
45253
45254         * lib/sys_select.in.h: Include sys/time.h.
45255         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
45256         * modules/sys_select: Depend on sys_time.
45257         * tests/test-sys_select.c: Test that sys/select.h defines struct
45258         timeval fully.
45259
45260 2008-09-29  Bruno Haible  <bruno@clisp.org>
45261
45262         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
45263         * lib/sys_select.in.h: Likewise.
45264
45265 2008-09-29  Bruno Haible  <bruno@clisp.org>
45266
45267         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
45268
45269 2008-09-29  Bruno Haible  <bruno@clisp.org>
45270
45271         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
45272         Set LIBSOCKET instead of augmenting LIBS.
45273         * modules/sockets (Link): New section.
45274         * modules/sockets-tests (test_sockets_LDADD): New variable.
45275         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
45276         * modules/poll-tests (test_poll_LDADD): New variable.
45277         * NEWS: Document the change.
45278
45279 2008-09-29  Bruno Haible  <bruno@clisp.org>
45280
45281         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
45282         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
45283         ARPA_INET_H directly.
45284         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45285
45286 2008-09-28  Bruno Haible  <bruno@clisp.org>
45287
45288         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
45289         from gl_HEADER_SYS_SOCKET.
45290         (gl_HEADER_SYS_SOCKET): Invoke it.
45291         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45292
45293 2008-09-28  Bruno Haible  <bruno@clisp.org>
45294
45295         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
45296         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
45297         Needed on OSF/1 4.0.
45298
45299 2008-09-28  Bruno Haible  <bruno@clisp.org>
45300
45301         Override open more carefully.
45302         * lib/open.c (orig_open): New function.
45303         (rpl_open): Use orig_open instead of open.
45304         * lib/fcntl.in.h: Add special invocation convention.
45305         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
45306         (gl_FUNC_OPEN): Invoke it.
45307
45308         Override freopen more carefully.
45309         * lib/freopen.c (orig_freopen): New function.
45310         (rpl_freopen): Use orig_freopen instead of freopen.
45311         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
45312         (gl_FUNC_FREOPEN): Invoke it.
45313
45314         Override fopen more carefully.
45315         * lib/fopen.c (orig_fopen): New function.
45316         (rpl_fopen): Use orig_fopen instead of fopen.
45317         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
45318         (gl_FUNC_FOPEN): Invoke it.
45319         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
45320
45321 2008-09-28  Bruno Haible  <bruno@clisp.org>
45322
45323         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
45324         SIGPIPE.
45325
45326 2008-09-28  Bruno Haible  <bruno@clisp.org>
45327
45328         * tests/test-sigaction.c (handler, main): Disable the check whether
45329         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
45330         glibc systems with LinuxThreads.
45331
45332 2008-09-28  Bruno Haible  <bruno@clisp.org>
45333
45334         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
45335
45336         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
45337         with AIX xlc.
45338         * lib/fcntl.in.h (open): Likewise.
45339         Reported by Rainer Tammer <tammer@tammer.net>.
45340
45341 2008-09-28  Bruno Haible  <bruno@clisp.org>
45342
45343         * modules/posix_spawnp-tests: New file.
45344         * tests/test-posix_spawn.c: New file.
45345         * tests/test-posix_spawn.in.sh: New file.
45346
45347         New module 'posix_spawnp'.
45348         * modules/posix_spawnp: New file.
45349         * lib/spawnp.c: New file, from GNU libc with modifications.
45350         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
45351
45352         New module 'posix_spawn'.
45353         * modules/posix_spawn: New file.
45354         * lib/spawn.c: New file, from GNU libc with modifications.
45355         * doc/posix-functions/posix_spawn.texi: Mention the new module.
45356
45357         New module 'posix_spawnattr_destroy'.
45358         * modules/posix_spawnattr_destroy: New file.
45359         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
45360         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
45361         module.
45362
45363         New module 'posix_spawnattr_setsigmask'.
45364         * modules/posix_spawnattr_setsigmask: New file.
45365         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
45366         modifications.
45367         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
45368         new module.
45369
45370         New module 'posix_spawnattr_getsigmask'.
45371         * modules/posix_spawnattr_getsigmask: New file.
45372         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
45373         modifications.
45374         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
45375         new module.
45376
45377         New module 'posix_spawnattr_setsigdefault'.
45378         * modules/posix_spawnattr_setsigdefault: New file.
45379         * lib/spawnattr_setdefault.c: New file, from GNU libc with
45380         modifications.
45381         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
45382         new module.
45383
45384         New module 'posix_spawnattr_getsigdefault'.
45385         * modules/posix_spawnattr_getsigdefault: New file.
45386         * lib/spawnattr_getdefault.c: New file, from GNU libc with
45387         modifications.
45388         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
45389         new module.
45390
45391         New module 'posix_spawnattr_setschedpolicy'.
45392         * modules/posix_spawnattr_setschedpolicy: New file.
45393         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
45394         modifications.
45395         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
45396         new module.
45397
45398         New module 'posix_spawnattr_getschedpolicy'.
45399         * modules/posix_spawnattr_getschedpolicy: New file.
45400         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
45401         modifications.
45402         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
45403         new module.
45404
45405         New module 'posix_spawnattr_setschedparam'.
45406         * modules/posix_spawnattr_setschedparam: New file.
45407         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
45408         modifications.
45409         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
45410         new module.
45411
45412         New module 'posix_spawnattr_getschedparam'.
45413         * modules/posix_spawnattr_getschedparam: New file.
45414         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
45415         modifications.
45416         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
45417         new module.
45418
45419         New module 'posix_spawnattr_setpgroup'.
45420         * modules/posix_spawnattr_setpgroup: New file.
45421         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
45422         modifications.
45423         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
45424         module.
45425
45426         New module 'posix_spawnattr_getpgroup'.
45427         * modules/posix_spawnattr_getpgroup: New file.
45428         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
45429         modifications.
45430         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
45431         module.
45432
45433         New module 'posix_spawnattr_setflags'.
45434         * modules/posix_spawnattr_setflags: New file.
45435         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
45436         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
45437         module.
45438
45439         New module 'posix_spawnattr_getflags'.
45440         * modules/posix_spawnattr_getflags: New file.
45441         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
45442         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
45443         module.
45444
45445         New module 'posix_spawnattr_init'.
45446         * modules/posix_spawnattr_init: New file.
45447         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
45448         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
45449         module.
45450
45451         New module 'posix_spawn_file_actions_destroy'.
45452         * modules/posix_spawn_file_actions_destroy: New file.
45453         * lib/spawn_faction_destroy.c: New file, from GNU libc with
45454         modifications.
45455         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
45456         the new module.
45457
45458         New module 'posix_spawn_file_actions_addopen'.
45459         * modules/posix_spawn_file_actions_addopen: New file.
45460         * lib/spawn_faction_addopen.c: New file, from GNU libc with
45461         modifications.
45462         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
45463         the new module.
45464
45465         New module 'posix_spawn_file_actions_adddup2'.
45466         * modules/posix_spawn_file_actions_adddup2: New file.
45467         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
45468         modifications.
45469         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
45470         the new module.
45471
45472         New module 'posix_spawn_file_actions_addclose'.
45473         * modules/posix_spawn_file_actions_addclose: New file.
45474         * lib/spawn_faction_addclose.c: New file, from GNU libc with
45475         modifications.
45476         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
45477         the new module.
45478
45479         New module 'posix_spawn_file_actions_init'.
45480         * modules/posix_spawn_file_actions_init: New file.
45481         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
45482         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
45483         new module.
45484
45485         New module 'posix_spawn-internal'.
45486         * modules/posix_spawn-internal: New file.
45487         * lib/spawn_int.h: New file, from GNU libc with modifications.
45488         * lib/spawni.c: New file, from GNU libc with modifications.
45489         * m4/posix_spawn.m4: New file.
45490
45491         New module 'spawn'.
45492         * modules/spawn: New file.
45493         * lib/spawn.in.h: New file, from GNU libc with modifications.
45494         * m4/spawn_h.m4: New file.
45495         * doc/posix-headers/spawn.texi: Mention the new module.
45496
45497 2008-09-28  Bruno Haible  <bruno@clisp.org>
45498
45499         * modules/sched-tests: New file.
45500         * tests/test-sched.c: New file.
45501
45502         New module 'sched'.
45503         * modules/sched: New file.
45504         * lib/sched.in.h: New file.
45505         * m4/sched_h.m4: New file.
45506         * doc/posix-headers/sched.texi: Mention the new module.
45507
45508 2008-09-27  Eric Blake  <ebb9@byu.net>
45509
45510         Fix previous patch, and tweak references to $0.
45511         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
45512         (func_version, func_gnulib_dir): Don't call this program
45513         gnulib-tool.
45514         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
45515         with using $0 in function.
45516         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
45517         (func_fatal_error): Reuse the name the user invoked us with.
45518
45519 2008-09-27  Bruno Haible  <bruno@clisp.org>
45520
45521         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
45522         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
45523         (gl_ICONV_H): Not here.
45524         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
45525         instead of assigning ICONV_H directly.
45526
45527         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
45528         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
45529         WCHAR_H directly.
45530
45531 2008-09-27  Bruno Haible  <bruno@clisp.org>
45532
45533         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
45534         * modules/arpa_inet (Depends-on): Add link-warning.
45535         (Makefile.am): Insert the definition of GL_LINK-WARNING.
45536         * modules/unistd (Makefile.am): Likewise.
45537
45538 2008-09-26  Bruno Haible  <bruno@clisp.org>
45539
45540         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
45541         variables.
45542         (func_version): Essentially copied from gnulib-tool.
45543         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
45544         func_readlink): Copied from gnulib-tool.
45545
45546 2008-09-26  Bruno Haible  <bruno@clisp.org>
45547
45548         * gnulib-tool (func_version): Change directory to $gnulib_dir before
45549         invoking git-version-gen.
45550
45551 2008-09-26  Bruno Haible  <bruno@clisp.org>
45552
45553         * posix-modules: Update to directory names changed on 2008-01-19.
45554         Remove commas in output before splitting into words. No more need to
45555         avoid 'ftruncate' since 2007-02-19.
45556
45557 2008-09-26  Bruno Haible  <bruno@clisp.org>
45558
45559         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
45560
45561 2008-09-26  Bruno Haible  <bruno@clisp.org>
45562
45563         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
45564         * modules/fwriteerror (Depends-on): Add errno.
45565
45566 2008-09-26  Bruno Haible  <bruno@clisp.org>
45567
45568         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
45569         * tests/test-vc-list-files-cvs.sh: Likewise.
45570
45571 2008-09-26  Bruno Haible  <bruno@clisp.org>
45572
45573         * doc/posix-headers/sys_resource.texi: Reorder items.
45574
45575 2008-09-26  Jim Meyering  <meyering@redhat.com>
45576
45577         fts: tweak inode comparison function
45578         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
45579         inode numbers, as documented.
45580
45581         fts: sort dirent entries on inode number before traversing
45582         This avoids a quadratic, seek-related performance penalty when
45583         operating on a directory containing many entries (measurable at 10k;
45584         3.5 hours at 2 million entries with a cold cache) on certain types
45585         of file systems, including ext3 and ext4, but not tmpfs.
45586         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
45587         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
45588         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
45589         (fs_handles_readdir_ordered_dirents_efficiently): New function.
45590         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
45591         (fts_build): Set the stat.st_ino member from D_INO.
45592         If it is likely to be useful, sort dirent entries on inode number.
45593
45594         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
45595         and the struct statfs.f_type member.
45596         * modules/fts (Depends-on): Add d-ino.
45597
45598 2008-09-26  Bruno Haible  <bruno@clisp.org>
45599
45600         * modules/sigpipe-die (Depends-on): Add sigpipe.
45601
45602         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
45603         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
45604         and GNULIB_STDIO_H_SIGPIPE are set.
45605         * lib/stdio-write.c: New file.
45606         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
45607         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45608         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45609         REPLACE_STDIO_WRITE_FUNCS.
45610         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
45611         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45612         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45613         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45614         * modules/stdio (Files): Add lib/stdio-write.c.
45615         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
45616         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45617         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45618         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45619         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
45620         REPLACE_FPRINTF_POSIX.
45621         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
45622         REPLACE_PRINTF_POSIX.
45623         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
45624         REPLACE_VFPRINTF_POSIX.
45625         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
45626         REPLACE_VPRINTF_POSIX.
45627         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
45628         SIGPIPE issue.
45629         * doc/posix-functions/fputc.texi: Likewise.
45630         * doc/posix-functions/fputs.texi: Likewise.
45631         * doc/posix-functions/fwrite.texi: Likewise.
45632         * doc/posix-functions/printf.texi: Likewise.
45633         * doc/posix-functions/putc.texi: Likewise.
45634         * doc/posix-functions/putchar.texi: Likewise.
45635         * doc/posix-functions/puts.texi: Likewise.
45636         * doc/posix-functions/vfprintf.texi: Likewise.
45637         * doc/posix-functions/vprintf.texi: Likewise.
45638
45639         * modules/safe-write (Depends-on): Add write.
45640
45641         * modules/sigpipe-tests: New file.
45642         * tests/test-sigpipe.c: New file.
45643         * tests/test-sigpipe.sh: New file.
45644
45645         * modules/write: New file.
45646         * lib/unistd.in.h: Include <sys/types.h>.
45647         (write): New declaration.
45648         * lib/write.c: New file.
45649         * m4/write.m4: New file.
45650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45651         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
45652         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
45653         GNULIB_WRITE, REPLACE_WRITE.
45654         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
45655         and the SIGPIPE issue.
45656
45657         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
45658         (raise): New declaration.
45659         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
45660         (ext_signal): New function.
45661         (rpl_raise): New function.
45662         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45663         GNULIB_SIGNAL_H_SIGPIPE.
45664         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
45665         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
45666
45667         * modules/sigpipe: New file.
45668         * m4/sigpipe.m4: New file.
45669
45670 2008-09-25  Derek Price  <derek@ximbiot.com>
45671             Bruno Haible  <bruno@clisp.org>
45672
45673         * gnulib-tool (func_import): Report all license incompatibilities, not
45674         just the first one.
45675
45676 2008-09-25  Bruno Haible  <bruno@clisp.org>
45677
45678         * gnulib-tool (func_import): When computing the edits, consider not
45679         only the Makefile.ams that exist but also those that will be generated.
45680
45681 2008-09-25  Simon Josefsson  <simon@josefsson.org>
45682
45683         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
45684         fixes gnulib-tool --test warning about duplicate dependency.
45685
45686 2008-09-25  Bruno Haible  <bruno@clisp.org>
45687
45688         * gnulib-tool: Don't ask the user to perform edits in the generated
45689         Makefile.ams.
45690         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
45691         apply to the Makefile.am being generated.
45692         (func_emit_tests_Makefile_am): Execute edits that apply to the
45693         Makefile.am being generated.
45694         (func_import): Setup list of Makefile.am edits before emitting the
45695         Makefile.ams, not at the end.
45696         (func_create_testdir): Update.
45697         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45698
45699 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45700
45701         * gnulib-tool (func_import): Store the --tests-base option in the
45702         comment in gnulib-cache.m4.
45703
45704 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
45705
45706         * NEWS: Document increased portability that sys_select now provides.
45707
45708         * lib/sys_select.in.h: Install select wrapper.
45709         * lib/sys_socket.in.h: Use more descriptive name when there is no
45710         select wrapper.
45711         * lib/winsock-select.c: New.
45712         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
45713         Require gl_HEADER_SYS_SOCKET.
45714         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
45715         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
45716         * tests/test-sys_select.c: Add functional tests.
45717
45718 2008-09-24  Eric Blake  <ebb9@byu.net>
45719
45720         open, fopen: close fd leak in last patch
45721         * lib/open.c (rpl_open): Close fd before returning error.
45722         * lib/fopen.c (rpl_fopen): Close fd before returning error.
45723         * doc/posix-functions/open.texi (open): Document that Irix also
45724         has the bug.
45725         * doc/posix-functions/fopen.texi (fopen): Likewise.
45726         Reported by Paolo Bonzini.
45727
45728 2008-09-24  Bruno Haible  <bruno@clisp.org>
45729
45730         Ensure that a filename ending in a slash cannot be used to access a
45731         non-directory.
45732         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
45733         to check whether it's really a directory.
45734         * lib/fopen.c: Include fcntl.h, unistd.h.
45735         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
45736         and fdopen().
45737         * modules/fopen (Depends-on): Add unistd.
45738         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
45739         * tests/test-fopen.c (main): Likewise.
45740         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
45741         * doc/posix-functions/fopen.texi: Likewise.
45742         Reported by Eric Blake.
45743
45744 2008-09-23  Eric Blake  <ebb9@byu.net>
45745
45746         c-stack: avoid compiler optimizations when provoking overflow
45747         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
45748         recursion harder to optimize, to ensure a stack overflow occurs.
45749         * tests/test-c-stack.c (recurse): Likewise.
45750         Borrowed from libsigsegv.
45751
45752         c-stack: work around Irix sigaltstack bug
45753         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
45754         whether sigaltstack uses wrong end of stack_t (copied in part from
45755         libsigsegv).
45756         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
45757         Irix bug, without requiring an over-allocation.
45758         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
45759         bug.
45760
45761         fopen: document mingw bug on directories
45762         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
45763         not allowing a stream visiting a directory, even though reading
45764         from such a stream is not portable.
45765
45766 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45767
45768         * lib/poll.c: Rewrite.
45769         * modules/poll: Depend on alloca.
45770
45771 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45772
45773         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
45774         instead define prototypes for a full set of wrappers.  Ensure
45775         that Cygwin does not use the compatibility code, which is only
45776         for MinGW.
45777         * lib/winsock.c: New.
45778         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
45779         * modules/sys_socket: Add lib/winsock.c.
45780
45781         * modules/poll-tests: Add errno and perror.
45782         * tests/test-poll.c: Use ioctl, not ioctlsocket.
45783
45784 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45785
45786         * tests/test-poll.c: Downgrade minimum needed Winsock version.
45787
45788 2008-09-23  Bruno Haible  <bruno@clisp.org>
45789
45790         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
45791         * doc/glibc-functions/*: Likewise.
45792
45793 2008-09-23  Simon Josefsson  <simon@josefsson.org>
45794
45795         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
45796         success.
45797
45798 2008-09-22  Eric Blake  <ebb9@byu.net>
45799             Bruno Haible  <bruno@clisp.org>
45800
45801         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
45802         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
45803         supply %A but mishandle pseudo-NaN.
45804         Reported by Simon Josefsson.
45805
45806 2008-09-21  Bruno Haible  <bruno@clisp.org>
45807
45808         * tests/test-lock.c (main): Tweak skip message.
45809         * tests/test-tls.c (main): Likewise.
45810
45811 2008-09-21  Bruno Haible  <bruno@clisp.org>
45812
45813         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
45814         whether 'struct sigaction' has sa_sigaction here...
45815         (gl_PREREQ_SIG_HANDLER_H): ... not here.
45816         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
45817
45818 2008-09-21  Bruno Haible  <bruno@clisp.org>
45819
45820         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
45821         section.
45822         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
45823         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
45824         the new section.
45825         (Support for obsolete systems lacking POSIX:2001): New section.
45826         (String handling <string.h>): Move strdup to the new section.
45827         Suggested by Simon Josefsson and Paolo Bonzini.
45828
45829 2008-09-21  Bruno Haible  <bruno@clisp.org>
45830
45831         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
45832         exponents in %e and %g results on 'long double'. Needed for mingw's
45833         improved *printf functions.
45834         * tests/test-vasprintf-posix.c (test_function): Likewise.
45835         * tests/test-snprintf-posix.h (test_function): Likewise.
45836         * tests/test-sprintf-posix.h (test_function): Likewise.
45837         Reported by Eric Blake.
45838
45839 2008-09-21  Bruno Haible  <bruno@clisp.org>
45840
45841         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
45842         * tests/test-sprintf-posix.h (test_function): Likewise.
45843
45844 2008-09-21  Bruno Haible  <bruno@clisp.org>
45845
45846         * modules/getpass (Depends-on): Add strdup-posix.
45847
45848         New module 'strdup-posix'.
45849         * modules/strdup-posix: New file.
45850         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
45851         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
45852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45853         REPLACE_STRDUP.
45854         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
45855         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
45856         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45857         strdup-posix.
45858
45859         * modules/strdup (Depends-on): Remove malloc-posix.
45860
45861 2008-09-20  Bruno Haible  <bruno@clisp.org>
45862
45863         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
45864         Wildenhues.
45865
45866 2008-09-20  Bruno Haible  <bruno@clisp.org>
45867
45868         Ensure that wint_t gets defined on IRIX 5.3.
45869         * lib/wchar.in.h (wint_t): Define if not defined by the system.
45870         * lib/wctype.in.h (wint_t): Likewise.
45871         (__wctype_wint_t): Remove type.
45872         (isw*): Use wint_t instead of __wctype_wint_t.
45873         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
45874         * modules/wchar (Files): Add m4/wint_t.m4.
45875         (Makefile.am): Substitute HAVE_WINT_T.
45876         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
45877         * tests/test-wctype.c: Check that wint_t is defined.
45878         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
45879         * doc/posix-headers/wctype.texi: Likewise.
45880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45881
45882 2008-09-18  Bruno Haible  <bruno@clisp.org>
45883
45884         * gnulib-tool (func_exit): Update comment.
45885
45886 2008-09-18  Simon Josefsson  <simon@josefsson.org>
45887
45888         * modules/getaddrinfo (Depends-on): Remove strdup, this module
45889         assumes strdup exists and does not depend on strdup to return
45890         ENOMEM on out of memory conditions.
45891
45892 2008-09-18  Bruno Haible  <bruno@clisp.org>
45893
45894         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
45895         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
45896         digits for the exponent.
45897
45898 2008-09-18  Jim Meyering  <meyering@redhat.com>
45899             Bruno Haible  <bruno@clisp.org>
45900
45901         * lib/vasnprintf.c (decimal_point_char): Define also if
45902         NEED_PRINTF_INFINITE_LONG_DOUBLE.
45903
45904 2008-09-16  Bruno Haible  <bruno@clisp.org>
45905         and Eric Blake  <ebb9@byu.net>
45906
45907         vasnprintf: support Irix 5.3
45908         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
45909         that mishandle long double infinity.
45910         Reported by Tom G. Christensen.
45911
45912 2008-09-16  Bruno Haible  <bruno@clisp.org>
45913
45914         * doc/glibc-functions/scandir.texi: Mention the function is missing on
45915         Solaris 9.
45916         * doc/glibc-functions/alphasort.texi: Likewise.
45917         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
45918
45919 2008-09-16  Jim Meyering  <meyering@redhat.com>
45920
45921         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
45922         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
45923         a umask modification leak out of a subshell.  Otherwise, the
45924         opensolaris /bin/sh would be accepted and thus cause unwarranted
45925         failures in the coreutils test suite.
45926
45927 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
45928
45929         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
45930         to succeed.
45931
45932 2008-09-16  Jim Meyering  <meyering@redhat.com>
45933
45934         avoid spurious test failure when library is built without ACL support
45935         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
45936         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
45937         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
45938         * tests/test-copy-acl.sh: Likewise.
45939
45940 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45941
45942         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
45943         based on character occurrence counts.
45944
45945 2008-09-15  Eric Blake  <ebb9@byu.net>
45946
45947         tests: avoid some compiler warnings
45948         * tests/test-memchr.c (main): Pass NULL indirectly.
45949         * tests/test-closein.c (main): Avoid unused variable.
45950
45951 2008-09-15  Bruno Haible  <bruno@clisp.org>
45952
45953         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
45954         are missing on OpenBSD 4.0 individually.
45955         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45956
45957 2008-09-15  Bruno Haible  <bruno@clisp.org>
45958
45959         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
45960         * doc/posix-functions/strerror.texi: Mention also Cygwin.
45961         * doc/posix-functions/perror.texi: Likewise.
45962         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
45963         is missing.
45964         Reported by Eric Blake.
45965
45966         * lib/errno.in.h: Use replacement values >= 2000.
45967         Reported by Eric Blake.
45968
45969 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45970
45971         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
45972         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
45973         limit.
45974         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
45975         compareseq was aborted.
45976
45977 2008-09-14  Bruno Haible  <bruno@clisp.org>
45978
45979         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
45980         yvec_edit_count.
45981         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
45982         (fstrcmp_bounded): Simplify result computation accordingly.
45983
45984 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45985
45986         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
45987         (fstrcmp): Define in terms of fstrcmp_bounded.
45988         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
45989         lower_bound argument.
45990         Return quickly if the result is certainly < lower_bound.
45991         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
45992
45993 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45994
45995         * lib/diffseq.h (EARLY_ABORT): New macro.
45996         (compareseq): Change return type to bool. Return true when EARLY_ABORT
45997         evaluates to true.
45998
45999 2008-09-14  Bruno Haible  <bruno@clisp.org>
46000
46001         * modules/perror-tests: New file.
46002         * tests/test-perror.sh: New file.
46003         * tests/test-perror.c: New file.
46004
46005         New module 'perror'.
46006         * lib/stdio.in.h (perror): New declaration.
46007         * lib/perror.c: New file.
46008         * m4/perror.m4: New file.
46009         * modules/perror: New file.
46010         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46011         * doc/posix-functions/perror.texi: Mention the perror module.
46012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46013         REPLACE_PERROR.
46014         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46015         REPLACE_PERROR.
46016
46017 2008-09-14  Bruno Haible  <bruno@clisp.org>
46018
46019         * modules/stdio (Makefile.am): Reorder to match the order in
46020         lib/stdio.in.h.
46021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46022
46023 2008-09-13  Bruno Haible  <bruno@clisp.org>
46024
46025         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46026
46027 2008-09-13  Bruno Haible  <bruno@clisp.org>
46028
46029         Extend strerror to cover the added errno values.
46030         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46031         (rpl_strerror): Provide error messages for the added errno values and
46032         for the WSA* values.
46033         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46034         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46035         strerror.
46036         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46037         * modules/strerror (Depends-on): Add errno.
46038         * doc/posix-functions/strerror.texi: Document the change.
46039         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46040         and EOVERFLOW.
46041
46042 2008-09-13  Bruno Haible  <bruno@clisp.org>
46043
46044         * modules/EOVERFLOW: Remove file.
46045         * m4/eoverflow.m4: Remove file.
46046         * modules/EOVERFLOW-tests: Remove file.
46047         * tests/test-EOVERFLOW.c: Remove file.
46048         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46049         * modules/ftell (Depends-on): Likewise.
46050         * modules/getdelim (Depends-on): Likewise.
46051         * modules/getugroups (Depends-on): Likewise.
46052         * modules/poll (Depends-on): Likewise.
46053         * modules/snprintf (Depends-on): Likewise.
46054         * modules/sprintf-posix (Depends-on): Likewise.
46055         * modules/vasnprintf (Depends-on): Likewise.
46056         * modules/vasprintf (Depends-on): Likewise.
46057         * modules/vfprintf-posix (Depends-on): Likewise.
46058         * modules/vsnprintf (Depends-on): Likewise.
46059         * modules/vsprintf-posix (Depends-on): Likewise.
46060         * modules/xvasprintf (Depends-on): Likewise.
46061         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46062         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46063         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46064         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46065         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46066         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46067         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46068         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46069         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46070         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46071         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46072         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46073         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46074         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46075         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46076         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46077         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46078         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46079         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46080         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46081         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46082         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46083         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46084         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46085         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46086         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46087         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46088         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46089         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46090         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46091         * MODULES.html.sh: Remove EOVERFLOW.
46092         * NEWS: Mention the change.
46093
46094 2008-09-13  Bruno Haible  <bruno@clisp.org>
46095
46096         * modules/errno-tests: New file.
46097         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46098
46099         * lib/errno.in.h: New file.
46100         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46101         * modules/errno: New file.
46102         * doc/posix-headers/errno.texi: Update documentation.
46103         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46104
46105 2008-09-13  Bruno Haible  <bruno@clisp.org>
46106
46107         * tests/test-poll.c: Use #if for native Windows, rather than testing
46108         __MSVCRT__.
46109
46110 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46111             Bruno Haible  <bruno@clisp.org>
46112
46113         * lib/glob.c: Don't include <pwd.h> on native Windows.
46114         (WINDOWS32): New macro.
46115         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46116
46117 2008-09-13  Bruno Haible  <bruno@clisp.org>
46118
46119         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46120         (ETIMEDOUT): Remove macro.
46121         (glthread_cond_timedwait_multithreaded): New declaration.
46122         (glthread_cond_timedwait): Use it.
46123         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46124         (glthread_cond_timedwait_multithreaded): New function.
46125
46126 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46127
46128         * modules/poll-tests: Do not check for io.h.
46129         * tests/test-poll.c: Check for __MSVCRT__ instead.
46130
46131 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46132
46133         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
46134         * modules/poll-tests: Add inet_pton, stdbool, sockets.
46135         * tests/test-poll.c: Use them.  Use _pipe on Windows.
46136
46137 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46138
46139         * modules/poll-tests: New.
46140         * tests/test-poll.c: New.
46141
46142 2008-09-12  Eric Blake  <ebb9@byu.net>
46143
46144         frexp: test for NetBSD failure on -0.0
46145         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
46146         not all, bugs from NetBSD 3.0 have been fixed.
46147         * doc/posix-functions/frexp.texi (frexp): Document bug.
46148         Reported by Thomas Klausner.
46149
46150         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
46151         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
46152         literal -0.0.
46153         Reported by Jonathan C. Patschke <jp@centtech.com>.
46154
46155 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46156
46157         * lib/glthread/cond.h: Use dummy implementation also if
46158         USE_WIN32_THREADS.
46159
46160 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46161
46162         * modules/fnmatch-posix (License): Change to LGPLv2+.
46163         * modules/fnmatch-gnu (License): Likewise.
46164
46165 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46166
46167         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
46168
46169 2008-09-11  Jim Meyering  <meyering@redhat.com>
46170
46171         * users.txt: Add gtk-vnc.
46172
46173 2008-09-08  Simon Josefsson  <simon@josefsson.org>
46174
46175         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46176         rotate amounts.
46177
46178         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46179         required for 16-bit and 8-bit rotates.
46180         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46181         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46182         UINT8_MAX instead of hard-coded constants.
46183         Suggested by Paul Eggert.
46184
46185 2008-09-07  Bruno Haible  <bruno@clisp.org>
46186
46187         * tests/test-striconveh.c (main): Check behaviour when converting from
46188         UTF-7.
46189
46190         Make striconveh work better with stateful encodings.
46191         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46192         that iconv does not increment the inptr when returning -1/EINVAL.
46193
46194 2008-09-07  Bruno Haible  <bruno@clisp.org>
46195
46196         * build-aux/config.rpath: Update according to libtool-2.2.6.
46197         * build-aux/config.libpath: Likewise.
46198
46199 2008-09-06  Bruno Haible  <bruno@clisp.org>
46200
46201         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46202         * lib/freadptr.c (freadptr): Likewise.
46203         * lib/freadseek.c (freadptrinc): Likewise.
46204         Reported by Simon Josefsson.
46205
46206 2008-09-06  Bruno Haible  <bruno@clisp.org>
46207
46208         * modules/freadptr (License): Change to LGPLv2+.
46209         * modules/freadseek (License): Likewise.
46210         Suggested by Eric Blake.
46211
46212         * modules/memchr2 (License): Change to LGPLv2+.
46213         Approved by Eric Blake.
46214
46215 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46216             Bruno Haible  <bruno@clisp.org>
46217
46218         Make gnulib-tool work with native 'sed' on AIX.
46219         * gnulib-tool (sed_noop): New variable.
46220         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
46221         func_add_or_update, func_create_testdir): Use it to initialize sed
46222         script variables.
46223         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46224
46225 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
46226             Bruno Haible  <bruno@clisp.org>
46227
46228         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
46229         also works after #include directives.
46230
46231 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
46232
46233         getdate.y: reject an out-of-range timezone value
46234         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
46235         the range [-24...+24].  When specified with only one or two digits,
46236         * tests/test-getdate.c: Tests for the fix.
46237         * doc/getdate.texi: Document this change.
46238
46239 2008-09-03  Bruno Haible  <bruno@clisp.org>
46240
46241         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
46242
46243 2008-09-02  Simon Josefsson  <simon@josefsson.org>
46244
46245         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
46246         <bruce.korb@gmail.com> with ideas from Ben Pfaff
46247         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
46248         Blake <ebb9@byu.net>.
46249
46250         * tests/test-bitrotate.c: Add more test vectors.
46251
46252 2008-09-02  Eric Blake  <ebb9@byu.net>
46253
46254         vasnprintf-posix: handle large precision via %.*d
46255         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
46256         when handling it ourselves.
46257         * tests/test-vasnprintf-posix.c (test_function): Add test.
46258         * tests/test-snprintf-posix.h (test_function): Likewise.
46259         * tests/test-sprintf-posix.h (test_function): Likewise.
46260         * tests/test-vasprintf-posix.c (test_function): Likewise.
46261         Reported by Alain Guibert.
46262
46263 2008-09-01  Eric Blake  <ebb9@byu.net>
46264
46265         c-stack: make configure-time check more robust
46266         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
46267         successful sigaction call.
46268         Reported by Tom G. Christensen.
46269
46270 2008-09-01  Bruno Haible  <bruno@clisp.org>
46271
46272         New module 'findprog-lgpl'.
46273         * modules/findprog-lgpl: New file.
46274         * lib/findprog-lgpl.c: New file.
46275         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
46276         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
46277         to decide whether to use strdup or xstrdup, concatenated_filename or
46278         xconcatenated_filename.
46279
46280 2008-09-01  Bruno Haible  <bruno@clisp.org>
46281
46282         Split module 'concat-filename' into 'concat-filename' (LGPL) and
46283         'xconcat-filename' (GPL).
46284         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
46285         (License): Change to LGPLv2+.
46286         * modules/xconcat-filename: New file.
46287         * lib/concat-filename.h (concatenated_filename): Change specification.
46288         (xconcatenated_filename): New declaration.
46289         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
46290         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
46291         memory situations.
46292         * lib/xconcat-filename.c: New file.
46293         * NEWS: Mention the change.
46294         * lib/findprog.c: Include concat-filename.h, not filename.h.
46295         (find_in_path): Use xconcatenated_filename instead of
46296         concatenated_filename.
46297         * lib/javacomp.c: Include concat-filename.h, not filename.h.
46298         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46299         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46300         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46301         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
46302         instead of concatenated_filename.
46303         * lib/javaexec.c: Include concat-filename.h, not filename.h.
46304         (execute_java_class): Use xconcatenated_filename instead of
46305         concatenated_filename.
46306         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
46307         * modules/javacomp (Depends-on): Likewise.
46308         * modules/javaexec (Depends-on): Likewise.
46309
46310 2008-09-01  Bruno Haible  <bruno@clisp.org>
46311
46312         Split module 'filename' into 'filename' and 'concat-filename'.
46313         * modules/filename: Keep only lib/filename.h.
46314         (License): Change to LGPLv2+.
46315         * modules/concat-filename: New file, extracted from modules/filename.
46316         * lib/filename.h (concatenated_filename): Remove declaration.
46317         * lib/concat-filename.h: New file, extracted from lib/filename.h.
46318         * lib/concat-filename.c: Include concat-filename.h.
46319         * NEWS: Mention the change.
46320
46321 2008-09-01  Simon Josefsson  <simon@josefsson.org>
46322
46323         * lib/bitrotate.h (rotl8, rotr8): Add.
46324
46325         * modules/bitrotate (configure.ac): Need
46326         AC_REQUIRE([AC_C_INLINE]).
46327         (Description): Mention stdint.h.  Reported by Bruno Haible
46328         <bruno@clisp.org>.
46329
46330         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
46331         Paolo Bonzini <bonzini@gnu.org>.
46332
46333 2008-08-31  Bruno Haible  <bruno@clisp.org>
46334
46335         Assume Solaris specific bi-arch conventions on Solaris systems.
46336         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
46337         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
46338         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
46339         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
46340         like acl_libdirstem.
46341         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
46342         acl_libdirstem.
46343         * NEWS: Mention the change.
46344         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
46345
46346 2008-08-31  Jim Meyering  <meyering@redhat.com>
46347
46348         * lib/strftime.h: Add comments describing the two added arguments.
46349
46350         remove duplicate #include directives
46351         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
46352         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
46353
46354 2008-08-31  Bruno Haible  <bruno@clisp.org>
46355
46356         New module 'sigpipe-die'.
46357         * modules/sigpipe-die: New file.
46358         * lib/sigpipe-die.h: New file.
46359         * lib/sigpipe-die.c: New file.
46360         * MODULES.html.sh (Signal handling): Add sigpipe-die.
46361
46362 2008-08-31  Bruno Haible  <bruno@clisp.org>
46363
46364         Don't override previously installed signal handlers.
46365         * lib/fatal-signal.c (saved_sigactions): New variable.
46366         (uninstall_handlers): Reset the signal to the saved handler, not
46367         to SIG_DFL (except when ignored).
46368         (install_handlers): Save the previous handlers.
46369
46370 2008-08-30  Bruno Haible  <bruno@clisp.org>
46371
46372         * gnulib-tool (func_reset_sigpipe): New function.
46373         (func_get_automake_snippet, func_modules_transitive_closure,
46374         func_import): Invoke it before a join command that reads from stdin,
46375         to avoid "echo: write error: Broken pipe" error messages on stderr.
46376         Reported by Sam Steingold <sds@gnu.org>.
46377
46378 2008-08-30  Bruno Haible  <bruno@clisp.org>
46379
46380         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
46381         Code copied from m4/open.m4.
46382         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
46383         access and the filename ends in a slash. Code copied from lib/open.c.
46384         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
46385         * tests/test-fopen.c (main): Check against bug with trailing slash.
46386
46387 2008-08-29  Bruno Haible  <bruno@clisp.org>
46388
46389         Avoid some "gcc -pedantic" warnings.
46390         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
46391         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
46392         * lib/dirent.in.h: Likewise.
46393         * lib/fcntl.in.h: Likewise.
46394         * lib/float.in.h: Likewise.
46395         * lib/iconv.in.h: Likewise.
46396         * lib/inttypes.in.h: Likewise.
46397         * lib/locale.in.h: Likewise.
46398         * lib/math.in.h: Likewise.
46399         * lib/netinet_in.in.h: Likewise.
46400         * lib/search.in.h: Likewise.
46401         * lib/signal.in.h: Likewise.
46402         * lib/stdarg.in.h: Likewise.
46403         * lib/stdint.in.h: Likewise.
46404         * lib/stdio.in.h: Likewise.
46405         * lib/stdlib.in.h: Likewise.
46406         * lib/string.in.h: Likewise.
46407         * lib/strings.in.h: Likewise.
46408         * lib/sys_select.in.h: Likewise.
46409         * lib/sys_socket.in.h: Likewise.
46410         * lib/sys_stat.in.h: Likewise.
46411         * lib/sys_time.in.h: Likewise.
46412         * lib/sysexits.in.h: Likewise.
46413         * lib/time.in.h: Likewise.
46414         * lib/unistd.in.h: Likewise.
46415         * lib/wchar.in.h: Likewise.
46416         * lib/wctype.in.h: Likewise.
46417         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
46418         * modules/fchdir (Makefile.am): Likewise.
46419         * modules/fcntl (Makefile.am): Likewise.
46420         * modules/float (Makefile.am): Likewise.
46421         * modules/iconv_open (Makefile.am): Likewise.
46422         * modules/inttypes (Makefile.am): Likewise.
46423         * modules/locale (Makefile.am): Likewise.
46424         * modules/math (Makefile.am): Likewise.
46425         * modules/netinet_in (Makefile.am): Likewise.
46426         * modules/search (Makefile.am): Likewise.
46427         * modules/signal (Makefile.am): Likewise.
46428         * modules/stdarg (Makefile.am): Likewise.
46429         * modules/stdint (Makefile.am): Likewise.
46430         * modules/stdio (Makefile.am): Likewise.
46431         * modules/stdlib (Makefile.am): Likewise.
46432         * modules/string (Makefile.am): Likewise.
46433         * modules/strings (Makefile.am): Likewise.
46434         * modules/sys_select (Makefile.am): Likewise.
46435         * modules/sys_socket (Makefile.am): Likewise.
46436         * modules/sys_stat (Makefile.am): Likewise.
46437         * modules/sys_time (Makefile.am): Likewise.
46438         * modules/sysexits (Makefile.am): Likewise.
46439         * modules/time (Makefile.am): Likewise.
46440         * modules/unistd (Makefile.am): Likewise.
46441         * modules/wchar (Makefile.am): Likewise.
46442         * modules/wctype (Makefile.am): Likewise.
46443         Reported by Reuben Thomas <rrt@sc3d.org>.
46444
46445 2008-08-29  Bruno Haible  <bruno@clisp.org>
46446
46447         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
46448         any more.
46449
46450 2008-08-29  Simon Josefsson  <simon@josefsson.org>
46451
46452         * MODULES.html.sh (Misc): Add bitrotate.
46453
46454         * modules/bitrotate: New file.
46455
46456         * lib/bitrotate.h: New file.
46457
46458         * modules/bitrotate-tests: New file.
46459
46460         * tests/test-bitrotate.c: New file.
46461
46462         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
46463         on the bitrotate module.
46464
46465         * lib/arctwo.c: Use new bitrotate module.
46466
46467 2008-08-29  Jim Meyering  <meyering@redhat.com>
46468
46469         bootstrap: merge changes from coreutils
46470         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
46471         of copied files.  Remove a kludge, now that this is fixed.
46472         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
46473         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
46474         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
46475
46476 2008-08-29  Bruno Haible  <bruno@clisp.org>
46477
46478         * MODULES.html.sh: Remove --cvs-urls option.
46479
46480 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
46481
46482         maint.mk: adjust to file name change
46483         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
46484
46485 2008-08-28  Jim Meyering  <meyering@redhat.com>
46486
46487         * modules/getndelim2 (License): Relicense to LGPLv2+.
46488         Approved by Richard Stallman for the version of 1995, and by
46489         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
46490
46491 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
46492
46493         * lib/getdelim.c (flockfile, funlockfile): Make all of them
46494         dummy if one is not available.  Do not touch them if
46495         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
46496         (getc_maybe_unlocked): New.
46497         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
46498
46499 2008-08-26  Eric Blake  <ebb9@byu.net>
46500
46501         doc/INSTALL: resync from autoconf
46502         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
46503         (INSTALL_PRELUDE): Delete; this is done more efficiently by
46504         moving...
46505         * install.texi [!autoconf]: ...here.  Resync from autoconf.
46506         * INSTALL: Regenerate.
46507         * INSTALL.ISO: New file.
46508         * INSTALL.UTF-8: Likewise.
46509
46510 2008-08-26  Jim Meyering  <meyering@redhat.com>
46511
46512         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
46513         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
46514         these definitions conditional, so that they may be overridden, too.
46515
46516 2008-08-26  Bruno Haible  <bruno@clisp.org>
46517
46518         Generate INSTALL file variants with prettier quotes.
46519         * doc/Makefile (INSTALL_PRELUDE): New macro.
46520         (INSTALL): Use it.
46521         (INSTALL.ISO, INSTALL.UTF-8): New rules.
46522
46523 2008-08-26  Bruno Haible  <bruno@clisp.org>
46524
46525         Run makeinfo in an English locale.
46526         * doc/Makefile (MAKEINFO): New variable.
46527
46528 2008-08-26  Bruno Haible  <bruno@clisp.org>
46529
46530         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
46531         Suggested by Eric Blake.
46532
46533 2008-08-25  Bruno Haible  <bruno@clisp.org>
46534
46535         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
46536
46537 2008-08-25  Eric Blake  <ebb9@byu.net>
46538
46539         c-stack: test that stack overflow can be caught
46540         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
46541         that platform allows handling stack overflow; at least OS/2 EMX
46542         has sigaltstack, but crashes before transferring control to
46543         handler on stack overflow.
46544         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
46545         check for HAVE_STACK_OVERFLOW_HANDLING.
46546         Reported by Elbert Pol.
46547
46548 2008-08-25  Bruno Haible  <bruno@clisp.org>
46549
46550         * doc/posix-functions/strftime.texi: Fix description of strftime
46551         module.
46552
46553 2008-08-24  Bruno Haible  <bruno@clisp.org>
46554
46555         * tests/uniwidth/test-uc_width2.c: New file.
46556         * tests/uniwidth/test-uc_width2.sh: New file.
46557         * modules/uniwidth/width-tests (Files): Add the new files.
46558         (TESTS): Add uniwidth/test-uc_width2.sh.
46559         (TESTS_ENVIRONMENT): New variable.
46560         (check_PROGRAMS): Add test-uc_width2.
46561         (test_uc_width2_SOURCES): New variable.
46562
46563         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
46564         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
46565         not 0x00AB.
46566         Reported by Alexander V. Lukyanov <lav@netis.ru>.
46567
46568 2008-08-22  Eric Blake  <ebb9@byu.net>
46569
46570         test-lock, test-tls: mention why a test is skipped
46571         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
46572         skipped.
46573         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
46574
46575         count-one-bits: relax license
46576         * modules/count-one-bits (License): Relicense to LGPLv2+.
46577         Suggested by Ludovic Courtès, approved by Ben Pfaff.
46578
46579 2008-08-22  Andreas Schwab  <schwab@suse.de>
46580
46581         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
46582         Remove spurious space in assignment.
46583
46584 2008-08-21  Simon Josefsson  <simon@josefsson.org>
46585
46586         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
46587         Paul Eggert <eggert@CS.UCLA.EDU>.
46588
46589 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
46590
46591         * modules/gettext: Add m4/threadlib.m4.
46592
46593 2008-08-19  Eric Blake  <ebb9@byu.net>
46594
46595         test-c-stack: fix compilation failure on FreeBSD 5.0
46596         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
46597         headers before <sys/resource.h>.
46598         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
46599         the bug.
46600         Reported by Nelson H. F. Beebe.
46601
46602         strverscmp: migrate from "strverscmp.h" to <string.h>
46603         * modules/string (Makefile.am): Add new hooks.
46604         * modules/strverscmp (Files): Remove strverscmp.h.
46605         (Depends-on): Add string.
46606         (configure.ac): Add indicator.
46607         (Include): Mention new header.
46608         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
46609         defaults.
46610         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
46611         results.
46612         * lib/strverscmp.h: Delete.
46613         * lib/string.in.h (strverscmp): Provide declaration, when needed.
46614         * tests/test-strverscmp.c (includes): Adjust client.
46615         * lib/check-version.c (includes): Likewise.
46616         * NEWS: Document the change.
46617
46618         strverscmp: add unit test
46619         * modules/strverscmp-tests: New file.
46620         * tests/test-strverscmp.c: Likewise.
46621
46622 2008-08-19  Simon Josefsson  <simon@josefsson.org>
46623
46624         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
46625         regarding Windows crypto stuff, from Mono.
46626
46627 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
46628
46629         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
46630         if present, for intel RND.  Return error on failures.
46631
46632 2008-08-18  Ben Pfaff  <blp@gnu.org>
46633
46634         gitlog-to-changelog: give better diagnostic for failed pipe-open
46635         * build-aux/gitlog-to-changelog: Improve error message: suggest
46636         that the version of Git may be too old.
46637
46638 2008-08-18  Simon Josefsson  <simon@josefsson.org>
46639
46640         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
46641         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
46642
46643 2008-08-18  Bruno Haible  <bruno@clisp.org>
46644
46645         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
46646         pthread_in_use().
46647
46648 2008-08-18  Bruno Haible  <bruno@clisp.org>
46649
46650         * lib/glthread/threadlib.c: Include <pthread.h>.
46651
46652 2008-08-18  Bruno Haible  <bruno@clisp.org>
46653
46654         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
46655         glthread_recursive_lock_* macros.
46656         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
46657         Fix syntax error.
46658
46659 2008-08-18  Bruno Haible  <bruno@clisp.org>
46660
46661         * lib/glthread/thread.c: Avoid forcing a context switch right after
46662         thread creation.
46663
46664 2008-08-17  Bruno Haible  <bruno@clisp.org>
46665
46666         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
46667         * lib/glthread/thread.h: Provide Win32 specific implementation.
46668         * modules/thread (Files): Add lib/glthread/thread.c.
46669         (Depends-on): Add lock.
46670         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
46671
46672 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46673
46674         New module 'yield'.
46675         * modules/yield: New file.
46676         * lib/glthread/yield.h: New file.
46677         * m4/yield.m4: New file.
46678         * MODULES.html.sh (Multithreading): Add yield.
46679
46680 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46681
46682         New module 'thread'.
46683         * modules/thread: New file.
46684         * lib/glthread/thread.h: New file.
46685         * m4/thread.m4: New file.
46686         * MODULES.html.sh (Multithreading): Add thread.
46687
46688 2008-08-17  Bruno Haible  <bruno@clisp.org>
46689
46690         * lib/glthread/lock.h: Include <stdlib.h> always.
46691         * lib/glthread/tls.h: Likewise.
46692         * lib/glthread/cond.h: Likewise.
46693
46694 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46695
46696         New module 'cond'.
46697         * modules/cond: New file.
46698         * lib/glthread/cond.h: New file.
46699         * lib/glthread/cond.c: New file.
46700         * m4/cond.m4: New file.
46701         * MODULES.html.sh (Multithreading): Add cond.
46702
46703 2008-08-16  Eric Blake  <ebb9@byu.net>
46704
46705         c-stack: fix regression on Irix 5.3 from 2008-06-21
46706         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
46707         sa_sigaction...
46708         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
46709         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
46710         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
46711         * modules/signal (Makefile.am): Use the value.
46712         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
46713         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
46714         * doc/posix-headers/signal.texi (signal.h): Document this
46715         portability issue.
46716         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
46717         Reported by Tom G. Christensen.
46718
46719 2008-08-17  Bruno Haible  <bruno@clisp.org>
46720
46721         New module 'threadlib'.
46722         * modules/threadlib: New file.
46723         * lib/glthread/threadlib.c: New file, extracted from
46724         lib/glthread/lock.c.
46725         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
46726         functions.
46727         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
46728         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
46729         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
46730         macros.
46731         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
46732         (gl_DISABLE_THREADS): Remove macro.
46733         * modules/lock (Files): Remove build-aux/config.rpath.
46734         (Depends-on): Remove havelib. Add threadlib.
46735         (configure.ac-early): Remove section.
46736         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
46737         * modules/tls (Depends-on): Remove lock. Add threadlib.
46738         (Link): New section, copied from threadlib.
46739         * MODULES.html.sh (Multithreading): Add threadlib.
46740
46741 2008-08-14  Bruno Haible  <bruno@clisp.org>
46742
46743         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
46744         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
46745         glthread_rwlock_unlock, glthread_rwlock_destroy,
46746         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
46747         glthread_recursive_lock_destroy): Define as macros always.
46748         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
46749         glthread_lock_lock.
46750         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
46751         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
46752         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
46753         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
46754         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
46755         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
46756         (glthread_recursive_lock_lock_func): Renamed from
46757         glthread_recursive_lock_lock.
46758         (glthread_recursive_lock_unlock_func): Renamed from
46759         glthread_recursive_lock_unlock.
46760         (glthread_recursive_lock_destroy_func): Renamed from
46761         glthread_recursive_lock_destroy.
46762
46763 2008-08-14  Bruno Haible  <bruno@clisp.org>
46764
46765         * lib/glthread/lock.h: Renamed from lib/lock.h.
46766         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
46767         * lib/glthread/tls.h: Renamed from lib/tls.h.
46768         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
46769         * lib/fstrcmp.c: Update includes.
46770         * lib/strsignal.c: Update includes.
46771         * modules/lock (Files, Makefile.am): Update.
46772         (Include): Change to "glthread/lock.h".
46773         * modules/tls (Files, Makefile.am): Update.
46774         (Include): Change to "glthread/tls.h".
46775         * tests/test-lock.c: Update includes.
46776         * tests/test-tls.c: Update includes.
46777         * NEWS: Mention the renamed header files.
46778
46779 2008-08-11  Jim Meyering  <meyering@redhat.com>
46780
46781         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
46782
46783 2008-08-11  Eric Blake  <ebb9@byu.net>
46784
46785         test-c-stack: avoid C99-ism
46786         * tests/test-c-stack.c (main): Fix whitespace, move declaration
46787         before statement.
46788         Reported by Alain Guibert.
46789
46790 2008-08-10  Jim Meyering  <meyering@redhat.com>
46791
46792         ensure that return value of uinttostr et al are not ignored
46793         * lib/inttostr.h (__GNUC_PREREQ): Define.
46794         (__attribute_warn_unused_result__): Define.
46795         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
46796
46797 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
46798
46799         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
46800         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
46801
46802 2008-08-07  Jim Meyering  <meyering@redhat.com>
46803
46804         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
46805
46806         * modules/mkstemp (License): Relicense under LGPLv2+.
46807         * modules/tempname (License): Likewise.
46808
46809 2008-08-06  Bruno Haible  <bruno@clisp.org>
46810
46811         * lib/poll.c (poll): Further micro-optimization.
46812
46813 2008-08-06  Jim Meyering  <meyering@redhat.com>
46814
46815         inet_pton.c: use locale-independent tolower
46816         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
46817         (inet_pton6): Use c_tolower rather than tolower.
46818         * modules/inet_pton (Depends-on): Add c-ctype.
46819
46820 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
46821
46822         * lib/poll.c (poll): Avoid division when timeout is 0, cache
46823         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
46824
46825 2008-08-06  Jim Meyering  <meyering@redhat.com>
46826
46827         * modules/inet_pton (License): Relicense under LGPLv2+.
46828
46829 2008-08-03  Bruno Haible  <bruno@clisp.org>
46830
46831         Additional non-aborting API for lock and tls.
46832         * lib/lock.h: Include <errno.h>.
46833         (glthread_lock_init): New macro/function.
46834         (gl_lock_init): Define as wrapper around glthread_lock_init.
46835         (glthread_lock_lock): New macro/function.
46836         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
46837         (glthread_lock_unlock): New macro/function.
46838         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
46839         (glthread_lock_destroy): New macro/function.
46840         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
46841         (glthread_rwlock_init): New macro/function.
46842         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
46843         (glthread_rwlock_rdlock): New macro/function.
46844         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
46845         (glthread_rwlock_wrlock): New macro/function.
46846         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
46847         (glthread_rwlock_unlock): New macro/function.
46848         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
46849         (glthread_rwlock_destroy): New macro/function.
46850         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
46851         (glthread_recursive_lock_init): New macro/function.
46852         (gl_recursive_lock_init): Define as wrapper around
46853         glthread_recursive_lock_init.
46854         (glthread_recursive_lock_lock): New macro/function.
46855         (gl_recursive_lock_lock): Define as wrapper around
46856         glthread_recursive_lock_lock.
46857         (glthread_recursive_lock_unlock): New macro/function.
46858         (gl_recursive_lock_unlock): Define as wrapper around
46859         glthread_recursive_lock_unlock.
46860         (glthread_recursive_lock_destroy): New macro/function.
46861         (gl_recursive_lock_destroy): Define as wrapper around
46862         glthread_recursive_lock_destroy.
46863         (glthread_once): New macro/function.
46864         (gl_once): Define as wrapper around glthread_once.
46865         Update function declarations.
46866         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
46867         glthread_rwlock_init. Return error code.
46868         (glthread_rwlock_rdlock_multithreaded): Renamed from
46869         glthread_rwlock_rdlock. Return error code.
46870         (glthread_rwlock_wrlock_multithreaded): Renamed from
46871         glthread_rwlock_wrlock. Return error code.
46872         (glthread_rwlock_unlock_multithreaded): Renamed from
46873         glthread_rwlock_unlock. Return error code.
46874         (glthread_rwlock_destroy_multithreaded): Renamed from
46875         glthread_rwlock_destroy. Return error code.
46876         (glthread_recursive_lock_init_multithreaded): Renamed from
46877         glthread_recursive_lock_init. Return error code.
46878         (glthread_recursive_lock_lock_multithreaded): Renamed from
46879         glthread_recursive_lock_lock. Return error code.
46880         (glthread_recursive_lock_unlock_multithreaded): Renamed from
46881         glthread_recursive_lock_unlock. Return error code.
46882         (glthread_recursive_lock_destroy_multithreaded): Renamed from
46883         glthread_recursive_lock_destroy. Return error code.
46884         (glthread_once_call): Make static.
46885         (glthread_once_multithreaded): Renamed from glthread_once.
46886         * lib/tls.h: Include <errno.h>.
46887         (glthread_tls_key_init): New macro/function.
46888         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
46889         (glthread_tls_set): New macro/function.
46890         (gl_tls_set): Define as wrapper around glthread_tls_set.
46891         (glthread_tls_key_destroy): New macro/function.
46892         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
46893         Update function declarations.
46894         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
46895         glthread_tls_get.
46896         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46897
46898 2008-08-04  Eric Blake  <ebb9@byu.net>
46899
46900         gnumakefile: use space, not TAB, outside of targets
46901         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
46902
46903 2008-08-02  Jim Meyering  <meyering@redhat.com>
46904
46905         getdate.y: avoid locale-dependent date parsing failure
46906         In Turkish locales, getdate would fail to recognize keywords
46907         containing a lowercase "i".  The solution is not to rely on
46908         locale-sensitive case-conversion.
46909         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
46910         (lookup_word): Use c_toupper in place of toupper.
46911         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
46912         Reported by Vefa Bicakci <bicave@superonline.com> in
46913         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
46914         * modules/getdate (Depends-on): Add c-ctype.
46915
46916 2008-08-02  Bruno Haible  <bruno@clisp.org>
46917
46918         * gnulib-tool (func_import): When updating or creating a .gitignore
46919         file, prepend each added line with a slash, and ignore leading slashes
46920         from the existing lines.
46921         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46922
46923 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46924
46925         Portability fix for GNU make 3.79.1.
46926         * top/GNUmakefile: Avoid 'else COND', which older GNU make
46927         versions do not understand.
46928
46929 2008-08-01  Bruno Haible  <bruno@clisp.org>
46930
46931         Work around bug of HP-UX 10.20 cc with -0.0 literal.
46932         * tests/test-isnanf.h (zero): New variable.
46933         (main): Avoid literal -0.0f.
46934         * tests/test-isnand.h (zero): New variable.
46935         (main): Avoid literal -0.0.
46936         * tests/test-isnanl.h (zero): New variable.
46937         (main): Avoid literal -0.0L.
46938         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
46939         (test_float, test_double, test_long_double): Avoid literals -0.0f,
46940         -0.0, -0.0L.
46941         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
46942         (test_signbitd): Avoid literal -0.0.
46943         (test_signbitl): Avoid literal -0.0L.
46944         * tests/test-ceilf1.c (zero): New variable.
46945         (main): Avoid literal -0.0f.
46946         * tests/test-ceill.c (zero): New variable.
46947         (main): Avoid literal -0.0L.
46948         * tests/test-floorf1.c (zero): New variable.
46949         (main): Avoid literal -0.0f.
46950         * tests/test-floorl.c (zero): New variable.
46951         (main): Avoid literal -0.0L.
46952         * tests/test-roundf1.c (zero): New variable.
46953         (main): Avoid literal -0.0f.
46954         * tests/test-round1.c (zero): New variable.
46955         (main): Avoid literal -0.0.
46956         * tests/test-roundl.c (zero): New variable.
46957         (main): Avoid literal -0.0L.
46958         * tests/test-truncf1.c (zero): New variable.
46959         (main): Avoid literal -0.0f.
46960         * tests/test-trunc1.c (zero): New variable.
46961         (main): Avoid literal -0.0.
46962         * tests/test-truncl.c (zero): New variable.
46963         (main): Avoid literal -0.0L.
46964         * tests/test-frexp.c (zero): New variable.
46965         (main): Avoid literal -0.0.
46966         * tests/test-frexpl.c (zero): New variable.
46967         (main): Avoid literal -0.0L.
46968         * tests/test-ldexpl.c (zero): New variable.
46969         (main): Avoid literal -0.0L.
46970         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46971         (zerod, zerol): New variables.
46972         (test_function): Avoid literals -0.0, -0.0L.
46973         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46974         (zerod, zerol): New variables.
46975         (test_function): Avoid literals -0.0, -0.0L.
46976         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46977         (zerod, zerol): New variables.
46978         (test_function): Avoid literals -0.0, -0.0L.
46979         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46980         (zerod, zerol): New variables.
46981         (test_function): Avoid literals -0.0, -0.0L.
46982         * tests/test-strtod.c (zero): New variable.
46983         (main): Avoid literal -0.0.
46984         Reported by Jonathan C. Patschke <jp@centtech.com>.
46985
46986 2008-07-31  Jim Meyering  <meyering@redhat.com>
46987
46988         sha256.h: correct definition of SHA224_DIGEST_SIZE
46989         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
46990         Reported by Paulie Pena IV <paulie4@gmail.com>.
46991         Define as 224 / 8, rather than as a literal.
46992         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
46993         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
46994         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
46995
46996 2008-07-31  Bruno Haible  <bruno@clisp.org>
46997
46998         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
46999         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47000         Reported by Jonathan Patschke <jp@centtech.com>.
47001
47002 2008-07-31  Bruno Haible  <bruno@clisp.org>
47003
47004         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47005         Reported by Paolo Bonzini <bonzini@gnu.org>.
47006
47007 2008-07-30  Eric Blake  <ebb9@byu.net>
47008
47009         test-strtod: allow compilation without -lm
47010         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47011         Reported by Dennis Clarke <blastwave@gmail.com>.
47012
47013 2008-07-28  Jim Meyering  <meyering@redhat.com>
47014
47015         bootstrap: work also when there are no .po files in po/
47016         * build-aux/bootstrap (update_po_files): Complete the change
47017         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47018
47019 2008-07-27  Jim Meyering  <meyering@redhat.com>
47020
47021         * users.txt: Add zile.
47022
47023 2008-07-26  Ben Pfaff  <blp@gnu.org>
47024
47025         Add missing dependencies on new m4/exponent[fdl].m4 files.
47026         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47027         * modules/isnand-nolibm: Add m4/exponentd.m4.
47028         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47029         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47030         m4/isnan[fdl].m4, because the macros actually used moved.
47031         Reported by Jim Meyering.
47032
47033 2008-07-14  Ben Pfaff  <blp@gnu.org>
47034
47035         Add isinf module.
47036         * lib/isinf.c: New file.
47037         * lib/math.in.h: Define isinf macro if we have decided to replace
47038         it.
47039         * m4/isinf.m4: New file.
47040         * m4/math_h.m4: Initialize and substitute variables for isinf
47041         module.
47042         * modules/isinf: New file.
47043         * modules/isinf-tests: New file.
47044         * modules/math: Add substitutions for new module.
47045         * tests/test-isinf.c: New file.
47046         * doc/posix-functions/isinf.texi: Mention new module.
47047         * MODULES.html.sh: Mention new module.
47048
47049 2008-07-14  Ben Pfaff  <blp@gnu.org>
47050
47051         Factor out some macros for use by additional modules.
47052         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47053         exponentf.m4.
47054         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47055         exponentd.m4.
47056         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47057         file exponentl.m4.
47058         * m4/exponentf.m4: New file.
47059         * m4/exponentd.m4: New file.
47060         * m4/exponentl.m4: New file.
47061         * modules/isnanf: Use new file m4/exponentf.m4.
47062         * modules/isnand: Use new file m4/exponentd.m4.
47063         * modules/isnanl: Use new file m4/exponentl.m4.
47064
47065 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47066
47067         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47068         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47069         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47070         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47071
47072         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47073         readlink on platforms without PATH_MAX.
47074
47075 2008-07-21  Eric Blake  <ebb9@byu.net>
47076
47077         Warn, not fail, on stale version.
47078         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47079
47080         Don't allow installation with stale devel version number.
47081         * top/GNUmakefile (_is-install-target): New macro.
47082         (_curr-ver): Forbid installation with stale version number.
47083
47084 2008-07-20  Bruno Haible  <bruno@clisp.org>
47085
47086         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47087         TESTS_ENVIRONMENT.
47088         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47089
47090 2008-07-20  Bruno Haible  <bruno@clisp.org>
47091
47092         * lib/c-stack.h (c_stack_action): Add documentation.
47093         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47094
47095 2008-07-20  Bruno Haible  <bruno@clisp.org>
47096
47097         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47098         * modules/readlink (License): Likewise.
47099
47100 2008-07-17  Eric Blake  <ebb9@byu.net>
47101
47102         * modules/c-stack (Link): Fix typo.
47103
47104         Make c-stack use libsigsegv, when available.
47105         * modules/c-stack (Depends-on): Add libsigsegv.
47106         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47107         needed.
47108         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47109         (segv_handler, overflow_handler, c_stack_action)
47110         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47111         implementation when libsigsegv is available, but only when using
47112         the library is necessary.
47113         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47114         comment, explaining why XSI check fails on Linux.
47115         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47116         * tests/test-c-stack2.sh: Tweak skip message.
47117         * NEWS: Document new link-time requirements.
47118
47119 2008-07-16  Eric Blake  <ebb9@byu.net>
47120
47121         c-stack: Expose false positives when not using libsigsegv.
47122         * modules/c-stack-tests (Files): Expand test.
47123         * tests/test-c-stack.c (main): Add means to conditionally trigger
47124         non-overflow SIGSEGV.
47125         * tests/test-c-stack2.sh: New file.
47126
47127 2008-07-14  Bruno Haible  <bruno@clisp.org>
47128
47129         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
47130         Reported by Eric Blake.
47131
47132 2008-07-14  Sam Steingold  <sds@gnu.org>
47133             Bruno Haible  <bruno@clisp.org>
47134
47135         New module libsigsegv.
47136         * modules/libsigsegv: New file.
47137         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
47138         modifications.
47139         * MODULES.html.sh (Signal handling): New section.
47140
47141 2008-07-14  Bruno Haible  <bruno@clisp.org>
47142
47143         * modules/unictype/ctype-* (Description): Add the word "function".
47144         Improves the resulting doc in MODULES.html.
47145
47146 2008-07-12  Ben Pfaff  <blp@gnu.org>
47147
47148         Add longlong module.
47149         * modules/longlong: New file.
47150
47151 2008-07-12  Bruno Haible  <bruno@clisp.org>
47152
47153         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
47154         to empty.
47155
47156 2008-07-10  Ben Pfaff  <blp@gnu.org>
47157
47158         Add isnan module.
47159         * doc/posix-functions/isnan.texi: Mention new module.
47160         * lib/math.in.h: Define isnan macro if we have decided to replace
47161         it.
47162         * m4/isnan.m4: New file.
47163         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
47164         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
47165         also.
47166         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
47167         redundancy.
47168         * m4/math_h.m4: Initialize and substitute variables for isnan
47169         module.
47170         * modules/isnan: New file.
47171         * modules/isnan-tests: New file.
47172         * modules/math: Add substitutions for new module.
47173         * tests/test-isnan.c: New file.
47174         * MODULES.html.sh: Mention new module.
47175
47176 2008-07-10  Ben Pfaff  <blp@gnu.org>
47177
47178         Add isnanf module.
47179         * lib/isnanf.m4: New file.
47180         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47181         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47182         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47183         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47184         * modules/isnanf: New file.
47185         * modules/isnanf-tests: New file.
47186         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47187         files.
47188         * tests/test-isnanf-nolibm.c: factored most of its contents into
47189         new file tests/test-isnanf.h.
47190         * tests/test-isnanf.h: New file.
47191         * tests/test-isnanf.c: New file.
47192         * MODULES.html.sh: Mention new module.
47193         * doc/glibc-functions/isnanf.texi: Mention new module.
47194
47195 2008-07-10  Ben Pfaff  <blp@gnu.org>
47196
47197         Add isnand module.
47198         * lib/isnand.h: New file.
47199         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47200         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47201         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47202         functionality also.
47203         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47204         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47205         (gl_HAVE_ISNAND_IN_LIBM): New macro.
47206         * modules/isnand: New file.
47207         * modules/isnand-tests: New file.
47208         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
47209         files.
47210         * tests/test-isnand-nolibm.c: factored most of its contents into
47211         new file tests/test-isnand.h.
47212         * tests/test-isnand.h: New file.
47213         * tests/test-isnand.c: New file.
47214         * MODULES.html.sh: Mention new module.
47215
47216 2008-07-10  Ben Pfaff  <blp@gnu.org>
47217
47218         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
47219         * lib/isnand.h: Rename lib/isnand-nolibm.h.
47220         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
47221         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
47222         * modules/isnanf-nolibm: Update references to renamed files.
47223         * modules/isnand-nolibm: Likewise.
47224         * modules/isnanf-nolibm-tests: Likewise.
47225         * modules/isnand-nolibm-tests: Likewise.
47226         * lib/frexp.c: Likewise.
47227         * lib/isfinite.c: Likewise.
47228         * lib/signbitd.c: Likewise.
47229         * lib/signbitf.c: Likewise.
47230         * lib/vasnprintf.c: Likewise.
47231         * tests/test-ceilf1.c: Likewise.
47232         * tests/test-ceilf2.c: Likewise.
47233         * tests/test-floorf1.c: Likewise.
47234         * tests/test-floorf2.c: Likewise.
47235         * tests/test-frexp.c: Likewise.
47236         * tests/test-round1.c: Likewise.
47237         * tests/test-round2.c: Likewise.
47238         * tests/test-roundf1.c: Likewise.
47239         * tests/test-strtod.c: Likewise.
47240         * tests/test-trunc1.c: Likewise.
47241         * tests/test-trunc2.c: Likewise.
47242         * tests/test-truncf1.c: Likewise.
47243         * tests/test-truncf2.c: Likewise.
47244         * NEWS: Mention the renamed header files.
47245
47246 2008-07-11  Jim Meyering  <meyering@redhat.com>
47247
47248         vc-list-files: make the last-resort awk code more portable
47249         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
47250         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
47251         does not support it.
47252
47253 2008-07-10  Eric Blake  <ebb9@byu.net>
47254
47255         Work with tar's bootstrap.
47256         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
47257         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
47258         an m4 comment.
47259
47260 2008-07-09  Jim Meyering  <meyering@redhat.com>
47261
47262         posix-shell.m4: fix typo that made this test malfunction
47263         * m4/posix-shell.m4: Remove capitalization in variable name.
47264
47265 2008-07-08  Bruno Haible  <bruno@clisp.org>
47266
47267         * m4/onceonly.m4: Update comments.
47268         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47269
47270 2008-07-04  Jim Meyering  <meyering@redhat.com>
47271
47272         * users.txt: Add vc-dwim.
47273         (bison, coreutils): Use the gitweb URL.
47274
47275 2008-07-03  Jim Meyering  <meyering@redhat.com>
47276
47277         * users.txt: Add libffcall.  From Sam Steingold.
47278
47279 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
47280
47281         getdate.y: do not ignore TZ with relative day, month or year offset
47282         * lib/getdate.y (get_date): Move the tz-handling block to follow the
47283         relative-date-handling, since otherwise, the latter would clobber the
47284         sole output (an updated Start value) of the tz-handling block.
47285         * tests/test-getdate.c: Tests for the fix
47286
47287 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47288
47289         Recognize 'foo_LIBRARIES += libgnu.a'.
47290         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
47291         makefile snippet has already specified an installation location,
47292         also using '+='.
47293
47294 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
47295
47296         getdate.y: factor out common actions
47297         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
47298         Use them in place of open-coded actions.
47299
47300 2008-07-01  Simon Josefsson  <simon@josefsson.org>
47301
47302         Add self-test for getdate module.
47303         * modules/getdate-tests: New file.
47304         * tests/test-getdate.c: New file.
47305
47306 2008-06-29  Bruno Haible  <bruno@clisp.org>
47307
47308         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
47309         .gitignore.
47310         Reported by Sylvain Beucler <beuc@beuc.net>.
47311
47312 2008-06-29  Bruno Haible  <bruno@clisp.org>
47313
47314         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
47315         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
47316
47317 2008-06-29  Bruno Haible  <bruno@clisp.org>
47318
47319         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
47320         EXTRA_DIST.
47321         Reported by Sylvain Beucler <beuc@beuc.net>.
47322
47323 2008-06-26  Jim Meyering  <meyering@redhat.com>
47324
47325         make several modules depend on the "open" module
47326         This provides slightly increased consistency when opening-for-write
47327         the name of a non-directory spelled with a trailing slash.
47328         * modules/chdir-safer: Likewise.
47329         * modules/chown: Likewise.
47330         * modules/clean-temp: Likewise.
47331         * modules/copy-file: Likewise.
47332         * modules/fchdir: Likewise.
47333         * modules/fcntl-safer: Likewise.
47334         * modules/pipe: Likewise.
47335         * modules/utime: Likewise.
47336         Prompted by Eric Blake and Bruno Haible.
47337
47338 2008-06-24  Andreas Schwab  <schwab@suse.de>
47339
47340         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
47341         literals can be used as initializers for global variables.
47342
47343 2008-06-23  Eric Blake  <ebb9@byu.net>
47344
47345         Make gnulib-cache.m4 easier to diff.
47346         * gnulib-tool (func_import): Allow newlines when reading cached
47347         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
47348
47349 2008-06-23  Bruno Haible  <bruno@clisp.org>
47350
47351         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
47352         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
47353         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
47354         m4/signalblocking.m4.
47355         (gl_PREREQ_SIGACTION): Don't invoke it.
47356         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
47357         gl_PREREQ_SIG_HANDLER_H.
47358         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47359         Don't check for sigaction here.
47360
47361 2008-06-23  Bruno Haible  <bruno@clisp.org>
47362
47363         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
47364         (install_handlers): Don't set the SA_RESETHAND flag.
47365
47366 2008-06-23  Bruno Haible  <bruno@clisp.org>
47367
47368         * m4/sigaction.m4: Comment fixes.
47369         * lib/signal.in.h: Likewise.
47370
47371 2008-06-23  Eric Blake  <ebb9@byu.net>
47372
47373         Fix typo.
47374         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
47375
47376         Avoid SA_ namespace.
47377         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
47378         Reported by Ralf Wildenhues.
47379
47380         Avoid test failure due to SA_RESTORER.
47381         * tests/test-sigaction.c (SA_MASK): New macro.
47382         (main): Avoid failing due to extension flags being set.
47383         Reported by Jim Meyering.
47384
47385         Revert use of sig-handler.h in sigprocmask.c.
47386         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
47387         it requires the existence of struct sigaction.
47388         * lib/sigprocmask.c (handler_t): Restore typedef.
47389         (rpl_signal, old_handlers): Use local type.
47390
47391 2008-06-22  Bruno Haible  <bruno@clisp.org>
47392
47393         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
47394         conditionally.
47395         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47396
47397 2008-06-22  Bruno Haible  <bruno@clisp.org>
47398
47399         * doc/posix-functions/siginterrupt.texi: Move note.
47400
47401         * lib/signal.in.h (SA_RESTART): New macro.
47402         * lib/sigaction.c: Update comment.
47403
47404         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
47405
47406         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
47407         (gl_PREREQ_SIGPROCMASK): Invoke it.
47408         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
47409
47410         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
47411
47412         * lib/sigprocmask.c: Update a comment.
47413
47414 2008-06-21  Eric Blake  <ebb9@byu.net>
47415
47416         Use sigaction module rather than signal().
47417         * modules/c-stack (Depends-on): Add sigaction.
47418         * modules/fatal-signal (Depends-on): Likewise.
47419         * modules/nanosleep (Depends-on): Likewise.
47420         * modules/sigprocmask (Files): Add sig-handler.h.
47421         * modules/sigaction (Files): Likewise.
47422         * lib/sig-handler.h (get_handler): New file, suggested by Paul
47423         Eggert.
47424         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
47425         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
47426         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
47427         (init_fatal_signals): Likewise.
47428         * lib/nanosleep.c (rpl_nanosleep): Likewise.
47429         (siginterrupt): Delete fallback.
47430         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
47431         instead.
47432         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
47433         siginterrupt.
47434
47435         New module sigaction, for mingw.
47436         * modules/sigaction: New module...
47437         * modules/sigaction-tests: ...and its test.
47438         * m4/sigaction.m4: New file.
47439         * lib/sigaction.c: Likewise.
47440         * tests/test-sigaction.c: Likewise.
47441         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
47442         * modules/signal (Makefile.am): Likewise.
47443         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
47444         needed.
47445         * doc/posix-headers/signal.texi (signal.h): Mention provided
47446         types.
47447         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
47448         that sigaction is preferable.
47449         * doc/posix-functions/sigaction.texi (sigaction): Mention new
47450         module.
47451         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47452         sigaction.
47453
47454         Improve robustness of sigprocmask by overriding signal.
47455         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
47456         is in use.
47457         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
47458         (SIGKILL, SIGSTOP): Provide fallbacks.
47459         (rpl_signal): Implement.
47460         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
47461         signal can be called inside handlers.
47462
47463         Fix nanosleep module on mingw.
47464         * modules/nanosleep (Depends-on): Add sys_select.
47465         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
47466
47467         Fix licensing of sigprocmask.
47468         * modules/raise (License): Relicense as LGPL.
47469
47470 2008-06-21  Bruno Haible  <bruno@clisp.org>
47471
47472         * lib/propername.c (proper_name_utf8): Don't use the transliterated
47473         result if it contains question marks.
47474         Reported by Michael Geng <linux@michaelgeng.de>.
47475
47476 2008-06-19  Bruno Haible  <bruno@clisp.org>
47477
47478         Fix CVS-ism.
47479         * doc/gnulib.texi: Include updated-stamp.texi.
47480         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
47481         (updated-stamp.texi): New rule.
47482         (gnulib.info): Depend on it.
47483         * doc/.gitignore: Add updated-stamp.texi.
47484         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
47485
47486 2008-06-19  Bruno Haible  <bruno@clisp.org>
47487
47488         * doc/Makefile (gnulib.info): Update and simplify dependencies.
47489         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47490
47491 2008-06-19  Eric Blake  <ebb9@byu.net>
47492
47493         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
47494         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
47495         Reported by Stepan Kasal.
47496
47497 2008-06-18  Bruno Haible  <bruno@clisp.org>
47498
47499         * lib/fatal-signal.c (init_fatal_signals): Add comment.
47500         Reported by Eric Blake.
47501
47502 2008-06-18  Eric Blake  <ebb9@byu.net>
47503
47504         Work around cygwin 1.5.25 strsignal bug.
47505         * tests/test-strsignal.c: Allow for const char *.
47506         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
47507
47508 2008-06-18  Simon Josefsson  <simon@josefsson.org>
47509
47510         * users.txt: Update URL to article and add author/date
47511         information.
47512
47513 2008-06-17  Bruno Haible  <bruno@clisp.org>
47514
47515         New macro gl_DISABLE_THREADS.
47516         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
47517         if the user did not pass --enable-threads or --disable-threads option.
47518         (gl_DISABLE_THREADS): New macro.
47519         Reported by Eric Blake <ebb9@byu.net>.
47520
47521 2008-06-17  Bruno Haible  <bruno@clisp.org>
47522
47523         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
47524         when the macro ignores it.
47525         Based on a patch by Eric Blake <ebb9@byu.net>.
47526
47527 2008-06-17  Bruno Haible  <bruno@clisp.org>
47528
47529         * modules/tls (License): Change to LGPLv2+.
47530         Reported by Eric Blake.
47531
47532 2008-06-17  Eric Blake  <ebb9@byu.net>
47533
47534         Simplify c-stack prerequisites.
47535         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
47536         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
47537         no longer requires <ucontext.h> to exist.  Optimize setrlimit
47538         check.
47539         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
47540         <sys/resource.h>.
47541
47542         Move c-stack test into testsuite.
47543         * modules/c-stack-tests: New file.
47544         * lib/c-stack.c [DEBUG]: Move test program...
47545         * tests/test-c-stack.c: ...into this new file.  Skip rather than
47546         fail test if sigaltstack is lacking.
47547         * tests/test-c-stack.sh: New driver file.
47548
47549 2008-06-16  Eric Blake  <ebb9@byu.net>
47550
47551         Use raise module consistently.
47552         * modules/fatal-signal (Depends-on): Add raise.
47553         * modules/sigprocmask (Depends-on): Likewise.
47554         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
47555         * lib/sigprocmask.c (sigprocmask): Likewise.
47556         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47557         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
47558
47559         Fix compliance bug in sigpending.
47560         * lib/sigprocmask.c (sigpending): Return pending array via
47561         parameter, not return value.
47562
47563 2008-06-14  Eric Blake  <ebb9@byu.net>
47564
47565         Improve obstack-printf test code.
47566         * tests/test-obstack-printf.c (test_function): Fix comment, and
47567         simplify usage of obstack_* in macros.  Add a test for coverage.
47568         Reported by Bruno Haible.
47569
47570 2008-06-14  Bruno Haible  <bruno@clisp.org>
47571
47572         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
47573         array size as a constant, not as a const variable.
47574         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
47575         AC_USE_SYSTEM_EXTENSIONS.
47576         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47577         Test whether the obstack_printf function actually exists.
47578         * modules/obstack-printf (Depends-on): Add extensions.
47579         (Include): Remove obstack.h.
47580         * modules/obstack-printf-posix (Depends-on): Add extensions.
47581         (Include): Remove obstack.h.
47582
47583 2008-06-13  Eric Blake  <ebb9@byu.net>
47584
47585         Add obstack-printf and obstack-printf-posix modules.
47586         * modules/obstack-printf: New file.
47587         * modules/obstack-printf-posix: Likewise.
47588         * MODULES.html.sh (Misc): Mention them.
47589         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47590         Likewise.
47591         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47592         Likewise.
47593         * modules/stdio (Makefile.am): Accomodate new modules.
47594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47595         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
47596         Declare.
47597         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
47598         functions.
47599         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
47600         (gl_REPLACE_OBSTACK_PRINTF): New macros
47601         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
47602         * tests/test-obstack-printf.c: New file.
47603         * modules/obstack-printf-tests: Likewise.
47604         * modules/obstack-printf-posix-tests: Likewise.
47605
47606 2008-06-11  Bruno Haible  <bruno@clisp.org>
47607
47608         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
47609         * lib/open.c: Include errno.h.
47610         (open): Fail when attempting to write to a file that has a trailing
47611         slash.
47612         * tests/test-open.c (main): Test against trailing slash bug.
47613         * doc/posix-functions/open.texi: Mention the trailing slash bug.
47614
47615 2008-06-10  Bruno Haible  <bruno@clisp.org>
47616
47617         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
47618         for $? to work inside the trap command, with various /bin/sh-s.
47619         * tests/test-vc-list-files-cvs.sh: Likewise.
47620
47621 2008-06-10  Bruno Haible  <bruno@clisp.org>
47622
47623         * lib/acl-internal.h: Don't include gettext.h here.
47624         * lib/set-mode-acl.c: Include gettext.h here.
47625         * lib/copy-acl.c: Likewise.
47626
47627 2008-06-10  Bruno Haible  <bruno@clisp.org>
47628
47629         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
47630         * lib/wait-process.c (wait_subprocess): Likewise.
47631         * lib/execute.h (execute): Add termsigp argument.
47632         * lib/execute.c (execute): Likewise.
47633         * lib/csharpcomp.c (compile_csharp_using_pnet,
47634         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
47635         * lib/csharpexec.c (execute_csharp_using_pnet,
47636         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
47637         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
47638         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
47639         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
47640         is_jikes_present): Update.
47641         * lib/javaexec.c (execute_java_class): Update.
47642         * lib/javaversion.c (execute_and_read_line): Update.
47643         * NEWS: Document the changes.
47644         Reported by Eric Blake.
47645
47646 2008-06-10  Eric Blake  <ebb9@byu.net>
47647
47648         Add missing include.
47649         * tests/test-strstr.c (includes): Add <signal.h>.
47650         * tests/test-strcasestr.c (includes): Likewise.
47651         * tests/test-memmem.c (includes): Likewise.
47652
47653 2008-06-10  Bruno Haible  <bruno@clisp.org>
47654
47655         * lib/wait-process.c (wait_subprocess): Add an assertion.
47656
47657 2008-06-10  Bruno Haible  <bruno@clisp.org>
47658
47659         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
47660
47661 2008-06-10  Bruno Haible  <bruno@clisp.org>
47662
47663         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
47664         using alarm().
47665         * tests/test-strcasestr.c (main): Likewise.
47666         * tests/test-strstr.c (main): Likewise.
47667
47668 2008-06-09  Bruno Haible  <bruno@clisp.org>
47669
47670         Work around the Solaris 10 ACE ACLs ABI change.
47671         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
47672         declare if ACL_NO_TRIVIAL is present.
47673         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
47674         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
47675         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
47676         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
47677         define if ACL_NO_TRIVIAL is present.
47678         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
47679         and use the current ABI.
47680         (file_has_acl): Use same #if condition as elsewhere.
47681         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
47682         in use, and use the current ABI.
47683         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
47684         Reported by Jim Meyering.
47685
47686 2008-06-09  Eric Blake  <ebb9@byu.net>
47687
47688         Work around environments that (stupidly) ignore SIGALRM.
47689         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
47690         before using alarm().
47691         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47692         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47693         Reported by Ian Beckwith <ianb@erislabs.net>.
47694
47695         Produce autobuild blurb earlier in log.
47696         * modules/autobuild (configure.ac-early): Move AB_INIT here.
47697
47698 2008-06-09  Jim Meyering  <meyering@redhat.com>
47699         and OndÅ™ej Vašík  <ovasik@redhat.com>
47700
47701         utimens.c: correct kernel bug work-around
47702         OndÅ™ej Vašík found that the invalid return value of 280 indicates
47703         failure, not success, and the kernel bug we're trying to work
47704         around affects not just the utimensat call, but also the fallback
47705         futimens call.
47706         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
47707         not success.
47708         [HAVE_FUTIMENS]: Use the same work-around, here.
47709
47710 2008-06-09  Jim Meyering  <meyering@redhat.com>
47711
47712         add more guards around definition of ACE_-related code
47713         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
47714         ALLOW and ACE_OWNER are also defined.
47715
47716 2008-06-08  Bruno Haible  <bruno@clisp.org>
47717
47718         * lib/acl-internal.h: Add me as co-author.
47719         * lib/file-has-acl.c: Likewise.
47720         * lib/set-mode-acl.c: Likewise.
47721         * lib/copy-acl.c: Likewise.
47722
47723 2008-06-08  Bruno Haible  <bruno@clisp.org>
47724
47725         Add support for AIX ACLs.
47726         * lib/acl-internal.h (acl_nontrivial): New declaration.
47727         * lib/file-has-acl.c (acl_nontrivial): New function.
47728         (file_has_acl): Add implementation using AIX 4 ACL API.
47729         * lib/set-mode-acl.c (qset_acl): Likewise.
47730         * lib/copy-acl.c (qcopy_acl): Likewise.
47731
47732 2008-06-08  Bruno Haible  <bruno@clisp.org>
47733
47734         Add support for HP-UX ACLs.
47735         * lib/acl-internal.h (acl_nontrivial): New declaration.
47736         * lib/file-has-acl.c (acl_nontrivial): New function.
47737         (file_has_acl): Add implementation using HP-UX 11 ACL API.
47738         * lib/set-mode-acl.c (qset_acl): Likewise.
47739         * lib/copy-acl.c (qcopy_acl): Likewise.
47740
47741 2008-06-08  Bruno Haible  <bruno@clisp.org>
47742
47743         Add support for Cygwin ACLs.
47744         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
47745         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
47746         the chmod_or_fchmod call.
47747         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
47748
47749 2008-06-08  Bruno Haible  <bruno@clisp.org>
47750
47751         Fix bug with setuid modes in Solaris 10+ code.
47752         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
47753         succeeded, when the mode contains some special bits.
47754
47755 2008-06-08  Bruno Haible  <bruno@clisp.org>
47756
47757         Add support for Solaris 7..10 ACLs.
47758         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
47759         declarations.
47760         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
47761         functions.
47762         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
47763         * lib/set-mode-acl.c (qset_acl): Likewise.
47764         * lib/copy-acl.c (qcopy_acl): Likewise.
47765
47766 2008-06-08  Bruno Haible  <bruno@clisp.org>
47767
47768         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
47769         declaration.
47770         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
47771         (acl_access_nontrivial): Remove MacOS X case.
47772         (file_has_acl): Use acl_extended_nontrivial.
47773         * lib/copy-acl.c (qcopy_acl): Likewise.
47774
47775 2008-06-08  Bruno Haible  <bruno@clisp.org>
47776
47777         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
47778
47779 2008-06-08  Jim Meyering  <meyering@redhat.com>
47780
47781         * modules/acl (Maintainer): Add Bruno Haible.
47782
47783 2008-06-07  Bruno Haible  <bruno@clisp.org>
47784
47785         Improve support for Tru64 ACLs.
47786         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
47787         ACL on OSF/1.
47788
47789 2008-06-07  Bruno Haible  <bruno@clisp.org>
47790
47791         Add support for MacOS X ACLs.
47792         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
47793         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
47794         * lib/set-mode-acl.c (qset_acl): Likewise.
47795         * lib/copy-acl.c (qcopy_acl): Likewise.
47796
47797 2008-06-07  Bruno Haible  <bruno@clisp.org>
47798
47799         Fix memory leak introduced on 2008-05-22.
47800         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
47801         use.
47802
47803 2008-06-07  Bruno Haible  <bruno@clisp.org>
47804
47805         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
47806         to construct an empty ACL.
47807
47808 2008-06-07  Bruno Haible  <bruno@clisp.org>
47809
47810         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
47811         precisely.
47812         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
47813
47814 2008-06-07  Bruno Haible  <bruno@clisp.org>
47815
47816         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
47817         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
47818
47819 2008-06-07  Bruno Haible  <bruno@clisp.org>
47820
47821         * doc/posix-functions/_setjmp.texi: Explain the use of this function
47822         regardless of POSIX.
47823         * doc/posix-functions/_longjmp.texi: Likewise.
47824         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
47825         SystemV platform in this case.
47826
47827 2008-06-06  Eric Blake  <ebb9@byu.net>
47828
47829         Document abort() bugs.
47830         * doc/posix-functions/abort.texi (abort): Mention anomalies.
47831
47832         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
47833         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
47834         sigsetjmp.
47835         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
47836         siglongjmp, but only as a macro.
47837         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
47838         is obsolete.
47839         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
47840
47841         Tweak documentation to cover cygwin argz bugs.
47842         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
47843         argz bug fix; no code change needed since no cygwin releases
47844         occurred between the last fix and the bug being tested.
47845         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
47846         module and recently fixed cygwin bugs.
47847         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
47848         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
47849         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
47850         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
47851         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
47852         Likewise.
47853         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
47854         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
47855         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
47856         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
47857         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
47858         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
47859         Likewise.
47860
47861         Avoid gcc warning on cygwin.
47862         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
47863         !ACL_NO_TRIVIAL]: Avoid unused variable.
47864
47865 2008-06-05  Eric Blake  <ebb9@byu.net>
47866
47867         Be tolerant of UNKNOWN version in gnulib-tool test dir.
47868         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
47869         git-version-gen fails to come up with a version.
47870         Reported by Simon Josefsson.
47871
47872 2008-06-05  Jim Meyering  <meyering@redhat.com>
47873             Paul Eggert  <eggert@cs.ucla.edu>
47874
47875         utimens.c: work around a probable Linux kernel bug
47876         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
47877         appears to be a kernel bug that causes utimensat to return 280
47878         instead of 0, indicating success.
47879
47880 2008-06-04  Bruno Haible  <bruno@clisp.org>
47881
47882         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
47883         2008-06-01 commit.
47884
47885 2008-06-04  Bruno Haible  <bruno@clisp.org>
47886
47887         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
47888         * lib/file-has-acl.c (acl_access_nontrivial): New function.
47889         (file_has_acl): Use it. Save errno afterwards.
47890         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
47891
47892 2008-06-03  Bruno Haible  <bruno@clisp.org>
47893
47894         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
47895         draft code. Simplify #ifs.
47896         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
47897         Put Solaris code after POSIX-draft code. Fix comments regarding
47898         Solaris 10, HP-UX. Mention Cygwin.
47899         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
47900
47901 2008-06-03  Eric Blake  <ebb9@byu.net>
47902
47903         Provide fallback for older kernels.
47904         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
47905         Provide runtime fallback if kernel lacks support.
47906         Reported by Mike Frysinger.
47907
47908 2008-06-02  Bruno Haible  <bruno@clisp.org>
47909
47910         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
47911         it exists.
47912
47913 2008-06-02  Bruno Haible  <bruno@clisp.org>
47914
47915         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
47916         * lib/copy-acl.c (qcopy_acl): Update comment.
47917
47918 2008-06-02  Bruno Haible  <bruno@clisp.org>
47919
47920         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
47921         like ACL APIs.
47922
47923 2008-06-02  Bruno Haible  <bruno@clisp.org>
47924
47925         * tests/test-file-has-acl.sh: Use different code for Cygwin.
47926         * tests/test-set-mode-acl.sh: Likewise.
47927         * tests/test-copy-acl.sh: Likewise.
47928         * tests/test-copy-file.sh: Likewise.
47929
47930 2008-06-02  Bruno Haible  <bruno@clisp.org>
47931
47932         * tests/test-file-has-acl.sh: Remove unused code.
47933
47934 2008-06-01  Bruno Haible  <bruno@clisp.org>
47935
47936         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
47937         (copy_acl): Just a wrapper around qcopy_acl that emits the error
47938         messages.
47939         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
47940
47941 2008-06-01  Bruno Haible  <bruno@clisp.org>
47942
47943         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
47944         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
47945         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
47946         APIs.
47947         * modules/acl-tests (configure.ac): Remove tests now contained in
47948         m4/acl.m4.
47949
47950 2008-06-02  Jim Meyering  <meyering@redhat.com>
47951
47952         announce-gen: use a better key-server host name
47953         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
47954         it may be more consistently reliable.  Suggested by Werner Koch
47955         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
47956
47957 2008-06-01  Bruno Haible  <bruno@clisp.org>
47958
47959         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
47960         Reported by Voroskoi Andras <voroskoi@gmail.com>.
47961
47962 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
47963
47964         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
47965
47966 2008-06-01  Bruno Haible  <bruno@clisp.org>
47967
47968         New ACL tests.
47969         * tests/test-file-has-acl.sh: New file.
47970         * tests/test-file-has-acl.c: New file.
47971         * tests/test-set-mode-acl.sh: New file.
47972         * tests/test-set-mode-acl.c: New file.
47973         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
47974         * tests/test-copy-acl.c: New file.
47975         * modules/acl-tests: New file, based on modules/copy-file-tests.
47976         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
47977         (Depends-on): Add acl-tests.
47978         (configure.ac): Remove checks.
47979         (Makefile.am): Don't create test-sameacls program here any more.
47980
47981 2008-06-01  Bruno Haible  <bruno@clisp.org>
47982
47983         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
47984         * tests/test-sameacls.c: Include progname.h.
47985         (main): Invoke set_program_name. Portability fixes for MacOS X,
47986         Solaris, HP-UX.
47987
47988 2008-06-01  Bruno Haible  <bruno@clisp.org>
47989
47990         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
47991         function.
47992         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
47993
47994 2008-06-01  Bruno Haible  <bruno@clisp.org>
47995
47996         * modules/rpmatch (Depends-on): Add strdup.
47997
47998 2008-06-01  Bruno Haible  <bruno@clisp.org>
47999
48000         * lib/pipe.c: Include unistd-safer.h.
48001         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48002         * modules/pipe (Depends-on): Add unistd-safer.
48003
48004 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48005
48006         * modules/autobuild (configure.ac): Call AB_INIT.
48007
48008 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48009
48010         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48011         Suggested by Bruno Haible <bruno@clisp.org>.
48012
48013 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48014
48015         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48016         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48017         <bruno@clisp.org>.
48018
48019 2008-05-29  Eric Blake  <ebb9@byu.net>
48020
48021         Prefer new POSIX 200x interfaces over futimesat.
48022         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48023         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48024         when available.
48025         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48026
48027 2008-05-28  Bruno Haible  <bruno@clisp.org>
48028
48029         * modules/stpcpy (License): Change to LGPLv2+.
48030         Requested by David Lutterkort <dlutter@redhat.com>.
48031
48032 2008-05-27  Bruno Haible  <bruno@clisp.org>
48033
48034         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48035         current mingw.
48036         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48037
48038 2008-05-27  Bruno Haible  <bruno@clisp.org>
48039
48040         * modules/iconv_open (Link): New section, from module 'iconv'.
48041         * modules/striconv (Link): Likewise.
48042         * modules/striconveh (Link): Likewise.
48043         * modules/xstriconv (Link): Likewise.
48044         * modules/unicodeio (Link): Likewise.
48045         * modules/propername (Link): Likewise.
48046         Reported by Jim Meyering.
48047
48048 2008-05-26  Jim Meyering  <meyering@redhat.com>
48049
48050         sha256: do not artificially restrict buffer length to be < 2^32
48051         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48052         uint32_t to size_t.
48053         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48054         to match.
48055
48056         avoid unaligned access errors, e.g., on sparc
48057         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48058         direct access through a possibly-unaligned uint64* pointer.
48059         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48060         direct access through a possibly-unaligned uint32* pointer.
48061         Prompted by this patch from Tom "spot" Callaway:
48062         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48063
48064         sha512.c: fix typo in comment
48065         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48066
48067 2008-05-25  Bruno Haible  <bruno@clisp.org>
48068
48069         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48070         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48071         (Makefile.am): Update lib_SOURCES.
48072
48073 2008-05-25  Bruno Haible  <bruno@clisp.org>
48074
48075         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48076
48077 2008-05-25  Jim Meyering  <meyering@redhat.com>
48078
48079         useless-if-before-free: freed expr may have white-space differences
48080         * build-aux/useless-if-before-free: Recognize cases in which the
48081         freed expression differs from the tested one in embedded white
48082         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48083         $1 was used, so we can't make any regexp shy.  Improved tests now
48084         detect this.
48085
48086         useless-if-before-free: accept white space in the expression.
48087         * build-aux/useless-if-before-free: For now, any white space
48088         in the expression must be identical in the free argument.
48089
48090         useless-if-before-free: efficiency tweak
48091         * build-aux/useless-if-before-free: Make the expression-matching
48092         regexp "shy".
48093         Make the *outer* regexp shy, not the expr-matching one.
48094
48095         update code-in-comment to accept cast of free arg
48096         * build-aux/useless-if-before-free: Update regexp.
48097
48098 2008-05-25  Bruno Haible  <bruno@clisp.org>
48099
48100         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48101         * modules/copy-file-tests (Files, Makefile.am): Update.
48102         * tests/test-copy-file.c (func_test_copy): Update.
48103
48104 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48105
48106         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48107
48108 2008-05-23  Bruno Haible  <bruno@clisp.org>
48109
48110         Improve support for ACLs on OSF/1.
48111         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48112         Remove fallback for unknown flavors of ACLs.
48113
48114 2008-05-22  Bruno Haible  <bruno@clisp.org>
48115
48116         Add support for ACLs on OSF/1.
48117         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48118         replacements.
48119         (acl_free_text): New macro fallback.
48120         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48121         acl_free.
48122         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48123         acl_free_text function. Require AC_C_INLINE.
48124
48125 2008-05-22  Bruno Haible  <bruno@clisp.org>
48126
48127         Make copy_acl work on MacOS X 10.5.
48128         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
48129         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
48130         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
48131         If MODE_INSIDE_ACL, don't assume that every system has the same text
48132         representation for ACLs as FreeBSD.
48133         * lib/copy-acl.c (copy_acl): Add support for platforms with
48134         !MODE_INSIDE_ACL.
48135         * lib/file-has-acl.c (file_has_acl): Likewise.
48136         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
48137         FreeBSD, MacOS X, or IRIX, respectively.
48138
48139 2008-05-22  Bruno Haible  <bruno@clisp.org>
48140
48141         * lib/acl.h: Don't include <sys/acl.h>.
48142         (GETACLCNT): Move fallback to lib/acl-internal.h.
48143         * lib/acl-internal.h: Include <sys/acl.h> here.
48144         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
48145
48146 2008-05-22  Bruno Haible  <bruno@clisp.org>
48147
48148         Split off copy_acl function to separate file.
48149         * lib/copy-acl.c: New file, extracted from lib/acl.c.
48150         * lib/acl.c (copy_acl): Moved function to separate file.
48151         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
48152         * modules/acl (Files): Add lib/copy-acl.c.
48153         (Makefiles.am): Augment lib_SOURCES.
48154
48155 2008-05-22  Bruno Haible  <bruno@clisp.org>
48156
48157         * modules/copy-file-tests: New file.
48158         * tests/test-copy-file.sh: New file.
48159         * tests/test-copy-file.c: New file.
48160         * tests/test-copy-file-sameacls.c: New file.
48161
48162 2008-05-22  Eric Blake  <ebb9@byu.net>
48163
48164         Avoid gcc warning.
48165         * tests/test-memcmp.c (main): Pass NULL indirectly.
48166
48167 2008-05-21  Bruno Haible  <bruno@clisp.org>
48168
48169         Add reference doc about ACLs.
48170         * doc/acl-resources.txt: New file.
48171         * doc/acl-cygwin.txt: New file.
48172
48173 2008-05-21  Bruno Haible  <bruno@clisp.org>
48174
48175         Avoid one more warning from gcc.
48176         * lib/vasnprintf.c (IF_LINT): Update comments.
48177         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48178
48179 2008-05-21  Jim Meyering  <meyering@redhat.com>
48180
48181         avoid a warning from gcc
48182         * lib/vasnprintf.c (IF_LINT): Define.
48183         (scale10_round_decimal_long_double):
48184         Use it to avoid a "may be used uninitialized" warning.
48185         (scale10_round_decimal_double): Likewise.
48186
48187 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48188
48189         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48190         declared.
48191
48192 2008-05-20  Bruno Haible  <bruno@clisp.org>
48193
48194         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48195         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48196
48197 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48198
48199         * modules/memcmp-tests: New file.
48200         * tests/test-memcmp.c: New file.
48201
48202 2008-05-19  Bruno Haible  <bruno@clisp.org>
48203
48204         * modules/propername (Notice, configure.ac): Put quoted "..." into
48205         --keyword option.
48206         * lib/propername.h: Update comments accordingly.
48207         Reported by Eric Blake.
48208
48209 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
48210
48211         * modules/getpass-gnu (Depends-on): Add fseeko.
48212
48213 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48214
48215         * modules/base64-tests: New file.
48216
48217 2008-05-19  Bo Borgerson <gigabo@gmail.com>
48218
48219         * lib/base64.c (base64_decode_ctx): If a decode context structure
48220         was passed in use it to ignore newlines.  If a context structure
48221         was _not_ passed in, continue to treat newlines as garbage (this
48222         is the historical behavior).  Formerly base64_decode.
48223         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48224         takes a decode context structure.
48225         * lib/base64.h (base64_decode): Macro for four-argument calls.
48226         (base64_decode_alloc): Likewise.
48227         * lib/base64.c (base64_decode_ctx): If a decode context structure
48228         was passed in use it to ignore newlines.  If a context structure
48229         was _not_ passed in, continue to treat newlines as garbage (this
48230         is the historical behavior).  Formerly base64_decode.
48231         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48232         takes a decode context structure.
48233         * lib/base64.h (base64_decode): Macro for four-argument calls.
48234         (base64_decode_alloc): Likewise.
48235
48236 2008-05-19  Jim Meyering  <meyering@redhat.com>
48237
48238         avoid a warning from gcc
48239         * lib/trim.c (IF_LINT): Define.
48240         (trim2): Use it to avoid a "may be used uninitialized" warning.
48241
48242         Fix doc typo.
48243         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
48244
48245 2008-05-19  Bruno Haible  <bruno@clisp.org>
48246
48247         * doc/glibc-functions/getpass.texi: Document limits of other
48248         implementations.
48249
48250 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48251             Bruno Haible <bruno@clisp.org>
48252
48253         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
48254
48255 2008-05-18  Bruno Haible  <bruno@clisp.org>
48256
48257         * modules/propername: New file, from GNU gettext.
48258         * lib/propername.h: New file, from GNU gettext.
48259         * lib/propername.c: New file, from GNU gettext.
48260         * MODULES.html.sh (Internationalization functions): Add propername.
48261
48262 2008-05-16  Jim Meyering  <meyering@redhat.com>
48263             Bruno Haible  <bruno@clisp.org>
48264
48265         Avoid some warnings from "gcc -Wshadow".
48266         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
48267
48268 2008-05-15  Eric Blake  <ebb9@byu.net>
48269
48270         Extend previous patch to cygwin 1.7.0.
48271         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
48272         fast implementation in cygwin >= 1.7.0.
48273         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48274         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48275
48276 2008-05-15  Bruno Haible  <bruno@clisp.org>
48277
48278         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
48279         implementation in glibc >= 2.9.
48280         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48281         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48282
48283 2008-05-15  Bruno Haible  <bruno@clisp.org>
48284
48285         * MODULES.html.sh (Internationalization functions): Remove linebreak.
48286         (Unicode string functions): Add unilbrk/*.
48287         Reported by Karl Berry.
48288
48289 2008-05-15  Eric Blake  <ebb9@byu.net>
48290
48291         Fix violation of <stdbool.h> replacement in regex.
48292         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
48293         * lib/regexec.c (re_search_internal): Likewise.
48294         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
48295
48296 2008-05-15  Jim Meyering  <meyering@redhat.com>
48297
48298         avoid distracting test output when git or cvs is not found
48299         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
48300         * tests/test-vc-list-files-git.sh: Likewise.
48301
48302 2008-05-15  Eric Blake  <ebb9@byu.net>
48303
48304         Glibc finally accepted the memmem speedup code, bugzilla #5514.
48305         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
48306         glibc version.
48307         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48308         * doc/posix-functions/strstr.texi (strstr): Likewise.
48309         * lib/str-two-way.h (MAX): Sychronize with glibc.
48310
48311 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
48312
48313         * lib/regcomp.c (optimize_utf8): Add a note on why we test
48314         opr.ctx_type.
48315         (calc_first): Initialize constraint field.
48316         (duplicate_node_closure): Use it instead of special casing ANCHORS.
48317         Fix grammar.
48318         (duplicate_node): Merge constraint field for all node types.
48319         (calc_eclosure_iter): Look at constraint field for all node types.
48320         * lib/regex_internal.c (create_cd_newstate): Don't look at
48321         opr.ctx_type.
48322
48323 2008-05-14  Bruno Haible  <bruno@clisp.org>
48324
48325         Help GCC to do better code generation.
48326         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
48327         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48328         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
48329         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
48330         Declare with attribute 'malloc' if supported.
48331
48332 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
48333
48334         use "echo STR|wc -c" rather than unportable "expr length STR"
48335         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
48336         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
48337
48338 2008-05-14  Jim Meyering  <meyering@redhat.com>
48339
48340         use dd ibs=$n count=1 ... rather than less-portable head -c$n
48341         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
48342         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
48343         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
48344         via Collin Lasse.
48345
48346 2008-05-14  Eric Blake  <ebb9@byu.net>
48347
48348         Avoid quadratic growth in gl_LIBSOURCES.
48349         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
48350         Suggested by Bruno Haible.
48351
48352         Test xmemdup0.
48353         * modules/xmemdup0-tests: New file.
48354         * tests/test-xmemdup0.c: Likewise.
48355
48356 2008-05-13  Eric Blake  <ebb9@byu.net>
48357
48358         Split xmemdup0 into its own module.
48359         * modules/xmemdup0: New file.
48360         * lib/xmemdup0.h: Likewise.
48361         * lib/xmemdup0.c: Likewise.
48362         * MODULES.html.sh (Memory management functions): Add xmemdup0.
48363         * lib/xalloc.h (xmemdup0): Remove.
48364         * lib/xmalloc.c (xmemdup0): Likewise.
48365
48366 2008-05-13  Eric Blake  <ebb9@byu.net>
48367             Bruno Haible  <bruno@clisp.org>
48368
48369         Reduce number of forks required during autoconf.
48370         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
48371         and gl_LIBSOURCES_DIR.
48372         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
48373         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
48374         m4_syscmd per file.
48375         <m4_foreach_w>: Move...
48376         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
48377
48378 2008-05-13  Eric Blake  <ebb9@byu.net>
48379
48380         * gnulib-tool: Fix various comment typos.
48381
48382 2008-05-12  Bruno Haible  <bruno@clisp.org>
48383
48384         Tailor the linebreaking algorithm.
48385         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
48386
48387 2008-05-12  Bruno Haible  <bruno@clisp.org>
48388
48389         Update to Unicode 5.0.0.
48390         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48391         LBP_JV, LBP_JT. Redistribute values.
48392         (unilbrk_table): Change size.
48393         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
48394         Unicode TR#14 rev. 22.
48395         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48396         LBP_JV, LBP_JT. Redistribute values.
48397         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
48398         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
48399         Update.
48400         * lib/unilbrk/lbrkprop1.h: Regenerated.
48401         * lib/unilbrk/lbrkprop2.h: Regenerated.
48402         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
48403         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
48404         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
48405         Likewise.
48406         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
48407         Likewise.
48408         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
48409         result.
48410         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
48411         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
48412         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
48413         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
48414         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
48415         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
48416
48417 2008-05-11  Bruno Haible  <bruno@clisp.org>
48418
48419         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
48420
48421 2008-05-11  Bruno Haible  <bruno@clisp.org>
48422
48423         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
48424         * modules/unilbrk/gen-lbrk: New file.
48425
48426 2008-05-11  Bruno Haible  <bruno@clisp.org>
48427
48428         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
48429         * m4/sha512.m4 (gl_SHA512): Likewise.
48430
48431 2008-05-11  Jim Meyering  <meyering@redhat.com>
48432
48433         New modules: crypto/sha256, crypto/sha512 (from coreutils)
48434         * modules/crypto/sha256: New file.
48435         * modules/crypto/sha512: Likewise.
48436         * lib/sha256.c: Likewise.
48437         * lib/sha256.h: Likewise.
48438         * lib/sha512.c: Likewise.
48439         * lib/sha512.h: Likewise.
48440         * lib/u64.h: Likewise.
48441         * m4/sha256.m4: Likewise.
48442         * m4/sha512.m4: Likewise.
48443         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
48444
48445 2008-05-10  Bruno Haible  <bruno@clisp.org>
48446
48447         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
48448         (Input/Output <stdio.h>): Add xprintf.
48449         (Signal handling <signal.h>): Add strsignal.
48450         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
48451         (Core language properties): Add func.
48452         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
48453         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
48454         strings.
48455         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
48456         (Input/output): New section.
48457         (File system functions): Add openat-die, stat-macros.
48458         (Networking functions): Add sockets.
48459         (Unicode string functions): Add unictype/*.
48460         (Support for building libraries and executables): Add gperf.
48461         (Support for building documentation): Add agpl-3.0.
48462         (Misc): Add nocrash.
48463
48464 2008-05-10  Bruno Haible  <bruno@clisp.org>
48465
48466         * modules/unictype/gen-ctype: New file.
48467
48468 2008-05-10  Jim Meyering  <meyering@redhat.com>
48469
48470         Make chdir-safer.c more efficient on a system with no symlinks.
48471         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
48472         also if ELOOP is zero.  Suggested by Bruno Haible.
48473
48474         Make chdir-safer.c slightly safer.
48475         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
48476         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
48477
48478         Avoid compile failure on systems without ELOOP (like mingw).
48479         * lib/chdir-safer.c (ELOOP): Define if not already defined.
48480         Reported by Bruno Haible.
48481
48482 2008-05-10  Bruno Haible  <bruno@clisp.org>
48483
48484         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
48485         (is_utf8_encoding): Use a case-insensitive comparison.
48486         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
48487         streq.
48488
48489 2008-05-10  Bruno Haible  <bruno@clisp.org>
48490
48491         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
48492         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
48493         * lib/unilbrk/ulc-common.h (iconv_string_length,
48494         iconv_string_keeping_offsets): Remove declarations.
48495         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
48496         Don't include <iconv.h>, streq.h, xsize.h.
48497         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
48498         conversion.
48499         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
48500         <iconv.h>, streq.h, xsize.h.
48501         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
48502         conversion.
48503         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
48504         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
48505         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
48506         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
48507
48508 2008-05-10  Bruno Haible  <bruno@clisp.org>
48509
48510         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
48511         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
48512
48513         * modules/unilbrk/u32-width-linebreaks-tests: New file.
48514         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
48515
48516         * modules/unilbrk/u16-width-linebreaks-tests: New file.
48517         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
48518
48519         * modules/unilbrk/u8-width-linebreaks-tests: New file.
48520         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
48521
48522         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
48523         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
48524
48525         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
48526         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
48527
48528         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
48529         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
48530
48531         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
48532         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
48533
48534 2008-05-10  Bruno Haible  <bruno@clisp.org>
48535
48536         Split up 'linebreak' module.
48537         * lib/unilbrk.h: New file, based on lib/linebreak.h.
48538         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
48539         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
48540         modifications.
48541         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
48542         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
48543         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
48544         lib/linebreak.c.
48545         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
48546         lib/linebreak.c.
48547         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
48548         lib/linebreak.c.
48549         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
48550         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
48551         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
48552         lib/linebreak.c.
48553         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
48554         lib/linebreak.c.
48555         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
48556         lib/linebreak.c.
48557         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
48558         lib/linebreak.c.
48559         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
48560         lib/linebreak.c.
48561         * modules/unilbrk/base: New file.
48562         * modules/unilbrk/tables: New file.
48563         * modules/unilbrk/u8-possible-linebreaks: New file.
48564         * modules/unilbrk/u16-possible-linebreaks: New file.
48565         * modules/unilbrk/u32-possible-linebreaks: New file.
48566         * modules/unilbrk/ulc-common: New file.
48567         * modules/unilbrk/ulc-possible-linebreaks: New file.
48568         * modules/unilbrk/u8-width-linebreaks: New file.
48569         * modules/unilbrk/u16-width-linebreaks: New file.
48570         * modules/unilbrk/u32-width-linebreaks: New file.
48571         * modules/unilbrk/ulc-width-linebreaks: New file.
48572         * lib/linebreak.h: Remove file.
48573         * lib/linebreak.c: Remove file.
48574         * m4/linebreak.m4: Remove file.
48575         * modules/linebreak: Remove file.
48576         * NEWS: Mention the changes.
48577
48578 2008-05-09  Eric Blake  <ebb9@byu.net>
48579
48580         Add xmemdup0.
48581         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
48582         implementation.
48583         * lib/xmalloc.c (xmemdup0): New C implementation.
48584
48585 2008-05-08  Bruno Haible  <bruno@clisp.org>
48586
48587         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
48588
48589 2008-05-07  Eric Blake  <ebb9@byu.net>
48590
48591         Support cross-compilation of <wctype.h>.
48592         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
48593         AC_CACHE_CHECK.
48594
48595 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
48596
48597         * build-aux/vc-list-files: Add support for bzr.
48598
48599 2008-05-03  Jim Meyering  <meyering@redhat.com>
48600
48601         avoid failed assertion with tight malloc
48602         * tests/test-getndelim2.c: Correct an off-by-one assertion.
48603
48604 2008-05-03  Simon Josefsson  <simon@josefsson.org>
48605
48606         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
48607         are needed from arpa/inet.h.
48608         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
48609         Reported by Bruno Haible.
48610
48611 2008-05-02  Jim Meyering  <meyering@redhat.com>
48612
48613         avoid compilation error on FreeBSD 6
48614         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
48615
48616 2008-05-01  Jim Meyering  <meyering@redhat.com>
48617
48618         useless-if-before-free: correct --help's exit status description
48619         * build-aux/useless-if-before-free (usage): Like grep, exit 0
48620         for one or more matches, etc.  Reported by Bruno Haible.
48621
48622         vc-list-files: make the stand-alone gnulib test work
48623         * modules/vc-list-files-tests (configure.ac):
48624         Define and AC_SUBST abs_aux_dir.
48625         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
48626         $(abs_top_srcdir) to each script and having each of them
48627         duplicate the work of setting PATH, set PATH here, using
48628         the new variable, abs_aux_dir instead.
48629         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
48630         * tests/test-vc-list-files-git.sh: Likewise.
48631         Reported by Bruno Haible.
48632
48633 2008-05-01  Bruno Haible  <bruno@clisp.org>
48634
48635         * lib/getndelim2.c (getndelim2): Fix newsize computation during
48636         reallocation. Rename 'done' to 'found_delimiter'.
48637
48638 2008-05-01  Jim Meyering  <meyering@redhat.com>
48639
48640         vc-list-files: accommodate /bin/sh like the one from Solaris 10
48641         * build-aux/vc-list-files: Use `...`, not $(...).
48642
48643 2008-04-30  Jim Meyering  <meyering@redhat.com>
48644
48645         add tests for vc-list-files
48646         * modules/vc-list-files-tests: New module.
48647         * tests/test-vc-list-files-cvs.sh: New file.
48648         * tests/test-vc-list-files-git.sh: New file.
48649
48650         avoid a warning from gcc
48651         * lib/getndelim2.c (IF_LINT): Define.
48652         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
48653
48654         vc-list-files: work properly with build-aux/cvsu, too
48655         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
48656         to all cvs-based clauses.
48657
48658         vc-list-files: work properly in the CVS+awk case, too
48659         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
48660
48661         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
48662         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
48663         take more than one file argument, so .  Add quotes, just in case $dir
48664         ever contains a shell meta-character.  Prompted by Soren Hansen in
48665         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
48666
48667 2008-04-29  Eric Blake  <ebb9@byu.net>
48668
48669         Optimize getndelim2 to use block operations when possible.
48670         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
48671         freadseek, and memchr2.
48672         * lib/getndelim2.c (getndelim2): Use them for block reads.
48673
48674 2008-04-29  Bruno Haible  <bruno@clisp.org>
48675
48676         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
48677         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48678         * modules/inet_ntop (Depends-on): Add extensions.
48679         * modules/inet_pton (Depends-on): Likewise.
48680         Reported by Simon Josefsson.
48681
48682 2008-04-29  Jim Meyering  <meyering@redhat.com>
48683
48684         When the is more than one match in a block, match all of them.
48685         * build-aux/useless-if-before-free: Iterate through each block
48686         until there are no more matches.
48687
48688         Fix broken useless-if-before-free script.
48689         * build-aux/useless-if-before-free: Fix typo: missing "?" after
48690         the expression to match cast of argument to free-like function.
48691
48692 2008-04-29  Eric Blake  <ebb9@byu.net>
48693
48694         Use new header.
48695         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
48696
48697 2008-04-29  Jim Meyering  <meyering@redhat.com>
48698
48699         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
48700         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
48701         by gnulib to exist and to declare e.g., inet_ntop.
48702         Don't include "inet_ntop.h", now removed.
48703
48704         * m4/arpa_inet_h.m4: Remove trailing blanks.
48705
48706 2008-04-29  Eric Blake  <ebb9@byu.net>
48707
48708         Silence valgrind on safe reads beyond potential array bounds.
48709         * lib/rawmemchr.valgrind: New file.
48710         * lib/strchrnul.valgrind: Likewise.
48711         * modules/rawmemchr (Files): Distribute new file.
48712         * modules/strchrnul (Files): Likewise.
48713         Suggested by Bruno Haible.
48714
48715 2008-04-29  Bruno Haible  <bruno@clisp.org>
48716
48717         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
48718         (inet_ntop, inet_pton): Change portability warning's wording.
48719         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
48720         Invoke gl_CHECK_NEXT_HEADERS.
48721         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
48722         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
48723         set ARPA_INET_H.
48724         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48725         * modules/arpa_inet (Description): No longer only for systems that
48726         lack it.
48727         (Depends-on): Add include_next.
48728         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
48729         HAVE_ARPA_INET_H.
48730
48731 2008-04-29  Jim Meyering  <meyering@redhat.com>
48732
48733         * modules/mkdir (License): Re-license as LGPLv2+.
48734
48735 2008-04-29  Bruno Haible  <bruno@clisp.org>
48736
48737         * modules/rawmemchr (Maintainer): Set to Eric.
48738         * modules/strchrnul (Maintainer): Likewise.
48739
48740 2008-04-29  Simon Josefsson  <simon@josefsson.org>
48741
48742         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
48743         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
48744
48745         * modules/arpa_inet (arpa/inet.h): Use them.
48746
48747 2008-04-28  Eric Blake  <ebb9@byu.net>
48748
48749         Test getndelim2.
48750         * modules/getndelim2-tests: New file.
48751         * tests/test-getndelim2.c: Likewise.
48752         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
48753         stream.
48754         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
48755
48756         * MODULES.html.sh: Document new module.
48757
48758 2008-04-20  Bruno Haible  <bruno@clisp.org>
48759
48760         * lib/c-stack.c (die): Use raise.
48761         * modules/c-stack (Depends-on): Add raise.
48762
48763 2008-04-28  Bruno Haible  <bruno@clisp.org>
48764
48765         Expect rpmatch to be declared.
48766         * lib/yesno.c (rpmatch): Remove declaration.
48767
48768         Declare rpmatch.
48769         * lib/stdlib.in.h (rpmatch): New declaration.
48770         * lib/rpmatch.c: Include <stdlib.h> first.
48771         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
48772         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
48773         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
48774         HAVE_RPMATCH.
48775         * modules/rpmatch (Depends-on): Add stdlib, extensions.
48776         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48777         (Include): Set to <stdlib.h>.
48778         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
48779         HAVE_RPMATCH.
48780         * NEWS: Document the change.
48781
48782 2008-04-28  Bruno Haible  <bruno@clisp.org>
48783
48784         Change rpmatch to use nl_langinfo when appropriate.
48785         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
48786         (N_): New macro.
48787         (localized_pattern): New function/macro.
48788         (try): Remove match, nomatch arguments. Copy the pattern into safe
48789         memory before caching it.
48790         (rpmatch): Use localized_pattern. Add translator comments.
48791         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
48792         Suggested by Eric Blake.
48793         * modules/rpmatch (Depends-on): Add stdbool.
48794
48795 2008-04-28  Eric Blake  <ebb9@byu.net>
48796
48797         Add rawmemchr module, matching glibc.
48798         * modules/string (Makefile.am): New indicator.
48799         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
48800         * lib/string.in.h (rawmemchr): Declare when appropriate.
48801         * modules/rawmemchr: New file.
48802         * m4/rawmemchr.m4: Likewise.
48803         * lib/rawmemchr.c: Likewise.
48804         * modules/rawmemchr-tests: Likewise.
48805         * tests/test-rawmemchr.c: Likewise.
48806         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
48807         module.
48808         * modules/strchrnul (Depends-on): Add rawmemchr.
48809         * lib/strchrnul.c (strchrnul): Optimize a corner case.
48810
48811         Whitespace cleanup.
48812         * tests/test-strchrnul.c: Reindent.
48813         * lib/strchrnul.c: Likewise.
48814
48815         Optimize and test strchrnul.
48816         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
48817         * modules/strchrnul-tests: New file.
48818         * tests/test-strchrnul.c: Likewise.
48819
48820         Remove intprops dependency.
48821         * modules/memchr (Depends-on): Remove intprops.
48822         * modules/memrchr (Depends-on): Likewise.
48823         * modules/memchr2 (Depends-on): Likewise.
48824         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
48825         * lib/memrchr.c (__memrchr): Likewise.
48826         * lib/memrchr2.c (memchr2): Likewise.
48827         Reported by Simon Josefsson.
48828
48829 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48830
48831         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
48832         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48833
48834 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48835
48836         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
48837
48838         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
48839
48840         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
48841
48842         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
48843         declarations.
48844         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
48845
48846         * m4/inet_pton.m4: Don't check for header files.
48847
48848         * m4/inet_ntop.m4: Don't check for header files.
48849
48850 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48851
48852         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
48853         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
48854         trigger for cygwin).
48855         Reported by Bruno Haible  <bruno@clisp.org>.
48856
48857 2008-04-28  Bruno Haible  <bruno@clisp.org>
48858
48859         * doc/posix-functions/strdup.texi: Mention mingw problem.
48860
48861 2008-04-27  Bruno Haible  <bruno@clisp.org>
48862
48863         * modules/stat-time-tests (Depends-on): Add sleep.
48864         * tests/test-stat-time.c (force_unlink): New function.
48865         (cleanup): Use it.
48866         (test_mtime): Remove the ctime related tests.
48867         (test_ctime): New function, containing the ctime related tests.
48868         (main): Call test_ctime, except on native Windows platforms.
48869
48870 2008-04-27  Bruno Haible  <bruno@clisp.org>
48871
48872         * lib/rpmatch.c (rpmatch): Add some comments.
48873         Reported by James Youngman <jay@gnu.org>.
48874
48875 2008-04-27  Bruno Haible  <bruno@clisp.org>
48876
48877         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
48878         quiet NaNs.
48879
48880 2008-04-27  Bruno Haible  <bruno@clisp.org>
48881
48882         Make test-yesno.sh work on mingw.
48883         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
48884         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
48885         (main): Set stdin to binary mode.
48886         * modules/yesno-tests (Depends-on): Add binary-io.
48887
48888 2008-04-27  Bruno Haible  <bruno@clisp.org>
48889
48890         Fix 'isfinite' on x86, x86_64, ia64 platforms.
48891         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
48892         argument that lie outside the IEEE 854 domain.
48893         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
48894         (gl_ISFINITE): Use it.
48895         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
48896
48897 2008-04-27  Bruno Haible  <bruno@clisp.org>
48898
48899         Allow local renaming in config.h.
48900         * lib/memrchr.c (memrchr): Don't undefine outside libc.
48901
48902 2008-04-27  Bruno Haible  <bruno@clisp.org>
48903
48904         * lib/memchr.c (__memchr): Change type of 'i'.
48905         * lib/memchr2.c (memchr2): Likewise.
48906
48907 2008-04-26  Eric Blake  <ebb9@byu.net>
48908         and Bruno Haible  <bruno@clisp.org>
48909
48910         Optimize and test memrchr.
48911         * modules/memrchr (Depends-on): Add intprops.
48912         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
48913         * modules/memrchr-tests: New file.
48914         * tests/test-memrchr.c: New file.
48915
48916 2008-04-26  Bruno Haible  <bruno@clisp.org>
48917
48918         Add tentative support for DragonFly BSD.
48919         * lib/stdio-impl.h: Add macros for DragonFly BSD.
48920         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
48921         fp.
48922         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48923         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
48924         * lib/fpurge.c (fpurge): Likewise.
48925         * lib/freadable.c (freaadable): Likewise.
48926         * lib/freadahead.c (freadahead): Likewise.
48927         * lib/freading.c (freading): Likewise.
48928         * lib/freadptr.c (freadptr): Likewise.
48929         * lib/freadseek.c (freadptrinc): Likewise.
48930         * lib/fseeko.c (fseeko): Likewise.
48931         * lib/fseterr.c (fseterr): Likewise.
48932         * lib/fwritable.c (fwritable): Likewise.
48933         * lib/fwriting.c (fwriting): Likewise.
48934
48935 2008-04-26  Bruno Haible  <bruno@clisp.org>
48936
48937         * lib/stdio-impl.h: New file.
48938         * lib/fbufmode.c: Include stdio-impl.h.
48939         (fbufmode): Use fp_, remove redundant #defines.
48940         * lib/fflush.c: Include stdio-impl.h.
48941         (clear_ungetc_buffer): Remove redundant #defines.
48942         * lib/fpurge.c: Include stdio-impl.h.
48943         (fpurge): Remove redundant #defines.
48944         * lib/freadable.c: Include stdio-impl.h.
48945         (freadable): Remove redundant #defines.
48946         * lib/freadahead.c: Include stdio-impl.h.
48947         (freadahead): Remove redundant #defines.
48948         * lib/freading.c: Include stdio-impl.h.
48949         (freading): Remove redundant #defines.
48950         * lib/freadptr.c: Include stdio-impl.h.
48951         (freadptr): Remove redundant #defines.
48952         * lib/freadseek.c: Include stdio-impl.h.
48953         (freadptrinc): Remove redundant #defines.
48954         * lib/fseeko.c: Include stdio-impl.h.
48955         (rpl_fseeko): Remove redundant #defines.
48956         * lib/fseterr.c: Include stdio-impl.h.
48957         (fseterr): Remove redundant #defines.
48958         * lib/fwritable.c: Include stdio-impl.h.
48959         (fwritable: Remove redundant #defines.
48960         * lib/fwriting.c: Include stdio-impl.h.
48961         (fwriting): Remove redundant #defines.
48962         * modules/fbufmode (Files): Add lib/stdio-impl.h.
48963         * modules/fflush (Files): Likewise.
48964         * modules/fpurge (Files): Likewise.
48965         * modules/freadable (Files): Likewise.
48966         * modules/freadahead (Files): Likewise.
48967         * modules/freading (Files): Likewise.
48968         * modules/freadptr (Files): Likewise.
48969         * modules/freadseek (Files): Likewise.
48970         * modules/fseeko (Files): Likewise.
48971         * modules/fseterr (Files): Likewise.
48972         * modules/fwritable (Files): Likewise.
48973         * modules/fwriting (Files): Likewise.
48974
48975 2008-04-26  Bruno Haible  <bruno@clisp.org>
48976
48977         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48978         restore_seek_optimization, update_fpos_cache): New functions, extracted
48979         from rpl_fflush.
48980         (rpl_fflush): Use them.
48981         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
48982         (gl_REPLACE_FFLUSH): Use it.
48983
48984 2008-04-26  Bruno Haible  <bruno@clisp.org>
48985
48986         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
48987         on Solaris.
48988         * tests/test-xstrtoimax.sh: Likewise.
48989         * tests/test-xstrtoumax.sh: Likewise.
48990         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48991
48992 2008-04-26  Bruno Haible  <bruno@clisp.org>
48993
48994         * modules/memchr-tests: New file.
48995         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
48996
48997 2008-04-26  Eric Blake  <ebb9@byu.net>
48998             Bruno Haible  <bruno@clisp.org>
48999
49000         * lib/memchr.c: Include intprops.h.
49001         (__memchr): Optimize parallel detection of matching bytes. Rename local
49002         variables. Add explanatory comments.
49003
49004 2008-04-26  Bruno Haible  <bruno@clisp.org>
49005
49006         Fix module 'memchr', broken since 2000-10-28.
49007         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49008
49009 2008-04-26  Bruno Haible  <bruno@clisp.org>
49010
49011         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49012         comments.
49013
49014 2008-04-25  Eric Blake  <ebb9@byu.net>
49015
49016         Use native fstatat on cygwin 1.7.0.
49017         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49018         first.
49019
49020 2008-04-23  Eric Blake  <ebb9@byu.net>
49021
49022         Improve memchr2 performance.
49023         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49024         NUL bytes.
49025         * modules/memchr2 (Depends-on): Use intprops.h.
49026
49027 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49028
49029         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49030         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49031         <blp@cs.stanford.edu>.
49032
49033 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49034
49035         * lib/arpa_inet.in.h: New file.
49036
49037         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49038         (Makefile.am): Sed in substitute header file.
49039
49040         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49041         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49042
49043         * modules/inet_ntop (configure.ac): Use
49044         gl_ARPA_INET_MODULE_INDICATOR.
49045
49046         * modules/inet_pton (configure.ac): Use
49047         gl_ARPA_INET_MODULE_INDICATOR.
49048
49049 2008-04-22  Jim Meyering  <meyering@redhat.com>
49050
49051         * modules/verify (License): Re-license as LGPLv2+.
49052
49053 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49054
49055         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49056         parameter to void* as per POSIX standard (MinGW uses char*).
49057
49058 2008-04-21  Bruno Haible  <bruno@clisp.org>
49059
49060         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49061         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49062         Define to replacements if REPLACE_ISWCNTRL is 1.
49063         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49064         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49065         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49066         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49067         what it fixes.
49068         * doc/posix-functions/iswalpha.texi: Likewise.
49069         * doc/posix-functions/iswblank.texi: Likewise.
49070         * doc/posix-functions/iswcntrl.texi: Likewise.
49071         * doc/posix-functions/iswdigit.texi: Likewise.
49072         * doc/posix-functions/iswgraph.texi: Likewise.
49073         * doc/posix-functions/iswlower.texi: Likewise.
49074         * doc/posix-functions/iswprint.texi: Likewise.
49075         * doc/posix-functions/iswpunct.texi: Likewise.
49076         * doc/posix-functions/iswspace.texi: Likewise.
49077         * doc/posix-functions/iswupper.texi: Likewise.
49078         * doc/posix-functions/iswxdigit.texi: Likewise.
49079         Reported by Alain Guibert.
49080
49081 2008-04-21  Bruno Haible  <bruno@clisp.org>
49082
49083         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49084         Patch by Alain Guibert.
49085
49086 2008-04-21  Bruno Haible  <bruno@clisp.org>
49087
49088         Fix test failures on mingw.
49089         * tests/test-xstrtol.c (print_no_progname): New function.
49090         (main): Install it in error_print_progname hook.
49091         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49092         * tests/test-xstrtoimax.sh: Likewise.
49093         * tests/test-xstrtoumax.sh: Likewise.
49094
49095 2008-04-21  Bruno Haible  <bruno@clisp.org>
49096
49097         Fix test failure on mingw.
49098         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49099
49100 2008-04-21  Bruno Haible  <bruno@clisp.org>
49101
49102         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49103         Actually assign a value.
49104
49105 2008-04-20  Bruno Haible  <bruno@clisp.org>
49106
49107         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49108         take 2.
49109         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49110         'canonicalize-lgpl' module is also used.
49111         * lib/canonicalize-lgpl.c: Undo last change.
49112         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49113
49114 2008-04-20  Bruno Haible  <bruno@clisp.org>
49115
49116         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49117         config.h. Provide _mkdir based fallback for mingw.
49118         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49119         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49120         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49121         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49122         rather than defining mkdir in config.h.
49123         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49124         (gl_SYS_STAT_H_DEFAULTS): New macro.
49125         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
49126         HAVE_IO_H any more.
49127         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
49128         HAVE_DECL_MKDIR and HAVE_IO_H.
49129
49130 2008-04-20  Bruno Haible  <bruno@clisp.org>
49131
49132         * lib/isapipe.c: Port to native Windows platforms.
49133
49134 2008-04-20  Bruno Haible  <bruno@clisp.org>
49135
49136         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
49137
49138 2008-04-21  Eric Blake  <ebb9@byu.net>
49139
49140         Work around preprocessors that don't handle UINTMAX_MAX.
49141         * lib/memchr2.c (memchr2): Avoid embedded #if.
49142         Reported by Alain Guibert, fix suggested by Bruno Haible.
49143
49144 2008-04-21  Simon Josefsson  <simon@josefsson.org>
49145
49146         * doc/posix-functions/strftime.texi (strftime): Explain better
49147         Windows incompatibility.  Suggested by Micah Cowan
49148         <micah@cowan.name>.
49149
49150 2008-04-20  Bruno Haible  <bruno@clisp.org>
49151
49152         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49153         unistr/u8-mblen.
49154
49155 2008-04-20  Bruno Haible  <bruno@clisp.org>
49156
49157         Fix test failure on platforms with non-GNU iconv.
49158         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
49159         (U_TO_U8): Use it, rather than u16_to_u8.
49160         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
49161         units at the end of the input string.
49162         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
49163
49164 2008-04-20  Bruno Haible  <bruno@clisp.org>
49165
49166         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
49167         when the resulting length is 0.
49168         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
49169
49170 2008-04-20  Bruno Haible  <bruno@clisp.org>
49171
49172         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
49173         works.
49174         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
49175
49176 2008-04-20  Bruno Haible  <bruno@clisp.org>
49177
49178         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49179         * modules/tsearch-tests (configure.ac): Test for initstate function.
49180
49181 2008-04-20  Bruno Haible  <bruno@clisp.org>
49182
49183         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49184         for nlink_t if missing.
49185         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49186
49187 2008-04-19  Bruno Haible  <bruno@clisp.org>
49188
49189         Work around snprintf bug on Linux libc5.
49190         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49191         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49192         gl_SNPRINTF_SIZE1.
49193         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49194         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49195         that test failed.
49196         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49197         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49198         * modules/snprintf (Files): Add m4/printf.m4.
49199         * modules/vsnprintf (Files): Likewise.
49200         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49201         * doc/posix-functions/vsnprintf.texi: Likewise.
49202
49203 2008-04-19  Bruno Haible  <bruno@clisp.org>
49204
49205         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
49206         from 0.0058 to less than 10^-7.
49207
49208 2008-04-19  Bruno Haible  <bruno@clisp.org>
49209
49210         Fix rounding when a precision is given.
49211         * lib/vasnprintf.c (is_borderline): New function.
49212         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
49213         9...9x.
49214         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
49215         %e, %g.
49216         * tests/test-vasprintf-posix.c (test_function): Likewise.
49217         * tests/test-snprintf-posix.h (test_function): Likewise.
49218         * tests/test-sprintf-posix.h (test_function): Likewise.
49219         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
49220         * tests/test-printf-posix.h (test_function): Likewise.
49221         * tests/test-printf-posix.output: Update.
49222         Reported by John Darrington <john@darrington.wattle.id.au> via
49223         Ben Pfaff <blp@cs.stanford.edu>.
49224
49225 2008-04-18  Simon Josefsson  <simon@josefsson.org>
49226
49227         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
49228         Suggested by Bruno Haible <bruno@clisp.org>.
49229
49230 2008-04-17  Bruno Haible  <bruno@clisp.org>
49231
49232         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
49233         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
49234         implementation.
49235         Patch by Bruce Merry <bmerry@gmail.com>.
49236
49237 2008-04-17  Simon Josefsson  <simon@josefsson.org>
49238
49239         * doc/posix-functions/strftime.texi (strftime): Mention that %e
49240         doesn't work under Windows.
49241
49242 2008-04-16  Bruno Haible  <bruno@clisp.org>
49243
49244         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
49245         New macros.
49246         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
49247         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
49248         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
49249         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
49250         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
49251         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
49252         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
49253         macros.
49254         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
49255         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
49256         Northern Sotho, Uighur.
49257
49258 2008-04-16  Bruno Haible  <bruno@clisp.org>
49259
49260         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
49261         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
49262         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
49263         Reported by Daniel Bergström <daniel@octocode.com>.
49264
49265 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
49266             Bruno Haible  <bruno@clisp.org>
49267
49268         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
49269         function.
49270         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
49271         New functions, mostly extracted from gl_locale_name_default.
49272         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
49273
49274 2008-04-16  Eric Blake  <ebb9@byu.net>
49275
49276         Adjust strtod detection to catch glibc 2.7 bug.
49277         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
49278         Reported by John Gatewood Ham.
49279
49280 2008-04-16  Bruno Haible  <bruno@clisp.org>
49281
49282         Add tentative support for Linux libc5.
49283         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
49284         * lib/fpurge.c (fpurge): Likewise.
49285         * lib/freadable.c (freadable): Likewise.
49286         * lib/freadahead.c (freadahead): Likewise.
49287         * lib/freading.c (freading): Likewise.
49288         * lib/freadptr.c (freadptr): Likewise.
49289         * lib/freadseek.c (freadptrinc): Likewise.
49290         * lib/fseeko.c (rpl_fseeko): Likewise.
49291         * lib/fseterr.c (fseterr): Likewise.
49292         * lib/fwritable.c (fwritable): Likewise.
49293         * lib/fwriting.c (fwriting): Likewise.
49294         Reported by Alain Guibert <alguibert+bts@free.fr>.
49295
49296 2008-04-15  Bruno Haible  <bruno@clisp.org>
49297
49298         * modules/mathl (configure.ac): Define module indicator.
49299
49300 2008-04-15  Bruno Haible  <bruno@clisp.org>
49301
49302         * lib/logl.c (logl): Remove unused variables.
49303
49304 2008-04-15  Bruno Haible  <bruno@clisp.org>
49305
49306         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
49307         fails.
49308
49309 2008-04-15  Bruno Haible  <bruno@clisp.org>
49310
49311         * lib/trim.c (trim2): Fix argument of isspace() macro.
49312
49313 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
49314
49315         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
49316         to 0.
49317         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
49318
49319 2008-04-14  Bruno Haible  <bruno@clisp.org>
49320
49321         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
49322         AC_LANG_PROGRAM argument.
49323         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
49324         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
49325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
49326         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49327         * m4/math_h.m4 (gl_MATH_H): Likewise.
49328         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
49329         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49330         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49331         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
49332         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
49333         * m4/regex.m4 (gl_REGEX): Likewise.
49334         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
49335         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
49336         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49337         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
49338         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49339         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49340         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49341         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49342
49343 2008-04-14  Jim Meyering  <meyering@redhat.com>
49344
49345         test-strtod: fix typos: s/abs/fabs/
49346         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
49347
49348 2008-04-13  Bruno Haible  <bruno@clisp.org>
49349
49350         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
49351         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
49352         module is also used and while not building the reloc-wrapper.
49353
49354 2008-04-13  Bruno Haible  <bruno@clisp.org>
49355
49356         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
49357
49358 2008-04-13  Bruno Haible  <bruno@clisp.org>
49359
49360         Fix AIX compilation failure introduced on 2008-04-02.
49361         * tests/test-frexp.c (exp): Undefine before redefining.
49362         * tests/test-frexpl.c (exp): Likewise.
49363
49364 2008-04-13  Bruno Haible  <bruno@clisp.org>
49365
49366         Work around a HP-UX stdio bug.
49367         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
49368         * tests/test-ftello.c (main): Likewise.
49369         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
49370         * doc/posix-functions/ftello.texi: Likewise.
49371
49372 2008-04-13  Bruno Haible  <bruno@clisp.org>
49373
49374         Make test-signbit pass on HP-UX/hppa.
49375         * tests/test-signbit.c (minus_zerol): New variable.
49376         (test_signbitl): Use it.
49377
49378 2008-04-13  Bruno Haible  <bruno@clisp.org>
49379
49380         Make truncl work on OSF/1 4.0.
49381         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
49382         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49383         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
49385         HAVE_DECL_TRUNCL.
49386         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
49387         HAVE_DECL_TRUNCL.
49388         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
49389
49390 2008-04-13  Bruno Haible  <bruno@clisp.org>
49391
49392         * lib/unictype.h: Remove trailing comma from enumeration definitions.
49393
49394 2008-04-13  Bruno Haible  <bruno@clisp.org>
49395
49396         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
49397         expression, so as to avoid HP-UX 11 cc compiler bug.
49398
49399 2008-04-13  Bruno Haible  <bruno@clisp.org>
49400
49401         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
49402
49403 2008-04-13  Bruno Haible  <bruno@clisp.org>
49404
49405         * lib/git-merge-changelog.c: Remove empty declaration outside of
49406         functions.
49407
49408 2008-04-13  Bruno Haible  <bruno@clisp.org>
49409
49410         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
49411
49412 2008-04-13  Bruno Haible  <bruno@clisp.org>
49413
49414         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
49415         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
49416         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
49417         also if it exists but lacks definitions of the SHUT_* macros.
49418         * modules/sys_socket (Description): Update.
49419         Reported by Elbert Pol <e.pol@chello.nl>.
49420
49421 2008-04-13  Bruno Haible  <bruno@clisp.org>
49422
49423         * lib/localcharset.c (OS2): Don't redefine if already defined.
49424         Reported by Elbert Pol <e.pol@chello.nl>.
49425
49426 2008-04-13  Bruno Haible  <bruno@clisp.org>
49427
49428         * lib/binary-io.h [__EMX__]: Include <io.h>.
49429         Reported by Elbert Pol <e.pol@chello.nl>.
49430
49431 2008-04-12  Bruno Haible  <bruno@clisp.org>
49432
49433         * lib/fpucw.h: Enable the definitions also for x86_64.
49434         Needed for NetBSD/x86_64.
49435         Reported by Thomas Klausner <tk@giga.or.at>.
49436
49437 2008-04-12  Bruno Haible  <bruno@clisp.org>
49438
49439         * tests/test-strtod.c: Include isnand.h.
49440         (main): Use isnand instead of isnan.
49441         Reported by Jim Meyering.
49442
49443 2008-04-12  Bruno Haible  <bruno@clisp.org>
49444
49445         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
49446         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49447
49448 2008-04-12  Jim Meyering  <meyering@redhat.com>
49449
49450         * m4/math_h.m4 (gl_MATH_H): Fix typos.
49451
49452 2008-04-12  Bruno Haible  <bruno@clisp.org>
49453
49454         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
49455         Reported by Elbert Pol <e.pol@chello.nl>.
49456
49457 2008-04-12  Eric Blake  <ebb9@byu.net>
49458
49459         Work around Solaris 10 math.h bug.
49460         * m4/math_h.m4 (gl_MATH_H): Check for bug.
49461         (gl_MATH_H_DEFAULTS): Set up default.
49462         * modules/math (Makefile.am): Replace new indicators.
49463         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
49464         * tests/test-math.c (main): Test this.
49465         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
49466         * doc/posix-headers/math.texi (math.h): Mention bug.
49467         Reported by Nelson H. F. Beebe and Jim Meyering.
49468
49469 2008-04-11  Bruno Haible  <bruno@clisp.org>
49470
49471         Adapt to future versions of Apple GCC.
49472         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
49473         Reported by Peter O'Gorman <peter@pogma.com>.
49474
49475 2008-04-11  Bruno Haible  <bruno@clisp.org>
49476
49477         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
49478
49479 2008-04-11  Bruno Haible  <bruno@clisp.org>
49480
49481         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
49482
49483         * modules/getaddrinfo-tests (Makefile.am): Define
49484         test_getaddrinfo_LDADD.
49485
49486 2008-04-11  Bruno Haible  <bruno@clisp.org>
49487
49488         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
49489         (init): Fix syntax error.
49490         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
49491         is declared.
49492
49493 2008-04-11  Bruno Haible  <bruno@clisp.org>
49494
49495         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
49496         * modules/glob (Depends-on): Add stdbool.
49497
49498 2008-04-11  Bruno Haible  <bruno@clisp.org>
49499
49500         * lib/trim.c: Include <string.h>.
49501
49502 2008-04-11  Eric Blake  <ebb9@byu.net>
49503
49504         Avoid compile failure on OS/2.
49505         * lib/regex_internal.h (internal_function): Disable optimization
49506         on OS/2 (__EMX__), where it caused compiler error.
49507         Reported by Elbert Pol.
49508
49509 2008-04-11  Bruno Haible  <bruno@clisp.org>
49510
49511         Flush the standard error stream before aborting. Needed on mingw.
49512         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
49513         * tests/test-array_list.c (ASSERT): Likewise.
49514         * tests/test-array_oset.c (ASSERT): Likewise.
49515         * tests/test-avltree_list.c (ASSERT): Likewise.
49516         * tests/test-avltree_oset.c (ASSERT): Likewise.
49517         * tests/test-avltreehash_list.c (ASSERT): Likewise.
49518         * tests/test-binary-io.c (ASSERT): Likewise.
49519         * tests/test-byteswap.c (ASSERT): Likewise.
49520         * tests/test-c-ctype.c (ASSERT): Likewise.
49521         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49522         * tests/test-c-strcasestr.c (ASSERT): Likewise.
49523         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
49524         * tests/test-c-strstr.c (ASSERT): Likewise.
49525         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
49526         * tests/test-canonicalize.c (ASSERT): Likewise.
49527         * tests/test-carray_list.c (ASSERT): Likewise.
49528         * tests/test-ceilf1.c (ASSERT): Likewise.
49529         * tests/test-ceilf2.c (ASSERT): Likewise.
49530         * tests/test-ceill.c (ASSERT): Likewise.
49531         * tests/test-count-one-bits.c (ASSERT): Likewise.
49532         * tests/test-fbufmode.c (ASSERT): Likewise.
49533         * tests/test-fflush2.c (ASSERT): Likewise.
49534         * tests/test-floorf1.c (ASSERT): Likewise.
49535         * tests/test-floorf2.c (ASSERT): Likewise.
49536         * tests/test-floorl.c (ASSERT): Likewise.
49537         * tests/test-fopen.c (ASSERT): Likewise.
49538         * tests/test-fpending.c (ASSERT): Likewise.
49539         * tests/test-fprintf-posix.c (ASSERT): Likewise.
49540         * tests/test-fpurge.c (ASSERT): Likewise.
49541         * tests/test-freadable.c (ASSERT): Likewise.
49542         * tests/test-freadahead.c (ASSERT): Likewise.
49543         * tests/test-freading.c (ASSERT): Likewise.
49544         * tests/test-freadptr.c (ASSERT): Likewise.
49545         * tests/test-freadptr2.c (ASSERT): Likewise.
49546         * tests/test-freadseek.c (ASSERT): Likewise.
49547         * tests/test-freopen.c (ASSERT): Likewise.
49548         * tests/test-frexp.c (ASSERT): Likewise.
49549         * tests/test-frexpl.c (ASSERT): Likewise.
49550         * tests/test-fseek.c (ASSERT): Likewise.
49551         * tests/test-fseeko.c (ASSERT): Likewise.
49552         * tests/test-fstrcmp.c (ASSERT): Likewise.
49553         * tests/test-ftell.c (ASSERT): Likewise.
49554         * tests/test-ftello.c (ASSERT): Likewise.
49555         * tests/test-func.c (ASSERT): Likewise.
49556         * tests/test-fwritable.c (ASSERT): Likewise.
49557         * tests/test-fwriting.c (ASSERT): Likewise.
49558         * tests/test-getdelim.c (ASSERT): Likewise.
49559         * tests/test-getline.c (ASSERT): Likewise.
49560         * tests/test-i-ring.c (ASSERT): Likewise.
49561         * tests/test-iconv-utf.c (ASSERT): Likewise.
49562         * tests/test-iconv.c (ASSERT): Likewise.
49563         * tests/test-isfinite.c (ASSERT): Likewise.
49564         * tests/test-isnand.c (ASSERT): Likewise.
49565         * tests/test-isnanf.c (ASSERT): Likewise.
49566         * tests/test-isnanl.h (ASSERT): Likewise.
49567         * tests/test-ldexpl.c (ASSERT): Likewise.
49568         * tests/test-linked_list.c (ASSERT): Likewise.
49569         * tests/test-linkedhash_list.c (ASSERT): Likewise.
49570         * tests/test-localename.c (ASSERT): Likewise.
49571         * tests/test-lseek.c (ASSERT): Likewise.
49572         * tests/test-mbscasecmp.c (ASSERT): Likewise.
49573         * tests/test-mbscasestr1.c (ASSERT): Likewise.
49574         * tests/test-mbscasestr2.c (ASSERT): Likewise.
49575         * tests/test-mbscasestr3.c (ASSERT): Likewise.
49576         * tests/test-mbscasestr4.c (ASSERT): Likewise.
49577         * tests/test-mbschr.c (ASSERT): Likewise.
49578         * tests/test-mbscspn.c (ASSERT): Likewise.
49579         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
49580         * tests/test-mbspbrk.c (ASSERT): Likewise.
49581         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
49582         * tests/test-mbsrchr.c (ASSERT): Likewise.
49583         * tests/test-mbsspn.c (ASSERT): Likewise.
49584         * tests/test-mbsstr1.c (ASSERT): Likewise.
49585         * tests/test-mbsstr2.c (ASSERT): Likewise.
49586         * tests/test-mbsstr3.c (ASSERT): Likewise.
49587         * tests/test-memchr2.c (ASSERT): Likewise.
49588         * tests/test-memmem.c (ASSERT): Likewise.
49589         * tests/test-open.c (ASSERT): Likewise.
49590         * tests/test-printf-frexp.c (ASSERT): Likewise.
49591         * tests/test-printf-frexpl.c (ASSERT): Likewise.
49592         * tests/test-printf-posix.c (ASSERT): Likewise.
49593         * tests/test-quotearg.c (ASSERT): Likewise.
49594         * tests/test-rbtree_list.c (ASSERT): Likewise.
49595         * tests/test-rbtree_oset.c (ASSERT): Likewise.
49596         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
49597         * tests/test-round1.c (ASSERT): Likewise.
49598         * tests/test-roundf1.c (ASSERT): Likewise.
49599         * tests/test-roundl.c (ASSERT): Likewise.
49600         * tests/test-signbit.c (ASSERT): Likewise.
49601         * tests/test-sleep.c (ASSERT): Likewise.
49602         * tests/test-snprintf-posix.c (ASSERT): Likewise.
49603         * tests/test-snprintf.c (ASSERT): Likewise.
49604         * tests/test-sprintf-posix.c (ASSERT): Likewise.
49605         * tests/test-stat-time.c (ASSERT): Likewise.
49606         * tests/test-strcasestr.c (ASSERT): Likewise.
49607         * tests/test-strerror.c (ASSERT): Likewise.
49608         * tests/test-striconv.c (ASSERT): Likewise.
49609         * tests/test-striconveh.c (ASSERT): Likewise.
49610         * tests/test-striconveha.c (ASSERT): Likewise.
49611         * tests/test-strsignal.c (ASSERT): Likewise.
49612         * tests/test-strstr.c (ASSERT): Likewise.
49613         * tests/test-strtod.c (ASSERT): Likewise.
49614         * tests/test-trunc1.c (ASSERT): Likewise.
49615         * tests/test-trunc2.c (ASSERT): Likewise.
49616         * tests/test-truncf1.c (ASSERT): Likewise.
49617         * tests/test-truncf2.c (ASSERT): Likewise.
49618         * tests/test-truncl.c (ASSERT): Likewise.
49619         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
49620         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
49621         * tests/test-vasnprintf.c (ASSERT): Likewise.
49622         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
49623         * tests/test-vasprintf.c (ASSERT): Likewise.
49624         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
49625         * tests/test-vprintf-posix.c (ASSERT): Likewise.
49626         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
49627         * tests/test-vsnprintf.c (ASSERT): Likewise.
49628         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
49629         * tests/test-wcwidth.c (ASSERT): Likewise.
49630         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
49631         * tests/test-xprintf-posix.c (ASSERT): Likewise.
49632         * tests/test-xvasprintf.c (ASSERT): Likewise.
49633         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
49634         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
49635         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
49636         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
49637         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
49638         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
49639         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
49640         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
49641         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
49642         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
49643         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
49644         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
49645         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
49646         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
49647         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
49648         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
49649         * tests/unictype/test-block_list.c (ASSERT): Likewise.
49650         * tests/unictype/test-block_of.c (ASSERT): Likewise.
49651         * tests/unictype/test-block_test.c (ASSERT): Likewise.
49652         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
49653         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
49654         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
49655         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
49656         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
49657         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
49658         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
49659         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
49660         * tests/unictype/test-combining.c (ASSERT): Likewise.
49661         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
49662         * tests/unictype/test-digit.c (ASSERT): Likewise.
49663         * tests/unictype/test-mirror.c (ASSERT): Likewise.
49664         * tests/unictype/test-numeric.c (ASSERT): Likewise.
49665         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
49666         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
49667         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
49668         * tests/unictype/test-scripts.c (ASSERT): Likewise.
49669         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
49670         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
49671         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
49672         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
49673         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
49674         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
49675         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
49676         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
49677         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
49678         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
49679         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
49680         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
49681         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
49682         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
49683         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
49684         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
49685         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
49686         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
49687         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
49688         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
49689         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
49690         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
49691         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
49692         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
49693         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
49694         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
49695         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
49696         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
49697         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
49698         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
49699         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
49700         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
49701         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
49702         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
49703         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
49704         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
49705         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
49706         Reported by Eric Blake.
49707
49708 2008-04-11  Bruno Haible  <bruno@clisp.org>
49709
49710         * lib/wchar.in.h: Tweak comment.
49711
49712 2008-04-11  Bruno Haible  <bruno@clisp.org>
49713
49714         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
49715         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
49716         gl_COMMON.
49717         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
49718
49719 2008-04-11  Bruno Haible  <bruno@clisp.org>
49720
49721         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
49722
49723 2008-04-11  Simon Josefsson  <simon@josefsson.org>
49724
49725         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
49726         of attempting to use non-existing /dev/*random.  Based on patch
49727         from Adam Strzelecki <ono@java.pl> in
49728         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
49729
49730 2008-04-08  Bruno Haible  <bruno@clisp.org>
49731
49732         Add tentative support for emx+gcc.
49733         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
49734         * lib/fpurge.c (fpurge): Likewise.
49735         * lib/freadable.c (freadable): Likewise.
49736         * lib/freadahead.c (freadahead): Likewise.
49737         * lib/freading.c (freading): Likewise.
49738         * lib/freadptr.c (freadptr): Likewise.
49739         * lib/freadseek.c (freadptrinc): Likewise.
49740         * lib/fseeko.c (rpl_fseeko): Likewise.
49741         * lib/fseterr.c (fseterr): Likewise.
49742         * lib/fwritable.c (fwritable): Likewise.
49743         * lib/fwriting.c (fwriting): Likewise.
49744         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
49745
49746 2008-04-09  Eric Blake  <ebb9@byu.net>
49747
49748         Avoid some autoconf warnings.
49749         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
49750         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
49751         * m4/afs.m4 (gl_AFS): Likewise.
49752         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
49753         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
49754         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49755         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
49756         (gl_INTEGER_TYPE_SUFFIX): Likewise.
49757         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
49758         (AC_CHECK_DECLS_ONCE): Likewise.
49759         Rename file...
49760         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
49761         gnulib-tool requires autoconf 2.59 or better.
49762         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
49763
49764 2008-04-08  Eric Blake  <ebb9@byu.net>
49765
49766         Use 'git describe --match' if present (added in git 1.5.5).
49767         * build-aux/git-version-gen: Limit result to tags that match 'v*'
49768         if possible.
49769
49770 2008-04-08  Bruno Haible  <bruno@clisp.org>
49771
49772         Add tentative support for OpenServer.
49773         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
49774         _ptr, _cnt.
49775         * lib/fpurge.c (fpurge): Likewise.
49776         * lib/freadable.c (freadable): Likewise.
49777         * lib/freadahead.c (freadahead): Likewise.
49778         * lib/freading.c (freading): Likewise.
49779         * lib/freadptr.c (freadptr): Likewise.
49780         * lib/freadseek.c (freadptrinc): Likewise.
49781         * lib/fseeko.c (rpl_fseeko): Likewise.
49782         * lib/fseterr.c (fseterr): Likewise.
49783         * lib/fwritable.c (fwritable): Likewise.
49784         * lib/fwriting.c (fwriting): Likewise.
49785         Reported by Roger Cornelius <rac@tenzing.org> and
49786         Brian K. White <brian@aljex.com>.
49787
49788 2008-04-06  Jim Meyering  <meyering@redhat.com>
49789
49790         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
49791
49792 2008-04-06  Bruno Haible  <bruno@clisp.org>
49793
49794         Avoid possible error with non-ASCII bytes in UTF-8 locales.
49795         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
49796         * tests/test-printf-posix.sh: Likewise.
49797         * tests/test-vfprintf-posix.sh: Likewise.
49798         * tests/test-vprintf-posix.sh: Likewise.
49799         * tests/test-xprintf-posix.sh: Likewise.
49800
49801 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49802
49803         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
49804         hide error from 'ls', needed on OS/2.
49805         Report by Elbert Pol <elbert.pol@gmail.com>.
49806
49807 2008-04-04  Eric Blake  <ebb9@byu.net>
49808
49809         Make test-fseeko.c failures meaningful.
49810         * tests/test-fseeko.c: Print line number on failure.
49811         * tests/test-fseek.c: Likewise.
49812         Reported by Nelson H. F. Beebe.
49813
49814         Improve strtod bug detection check.
49815         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
49816         required for Solaris 10.
49817         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
49818
49819 2008-04-04  Bruno Haible  <bruno@clisp.org>
49820
49821         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
49822         by m4/setenv.m4.
49823
49824 2008-04-03  Eric Blake  <ebb9@byu.net>
49825
49826         Ensure sane .version contents.
49827         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
49828         version string.
49829         * build-aux/git-version-gen: Improve documentation.
49830
49831         Make GNU make output nicer.
49832         * top/GNUmakefile [!_have-Makefile]: Add dependency on
49833         MAKECMDGOALS to enforce message for all command line targets.  Set
49834         srcdir for use in maint.mk.
49835
49836         Another maintainer tweak.
49837         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
49838         a target that regenerates version.
49839
49840 2008-04-03  Jim Meyering  <meyering@redhat.com>
49841
49842         vc-list-files: don't cause coreutils "make po-check" failure
49843         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
49844
49845 2008-04-03  Eric Blake  <ebb9@byu.net>
49846
49847         Allow VPATH usage of vc-list-files.
49848         * build-aux/vc-list-files (scriptversion): Add timestamp.
49849         (options): Add --help, --version, -C.
49850         (CVS): Support installed cvsu.
49851
49852 2008-04-02  Bruno Haible  <bruno@clisp.org>
49853
49854         Avoid some "statement with no effect" warnings from gcc.
49855         * tests/test-wctype.c (main): Explicitly ignore unused values.
49856         Reported by Jim Meyering.
49857
49858 2008-04-02  Jim Meyering  <meyering@redhat.com>
49859
49860         Avoid some warnings from "gcc -Wshadow".
49861         * tests/test-frexp.c (exp): Define to a different identifier.
49862         * tests/test-frexpl.c (exp): Likewise.
49863
49864 2008-04-03  Jim Meyering  <meyering@redhat.com>
49865
49866         bootstrap: remove dangling *.[ch] symlinks from lib
49867         * build-aux/bootstrap [dangling symlink removal]: Move find's
49868         -depth option to precede all others, to avoid a warning.
49869         Remove *.[ch] files too, and from "$source_base" (usually lib/).
49870
49871 2008-04-02  Bruno Haible  <bruno@clisp.org>
49872
49873         Avoid some warnings from "gcc -Wshadow".
49874         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
49875         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
49876         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
49877         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
49878         Reported by Jim Meyering.
49879
49880 2008-04-01  Bruno Haible  <bruno@clisp.org>
49881
49882         Fix test to work on IRIX 6.5 with cc.
49883         * tests/test-math.c (numeric_equal): New function.
49884         (main): Use it.
49885
49886 2008-04-01  Bruno Haible  <bruno@clisp.org>
49887
49888         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
49889
49890 2008-04-01  Bruno Haible  <bruno@clisp.org>
49891
49892         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
49893         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49894         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
49895         (Depends-on): Remove math.
49896
49897         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
49898         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49899         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
49900         (Depends-on): Remove math.
49901
49902         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
49903         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49904         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
49905         (Depends-on): Remove math.
49906         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
49907         (Depends-on): Remove math.
49908
49909         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
49910         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49911         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
49912         (Depends-on): Remove math.
49913         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
49914         (Depends-on): Remove math.
49915
49916         * tests/test-round1.c: Include nan.h.
49917         (main): Use NaNd instead of NAN.
49918         * modules/round-tests (Files): Add tests/nan.h.
49919
49920         * tests/test-trunc1.c: Include nan.h.
49921         (main): Use NaNd instead of NAN.
49922         * modules/trunc-tests (Files): Add tests/nan.h.
49923
49924         * tests/test-roundf1.c: Include nan.h.
49925         (main): Use NaNf instead of NAN.
49926         * modules/roundf-tests (Files): Add tests/nan.h.
49927
49928         * tests/test-truncf1.c: Include nan.h.
49929         (main): Use NaNf instead of NAN.
49930         * modules/truncf-tests (Files): Add tests/nan.h.
49931
49932         * tests/test-ceilf1.c: Include nan.h.
49933         (main): Use NaNf instead of NAN.
49934         * modules/ceilf-tests (Files): Add tests/nan.h.
49935
49936         * tests/test-floorf1.c: Include nan.h.
49937         (main): Use NaNf instead of NAN.
49938         * modules/floorf-tests (Files): Add tests/nan.h.
49939
49940         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
49941         (main): Use NaNf instead of NAN.
49942         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
49943
49944         * tests/test-isnand.c: Include nan.h instead of <math.h>.
49945         (main): Use NaNd instead of NAN.
49946         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
49947
49948         * tests/test-frexp.c: Include nan.h.
49949         (main): Use NaNd instead of NAN.
49950         * modules/frexp-tests (Files): Add tests/nan.h.
49951
49952         * lib/isnan.c: Don't include <math.h>.
49953         (FUNC): Don't use NAN macro.
49954         * modules/isnand-nolibm (Depends-on): Remove math.
49955         * modules/isnanf-nolibm (Depends-on): Remove math.
49956         * modules/isnanl (Depends-on): Remove math.
49957         * modules/isnanl-nolibm (Depends-on): Remove math.
49958
49959         * tests/nan.h: New file.
49960
49961 2008-04-01  Eric Blake  <ebb9@byu.net>
49962
49963         Fix typos.
49964         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
49965         values to be the right type.
49966
49967         For now, cater to gnulib strtod inaccuracies.
49968         * tests/test-strtod.c (main): Allow 1-ulp error on expected
49969         fractional results.  While not as nice from a QoI perspective, it
49970         is a quicker patch than correctly implementing decimal to binary
49971         rounding.
49972
49973 2008-03-31  Eric Blake  <ebb9@byu.net>
49974
49975         Guarantee a definition of NAN.
49976         * lib/math.in.h (NAN): Define if missing.
49977         * tests/test-math.c (main): Test it.
49978         * doc/posix-headers/math.texi (math.h): Document this.
49979         * lib/isnan.c (rpl_isnand): Use it.
49980         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
49981         * tests/test-floorf1.c (NaN): Likewise.
49982         * tests/test-frexp.c (NaN): Likewise.
49983         * tests/test-isnand.c (NaN): Likewise.
49984         * tests/test-isnanf.c (NaN): Likewise.
49985         * tests/test-round1.c (NaN): Likewise.
49986         * tests/test-roundf1.c (NaN): Likewise.
49987         * tests/test-snprintf-posix.h (NaN): Likewise.
49988         * tests/test-sprintf-posix.h (NaN): Likewise.
49989         * tests/test-trunc1.c (NaN): Likewise.
49990         * tests/test-truncf1.c (NaN): Likewise.
49991         * tests/test-vasnprintf-posix.c (NaN): Likewise.
49992         * tests/test-vasprintf-posix.c (NaN): Likewise.
49993         * modules/isnand-nolibm (Depends-on): Add math.
49994         * modules/isnanf-nolibm (Depends-on): Likewise.
49995         * modules/isnanl (Depends-on): Likewise.
49996         * modules/isnanl-nolibm (Depends-on): Likewise.
49997         * modules/snprintf-posix-tests (Depends-on): Likewise.
49998         * modules/sprintf-posix-tests (Depends-on): Likewise.
49999         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50000         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50001         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50002         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50003
50004 2008-03-31  Bruno Haible  <bruno@clisp.org>
50005
50006         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50007         * doc/posix-functions/strtod.texi: Likewise.
50008
50009 2008-03-31  Bruno Haible  <bruno@clisp.org>
50010
50011         * tests/test-strtod.c (main): Don't use C99 syntax.
50012
50013 2008-03-31  Bruno Haible  <bruno@clisp.org>
50014
50015         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50016         Reported by Eric Blake.
50017
50018 2008-03-31  Jim Meyering  <meyering@redhat.com>
50019
50020         Don't compare actual signbit return values.
50021         * tests/test-strtod.c (main): Rather, compare only their
50022         zero/non-zero nature.
50023
50024 2008-03-31  Eric Blake  <ebb9@byu.net>
50025
50026         More strtod documentation.
50027         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50028         failures as distinct bugs.
50029
50030 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50031
50032         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50033         Problem reported by Erik Benada in
50034         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50035
50036 2008-03-30  Bruno Haible  <bruno@clisp.org>
50037
50038         * tests/test-strtod.c: Add comments about which assertion fails on which
50039         platform.
50040         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50041
50042 2008-03-30  Eric Blake  <ebb9@byu.net>
50043
50044         Test signbit behavior on zeros.
50045         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50046         (test_signbitd, test_signbitl): Likewise.
50047
50048         More strtod touchups.
50049         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50050         sign of negative underflow, for now.  Use .5, not .1.
50051         * doc/posix-functions/strtod.texi (strtod): Mention these
50052         limitations.
50053         Reported by Jim Meyering.
50054
50055 2008-03-30  Bruno Haible  <bruno@clisp.org>
50056
50057         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50058         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50059
50060 2008-03-30  Bruno Haible  <bruno@clisp.org>
50061
50062         Avoid failure when attempting to return empty iconv results on some
50063         platforms.
50064         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50065         allocation, don't report ENOMEM when the resulting string is empty.
50066
50067 2008-03-30  Bruno Haible  <bruno@clisp.org>
50068
50069         Fix buffer overrun.
50070         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50071         Don't consider the width for tmp_length. Check count against tmp_length
50072         before doing the padding. Ensure enough allocation during padding.
50073
50074 2008-03-30  Eric Blake  <ebb9@byu.net>
50075
50076         strtod touchups.
50077         * lib/strtod.c (strtod): Avoid compiler warnings.
50078         Reported by Jim Meyering.
50079
50080 2008-03-30  Bruno Haible  <bruno@clisp.org>
50081
50082         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50083         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50084         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50085         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50086         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50087         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50088         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50089         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50090
50091         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50092         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50093         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50094         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50095         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50096         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50097         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50098         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50099
50100         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50101         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50102         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50103         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50104         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50105         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50106         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50107         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50108
50109         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50110         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50111
50112         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50113         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50114
50115         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50116         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50117
50118         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50119         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50120         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50121
50122         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50123         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50124         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
50125
50126         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
50127         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
50128         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
50129
50130         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
50131         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
50132         * modules/vasprintf (Depends-on): Add EOVERFLOW.
50133
50134         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
50135         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
50136         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
50137         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
50138         (Depends-on): Add EOVERFLOW.
50139         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
50140         (Depends-on): Add EOVERFLOW.
50141         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50142         (Depends-on): Add EOVERFLOW.
50143         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50144         (Depends-on): Add EOVERFLOW.
50145         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50146         (Depends-on): Add EOVERFLOW.
50147         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50148         (Depends-on): Add EOVERFLOW.
50149         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50150         (Depends-on): Add EOVERFLOW.
50151         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50152         (Depends-on): Add EOVERFLOW.
50153
50154         * lib/sprintf.c (EOVERFLOW): Remove fallback.
50155         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
50156         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
50157
50158         * lib/snprintf.c (EOVERFLOW): Remove fallback.
50159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
50160         * modules/snprintf (Depends-on): Add EOVERFLOW.
50161
50162         * lib/poll.c (EOVERFLOW): Remove fallback.
50163         * modules/poll (Depends-on): Add EOVERFLOW.
50164
50165         * lib/getugroups.c (EOVERFLOW): Remove fallback.
50166         * modules/getugroups (Depends-on): Add EOVERFLOW.
50167
50168         * lib/getdelim.c (EOVERFLOW): Remove fallback.
50169         * modules/getdelim (Depends-on): Add EOVERFLOW.
50170
50171         * lib/ftell.c (EOVERFLOW): Remove fallback.
50172         * modules/ftell (Depends-on): Add EOVERFLOW.
50173
50174         * lib/fprintf.c (EOVERFLOW): Remove fallback.
50175         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50176         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50177
50178         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50179
50180         * modules/EOVERFLOW-tests: New file.
50181         * tests/test-EOVERFLOW.c: New file.
50182
50183         * modules/EOVERFLOW: New file.
50184         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50185
50186 2008-03-30  Bruno Haible  <bruno@clisp.org>
50187
50188         Fix bug introduced on 2007-06-10.
50189         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50190         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50191
50192 2008-03-30  Bruno Haible  <bruno@clisp.org>
50193
50194         Improve freadseek's efficiency after ungetc.
50195         * lib/freadseek.c: Include freadahead.h.
50196         (freadptrinc): New function, extracted from freadseek.
50197         (freadseek): Use it in a loop. Use freadahead to determine the number
50198         of loop iterations.
50199         * modules/freadseek (Depends-on): Add freadahead.
50200         (configure.ac): Require AC_C_INLINE.
50201
50202 2008-03-30  Bruno Haible  <bruno@clisp.org>
50203
50204         * lib/freadseek.c (freadseek): Don't ignore the return value of
50205         freadptr.
50206
50207 2008-03-29  Eric Blake  <ebb9@byu.net>
50208
50209         Add hex float support.
50210         * modules/strtod (Depends-on): Add c-ctype.
50211         (Link): Mention POW_LIB.
50212         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
50213         whitespace between 'e' and exponent.
50214         * tests/test-strtod.c (main): Enable hex float tests.
50215         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
50216         now provides.
50217
50218         Document various strtod bugs, with some fixes.
50219         * doc/posix-functions/strtod.texi (strtod): Document bugs with
50220         "-0x", "inf", "nan", and hex constants.
50221         * doc/posix-functions/atof.texi (atof): Likewise.
50222         * modules/stdlib (Makefile.am): Support strtod.
50223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
50224         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
50225         detect additional strtod bugs.
50226         * lib/stdlib.in.h (rpl_strtod): Add declarations.
50227         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
50228         bool where appropriate.  Parse 'inf' and 'nan'.
50229         * tests/test-strtod.c: New file.
50230         * modules/strtod (Depends-on): Add stdbool, stdlib.
50231         (configure.ac): Turn on module indicator.
50232         * modules/strtod-tests: New module.
50233
50234 2008-03-29  Eric Blake  <ebb9@byu.net>
50235
50236         Fix ftell on mingw.
50237         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
50238         * modules/ftell-tests (Depends-on): Add binary-io.
50239         * modules/ftello-tests (Depends-on): Likewise.
50240         * tests/test-ftell.c (main): Enhance test to cover behavior after
50241         ungetc.  Enforce binary mode.
50242         * tests/test-ftello.c (main): Likewise.
50243
50244         Pass test-freadseek on cygwin.
50245         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
50246         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
50247         ungetc buffer.
50248
50249         * tests/test-fflush2.c (main): Fix typo.
50250
50251 2008-03-29  Bruno Haible  <bruno@clisp.org>
50252
50253         * tests/test-fflush2.c (main): Temporarily disable the contents of
50254         this test.
50255         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
50256         Reported by Eric Blake.
50257
50258 2008-03-28  Simon Josefsson  <simon@josefsson.org>
50259
50260         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
50261         (GC_SHA224_DIGEST_SIZE): Add.
50262
50263         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
50264         (gc_hash_digest_length): Likewise.
50265         (gc_hash_buffer): Likewise.
50266
50267 2008-03-25  Bruno Haible  <bruno@clisp.org>
50268
50269         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
50270         detail which gettext release to use.
50271         Reported by Simon Josefsson.
50272
50273 2008-03-26  Jim Meyering  <meyering@redhat.com>
50274
50275         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
50276         * modules/gnumakefile (clean-GNUmakefile): Also, use
50277         test ... && ... || : syntax rather than if-then ... fi.
50278
50279         gnumakefile: Don't double-quote-expand $(VPATH) value.
50280         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
50281
50282 2008-03-24  Eric Blake  <ebb9@byu.net>
50283
50284         Alter GNUmakefile to install into top directory.
50285         * modules/maintainer-makefile: Split, and add dependency...
50286         * modules/gnumakefile: to this new module.
50287         * build-aux/GNUmakefile: Move...
50288         * top/GNUmakefile: ...here.
50289         * build-aux/maint.mk: Move...
50290         * top/maint.mk: ...here.
50291         * MODULES.html.sh (Support for maintaining...): Document new
50292         module.
50293
50294 2008-03-23  Bruno Haible  <bruno@clisp.org>
50295
50296         * gnulib-tool: New options --vc-files, --no-vc-files.
50297         (func_usage): Document them.
50298         (vc_files): New variable.
50299         (func_import): Consider vc_files.
50300         (func_create_testdir): Set vc_files to empty.
50301         Suggested by Jim Meyering and Karl Berry.
50302
50303 2008-03-23  Bruno Haible  <bruno@clisp.org>
50304
50305         Fix regex compilation error on HP-UX 11.
50306         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
50307         * modules/regex (Files): Add m4/mbstate_t.m4.
50308         Reported by Ton Voon <ton.voon@altinity.com>.
50309
50310 2008-03-23  Bruno Haible  <bruno@clisp.org>
50311
50312         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
50313
50314 2008-03-23  Eric Blake  <ebb9@byu.net>
50315             Bruno Haible  <bruno@clisp.org>
50316
50317         Install files from top/ in the destination directory.
50318         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50319         augmentation also for the files from top/.
50320         (func_import, func_create_testdir): Rewrite file names:
50321         top/filename -> filename.
50322
50323 2008-03-23  Bruno Haible  <bruno@clisp.org>
50324
50325         Tweak "gnulib --version" output.
50326         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
50327
50328 2008-03-23  Bruno Haible  <bruno@clisp.org>
50329
50330         Tweak "gnulib --version" output.
50331         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
50332         rather than contents of ChangeLog, when possible.
50333
50334 2008-03-21  Eric Blake  <ebb9@byu.net>
50335
50336         More --version tweaks.
50337         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
50338         date of last ChangeLog entry.
50339
50340 2008-03-21  Jim Meyering  <meyering@redhat.com>
50341
50342         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
50343
50344 2008-03-20  Eric Blake  <ebb9@byu.net>
50345
50346         VPATH fix.
50347         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
50348
50349 2008-03-20  Simon Josefsson  <simon@josefsson.org>
50350
50351         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
50352         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
50353
50354 2008-03-20  Eric Blake  <ebb9@byu.net>
50355
50356         Sync GNUmakefile with coreutils.
50357         * build-aux/GNUmakefile (have-Makefile): Rename...
50358         (_have-Makefile): ...to this, for namespace consideration.
50359         (GNUmakefile.cfg): Include, if present.
50360         (_autoreconf): Define a default.
50361         (_is-dist-target): New rule for rebuilds to pick up intra-release
50362         version.
50363         (maint-cfg.mk): Rename...
50364         (cfg.mk): ...to this.
50365
50366 2008-03-18  Jim Meyering  <meyering@redhat.com>
50367
50368         New script and module: mktempd
50369         * MODULES.html.sh (maint+release support): Add mktempd.
50370         * build-aux/mktempd: New file.
50371         * modules/mktempd: New file.
50372
50373 2008-03-15  Jim Meyering  <meyering@redhat.com>
50374
50375         Undo last change.
50376         * lib/sha1.c, lib/md5.c: 63 != ~63.
50377         Reported by Andreas Schwab.
50378
50379         sha1.c, md5.c: Hoist a redundant expression.
50380         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
50381         "ctx->buflen" only once, before calling *_process_block.
50382         * lib/md5.c (md5_process_bytes): Likewise.
50383
50384 2008-03-14  Eric Blake  <ebb9@byu.net>
50385
50386         Bump copyright year in files generated by gnulib-tool.
50387         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
50388         gnulib-tool, rather than hard-coding it.
50389
50390         Fix 'gnulib-tool --version' output to work with git.
50391         * gnulib-tool (func_gnulib_dir): New function, extracted from...
50392         (startup): ...here.
50393         (func_version): Use it to invoke git-version-gen, rather than
50394         relying on CVS keyword expansion.  Modernize wording.
50395         (cvsdatestamp, last_checkin_date, version): Kill unused
50396         variables.
50397
50398 2008-03-12  Jim Meyering  <meyering@redhat.com>
50399
50400         Recognize optional cast of the argument to free.
50401         * build-aux/useless-if-before-free: Update regexps.
50402
50403         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
50404
50405 2008-03-11  Bruno Haible  <bruno@clisp.org>
50406
50407         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
50408         by a single package.
50409         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
50410         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
50411         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
50412         Reported by Sam Steingold <sds@gnu.org>.
50413
50414 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50415
50416         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
50417         repositories.
50418
50419 2008-03-11  Bruno Haible  <bruno@clisp.org>
50420
50421         Avoid conflicts between local macro definitions.
50422         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50423         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
50424
50425 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
50426             Bruno Haible  <bruno@clisp.org>
50427
50428         Make va_copy work with some version of xlc on AIX 5.1.
50429         * lib/stdarg.in.h: New file.
50430         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
50431         On AIX, use a <stdarg.h> file substitute.
50432         * modules/stdarg (Files): Add lib/stdarg.in.h.
50433         (Depends-on): Add include_next.
50434         (Makefile.am): Build a stdarg.h substitute if requested.
50435         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
50436
50437 2008-03-10  Bruno Haible  <bruno@clisp.org>
50438
50439         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
50440         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50441         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50442
50443 2008-03-10  Bruno Haible  <bruno@clisp.org>
50444
50445         * modules/stdlib (Depends-on): Add include_next, remove
50446         absolute-header.
50447
50448 2008-03-09  Bruno Haible  <bruno@clisp.org>
50449
50450         * lib/freadahead.h (freadahead): Document more precisely.
50451         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
50452         the sum of both buffer sizes.
50453         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
50454         * NEWS: Document the change.
50455
50456 2008-03-09  Bruno Haible  <bruno@clisp.org>
50457
50458         Extend freadptr to return also the buffer size.
50459         * lib/freadptr.h (freadptr): Add sizep argument.
50460         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
50461         (freadptr): Add sizep argument. Determine buffer size like freadahead
50462         does.
50463         * tests/test-freadptr.c: Don't include freadahead.h.
50464         (main): Adapt for new calling convention of freadptr.
50465         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
50466         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
50467         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
50468         tests/test-freadptr2.sh.
50469         (Depends): Remove freadahead.
50470         (TESTS): Add test-freadptr2.sh.
50471         (check_PROGRAMS): Add test-freadptr2.
50472
50473 2008-03-09  Bruno Haible  <bruno@clisp.org>
50474
50475         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
50476         Report and solution by Simon Josefsson.
50477
50478 2008-03-06  Bruno Haible  <bruno@clisp.org>
50479
50480         Make fflush after ungetc work on BSD platforms.
50481         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
50482         * tests/test-fflush2.c: New file.
50483         * tests/test-fflush2.sh: New file.
50484         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
50485         tests/test-fflush2.c.
50486         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
50487         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
50488
50489 2008-03-06  Eric Blake  <ebb9@byu.net>
50490
50491         Likewise for ftello.
50492         * modules/ftello (Dependencies): Add extensions.
50493         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
50494
50495 2008-03-06  Bruno Haible  <bruno@clisp.org>
50496
50497         * modules/fseeko (Dependencies): Add extensions.
50498         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
50499         Needed on glibc systems.
50500
50501 2008-03-06  Bruno Haible  <bruno@clisp.org>
50502
50503         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
50504         email address.
50505         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50506
50507 2008-03-06  Bruno Haible  <bruno@clisp.org>
50508
50509         * users.txt: Add libgnupdf.
50510
50511 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50512
50513         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
50514         (Header File Substitutes, Function Substitutes,
50515         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
50516         (Build robot for gnulib): Fix typo.
50517
50518 2008-03-06  Bruno Haible  <bruno@clisp.org>
50519
50520         * doc/gnulib-tool.texi (VCS Issues): Small updates.
50521         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50522
50523 2008-03-06  Bruno Haible  <bruno@clisp.org>
50524
50525         * doc/func.texi: New file, extracted from doc/gnulib.texi.
50526         * doc/gnulib.texi: Include it.
50527
50528 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50529
50530         * modules/func (License): Change license to unlimited; there was
50531         no LGPL parts in the module anyway.
50532
50533 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50534
50535         * modules/__func__: Renamed to modules/func.
50536         * modules/__func__-tests: Renamed to modules/func-tests.
50537         * tests/test-__func__.c: Renamed to tests/test-func.c.
50538         * m4/__func__.m4: Renamed to m4/func.m4.
50539         * doc/gnulib.texi (__func__): Section renamed to func.
50540         Suggested by Eric Blake <ebb9@byu.net>.
50541
50542 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50543
50544         * doc/gnulib.texi (__func__): Use C99 terminology when talking
50545         about __func__.  Make example self-contained.  Suggested by Eric
50546         Blake <ebb9@byu.net>.
50547
50548         * tests/test-__func__.c (main): Avoid extraneous () around __func.
50549         Suggested by Eric Blake <ebb9@byu.net>.
50550
50551 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50552
50553         * modules/__func__: New file.
50554         * modules/__func__-tests: New file.
50555         * tests/test-__func__.c: New file.
50556         * m4/__func__.m4: New file.
50557         * doc/gnulib.texi (__func__): Document __func__ module.
50558
50559 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50560
50561         * modules/byteswap (License): Re-license as LGPLv2+.
50562
50563 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50564
50565         * doc/Makefile: Add pdf target.
50566
50567 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50568
50569         * modules/inline (License): Use 'unlimited', since there are only
50570         *.m4 files in this module.
50571
50572 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50573             Bruno Haible  <bruno@clisp.org>
50574
50575         Add support for HP C 7.1 on OpenVMS 8.3.
50576         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
50577
50578 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50579
50580         Update VMS specifics.
50581         * lib/getopt.c [VMS]: Remove include of unixlib.h.
50582
50583 2008-03-02  Jim Meyering  <meyering@redhat.com>
50584
50585         Remove the last dependency on the "free" module.
50586         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
50587         Reported by Bob Proulx.
50588
50589         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
50590
50591         Remove useless "if" tests before free.  Deprecate "free" module.
50592         * doc/posix-functions/free.texi: Mention that this
50593         module is no longer useful.
50594         * modules/free (Notice): Say this module is obsolete.
50595         * modules/readutmp (Depends-on): Remove free.
50596         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
50597         * lib/putenv.c (putenv): Likewise.
50598         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
50599         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
50600         * tests/test-c-strcasestr.c (main): Likewise.
50601         * tests/test-c-strstr.c (main): Likewise.
50602         * tests/test-mbscasestr1.c (main): Likewise.
50603         * tests/test-mbscasestr2.c (main): Likewise.
50604         * tests/test-mbsstr1.c (main): Likewise.
50605         * tests/test-mbsstr2.c (main): Likewise.
50606         * tests/test-memmem.c (main): Likewise.
50607         * tests/test-strcasestr.c (main): Likewise.
50608         * tests/test-striconv.c (main): Likewise.
50609         * tests/test-striconveh.c (main): Likewise.
50610         * tests/test-striconveha.c (main): Likewise.
50611         * tests/test-strstr.c (main): Likewise.
50612
50613         * build-aux/git-version-gen: Adjust a comment and the Usage string.
50614
50615         bootstrap: sync from coreutils again
50616         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
50617
50618 2008-03-01  Jim Meyering  <meyering@redhat.com>
50619
50620         bootstrap: sync from coreutils
50621         * build-aux/bootstrap (update_po_files): Copy a .po file into place
50622         also when the target doesn't exist.
50623
50624 2008-03-01  Eric Blake  <ebb9@byu.net>
50625
50626         Fix bugs in last patch.
50627         * lib/memchr2.c (memchr2): Fix typo.
50628         * tests/test-memchr2.c: Test previous bug, and don't use GNU
50629         extension.
50630         Reported by Bruce Korb.
50631
50632         New module 'memchr2'.
50633         * modules/memchr2: New file.
50634         * modules/memchr2-tests: Likewise.
50635         * lib/memchr2.h: Likewise.
50636         * lib/memchr2.c: Likewise, based on memchr.c.
50637         * tests/test-memchr2.c: New test.
50638         * MODULES.html.sh (String handling): Add memchr2.
50639
50640 2008-02-29  Bruno Haible  <bruno@clisp.org>
50641
50642         * modules/freadseek-tests: New file.
50643         * tests/test-freadseek.sh: New file.
50644         * tests/test-freadseek.c: New file.
50645
50646         New module 'freadseek'.
50647         * modules/freadseek: New file.
50648         * lib/freadseek.h: New file.
50649         * lib/freadseek.c: New file.
50650         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
50651
50652 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50653
50654         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
50655         wydawca.
50656
50657         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
50658         program_invocation_name and program_invocation_short_name are
50659         present.
50660
50661 2008-02-28  Bruno Haible  <bruno@clisp.org>
50662
50663         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
50664         * tests/test-freadptr.sh: Also test non-seekable stdin.
50665
50666 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
50667
50668         * build-aux/bootstrap (source_base, m4_base)
50669         (doc_base, tests_base): New variables.
50670         (gnulib_tool_options): Do not hardcode base directories, use
50671         the above variables instead.
50672
50673 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
50674
50675         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
50676
50677 2008-02-28  Bruno Haible  <bruno@clisp.org>
50678
50679         * modules/freadptr-tests: New file.
50680         * tests/test-freadptr.sh: New file.
50681         * tests/test-freadptr.c: New file.
50682
50683         New module 'freadptr'.
50684         * modules/freadptr: New file.
50685         * lib/freadptr.h: New file.
50686         * lib/freadptr.c: New file.
50687         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
50688
50689 2008-02-26  Karl Berry  <karl@freefriends.org>
50690
50691         Sync from Libtool:
50692         * libltdl/argz.c (argz_add, argz_count): New functions.
50693         * libltdl/argz.in.h: Declare them.
50694         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
50695
50696 2008-02-22  Bruno Haible  <bruno@clisp.org>
50697
50698         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
50699         is a pointer type.  Needed for HP-UX 10.
50700         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
50701         * doc/posix-functions/gmtime_r.texi: Likewise.
50702         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50703
50704 2008-02-24  Bruno Haible  <bruno@clisp.org>
50705
50706         * modules/environ-tests: New file.
50707         * tests/test-environ.c: New file.
50708
50709         New module 'environ'.
50710         * modules/environ: New file.
50711         * lib/unistd.in.h (environ): New declaration.
50712         * m4/environ.m4: New file.
50713         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
50714         after use.
50715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
50716         HAVE_DECL_ENVIRON.
50717         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
50718         HAVE_DECL_ENVIRON.
50719         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
50720         wrong claim that 'environ' is missing on some systems.
50721         * modules/execute (Depends-on): Add environ.
50722         * lib/execute.c (environ): Remove fallback declaration.
50723         * modules/pipe (Depends-on): Add environ.
50724         * lib/pipe.c (environ): Remove fallback declaration.
50725         * modules/setenv (Depends-on): Add environ.
50726         * lib/setenv.c (environ): Remove fallback declaration.
50727         * modules/unsetenv (Depends-on): Add environ.
50728         * lib/unsetenv.c (environ): Remove fallback declaration.
50729         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
50730         m4/environ.m4.
50731         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
50732         (gl_PREREQ_UNSETENV): Likewise.
50733
50734 2008-02-24  Bruno Haible  <bruno@clisp.org>
50735
50736         * doc/posix-functions/environ.texi: Document the MacOS X problem.
50737
50738 2008-02-20  Bob Proulx  <bob@proulx.com>
50739
50740         Enable use of older two part flavor 'git describe'.
50741         * build-aux/git-version-gen: If using the older two part flavor of
50742         git version then recreate the third part now present in the
50743         newer three part flavor of git describe.
50744
50745 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
50746
50747         * lib/fts.c (fts_build): Typo correction to comment.
50748
50749 2008-02-17  Bruno Haible  <bruno@clisp.org>
50750
50751         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
50752         generating no-op conflicts.
50753
50754 2008-02-17  Bruno Haible  <bruno@clisp.org>
50755
50756         Speed up by 10%.
50757         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
50758         result_entries, rather than an index-based loop.
50759
50760 2008-02-17  Bruno Haible  <bruno@clisp.org>
50761
50762         Speed up by 25%.
50763         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
50764         'hashcode_cached'.
50765         (entry_create): New function.
50766         (entry_hashcode): Use the cached hashcode if possible.
50767         (read_changelog_file, try_split_merged_entry): Use entry_create.
50768
50769 2008-02-17  Bruno Haible  <bruno@clisp.org>
50770
50771         Speed up from O(n^2) to O(n) for long ChangeLog files.
50772         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
50773         (read_changelog_file): Change implementation of entries_reversed list
50774         to rbtreehash.
50775         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
50776
50777 2008-02-17  Bruno Haible  <bruno@clisp.org>
50778
50779         New option --split-merged-entry.
50780         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
50781         (find_paragraph_end, try_split_merged_entry): New functions.
50782         (long_options): Add option --split-merged-entry.
50783         (usage): Document option --split-merged-entry.
50784         (main): Implement option --split-merged-entry.
50785         Reported by Eric Blake.
50786
50787 2008-02-17  Bruno Haible  <bruno@clisp.org>
50788
50789         * lib/git-merge-changelog.c: Include c-strstr.h.
50790         (main): Support the "git pull --rebase" situation.
50791         * modules/git-merge-changelog (Depends-on): Add c-strstr.
50792         Reported by Eric Blake.
50793
50794 2008-02-16  Eric Blake  <ebb9@byu.net>
50795
50796         Avoid doubling \ in common case of "c-maybe" quoting style.
50797         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
50798         eliding outer quotes.
50799         * lib/quotearg.h: Document this.
50800         * tests/test-quotearg.c (result_strings, inputs, results_g)
50801         (flag_results, locale_results): Test it by adding a new string to
50802         each test group.
50803         (compare_strings): Test new string.
50804
50805 2008-02-13  Eric Blake  <ebb9@byu.net>
50806
50807         Avoid trigraph quoting in default output.
50808         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
50809         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
50810         unless explicitly requested.
50811         * tests/test-quotearg.c (flag_results, main): Add additional tests.
50812
50813 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
50814
50815         Don't rely on signed integer overflowing to negative value.
50816         * lib/getugroups.c (getugroups): Include <limits.h>.
50817         Instead, compare against INT_MAX, and increment only if the test passes.
50818
50819 2008-02-13  Jim Meyering  <meyering@redhat.com>
50820         and Eric Blake  <ebb9@byu.net>
50821
50822         Avoid shadowing warning and compile errors on Linux.
50823         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
50824         forwarding macros on Linux.
50825         (dcgettext): Define a stub, for Linux.
50826         (results_g, main): Avoid warnings.
50827
50828 2008-02-12  Eric Blake  <ebb9@byu.net>
50829
50830         Silence warning in last patch.
50831         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
50832
50833         Quotearg part 4: add tests, fix c-maybe colon quoting.
50834         * lib/quotearg.h: Improve documentation.
50835         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
50836         escapes when adding outer quotes.  When quoting trigraphs, use
50837         valid C notation.  When quoting NUL, omit extra characters if next
50838         character is not digit.  Alter prototype.
50839         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
50840         callers.
50841         * modules/quotearg-tests: New module.
50842         * tests/test-quotearg.c: New test.
50843
50844 2008-02-07  Eric Blake  <ebb9@byu.net>
50845
50846         Quotearg part 3: add flag to control outer quote elision.
50847         * lib/quotearg.h (c_maybe_quoting_style): New style.
50848         (enum quoting_flags): Better documentation of flags.
50849         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
50850         c-maybe style.
50851         (quotearg_buffer_restyled): Handle new flag to elide outer
50852         quotes.
50853
50854         Quotearg part 2: add flag that can control NUL elision.
50855         * lib/quotearg.h (set_quoting_flags): New prototype.
50856         * lib/quotearg.c (struct quoting_options): Add flag field.
50857         (set_quoting_flags): New function.
50858         (quotearg_buffer_restyled): Add flags parameter.
50859         (quotearg_alloc_mem): Set the flag if length cannot be returned.
50860         (quotearg_n_options): Set the flag, since length cannot be
50861         returned.
50862         (quoting_options_from_style): Default flags correctly.
50863
50864         Quotearg part 1: more wrappers, restore quotearg_char state.
50865         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
50866         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
50867         (quotearg_colon_mem): New wrappers.
50868         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
50869         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
50870         functions.
50871         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
50872         (quotearg_colon_mem): New functions.
50873
50874 2008-02-11  Bruno Haible  <bruno@clisp.org>
50875
50876         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
50877         library in the current directory: it does not work with parallel make.
50878         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50879
50880 2008-02-11  Bruno Haible  <bruno@clisp.org>
50881
50882         * .gitattributes: New file.
50883
50884 2008-02-11  Jim Meyering  <meyering@redhat.com>
50885
50886         useless-if-before-free: Fix reversed exit values.
50887         * build-aux/useless-if-before-free: Use correct values
50888         for EXIT_MATCH and EXIT_NO_MATCH.
50889
50890         * build-aux/useless-if-before-free: Close stdout carefully.
50891
50892 2008-02-10  Bruno Haible  <bruno@clisp.org>
50893
50894         New module 'git-merge-changelog'.
50895         * modules/git-merge-changelog: New file.
50896         * lib/git-merge-changelog.c: New file.
50897
50898 2008-02-10  Jim Meyering  <meyering@redhat.com>
50899
50900         useless-if-before-free: New option: --list (-l).
50901
50902         useless-if-before-free: Don't exit immediately upon open failure.
50903         * build-aux/useless-if-before-free: Exit 2 for errors.
50904         Upon failure to open a file, don't exit immediately.
50905         Rather, just warn and continue with any remaining files.
50906
50907 2008-02-10  Bruno Haible  <bruno@clisp.org>
50908
50909         New abstract list operation 'node_set_value'.
50910         * lib/gl_list.h (gl_list_node_set_value): New function.
50911         (struct gl_list_implementation): New field node_set_value.
50912         * lib/gl_list.c (gl_list_node_set_value): New function.
50913         * lib/gl_array_list.c (gl_array_node_set_value): New function.
50914         (gl_array_list_implementation): Update.
50915         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
50916         (gl_carray_list_implementation): Update.
50917         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
50918         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50919         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50920         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
50921         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50922         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50923         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50924         Update.
50925         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50926         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
50927         (gl_sublist_list_implementation): Update.
50928
50929 2008-02-10  Bruno Haible  <bruno@clisp.org>
50930
50931         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
50932         Needed when ELEMENT is #defined to 'some_type *'.
50933
50934 2008-02-10  Jim Meyering  <meyering@redhat.com>
50935
50936         New script and module: useless-if-before-free
50937         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
50938         * build-aux/useless-if-before-free: New file.
50939         * modules/useless-if-before-free: New file.
50940
50941         * build-aux/gitlog-to-changelog: Use committer date, not author date.
50942
50943         xstrtol_error: Fix typo.
50944         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
50945         s/exit_failure/exit_status/.
50946
50947 2008-02-09  Jim Meyering  <meyering@redhat.com>
50948
50949         New script and module: gitlog-to-changelog
50950         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
50951         * modules/gitlog-to-changelog: New file.
50952         * build-aux/gitlog-to-changelog: New file.
50953
50954 2008-02-08  Jim Meyering  <meyering@redhat.com>
50955
50956         Avoid two "parameter unused" warnings.
50957         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
50958         Mark "st" as used.
50959
50960         Use "git COMMAND", not "git-COMMAND".
50961         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
50962         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
50963         * build-aux/git-version-gen: Use "git status", not "git-status".
50964
50965 2008-02-07  Bruno Haible  <bruno@clisp.org>
50966
50967         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
50968         Avoids a crash on Windows Vista.
50969         Reported by Adam Strzelecki <ono@java.pl> via
50970         Simon Josefsson <simon@josefsson.org>.
50971
50972 2008-02-06  Bruno Haible  <bruno@clisp.org>
50973
50974         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
50975         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
50976         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
50977         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
50978         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50979         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50980         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
50981         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
50982         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50983         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50984         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50985         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50986         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50987         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50988         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50989         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
50990         left-adjust flag.
50991         * tests/test-snprintf-posix.h (test_function): Likewise.
50992         * tests/test-sprintf-posix.h (test_function): Likewise.
50993         * tests/test-vasprintf-posix.c (test_function): Likewise.
50994         * doc/posix-functions/fprintf.texi: Update.
50995         * doc/posix-functions/printf.texi: Update.
50996         * doc/posix-functions/snprintf.texi: Update.
50997         * doc/posix-functions/sprintf.texi: Update.
50998         * doc/posix-functions/vfprintf.texi: Update.
50999         * doc/posix-functions/vprintf.texi: Update.
51000         * doc/posix-functions/vsnprintf.texi: Update.
51001         * doc/posix-functions/vsprintf.texi: Update.
51002         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51003
51004 2008-02-06  Bruno Haible  <bruno@clisp.org>
51005
51006         Fix bug introduced on 2008-01-26.
51007         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51008
51009 2008-02-06  Bruno Haible  <bruno@clisp.org>
51010
51011         Fix bug introduced on 2007-06-10.
51012         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51013         !NEED_PRINTF_FLAG_ZERO.
51014
51015 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51016
51017         getloadavg: use libperfstat on AIX5
51018         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51019
51020 2008-02-03  Bruno Haible  <bruno@clisp.org>
51021
51022         * lib/diffseq.h: Add comments about required #includes.
51023         Reported by Michael Biggs <gnulib@doubleplum.net>.
51024
51025 2008-02-01  Bruno Haible  <bruno@clisp.org>
51026
51027         * users.txt: Add gnuit.
51028
51029 2008-01-31  Bruno Haible  <bruno@clisp.org>
51030
51031         * lib/md4.c (set_uint32): Mark as inline.
51032         * lib/md5.c (set_uint32): Likewise.
51033         * lib/sha1.c (set_uint32): Likewise.
51034         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51035         * m4/md5.m4 (gl_MD5): Likewise.
51036         * m4/sha1.m4 (gl_SHA1): Likewise.
51037
51038 2008-01-31  Jim Meyering  <meyering@redhat.com>
51039
51040         Use "sizeof VAR", rather than a literal "4".
51041         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51042         * lib/md4.c (md4_read_ctx): Likewise.
51043         * lib/sha1.c (sha1_read_ctx): Likewise.
51044
51045 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51046
51047         * tests/test-sha1.c: New file, based on test-md5.c.
51048
51049         * modules/crypto/sha1-tests: New file.
51050
51051 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51052
51053         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51054
51055 2008-01-31  Jim Meyering  <meyering@redhat.com>
51056
51057         Prefer "sizeof v" over the equivalent "4".
51058         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51059         * lib/md5.c (set_uint32): Likewise.
51060         * lib/sha1.c (set_uint32): Likewise.
51061
51062 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51063
51064         * lib/sha1.c (set_uint32): Mark function as static.
51065
51066 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51067
51068         md2: clarify comments to say that alignment is not required.
51069         * lib/md2.h: Remove warning about alignment in comment.
51070         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51071         never been required.
51072
51073 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51074
51075         md4: adapt alignment constraint fix from sha1.
51076         * lib/md4.c (set_uint32): New function, from sha1.c
51077         (md4_read_ctx): Use it.
51078         (md4_finish_ctx): Doc fix.
51079         * lib/md4.h: Doc fix.
51080
51081 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51082
51083         md5: adapt alignment constraint fix from sha1.
51084         * lib/md5.c (set_uint32): New function, from sha1.c
51085         (md5_read_ctx): Use it.
51086         (md5_finish_ctx): Doc fix.
51087         * lib/md5.h: Doc fix.
51088
51089 2008-01-30  Peter Palfrader  <weasel@debian.org>
51090
51091         sha1: remove the result buffer alignment constraint
51092         * lib/sha1.c (set_uint32): New function.
51093         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51094         constraint.
51095         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51096         * lib/sha1.h: Likewise.
51097
51098 2008-01-30  Andreas Schwab  <schwab@suse.de>
51099             Bruno Haible  <bruno@clisp.org>
51100
51101         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51102         correct definition of LDBL_MIN_EXP.
51103
51104 2008-01-30  Karl Berry  <karl@gnu.org>
51105
51106         * config/srclist-update: try to preserve x bit on updates.
51107         * config/srclistvars.sh: update for karl.
51108
51109 2008-01-29  Jim Meyering  <meyering@redhat.com>
51110
51111         vasnprintf.c: Avoid warning about unused label
51112         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51113         "overflow" label definition and associated code with the
51114         same cpp condition that guards the sole use of that label.
51115
51116 2008-01-26  Bruno Haible  <bruno@clisp.org>
51117
51118         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51119         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51120         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51121         * lib/isnanl-nolibm.h (isnanl): Likewise.
51122         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51123
51124 2008-01-26  Bruno Haible  <bruno@clisp.org>
51125
51126         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
51127         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
51128
51129 2008-01-26  Bruno Haible  <bruno@clisp.org>
51130
51131         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
51132         GCC >= 4.0 built-in.
51133         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
51134
51135 2008-01-26  Bruno Haible  <bruno@clisp.org>
51136
51137         Rename isnan, applicable to 'double' only, to isnand.
51138         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
51139         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
51140         (configure.ac): Update.
51141         (Include): Replace "isnan.h" with "isnand.h".
51142         * m4/isnand.m4: Renamed from m4/isnan.m4.
51143         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
51144         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
51145         instead of isnan.c.
51146         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
51147         instead of HAVE_ISNAN_IN_LIBC.
51148         (isnand): Renamed from isnan.
51149         * lib/isnand.c: New file.
51150         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
51151         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
51152         (Makefile.am): Update.
51153         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
51154         Include isnand.h instead of isnan.h.
51155         (main): Test isnand instead of isnan.
51156         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
51157         isnan-nolibm.
51158         * modules/frexp (Depends-on): Likewise.
51159         * modules/frexp-tests (Depends-on): Likewise.
51160         * modules/frexp-nolibm (Depends-on): Likewise.
51161         * modules/frexp-nolibm-tests (Depends-on): Likewise.
51162         * modules/isfinite (Depends-on): Likewise.
51163         * modules/round-tests (Depends-on): Likewise.
51164         * modules/signbit (Depends-on): Likewise.
51165         * modules/signbit-tests (Depends-on): Likewise.
51166         * modules/snprintf-posix (Depends-on): Likewise.
51167         * modules/sprintf-posix (Depends-on): Likewise.
51168         * modules/trunc-tests (Depends-on): Likewise.
51169         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51170         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51171         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51172         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51173         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51174         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51175         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51176         * modules/vasnprintf-posix (Depends-on): Likewise.
51177         * modules/vasprintf-posix (Depends-on): Likewise.
51178         * modules/vfprintf-posix (Depends-on): Likewise.
51179         * modules/vsnprintf-posix (Depends-on): Likewise.
51180         * modules/vsprintf-posix (Depends-on): Likewise.
51181         * lib/frexp.c: Include isnand.h instead of isnan.h.
51182         (ISNAN): Set to isnand instead of isnan.
51183         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51184         (gl_isfinited): Use isnand instead of isnan.
51185         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51186         (gl_signbitd): Use isnand instead of isnan.
51187         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51188         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51189         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51190         (main): Use isnand instead of isnan.
51191         * tests/test-round1.c: Include isnand.h.
51192         (main): Use isnand instead of isnan.
51193         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51194         (ISNAN): Set to isnand instead of isnan.
51195         * tests/test-trunc1.c: Include isnand.h.
51196         (main): Use isnand instead of isnan.
51197         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51198         (equal): Use isnand instead of isnan.
51199         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51200         isnand-nolibm.
51201         * NEWS: Mention the change.
51202
51203 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51204             Bruno Haible  <bruno@clisp.org>
51205
51206         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
51207         the GCC builtins for signbits are present and set
51208         REPLACE_SIGNBIT_USING_GCC if so.
51209         * lib/math.in.h (signbit): Define using GCC builtins if
51210         REPLACE_SIGNBIT_USING_GCC is set.
51211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
51212         REPLACE_SIGNBIT_USING_GCC.
51213         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
51214
51215 2008-01-25  Jim Meyering  <meyering@redhat.com>
51216
51217         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
51218         * lib/poll.c: Include <config.h>, not "config.h".
51219         * tests/test-getaddrinfo.c: Likewise.
51220
51221 2008-01-25  Simon Josefsson  <simon@josefsson.org>
51222
51223         * modules/sockets-tests: New file.
51224
51225 2008-01-24  Simon Josefsson  <simon@josefsson.org>
51226
51227         * modules/sockets: New module, can be used to call WSA_Startup and
51228         WSA_Cleanup when needed.
51229
51230         * lib/sockets.h, lib/sockets.c: New files.
51231
51232         * m4/sockets.m4: New file.
51233
51234         * tests/test-sockets.c: New file.
51235
51236 2008-01-19  Bruno Haible  <bruno@clisp.org>
51237
51238         * doc/posix-headers: Renamed from doc/headers.
51239         * doc/posix-functions: Renamed from doc/functions.
51240         * doc/gnulib.texi: Update.
51241
51242 2008-01-19  Bruno Haible  <bruno@clisp.org>
51243
51244         * doc/glibc-functions/strcasestr.texi: Include contents of
51245         doc/functions/strcasestr.texi, fixing the list of platforms.
51246         * doc/functions/strcasestr.texi: Remove file.
51247
51248 2008-01-19  Bruno Haible  <bruno@clisp.org>
51249
51250         * doc/glibc-functions/memmem.texi: Include contents of
51251         doc/functions/memmem.texi.
51252         * doc/functions/memmem.texi: Remove file.
51253
51254 2008-01-18  Bruno Haible  <bruno@clisp.org>
51255
51256         * doc/glibc-functions/*.texi: New files.
51257         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
51258         to use the new files.
51259
51260 2008-01-17  Bruno Haible  <bruno@clisp.org>
51261
51262         * tests/test-gethostname.c (main): Fix printf statement.
51263
51264 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51265
51266         * modules/gethostname-tests: New file.
51267
51268         * tests/test-gethostname.c: New file.
51269
51270 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51271
51272         * lib/gethostname.c: Include string.h unconditionally, strncpy is
51273         used by the UNAME case.  Reported by Bruno Haible
51274         <bruno@clisp.org>.
51275
51276 2008-01-17  Eric Blake  <ebb9@byu.net>
51277
51278         Convert c-strcasestr to be more efficient.
51279         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
51280         (Depends-on): Add c-strcase, remove malloca, strnlen.
51281         * tests/test-c-strcasestr.c (main): Enhance test.
51282         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
51283
51284 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51285
51286         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
51287         Use it in creating po/Makevars.
51288
51289 2008-01-15  Simon Josefsson  <simon@josefsson.org>
51290
51291         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
51292         Applications that requires it should initialize libgcrypt
51293         manually.
51294
51295 2008-01-16  Simon Josefsson  <simon@josefsson.org>
51296
51297         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
51298
51299 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
51300
51301         Fix problem with getdate on mingw32 reported by Simon Josefsson
51302         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
51303         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
51304         tzname", when deciding whether to declare tzname.
51305         * lib/strftime.c (tzname): Likewise.
51306
51307 2008-01-15  Bruno Haible  <bruno@clisp.org>
51308
51309         Work around a MacOS X 10.5 bug in frexpl().
51310         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
51311         * doc/functions/frexpl.texi: Document the bug.
51312         Reported by Elias Pipping <pipping@gentoo.org>.
51313
51314 2008-01-14  Eric Blake  <ebb9@byu.net>
51315
51316         Touch up previous patch.
51317         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
51318         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
51319
51320         Convert strcasestr module to use Two-Way algorithm.
51321         * modules/strcasestr-simple: New module, based on the old
51322         strcasestr, but with Two-Way rather than KMP.
51323         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
51324         * lib/string.in.h (rpl_strcasestr): Declare.
51325         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
51326         performance.
51327         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
51328         * modules/string (Makefile.am): Support strcasestr.
51329         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
51330         * modules/strcasestr-tests (Depends-on): Check for alarm.
51331         * tests/test-strcasestr.c: Augment test.
51332         * lib/str-two-way.h: Clean up stray macro.
51333         * NEWS: Document new module.
51334         * MODULES.html.sh (string handling): Likewise.
51335         * doc/functions/strcasestr.texi: New file.
51336         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
51337         here, since it is not a POSIX function.
51338
51339 2008-01-14  Colin Watson  <cjwatson@debian.org>
51340             Bruno Haible  <bruno@clisp.org>
51341
51342         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
51343         works fine; if not, set REPLACE_STRSIGNAL.
51344         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
51345         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51346         REPLACE_STRSIGNAL.
51347         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
51348         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
51349         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
51350
51351 2008-01-14  Bruno Haible  <bruno@clisp.org>
51352
51353         * modules/strsignal (Include): Change to <string.h>.
51354
51355 2008-01-14  Colin Watson  <cjwatson@debian.org>
51356
51357         * modules/argp (Notice): Add a notice recommending to change
51358         XGETTEXT_OPTIONS.
51359         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
51360
51361 2008-01-13  Colin Watson  <cjwatson@debian.org>
51362
51363         * modules/strsignal-tests: New file.
51364         * tests/test-strsignal.c: New file.
51365
51366         * lib/strsignal.c: New file, from glibc with modifications.
51367         * lib/siglist.h: New file, from glibc with modifications.
51368         * lib/string.in.h (strsignal): New declaration.
51369         * m4/strsignal.m4: New file.
51370         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51371         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
51372         * modules/strsignal: New file.
51373         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
51374         HAVE_DECL_STRSIGNAL.
51375
51376 2008-01-13  Bruno Haible  <bruno@clisp.org>
51377
51378         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
51379         locale encoding is not ASCII. Needed for OpenBSD 4.0.
51380         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51381         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51382
51383 2008-01-13  Bruno Haible  <bruno@clisp.org>
51384
51385         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
51386         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
51387         * lib/argp.h (__attribute__): Likewise.
51388         * lib/c-stack.c (__attribute__): Likewise.
51389         * lib/error.h (__attribute__): Likewise.
51390         * lib/fts.c (__attribute__): Likewise.
51391         * lib/openat.h (__attribute__): Likewise.
51392         * lib/stdio.in.h (__attribute__): Likewise.
51393         * lib/string.in.h (__attribute__): Likewise.
51394         * lib/utimens.c (__attribute__): Likewise.
51395         * lib/vasnprintf.h (__attribute__): Likewise.
51396         * lib/xalloc.h (__attribute__): Likewise.
51397         * lib/xprintf.h (__attribute__): Likewise.
51398         * lib/xstrtol.h (__attribute__): Likewise.
51399         * lib/xvasprintf.h (__attribute__): Likewise.
51400
51401 2008-01-12  Bruno Haible  <bruno@clisp.org>
51402
51403         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
51404         * doc/glibc-headers/a.out.texi: New file.
51405         * doc/glibc-headers/aliases.texi: New file.
51406         * doc/glibc-headers/alloca.texi: New file.
51407         * doc/glibc-headers/ar.texi: New file.
51408         * doc/glibc-headers/argp.texi: New file.
51409         * doc/glibc-headers/argz.texi: New file.
51410         * doc/glibc-headers/byteswap.texi: New file.
51411         * doc/glibc-headers/crypt.texi: New file.
51412         * doc/glibc-headers/endian.texi: New file.
51413         * doc/glibc-headers/envz.texi: New file.
51414         * doc/glibc-headers/err.texi: New file.
51415         * doc/glibc-headers/error.texi: New file.
51416         * doc/glibc-headers/execinfo.texi: New file.
51417         * doc/glibc-headers/fpu_control.texi: New file.
51418         * doc/glibc-headers/fstab.texi: New file.
51419         * doc/glibc-headers/fts.texi: New file.
51420         * doc/glibc-headers/getopt.texi: New file.
51421         * doc/glibc-headers/ieee754.texi: New file.
51422         * doc/glibc-headers/ifaddrs.texi: New file.
51423         * doc/glibc-headers/libintl.texi: New file.
51424         * doc/glibc-headers/mcheck.texi: New file.
51425         * doc/glibc-headers/mntent.texi: New file.
51426         * doc/glibc-headers/obstack.texi: New file.
51427         * doc/glibc-headers/paths.texi: New file.
51428         * doc/glibc-headers/printf.texi: New file.
51429         * doc/glibc-headers/pty.texi: New file.
51430         * doc/glibc-headers/resolv.texi: New file.
51431         * doc/glibc-headers/shadow.texi: New file.
51432         * doc/glibc-headers/sysexits.texi: New file.
51433         * doc/glibc-headers/ttyent.texi: New file.
51434
51435 2008-01-12  Jim Meyering  <meyering@redhat.com>
51436
51437         announce-gen: emit Gnulib's git-based version string.
51438         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
51439         New option --gnulib-version=V, where V is expected to be
51440         the output of running git describe in the gnulib directory.
51441         (get_tool_versions): Request feedback on xdelta.  I suspect it's
51442         not useful, and plan to stop publishing an xdelta file with each
51443         coreutils release.
51444
51445         * build-aux/announce-gen: Also check for lzma-compressed files.
51446
51447 2008-01-11  Bruno Haible  <bruno@clisp.org>
51448
51449         * tests/test-memmem.c (main): Increase maximum allowed time.
51450         * tests/test-strstr.c (main): Likewise.
51451
51452 2008-01-11  Bruno Haible  <bruno@clisp.org>
51453
51454         * doc/functions/memmem.texi: Add more precisions about platforms.
51455         * doc/functions/strstr.texi: Likewise.
51456
51457 2008-01-10  Eric Blake  <ebb9@byu.net>
51458
51459         * m4/strstr.m4: Delete cruft from copy-n-paste.
51460         Reported by Bruno Haible.
51461
51462 2008-01-10  Bruno Haible  <bruno@clisp.org>
51463
51464         Make c-strstr rely on strstr.
51465         * lib/c-strstr.c: Don't include str-kmp.h.
51466         (c_strstr): Define in terms of strstr.
51467         * modules/c-strstr (Files): Remove lib/str-kmp.h.
51468         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
51469
51470 2008-01-10  Bruno Haible  <bruno@clisp.org>
51471
51472         * doc/gnulib.texi (String Functions in C Locale): New section.
51473         * doc/c-ctype.texi: New file.
51474         * doc/c-strcase.texi: New file.
51475         * doc/c-strcaseeq.texi: New file.
51476         * doc/c-strcasestr.texi: New file.
51477         * doc/c-strstr.texi: New file.
51478         * doc/c-strtod.texi: New file.
51479         * doc/c-strtold.texi: New file.
51480
51481 2008-01-10  Eric Blake  <ebb9@byu.net>
51482
51483         * lib/relocatable.h: Fix a comment.
51484
51485 2008-01-10  Eric Blake  <ebb9@byu.net>
51486
51487         Share two-way algorithm.
51488         * lib/str-two-way.h: New file, merged from...
51489         * lib/memmem.c: ...here...
51490         * lib/strstr.c: ...and here.
51491         * modules/memmem (Files): Use it.
51492         * modules/strstr (Files): Likewise.
51493
51494         Avoid quadratic strstr implementations.
51495         * lib/strstr.c: New file.
51496         * m4/strstr.m4: Likewise.
51497         * modules/strstr: Likewise.
51498         * modules/strstr-tests: Likewise.
51499         * tests/test-strstr.c: Likewise.
51500         * lib/string.in.h (rpl_strstr): Declare.
51501         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
51502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
51503         * modules/string (Makefile.am): Likewise.
51504         * MODULES.html.sh (string handling): Mention new module.
51505         * doc/functions/strstr.texi (strstr): Document the bug.
51506
51507 2008-01-10  Bruno Haible  <bruno@clisp.org>
51508
51509         * lib/relocatable.h (relocate): State whether result is freshly
51510         allocated or not.
51511         * lib/relocatable.c (relocate): Return a freshly allocated string
51512         instead of a pointer to a privately held string.
51513         Reported by Sylvain Beucler <beuc@gnu.org>.
51514
51515 2008-01-10  Colin Watson  <cjwatson@debian.org>
51516
51517         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
51518         s/S_ISNLK/S_ISLNK/.
51519
51520 2008-01-09  Bruno Haible  <bruno@clisp.org>
51521
51522         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
51523         and other files.
51524         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
51525         if it's only a guess.
51526         * modules/memmem: Simplify by depending on memmem-simple.
51527
51528 2008-01-09  Bruno Haible  <bruno@clisp.org>
51529
51530         Work around OpenBSD 4.0 tdelete() bug.
51531         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
51532         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
51533         macros and don't redefine the enum values.
51534         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
51535         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
51536         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
51537
51538 2008-01-09  Bruno Haible  <bruno@clisp.org>
51539
51540         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
51541         (main): Don't perform the tests if setlocale did not install a UTF-8
51542         locale. Needed on OpenBSD 4.0.
51543         * modules/wcwidth-tests (Depends-on): Add localcharset.
51544
51545 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51546
51547         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
51548         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
51549         * NEWS: announce this.
51550         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
51551
51552 2008-01-09  Simon Josefsson  <simon@josefsson.org>
51553         and Eric Blake  <ebb9@byu.net>
51554
51555         Add memmem-simple module.
51556         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
51557         (gl_FUNC_MEMMEM): Separate performance from presence checks.
51558         * modules/memmem-simple: New file.
51559         * modules/memmem (Description): Tweak.
51560         * MODULES.html.sh (string handling): Mention new module.
51561         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
51562         addressed by memmem-simple.
51563         * NEWS: Document the difference.
51564
51565 2008-01-09  Eric Blake  <ebb9@byu.net>
51566
51567         Give gcc some memmem optimization hints.
51568         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
51569         (strcasestr): Declare as pure.
51570         * modules/memmem (Maintainer): Claim my implementation.
51571
51572 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51573
51574         Support AIX 6.1 and higher.
51575         * build-aux/config.libpath: Likewise.
51576         * build-aux/config.rpath: Likewise.
51577
51578 2008-01-08  Jim Meyering  <meyering@redhat.com>
51579             Bruno Haible  <bruno@clisp.org>
51580
51581         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
51582         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
51583         Reported by Peter Fales in
51584         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
51585
51586 2008-01-08  Bruno Haible  <bruno@clisp.org>
51587
51588         * modules/unictype/category-of (Depends-on): Add
51589         unictype/category-none.
51590         * modules/unictype/category-and-tests (Depends-on): Add
51591         unictype/category-{L,N,Lu,Nd}.
51592         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
51593         * modules/unictype/category-or-tests (Depends-on): Add
51594         unictype/category-{L,N}.
51595         * modules/unictype/category-name-tests (Depends-on): Add
51596         unictype/category-{Z,Nl}.
51597         Reported by Simon Josefsson.
51598
51599 2008-01-08  Bruno Haible  <bruno@clisp.org>
51600
51601         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
51602         convention better.
51603         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
51604         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
51605         Reported by Peter Miller <millerp@canb.auug.org.au>.
51606
51607 2008-01-08  Eric Blake  <ebb9@byu.net>
51608
51609         Rewrite memmem to guarantee linear complexity without malloc.
51610         * lib/memmem.c (memmem): Use Two-Way rather than
51611         Knuth-Morris-Pratt, to allow O(1) space usage.
51612         (critical_factorization, two_way_short_needle)
51613         (two_way_long_needle): New functions.
51614         (knuth_morris_pratt): Delete.
51615         * modules/memmem (Depends-on): No longer need malloca or stdbool.
51616         Add stdint.
51617         * tests/test-memmem.c (main): Add tests for periodic needle and
51618         sublinear performance.
51619         * doc/functions/memmem.texi (memmem): Document other deficiencies
51620         in cygwin and older glibc.
51621
51622 2008-01-08  Bruno Haible  <bruno@clisp.org>
51623
51624         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
51625         augmentation.
51626
51627 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
51628
51629         Add a configure time option: --disable-acl.
51630         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
51631         AC_ARG_ENABLE(acl).
51632
51633 2008-01-06  Simon Josefsson  <simon@josefsson.org>
51634
51635         * tests/test-localename.c: Don't include obsolete "setenv.h".
51636
51637         * modules/localename-tests (Depends-on): Need unsetenv.
51638
51639 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51640
51641         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
51642
51643 2008-01-06  Colin Watson  <cjwatson@debian.org>
51644
51645         * users.txt: Add man-db.
51646
51647 2008-01-07  Bruno Haible  <bruno@clisp.org>
51648
51649         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
51650         previous section name.
51651
51652 2008-01-07  Bruno Haible  <bruno@clisp.org>
51653
51654         * lib/progname.c (set_program_name): Don't strip off a leading
51655         "lt-" prefix outside a .libs directory.
51656         Suggested by Paul Eggert.
51657
51658 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
51659             Bruno Haible  <bruno@clisp.org>
51660
51661         Improve memory cleanup in 'relocatable' module.
51662         * lib/relocatable.h (compute_curr_prefix): Change return type to
51663         'char *'.
51664         * lib/relocatable.c (compute_curr_prefix): Change return type to
51665         'char *'. Free curr_installdir after use.
51666         (relocate): Free curr_prefix_better after use.
51667         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
51668
51669 2008-01-01  Bruno Haible  <bruno@clisp.org>
51670
51671         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
51672         failure on older glibc systems.
51673         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51674
51675 2008-01-05  Eric Blake  <ebb9@byu.net>
51676
51677         Avoid quadratic system memmem.
51678         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
51679         Reported by Ralf Wildenhues.
51680
51681         Fix memmem test for mingw.
51682         * modules/memmem-tests (configure.ac): Check for alarm.
51683         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
51684         it.
51685         * doc/functions/memmem.texi: New file.
51686         * doc/gnulib.texi (Function Substitutes): Add memmem.
51687         Reported by Bruno Haible.
51688
51689 2008-01-04  Bruno Haible  <bruno@clisp.org>
51690
51691         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
51692         Require gl_HEADER_STRINGS_H_DEFAULTS, not
51693         gl_HEADER_STRING_H_DEFAULTS.
51694
51695 2008-01-04  Eric Blake  <ebb9@byu.net>
51696
51697         Shorten duration of memmem test.
51698         * tests/test-memmem.c (main): Use alarm to declare failure if test
51699         is taking too long.
51700         Reported by Ralf Wildenhues.
51701
51702 2007-12-21  Simon Josefsson  <simon@josefsson.org>
51703
51704         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
51705         string, needed by strerror.
51706
51707 2008-01-03  Colin Watson  <cjwatson@debian.org>
51708             Bruno Haible  <bruno@clisp.org>
51709
51710         * doc/gnulib-tool.texi (Localization): New section.
51711
51712 2008-01-02  Bruno Haible  <bruno@clisp.org>
51713
51714         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
51715         variables to 'unsigned char *' type.
51716         Reported by Paul Eggert.
51717
51718 2008-01-02  Jim Meyering  <jim@meyering.net>
51719
51720         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
51721
51722 2007-12-31  Jim Meyering  <jim@meyering.net>
51723
51724         Avoid use of private FTS type name.
51725         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
51726
51727 2007-12-30  Karl Berry  <karl@gnu.org>
51728
51729         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
51730         work around defect in Texinfo and/or the standalone Info browser.
51731
51732 2007-12-30  Bruno Haible  <bruno@clisp.org>
51733
51734         Unify 5 copies of the KMP code.
51735         * lib/str-kmp.h: New file.
51736         * lib/c-strcasestr.c: Include str-kmp.h.
51737         (knuth_morris_pratt): Remove function.
51738         (c_strcasestr): Update.
51739         * lib/c-strstr.c: Include str-kmp.h.
51740         (knuth_morris_pratt): Remove function.
51741         (c_strcasestr): Update.
51742         * lib/mbscasestr.c: Include str-kmp.h.
51743         (knuth_morris_pratt_unibyte): Remove function.
51744         * lib/mbsstr.c: Include str-kmp.h.
51745         (knuth_morris_pratt_unibyte): Remove function.
51746         * lib/strcasestr.c: Include str-kmp.h.
51747         (knuth_morris_pratt): Remove function.
51748         (strcasestr): Update.
51749         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
51750         * modules/c-strstr (Files): Likewise.
51751         * modules/mbscasestr (Files): Likewise.
51752         * modules/mbsstr (Files): Likewise.
51753         * modules/strcasestr (Files): Likewise.
51754         Suggested by Paul Eggert.
51755
51756 2007-12-30  Bruno Haible  <bruno@clisp.org>
51757
51758         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
51759         defined.
51760
51761 2007-12-30  Bruno Haible  <bruno@clisp.org>
51762
51763         * lib/xmalloca.h: Include xalloc.h.
51764         (xnmalloca): New macro.
51765
51766 2007-12-30  Bruno Haible  <bruno@clisp.org>
51767
51768         * lib/malloca.h (nmalloca): New macro.
51769         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
51770         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
51771         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
51772         knuth_morris_pratt_multibyte): Likewise.
51773         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
51774         knuth_morris_pratt_multibyte): Likewise.
51775         * lib/memmem.c (knuth_morris_pratt): Likewise.
51776         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
51777
51778 2007-12-25  Bruno Haible  <bruno@clisp.org>
51779
51780         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
51781         * lib/glob.c: Don't include openat.h.
51782         (link_exists2_p): Add back the code that deals with the
51783         !GLOB_ALTDIRFUNC case.
51784         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
51785         let it do the filename concatenation.
51786         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
51787         * modules/glob (Depends-on): Remove openat.
51788
51789 2007-12-31  Bruno Haible  <bruno@clisp.org>
51790
51791         * modules/dirfd (License): Change to LGPLv2+.
51792         Approved by Jim Meyering.
51793
51794 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51795
51796         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
51797         when multiplying M by sizeof (size_t).
51798
51799 2007-12-10  Martin Lambers  <marlam@marlam.de>
51800
51801         Override getpagesize on mingw.
51802         * lib/getpagesize.c: New file.
51803         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
51804         * modules/getpagesize (Files): Add lib/getpagesize.c.
51805         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
51806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51807         REPLACE_GETPAGESIZE.
51808         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
51809
51810 2007-12-25  Bruno Haible  <bruno@clisp.org>
51811
51812         * modules/localcharset (Notice): New field.
51813         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
51814         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
51815
51816 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51817             Bruno Haible  <bruno@clisp.org>
51818
51819         Avoid using the syntax symbol() in formatted documentation.
51820         * MODULES.html.sh (func_module): When replacing symbol() with a
51821         hyperlink, remove the parentheses. Show an error if some remain.
51822         Recognize and render the '...' syntax.
51823         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
51824         Rework. Add paragraph about GCC's inlining.
51825         * doc/alloca.texi: Likewise.
51826         * doc/error.texi: Remove parentheses from symbol reference.
51827         * doc/gnulib-intro.texi: Likewise.
51828         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
51829         * modules/fnmatch (Description): Reword to say "the ... function".
51830         * modules/full-read (Description): Likewise.
51831         * modules/full-write (Description): Likewise.
51832         * modules/safe-read (Description): Likewise.
51833         * modules/safe-write (Description): Likewise.
51834         * modules/strchrnul (Description): Likewise.
51835         * modules/trim (Description): Likewise.
51836         * modules/error (Description): Remove parentheses from symbol
51837         references.
51838         * modules/verror (Description): Likewise.
51839         Reported by Karl Berry.
51840
51841 2007-12-25  Bruno Haible  <bruno@clisp.org>
51842
51843         Fixup after 2007-10-16 commit.
51844         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
51845
51846 2007-12-24  Bruno Haible  <bruno@clisp.org>
51847
51848         Make --enable-relocatable work with DESTDIR.
51849         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
51850         to compute installdir from destprog.
51851         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
51852         also set the RELOC_DESTDIR variable.
51853         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51854
51855 2007-12-24  Bruno Haible  <bruno@clisp.org>
51856
51857         Fix link error due to xalloc_die().
51858         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
51859         of xreadlink.
51860         * lib/relocwrapper.c: Update comments.
51861         * build-aux/install-reloc: Remove xreadlink.c from file list.
51862         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
51863         xreadlink.c.
51864         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51865
51866 2007-12-24  Bruno Haible  <bruno@clisp.org>
51867
51868         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
51869         * lib/setenv.h: Remove file.
51870         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
51871         lib/setenv.h.
51872         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
51873         (Depends-on): Add stdlib.
51874         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
51875         gl_FUNC_UNSETENV.
51876         (Include): Replace setenv.h with <stdlib.h>.
51877         * modules/unsetenv: New file.
51878         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
51879         * lib/unsetenv.c: Include <stdlib.h> first.
51880         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
51881         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
51882         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
51883         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
51884         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
51885         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
51887         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51888         * doc/functions/unsetenv.texi: Update.
51889         * modules/xsetenv (Depends-on): Add unsetenv.
51890         * modules/getdate (Depends-on): Likewise.
51891         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
51892         * lib/xsetenv.c: Don't include setenv.h.
51893         * lib/getdate.y: Likewise.
51894         * lib/relocwrapper.c: Likewise.
51895         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
51896         (Depends-on): Add stdlib.
51897         * NEWS: Mention the changes.
51898         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51899
51900 2007-12-23  Bruno Haible  <bruno@clisp.org>
51901
51902         * lib/memmem.c (memmem): Use lowercase variable names. Tab
51903         indentation.
51904
51905 2007-12-23  Bruno Haible  <bruno@clisp.org>
51906
51907         * lib/c-strcasestr.c: Add more comments.
51908         * lib/c-strstr.c: Likewise.
51909         * lib/mbscasestr.c: Likewise.
51910         * lib/mbsstr.c: Likewise.
51911         * lib/strcasestr.c: Likewise.
51912         * lib/memmem.c: Likewise.
51913
51914 2007-12-23  Bruno Haible  <bruno@clisp.org>
51915
51916         * tests/test-memmem.c: Include <string.h> first.
51917
51918 2007-12-22  Bruno Haible  <bruno@clisp.org>
51919
51920         * gnulib-tool (func_create_testdir): Change $auxdir while generating
51921         the contents of $testsbase.
51922         Reported by Ralf Wildenhues.
51923
51924 2007-12-22  Bruno Haible  <bruno@clisp.org>
51925
51926         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
51927         two variables local_ldadd_before, local_ldadd_last.
51928
51929 2007-12-20  Eric Blake  <ebb9@byu.net>
51930
51931         Work around circular library issue when cross-compiling.
51932         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
51933         that progname.o does not need to pull in rpl_memcmp.
51934
51935 2007-12-19  Eric Blake  <ebb9@byu.net>
51936
51937         Fix memmem to avoid O(n^2) worst-case complexity.
51938         * lib/memmem.c (knuth_morris_pratt): New function.
51939         (memmem): Use it if first few naive iterations fail.
51940         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
51941         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
51942         * modules/memchr (License): Likewise.
51943         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
51944         malloca.
51945         * tests/test-memmem.c: Rewrite, borrowing ideas from
51946         test-mbsstr1.c; the old version wouldn't even compile!
51947         * modules/memmem-tests: New file.
51948         * lib/string.in.h (rpl_memmem): Add declaration.
51949         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
51950         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
51951         REPLACE_MEMMEM.
51952
51953 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51954
51955         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
51956         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
51957         before any system include files, and undef after them all.  This
51958         should fix a problem on VMS reported by John E. Malmberg in
51959         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
51960
51961 2007-12-17  Eric Blake  <ebb9@byu.net>
51962
51963         Revert addition of verify, for BSD/OS.
51964         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
51965         can't handle large files, for the sake of obsolete platforms.
51966         * modules/fseeko (Depends-on): Remove verify.
51967         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
51968         * doc/functions/ftello.texi (ftello): Likewise.
51969         * doc/functions/fgetpos.texi (fgetpos): Likewise.
51970         Reported by Larry Jones.
51971
51972 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
51973
51974         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
51975         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
51976
51977 2007-12-17  Jim Meyering  <meyering@redhat.com>
51978
51979         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
51980         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
51981         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
51982         * modules/getcwd (Depends-on): Add openat.
51983         Reported by Petr Salinger.
51984
51985 2007-12-17  Bruno Haible  <bruno@clisp.org>
51986
51987         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
51988         avoid a segmentation fault of the configure test on x86_64 systems.
51989
51990 2007-12-15  Jim Meyering  <meyering@redhat.com>
51991
51992         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
51993
51994 2007-12-13  Eric Blake  <ebb9@byu.net>
51995
51996         Another fseek test.
51997         * tests/test-fseek.c (main): Also test ungetc handling.
51998         * tests/test-fseeko.c (main): Likewise.
51999         * modules/fseeko (Depends-on): Add verify.
52000         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52001         large.
52002         Reported by Larry Jones.
52003
52004         Fix fseeko on mingw.
52005         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52006         seek.
52007
52008         Beef up fseek tests.
52009         * tests/test-fseek.c (main): Also test eof handling.
52010         * tests/test-fseeko.c (main): Likewise.
52011         Reported by Larry Jones.
52012
52013 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52014
52015         Fix fseeko on BSD-based platforms.
52016         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52017         successful seek.
52018
52019 2007-12-12  Eric Blake  <ebb9@byu.net>
52020
52021         Allow circular dependency of separate libtests.a
52022         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52023         when use_libtests.
52024
52025 2007-12-11  Eric Blake  <ebb9@byu.net>
52026
52027         Fix bug with -0.0L in previous patch.
52028         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52029         * tests/test-isnan.c (main): Also test on zeroes.
52030         * tests/test-isnanf.c (main): Likewise.
52031         * tests/test-isnanl.h (main): Likewise.
52032
52033         Detect pseudo-denormals on x86 even when cross-compiling.
52034         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52035         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52036         invalid bit patterns that happen to satisfy ==.
52037
52038         Avoid link failures with separate libtests.a.
52039         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52040         last, to satisfy circular dependencies.
52041
52042 2007-12-11  Eric Blake  <ebb9@byu.net>
52043         and Bruno Haible  <bruno@clisp.org>
52044
52045         Fix OpenBSD 4.0 <float.h> handling of long double.
52046         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52047         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52048         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52049
52050 2007-12-11  Jim Meyering  <meyering@redhat.com>
52051
52052         * users.txt: Add libvirt.
52053
52054         Support versions of autoconf prior to 2.59c.
52055         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52056         if it is not already defined.
52057
52058 2007-12-09  Bruno Haible  <bruno@clisp.org>
52059
52060         Let 'gnulib-tool --import' collect sources needed for the tests in
52061         tests/ rather than in lib/.
52062         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52063         argument. If true, add rules to generate libtests.a, and put libtests.a
52064         into $(LDADD). Consider source files in subdirectories and set
52065         uses_subdirs.
52066         (func_emit_initmacro_start, func_emit_initmacro_end,
52067         func_emit_initmacro_done): Pass all arguments explicitly.
52068         (func_import): Determine two module lists main_modules,
52069         testsrelated_modules. Determine use_libtests. Determine two variables
52070         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52071         instead of just sed_transform_lib_file. Determine two variables
52072         main_files and testsrelated_files. Compute 'files' as the union of
52073         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52074         func_add_or_update. In the generated gnulib-comp.m4, collect the
52075         object files for tests/ in different variables than those for lib/.
52076         Substitute LIBTESTS_LIBDEPS.
52077         (func_create_testdir): Combine the uses_subdirs results from
52078         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52079
52080 2007-12-09  Bruno Haible  <bruno@clisp.org>
52081
52082         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52083         the build-aux directory.
52084
52085 2007-12-09  Bruno Haible  <bruno@clisp.org>
52086
52087         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52088         introduced on 2006-09-09.
52089
52090 2007-12-07  Jim Meyering  <meyering@redhat.com>
52091
52092         Let these macros work also with autoconf-2.59.
52093         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52094         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52095         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52096
52097 2007-12-06  Jim Meyering  <meyering@redhat.com>
52098
52099         Avoid a configure-time syntax error in gl_FUNC_ACL.
52100         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52101         function in each branch, before testing the cache variable.
52102
52103 2007-12-04  Eric Blake  <ebb9@byu.net>
52104
52105         Make scripts executable.
52106         * build-aux/config.guess: Add execute permissions.
52107         * build-aux/config.sub: Likewise.
52108         * build-aux/gendocs.sh: Likewise.
52109
52110         Fix frexp on mingw.
52111         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52112         cross-compiling.
52113         * doc/functions/frexp.texi (frexp): Document the bug.
52114
52115         Make cygwin fseeko check more reliable.
52116         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52117         version numbers, rather than unrelated feature check.
52118         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52119         * doc/functions/ftello.texi (ftello): Likewise.
52120         Reported by Bruno Haible.
52121
52122         * m4/strerror.m4: Bump version number.
52123
52124 2007-12-03  Bruno Haible  <bruno@clisp.org>
52125
52126         * doc/functions/mprotect.texi: Mention the mingw problem.
52127
52128 2007-12-03  Eric Blake  <ebb9@byu.net>
52129
52130         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
52131         REPLACE_STRERROR is initialized before this macro.
52132
52133 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52134
52135         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
52136         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
52137         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
52138         put -lsec in even for programs other than 'ls'.  This fixes a problem
52139         for gettext reported by Bruno Haible in
52140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
52141         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
52142         Add support for Solaris 10.  This isn't efficient, but should get the
52143         job done for now.
52144
52145 2007-12-03  James Youngman  <jay@gnu.org>
52146
52147         * doc/regexprops-generic.texi: change "an close-group" to "a
52148         close-group" and "illegal" to "not allowed".
52149
52150 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52151
52152         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
52153         pr_byname.h. Needed for the rare case when the maintainer has done
52154         "make maintainer-clean" in the source directory and then attempts a
52155         build outside the source directory.
52156         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
52157         scripts_byname.h.
52158
52159 2007-12-02  Martin Lambers <marlam@marlam.de>
52160             Bruno Haible  <bruno@clisp.org>
52161
52162         * lib/getpagesize.h: Remove file.
52163         * lib/unistd.in.h: Include declaration of getpagesize here.
52164         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
52165         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
52166         HAVE_SYS_PARAM_H.
52167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
52168         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52169         * modules/getpagesize (Files): Remove lib/getpagesize.h.
52170         (Depends-on): Add unistd.
52171         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52172         (Include): Use <unistd.h> instead of getpagesize.h.
52173         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
52174         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52175         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52176         gl_GETPAGESIZE invocation, already handled by module dependency.
52177         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52178
52179 2007-12-02  Bruno Haible  <bruno@clisp.org>
52180
52181         * modules/strings-tests: New file.
52182         * tests/test-strings.c: New file.
52183
52184         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52185         * lib/strings.in.h: New file.
52186         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52187         * m4/strings_h.m4: New file.
52188         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52189         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52190         * modules/strings: New file.
52191         * modules/string (Makefile.am): Update.
52192         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52193         Reported by Karl Berry.
52194
52195 2007-12-01  Eric Blake  <ebb9@byu.net>
52196
52197         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52198         accomodate fix in cygwin 1.5.25.
52199
52200 2007-12-01  Jim Meyering  <meyering@redhat.com>
52201
52202         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52203         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52204         that would inhibit utf8-optimization of a regexp containing line-
52205         or buffer-anchors, e.g., `^', `$'.
52206
52207 2007-11-30  Bruno Haible  <bruno@clisp.org>
52208
52209         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
52210         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
52211         glthread_recursive_lock_init.
52212         * lib/lock.c (glthread_recursive_lock_init)
52213         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
52214         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52215
52216 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
52217
52218         New function qset_acl, like set_acl but with syscall semantics.
52219         * lib/acl.h (qset_acl): New decl.
52220         * lib/acl.c (qset_acl): New function.
52221         (set_acl): Use new function.  Use more-consistent diagnostics.
52222
52223 2007-11-28  Jim Meyering  <meyering@redhat.com>
52224
52225         * modules/physmem (License): Change from GPL to LGPLv2+.
52226
52227 2007-11-26  Bruno Haible  <bruno@clisp.org>
52228
52229         * lib/vasnprintf.c (decode_long_double): Don't abort if the
52230         'long double' type has excess precision.
52231         Reported by Jim Meyering in
52232         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
52233
52234 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52235
52236         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
52237         Sync from <http://gnu.org/licenses>.
52238         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
52239         with license text from same location.
52240         * doc/maintain.texi, doc/standards.texi:  Sync from
52241         <http://savannah.gnu.org/projects/gnustandards>.
52242
52243 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
52244         and Jim Meyering  <meyering@redhat.com>
52245
52246         Adjust getdate' grammar to accept a slightly more regular language.
52247         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
52248         Before, the former was rejected.
52249         * lib/getdate.y (digits_to_date_time): New function, factored
52250         out of ...
52251         (number): ...here.  Just call digits_to_date_time.
52252         (hybrid): New non-terminal to handle an <unsigned number,
52253         signed relative offset> sequence consistently.
52254
52255 2007-11-18  Jim Meyering  <meyering@redhat.com>
52256
52257         Pull my changes from coreutils:
52258         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
52259         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
52260         use of $gnulib_tool_option_extras, so that it's separated from the
52261         preceding argument.
52262
52263         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
52264         * build-aux/bootstrap (cp_mark_as_generated): Create any required
52265         parent destination directories before copying a file into place.
52266
52267 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52268
52269         bootstrap: work also with 4-argument variant of AC_INIT
52270         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
52271
52272 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52273
52274         Port test-getaddrinfo to Solaris.
52275         Problem reported by Bruno Haible in
52276         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
52277         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
52278         explanation of setting 'hints'.
52279         Don't reject an implementation merely because it returns EAI_SERVICE.
52280         (EAI_SERVICE): Define to 0 if not defined.
52281
52282 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52283
52284         The license of gnu-make and posix-shell is now "GPLed build tool".
52285         * modules/gnu-make (License): Likewise.
52286         * modules/posix-shell (License): Likewise.
52287
52288         New module posix-shell, for determining a POSIX shell
52289         or perhaps something that is close enough to a POSIX shell.
52290         * m4/posix-shell.m4: New file.
52291         * modules/posix-shell: New file.
52292
52293         * MODULES.html.sh: Mention new module.
52294
52295         New module gnu-make, for determining whether we're using GNU Make.
52296         * m4/gnu-make.m4: New file.
52297         * modules/gnu-make: New file.
52298         * MODULES.html.sh: Mention new module.
52299
52300 2007-11-14  Jim Meyering  <meyering@redhat.com>
52301
52302         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
52303         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
52304         use this macro to create a function _definition_.
52305         Remove useless "#undef ARGMATCH_DIE".
52306
52307 2007-11-14  Bruno Haible  <bruno@clisp.org>
52308
52309         * lib/config.charset: Update for OpenBSD 4.1.
52310         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
52311
52312 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
52313
52314         Document 64-bit #if problems in stdint.texi.
52315         * doc/headers/stdint.texi (stdint.h): Mention problems with
52316         64-bit-#if, and how to work around them.
52317
52318         Don't insist on 'long long int' support in the preprocessor.  It
52319         breaks too many things.  For example, PRIdMAX still uses a 'long
52320         long int' format with the latest Sun compiler, even though
52321         HAVE_LONG_LONG_INT isn't defined due to that compiler's
52322         preprocessor problem.  This causes the latest coreutils to dump
52323         core on Solaris 10 sparc with the Sun C compiler.
52324         Instead, fix the 2007-10-16 problem in a different way, by evaluating
52325         the troublesome expressions at configure-time, not at #if-time.
52326         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
52327         preprocessor.
52328         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
52329         compile-time C checks, done at 'configure'-time.
52330         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
52331         * modules/inttypes (Makefile): Substitute the new symbols that
52332         gl_INTTYPES_H now generates.
52333         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
52334
52335 2007-11-12  Bruno Haible  <bruno@clisp.org>
52336
52337         Tests for Unicode character classification functions.
52338
52339         * modules/unictype/bidicategory-byname-tests: New file.
52340         * modules/unictype/bidicategory-name-tests: New file.
52341         * modules/unictype/bidicategory-of-tests: New file.
52342         * modules/unictype/bidicategory-test-tests: New file.
52343         * modules/unictype/block-list-tests: New file.
52344         * modules/unictype/block-of-tests: New file.
52345         * modules/unictype/block-test-tests: New file.
52346         * modules/unictype/category-C-tests: New file.
52347         * modules/unictype/category-Cc-tests: New file.
52348         * modules/unictype/category-Cf-tests: New file.
52349         * modules/unictype/category-Cn-tests: New file.
52350         * modules/unictype/category-Co-tests: New file.
52351         * modules/unictype/category-Cs-tests: New file.
52352         * modules/unictype/category-L-tests: New file.
52353         * modules/unictype/category-Ll-tests: New file.
52354         * modules/unictype/category-Lm-tests: New file.
52355         * modules/unictype/category-Lo-tests: New file.
52356         * modules/unictype/category-Lt-tests: New file.
52357         * modules/unictype/category-Lu-tests: New file.
52358         * modules/unictype/category-M-tests: New file.
52359         * modules/unictype/category-Mc-tests: New file.
52360         * modules/unictype/category-Me-tests: New file.
52361         * modules/unictype/category-Mn-tests: New file.
52362         * modules/unictype/category-N-tests: New file.
52363         * modules/unictype/category-Nd-tests: New file.
52364         * modules/unictype/category-Nl-tests: New file.
52365         * modules/unictype/category-No-tests: New file.
52366         * modules/unictype/category-P-tests: New file.
52367         * modules/unictype/category-Pc-tests: New file.
52368         * modules/unictype/category-Pd-tests: New file.
52369         * modules/unictype/category-Pe-tests: New file.
52370         * modules/unictype/category-Pf-tests: New file.
52371         * modules/unictype/category-Pi-tests: New file.
52372         * modules/unictype/category-Po-tests: New file.
52373         * modules/unictype/category-Ps-tests: New file.
52374         * modules/unictype/category-S-tests: New file.
52375         * modules/unictype/category-Sc-tests: New file.
52376         * modules/unictype/category-Sk-tests: New file.
52377         * modules/unictype/category-Sm-tests: New file.
52378         * modules/unictype/category-So-tests: New file.
52379         * modules/unictype/category-Z-tests: New file.
52380         * modules/unictype/category-Zl-tests: New file.
52381         * modules/unictype/category-Zp-tests: New file.
52382         * modules/unictype/category-Zs-tests: New file.
52383         * modules/unictype/category-and-not-tests: New file.
52384         * modules/unictype/category-and-tests: New file.
52385         * modules/unictype/category-byname-tests: New file.
52386         * modules/unictype/category-name-tests: New file.
52387         * modules/unictype/category-none-tests: New file.
52388         * modules/unictype/category-of-tests: New file.
52389         * modules/unictype/category-or-tests: New file.
52390         * modules/unictype/category-test-withtable-tests: New file.
52391         * modules/unictype/combining-class-tests: New file.
52392         * modules/unictype/ctype-alnum-tests: New file.
52393         * modules/unictype/ctype-alpha-tests: New file.
52394         * modules/unictype/ctype-blank-tests: New file.
52395         * modules/unictype/ctype-cntrl-tests: New file.
52396         * modules/unictype/ctype-digit-tests: New file.
52397         * modules/unictype/ctype-graph-tests: New file.
52398         * modules/unictype/ctype-lower-tests: New file.
52399         * modules/unictype/ctype-print-tests: New file.
52400         * modules/unictype/ctype-punct-tests: New file.
52401         * modules/unictype/ctype-space-tests: New file.
52402         * modules/unictype/ctype-upper-tests: New file.
52403         * modules/unictype/ctype-xdigit-tests: New file.
52404         * modules/unictype/decimal-digit-tests: New file.
52405         * modules/unictype/digit-tests: New file.
52406         * modules/unictype/mirror-tests: New file.
52407         * modules/unictype/numeric-tests: New file.
52408         * modules/unictype/property-alphabetic-tests: New file.
52409         * modules/unictype/property-ascii-hex-digit-tests: New file.
52410         * modules/unictype/property-bidi-arabic-digit-tests: New file.
52411         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
52412         * modules/unictype/property-bidi-block-separator-tests: New file.
52413         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
52414         * modules/unictype/property-bidi-common-separator-tests: New file.
52415         * modules/unictype/property-bidi-control-tests: New file.
52416         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
52417         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
52418         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
52419         * modules/unictype/property-bidi-european-digit-tests: New file.
52420         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
52421         * modules/unictype/property-bidi-left-to-right-tests: New file.
52422         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
52423         * modules/unictype/property-bidi-other-neutral-tests: New file.
52424         * modules/unictype/property-bidi-pdf-tests: New file.
52425         * modules/unictype/property-bidi-segment-separator-tests: New file.
52426         * modules/unictype/property-bidi-whitespace-tests: New file.
52427         * modules/unictype/property-byname-tests: New file.
52428         * modules/unictype/property-combining-tests: New file.
52429         * modules/unictype/property-composite-tests: New file.
52430         * modules/unictype/property-currency-symbol-tests: New file.
52431         * modules/unictype/property-dash-tests: New file.
52432         * modules/unictype/property-decimal-digit-tests: New file.
52433         * modules/unictype/property-default-ignorable-code-point-tests: New file.
52434         * modules/unictype/property-deprecated-tests: New file.
52435         * modules/unictype/property-diacritic-tests: New file.
52436         * modules/unictype/property-extender-tests: New file.
52437         * modules/unictype/property-format-control-tests: New file.
52438         * modules/unictype/property-grapheme-base-tests: New file.
52439         * modules/unictype/property-grapheme-extend-tests: New file.
52440         * modules/unictype/property-grapheme-link-tests: New file.
52441         * modules/unictype/property-hex-digit-tests: New file.
52442         * modules/unictype/property-hyphen-tests: New file.
52443         * modules/unictype/property-id-continue-tests: New file.
52444         * modules/unictype/property-id-start-tests: New file.
52445         * modules/unictype/property-ideographic-tests: New file.
52446         * modules/unictype/property-ids-binary-operator-tests: New file.
52447         * modules/unictype/property-ids-trinary-operator-tests: New file.
52448         * modules/unictype/property-ignorable-control-tests: New file.
52449         * modules/unictype/property-iso-control-tests: New file.
52450         * modules/unictype/property-join-control-tests: New file.
52451         * modules/unictype/property-left-of-pair-tests: New file.
52452         * modules/unictype/property-line-separator-tests: New file.
52453         * modules/unictype/property-logical-order-exception-tests: New file.
52454         * modules/unictype/property-lowercase-tests: New file.
52455         * modules/unictype/property-math-tests: New file.
52456         * modules/unictype/property-non-break-tests: New file.
52457         * modules/unictype/property-not-a-character-tests: New file.
52458         * modules/unictype/property-numeric-tests: New file.
52459         * modules/unictype/property-other-alphabetic-tests: New file.
52460         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
52461         * modules/unictype/property-other-grapheme-extend-tests: New file.
52462         * modules/unictype/property-other-id-continue-tests: New file.
52463         * modules/unictype/property-other-id-start-tests: New file.
52464         * modules/unictype/property-other-lowercase-tests: New file.
52465         * modules/unictype/property-other-math-tests: New file.
52466         * modules/unictype/property-other-uppercase-tests: New file.
52467         * modules/unictype/property-paired-punctuation-tests: New file.
52468         * modules/unictype/property-paragraph-separator-tests: New file.
52469         * modules/unictype/property-pattern-syntax-tests: New file.
52470         * modules/unictype/property-pattern-white-space-tests: New file.
52471         * modules/unictype/property-private-use-tests: New file.
52472         * modules/unictype/property-punctuation-tests: New file.
52473         * modules/unictype/property-quotation-mark-tests: New file.
52474         * modules/unictype/property-radical-tests: New file.
52475         * modules/unictype/property-sentence-terminal-tests: New file.
52476         * modules/unictype/property-soft-dotted-tests: New file.
52477         * modules/unictype/property-space-tests: New file.
52478         * modules/unictype/property-terminal-punctuation-tests: New file.
52479         * modules/unictype/property-test-tests: New file.
52480         * modules/unictype/property-titlecase-tests: New file.
52481         * modules/unictype/property-unassigned-code-value-tests: New file.
52482         * modules/unictype/property-unified-ideograph-tests: New file.
52483         * modules/unictype/property-uppercase-tests: New file.
52484         * modules/unictype/property-variation-selector-tests: New file.
52485         * modules/unictype/property-white-space-tests: New file.
52486         * modules/unictype/property-xid-continue-tests: New file.
52487         * modules/unictype/property-xid-start-tests: New file.
52488         * modules/unictype/property-zero-width-tests: New file.
52489         * modules/unictype/scripts-tests: New file.
52490         * modules/unictype/syntax-c-ident-tests: New file.
52491         * modules/unictype/syntax-c-whitespace-tests: New file.
52492         * modules/unictype/syntax-java-ident-tests: New file.
52493         * modules/unictype/syntax-java-whitespace-tests: New file.
52494         * tests/unictype/test-bidi_byname.c: New file.
52495         * tests/unictype/test-bidi_name.c: New file.
52496         * tests/unictype/test-bidi_of.c: New file.
52497         * tests/unictype/test-bidi_test.c: New file.
52498         * tests/unictype/test-block_list.c: New file.
52499         * tests/unictype/test-block_of.c: New file.
52500         * tests/unictype/test-block_test.c: New file.
52501         * tests/unictype/test-categ_and.c: New file.
52502         * tests/unictype/test-categ_and_not.c: New file.
52503         * tests/unictype/test-categ_byname.c: New file.
52504         * tests/unictype/test-categ_name.c: New file.
52505         * tests/unictype/test-categ_none.c: New file.
52506         * tests/unictype/test-categ_of.c: New file.
52507         * tests/unictype/test-categ_or.c: New file.
52508         * tests/unictype/test-categ_test_withtable.c: New file.
52509         * tests/unictype/test-combining.c: New file.
52510         * tests/unictype/test-decdigit.c: New file.
52511         * tests/unictype/test-digit.c: New file.
52512         * tests/unictype/test-mirror.c: New file.
52513         * tests/unictype/test-numeric.c: New file.
52514         * tests/unictype/test-pr_byname.c: New file.
52515         * tests/unictype/test-pr_test.c: New file.
52516         * tests/unictype/test-predicate-part1.h: New file.
52517         * tests/unictype/test-predicate-part2.h: New file.
52518         * tests/unictype/test-scripts.c: New file.
52519         * tests/unictype/test-sy_c_ident.c: New file.
52520         * tests/unictype/test-sy_java_ident.c: New file.
52521
52522         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
52523         for Unicode 5.0.0.
52524         * tests/unictype/test-categ_Cc.c: Likewise.
52525         * tests/unictype/test-categ_Cf.c: Likewise.
52526         * tests/unictype/test-categ_Cn.c: Likewise.
52527         * tests/unictype/test-categ_Co.c: Likewise.
52528         * tests/unictype/test-categ_Cs.c: Likewise.
52529         * tests/unictype/test-categ_L.c: Likewise.
52530         * tests/unictype/test-categ_Ll.c: Likewise.
52531         * tests/unictype/test-categ_Lm.c: Likewise.
52532         * tests/unictype/test-categ_Lo.c: Likewise.
52533         * tests/unictype/test-categ_Lt.c: Likewise.
52534         * tests/unictype/test-categ_Lu.c: Likewise.
52535         * tests/unictype/test-categ_M.c: Likewise.
52536         * tests/unictype/test-categ_Mc.c: Likewise.
52537         * tests/unictype/test-categ_Me.c: Likewise.
52538         * tests/unictype/test-categ_Mn.c: Likewise.
52539         * tests/unictype/test-categ_N.c: Likewise.
52540         * tests/unictype/test-categ_Nd.c: Likewise.
52541         * tests/unictype/test-categ_Nl.c: Likewise.
52542         * tests/unictype/test-categ_No.c: Likewise.
52543         * tests/unictype/test-categ_P.c: Likewise.
52544         * tests/unictype/test-categ_Pc.c: Likewise.
52545         * tests/unictype/test-categ_Pd.c: Likewise.
52546         * tests/unictype/test-categ_Pe.c: Likewise.
52547         * tests/unictype/test-categ_Pf.c: Likewise.
52548         * tests/unictype/test-categ_Pi.c: Likewise.
52549         * tests/unictype/test-categ_Po.c: Likewise.
52550         * tests/unictype/test-categ_Ps.c: Likewise.
52551         * tests/unictype/test-categ_S.c: Likewise.
52552         * tests/unictype/test-categ_Sc.c: Likewise.
52553         * tests/unictype/test-categ_Sk.c: Likewise.
52554         * tests/unictype/test-categ_Sm.c: Likewise.
52555         * tests/unictype/test-categ_So.c: Likewise.
52556         * tests/unictype/test-categ_Z.c: Likewise.
52557         * tests/unictype/test-categ_Zl.c: Likewise.
52558         * tests/unictype/test-categ_Zp.c: Likewise.
52559         * tests/unictype/test-categ_Zs.c: Likewise.
52560         * tests/unictype/test-ctype_alnum.c: Likewise.
52561         * tests/unictype/test-ctype_alpha.c: Likewise.
52562         * tests/unictype/test-ctype_blank.c: Likewise.
52563         * tests/unictype/test-ctype_cntrl.c: Likewise.
52564         * tests/unictype/test-ctype_digit.c: Likewise.
52565         * tests/unictype/test-ctype_graph.c: Likewise.
52566         * tests/unictype/test-ctype_lower.c: Likewise.
52567         * tests/unictype/test-ctype_print.c: Likewise.
52568         * tests/unictype/test-ctype_punct.c: Likewise.
52569         * tests/unictype/test-ctype_space.c: Likewise.
52570         * tests/unictype/test-ctype_upper.c: Likewise.
52571         * tests/unictype/test-ctype_xdigit.c: Likewise.
52572         * tests/unictype/test-decdigit.h: Likewise.
52573         * tests/unictype/test-digit.h: Likewise.
52574         * tests/unictype/test-numeric.h: Likewise.
52575         * tests/unictype/test-pr_alphabetic.c: Likewise.
52576         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
52577         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52578         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
52579         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
52580         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
52581         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
52582         * tests/unictype/test-pr_bidi_control.c: Likewise.
52583         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
52584         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
52585         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52586         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
52587         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52588         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52589         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52590         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52591         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
52592         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
52593         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
52594         * tests/unictype/test-pr_combining.c: Likewise.
52595         * tests/unictype/test-pr_composite.c: Likewise.
52596         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52597         * tests/unictype/test-pr_dash.c: Likewise.
52598         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52599         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
52600         * tests/unictype/test-pr_deprecated.c: Likewise.
52601         * tests/unictype/test-pr_diacritic.c: Likewise.
52602         * tests/unictype/test-pr_extender.c: Likewise.
52603         * tests/unictype/test-pr_format_control.c: Likewise.
52604         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52605         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52606         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52607         * tests/unictype/test-pr_hex_digit.c: Likewise.
52608         * tests/unictype/test-pr_hyphen.c: Likewise.
52609         * tests/unictype/test-pr_id_continue.c: Likewise.
52610         * tests/unictype/test-pr_id_start.c: Likewise.
52611         * tests/unictype/test-pr_ideographic.c: Likewise.
52612         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
52613         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
52614         * tests/unictype/test-pr_ignorable_control.c: Likewise.
52615         * tests/unictype/test-pr_iso_control.c: Likewise.
52616         * tests/unictype/test-pr_join_control.c: Likewise.
52617         * tests/unictype/test-pr_left_of_pair.c: Likewise.
52618         * tests/unictype/test-pr_line_separator.c: Likewise.
52619         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
52620         * tests/unictype/test-pr_lowercase.c: Likewise.
52621         * tests/unictype/test-pr_math.c: Likewise.
52622         * tests/unictype/test-pr_non_break.c: Likewise.
52623         * tests/unictype/test-pr_not_a_character.c: Likewise.
52624         * tests/unictype/test-pr_numeric.c: Likewise.
52625         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52626         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
52627         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
52628         * tests/unictype/test-pr_other_id_continue.c: Likewise.
52629         * tests/unictype/test-pr_other_id_start.c: Likewise.
52630         * tests/unictype/test-pr_other_lowercase.c: Likewise.
52631         * tests/unictype/test-pr_other_math.c: Likewise.
52632         * tests/unictype/test-pr_other_uppercase.c: Likewise.
52633         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
52634         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
52635         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
52636         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
52637         * tests/unictype/test-pr_private_use.c: Likewise.
52638         * tests/unictype/test-pr_punctuation.c: Likewise.
52639         * tests/unictype/test-pr_quotation_mark.c: Likewise.
52640         * tests/unictype/test-pr_radical.c: Likewise.
52641         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52642         * tests/unictype/test-pr_soft_dotted.c: Likewise.
52643         * tests/unictype/test-pr_space.c: Likewise.
52644         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52645         * tests/unictype/test-pr_titlecase.c: Likewise.
52646         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52647         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52648         * tests/unictype/test-pr_uppercase.c: Likewise.
52649         * tests/unictype/test-pr_variation_selector.c: Likewise.
52650         * tests/unictype/test-pr_white_space.c: Likewise.
52651         * tests/unictype/test-pr_xid_continue.c: Likewise.
52652         * tests/unictype/test-pr_xid_start.c: Likewise.
52653         * tests/unictype/test-pr_zero_width.c: Likewise.
52654         * tests/unictype/test-sy_c_whitespace.c: Likewise.
52655         * tests/unictype/test-sy_java_whitespace.c: Likewise.
52656
52657 2007-11-12  Bruno Haible  <bruno@clisp.org>
52658
52659         Unicode character classification functions.
52660         * lib/unictype.h: New file.
52661         * modules/unictype/base: New file.
52662         * modules/unictype/category-L: New file.
52663         * modules/unictype/category-Lu: New file.
52664         * modules/unictype/category-Ll: New file.
52665         * modules/unictype/category-Lt: New file.
52666         * modules/unictype/category-Lm: New file.
52667         * modules/unictype/category-Lo: New file.
52668         * modules/unictype/category-M: New file.
52669         * modules/unictype/category-Mn: New file.
52670         * modules/unictype/category-Mc: New file.
52671         * modules/unictype/category-Me: New file.
52672         * modules/unictype/category-N: New file.
52673         * modules/unictype/category-Nd: New file.
52674         * modules/unictype/category-Nl: New file.
52675         * modules/unictype/category-No: New file.
52676         * modules/unictype/category-P: New file.
52677         * modules/unictype/category-Pc: New file.
52678         * modules/unictype/category-Pd: New file.
52679         * modules/unictype/category-Ps: New file.
52680         * modules/unictype/category-Pe: New file.
52681         * modules/unictype/category-Pi: New file.
52682         * modules/unictype/category-Pf: New file.
52683         * modules/unictype/category-Po: New file.
52684         * modules/unictype/category-S: New file.
52685         * modules/unictype/category-Sm: New file.
52686         * modules/unictype/category-Sc: New file.
52687         * modules/unictype/category-Sk: New file.
52688         * modules/unictype/category-So: New file.
52689         * modules/unictype/category-Z: New file.
52690         * modules/unictype/category-Zs: New file.
52691         * modules/unictype/category-Zl: New file.
52692         * modules/unictype/category-Zp: New file.
52693         * modules/unictype/category-C: New file.
52694         * modules/unictype/category-Cc: New file.
52695         * modules/unictype/category-Cf: New file.
52696         * modules/unictype/category-Cs: New file.
52697         * modules/unictype/category-Co: New file.
52698         * modules/unictype/category-Cn: New file.
52699         * modules/unictype/category-or: New file.
52700         * modules/unictype/category-of: New file.
52701         * modules/unictype/category-test: New file.
52702         * modules/unictype/category-test-withtable: New file.
52703         * modules/unictype/category-byname: New file.
52704         * modules/unictype/category-none: New file.
52705         * modules/unictype/category-and: New file.
52706         * modules/unictype/category-and-not: New file.
52707         * modules/unictype/category-name: New file.
52708         * modules/unictype/combining-class: New file.
52709         * modules/unictype/category-all: New file.
52710         * modules/unictype/bidicategory-all: New file.
52711         * modules/unictype/bidicategory-byname: New file.
52712         * modules/unictype/bidicategory-name: New file.
52713         * modules/unictype/bidicategory-of: New file.
52714         * modules/unictype/bidicategory-test: New file.
52715         * modules/unictype/decimal-digit: New file.
52716         * modules/unictype/digit: New file.
52717         * modules/unictype/numeric: New file.
52718         * modules/unictype/mirror: New file.
52719         * modules/unictype/property-white-space: New file.
52720         * modules/unictype/property-alphabetic: New file.
52721         * modules/unictype/property-other-alphabetic: New file.
52722         * modules/unictype/property-not-a-character: New file.
52723         * modules/unictype/property-default-ignorable-code-point: New file.
52724         * modules/unictype/property-other-default-ignorable-code-point: New
52725         file.
52726         * modules/unictype/property-deprecated: New file.
52727         * modules/unictype/property-logical-order-exception: New file.
52728         * modules/unictype/property-variation-selector: New file.
52729         * modules/unictype/property-private-use: New file.
52730         * modules/unictype/property-unassigned-code-value: New file.
52731         * modules/unictype/property-uppercase: New file.
52732         * modules/unictype/property-other-uppercase: New file.
52733         * modules/unictype/property-lowercase: New file.
52734         * modules/unictype/property-other-lowercase: New file.
52735         * modules/unictype/property-titlecase: New file.
52736         * modules/unictype/property-soft-dotted: New file.
52737         * modules/unictype/property-id-start: New file.
52738         * modules/unictype/property-other-id-start: New file.
52739         * modules/unictype/property-id-continue: New file.
52740         * modules/unictype/property-other-id-continue: New file.
52741         * modules/unictype/property-xid-start: New file.
52742         * modules/unictype/property-xid-continue: New file.
52743         * modules/unictype/property-pattern-white-space: New file.
52744         * modules/unictype/property-pattern-syntax: New file.
52745         * modules/unictype/property-join-control: New file.
52746         * modules/unictype/property-grapheme-base: New file.
52747         * modules/unictype/property-grapheme-extend: New file.
52748         * modules/unictype/property-other-grapheme-extend: New file.
52749         * modules/unictype/property-grapheme-link: New file.
52750         * modules/unictype/property-bidi-control: New file.
52751         * modules/unictype/property-bidi-left-to-right: New file.
52752         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
52753         * modules/unictype/property-bidi-arabic-right-to-left: New file.
52754         * modules/unictype/property-bidi-european-digit: New file.
52755         * modules/unictype/property-bidi-eur-num-separator: New file.
52756         * modules/unictype/property-bidi-eur-num-terminator: New file.
52757         * modules/unictype/property-bidi-arabic-digit: New file.
52758         * modules/unictype/property-bidi-common-separator: New file.
52759         * modules/unictype/property-bidi-block-separator: New file.
52760         * modules/unictype/property-bidi-segment-separator: New file.
52761         * modules/unictype/property-bidi-whitespace: New file.
52762         * modules/unictype/property-bidi-non-spacing-mark: New file.
52763         * modules/unictype/property-bidi-boundary-neutral: New file.
52764         * modules/unictype/property-bidi-pdf: New file.
52765         * modules/unictype/property-bidi-embedding-or-override: New file.
52766         * modules/unictype/property-bidi-other-neutral: New file.
52767         * modules/unictype/property-hex-digit: New file.
52768         * modules/unictype/property-ascii-hex-digit: New file.
52769         * modules/unictype/property-ideographic: New file.
52770         * modules/unictype/property-unified-ideograph: New file.
52771         * modules/unictype/property-radical: New file.
52772         * modules/unictype/property-ids-binary-operator: New file.
52773         * modules/unictype/property-ids-trinary-operator: New file.
52774         * modules/unictype/property-zero-width: New file.
52775         * modules/unictype/property-space: New file.
52776         * modules/unictype/property-non-break: New file.
52777         * modules/unictype/property-iso-control: New file.
52778         * modules/unictype/property-format-control: New file.
52779         * modules/unictype/property-dash: New file.
52780         * modules/unictype/property-hyphen: New file.
52781         * modules/unictype/property-punctuation: New file.
52782         * modules/unictype/property-line-separator: New file.
52783         * modules/unictype/property-paragraph-separator: New file.
52784         * modules/unictype/property-quotation-mark: New file.
52785         * modules/unictype/property-sentence-terminal: New file.
52786         * modules/unictype/property-terminal-punctuation: New file.
52787         * modules/unictype/property-currency-symbol: New file.
52788         * modules/unictype/property-math: New file.
52789         * modules/unictype/property-other-math: New file.
52790         * modules/unictype/property-paired-punctuation: New file.
52791         * modules/unictype/property-left-of-pair: New file.
52792         * modules/unictype/property-combining: New file.
52793         * modules/unictype/property-composite: New file.
52794         * modules/unictype/property-decimal-digit: New file.
52795         * modules/unictype/property-numeric: New file.
52796         * modules/unictype/property-diacritic: New file.
52797         * modules/unictype/property-extender: New file.
52798         * modules/unictype/property-ignorable-control: New file.
52799         * modules/unictype/property-test: New file.
52800         * modules/unictype/property-byname: New file.
52801         * modules/unictype/property-all: New file.
52802         * modules/unictype/scripts: New file.
52803         * modules/unictype/scripts-all: New file.
52804         * modules/unictype/block-of: New file.
52805         * modules/unictype/block-test: New file.
52806         * modules/unictype/block-list: New file.
52807         * modules/unictype/block-all: New file.
52808         * modules/unictype/syntax-c-whitespace: New file.
52809         * modules/unictype/syntax-java-whitespace: New file.
52810         * modules/unictype/syntax-c-ident: New file.
52811         * modules/unictype/syntax-java-ident: New file.
52812         * modules/unictype/ctype-alnum: New file.
52813         * modules/unictype/ctype-alpha: New file.
52814         * modules/unictype/ctype-cntrl: New file.
52815         * modules/unictype/ctype-digit: New file.
52816         * modules/unictype/ctype-graph: New file.
52817         * modules/unictype/ctype-lower: New file.
52818         * modules/unictype/ctype-print: New file.
52819         * modules/unictype/ctype-punct: New file.
52820         * modules/unictype/ctype-space: New file.
52821         * modules/unictype/ctype-upper: New file.
52822         * modules/unictype/ctype-xdigit: New file.
52823         * modules/unictype/ctype-blank: New file.
52824         * lib/unictype/bidi_byname.c: New file.
52825         * lib/unictype/bidi_name.c: New file.
52826         * lib/unictype/bidi_of.c: New file.
52827         * lib/unictype/bidi_test.c: New file.
52828         * lib/unictype/bitmap.h: New file.
52829         * lib/unictype/block_test.c: New file.
52830         * lib/unictype/blocks.c: New file.
52831         * lib/unictype/categ_C.c: New file.
52832         * lib/unictype/categ_Cc.c: New file.
52833         * lib/unictype/categ_Cf.c: New file.
52834         * lib/unictype/categ_Cn.c: New file.
52835         * lib/unictype/categ_Co.c: New file.
52836         * lib/unictype/categ_Cs.c: New file.
52837         * lib/unictype/categ_L.c: New file.
52838         * lib/unictype/categ_Ll.c: New file.
52839         * lib/unictype/categ_Lm.c: New file.
52840         * lib/unictype/categ_Lo.c: New file.
52841         * lib/unictype/categ_Lt.c: New file.
52842         * lib/unictype/categ_Lu.c: New file.
52843         * lib/unictype/categ_M.c: New file.
52844         * lib/unictype/categ_Mc.c: New file.
52845         * lib/unictype/categ_Me.c: New file.
52846         * lib/unictype/categ_Mn.c: New file.
52847         * lib/unictype/categ_N.c: New file.
52848         * lib/unictype/categ_Nd.c: New file.
52849         * lib/unictype/categ_Nl.c: New file.
52850         * lib/unictype/categ_No.c: New file.
52851         * lib/unictype/categ_P.c: New file.
52852         * lib/unictype/categ_Pc.c: New file.
52853         * lib/unictype/categ_Pd.c: New file.
52854         * lib/unictype/categ_Pe.c: New file.
52855         * lib/unictype/categ_Pf.c: New file.
52856         * lib/unictype/categ_Pi.c: New file.
52857         * lib/unictype/categ_Po.c: New file.
52858         * lib/unictype/categ_Ps.c: New file.
52859         * lib/unictype/categ_S.c: New file.
52860         * lib/unictype/categ_Sc.c: New file.
52861         * lib/unictype/categ_Sk.c: New file.
52862         * lib/unictype/categ_Sm.c: New file.
52863         * lib/unictype/categ_So.c: New file.
52864         * lib/unictype/categ_Z.c: New file.
52865         * lib/unictype/categ_Zl.c: New file.
52866         * lib/unictype/categ_Zp.c: New file.
52867         * lib/unictype/categ_Zs.c: New file.
52868         * lib/unictype/categ_and.c: New file.
52869         * lib/unictype/categ_and_not.c: New file.
52870         * lib/unictype/categ_byname.c: New file.
52871         * lib/unictype/categ_name.c: New file.
52872         * lib/unictype/categ_none.c: New file.
52873         * lib/unictype/categ_of.c: New file.
52874         * lib/unictype/categ_or.c: New file.
52875         * lib/unictype/categ_test.c: New file.
52876         * lib/unictype/combining.c: New file.
52877         * lib/unictype/ctype_alnum.c: New file.
52878         * lib/unictype/ctype_alpha.c: New file.
52879         * lib/unictype/ctype_blank.c: New file.
52880         * lib/unictype/ctype_cntrl.c: New file.
52881         * lib/unictype/ctype_digit.c: New file.
52882         * lib/unictype/ctype_graph.c: New file.
52883         * lib/unictype/ctype_lower.c: New file.
52884         * lib/unictype/ctype_print.c: New file.
52885         * lib/unictype/ctype_punct.c: New file.
52886         * lib/unictype/ctype_space.c: New file.
52887         * lib/unictype/ctype_upper.c: New file.
52888         * lib/unictype/ctype_xdigit.c: New file.
52889         * lib/unictype/decdigit.c: New file.
52890         * lib/unictype/digit.c: New file.
52891         * lib/unictype/identsyntaxmap.h: New file.
52892         * lib/unictype/mirror.c: New file.
52893         * lib/unictype/numeric.c: New file.
52894         * lib/unictype/pr_alphabetic.c: New file.
52895         * lib/unictype/pr_ascii_hex_digit.c: New file.
52896         * lib/unictype/pr_bidi_arabic_digit.c: New file.
52897         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
52898         * lib/unictype/pr_bidi_block_separator.c: New file.
52899         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
52900         * lib/unictype/pr_bidi_common_separator.c: New file.
52901         * lib/unictype/pr_bidi_control.c: New file.
52902         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
52903         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
52904         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
52905         * lib/unictype/pr_bidi_european_digit.c: New file.
52906         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
52907         * lib/unictype/pr_bidi_left_to_right.c: New file.
52908         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
52909         * lib/unictype/pr_bidi_other_neutral.c: New file.
52910         * lib/unictype/pr_bidi_pdf.c: New file.
52911         * lib/unictype/pr_bidi_segment_separator.c: New file.
52912         * lib/unictype/pr_bidi_whitespace.c: New file.
52913         * lib/unictype/pr_byname.c: New file.
52914         * lib/unictype/pr_byname.gperf: New file.
52915         * lib/unictype/pr_combining.c: New file.
52916         * lib/unictype/pr_composite.c: New file.
52917         * lib/unictype/pr_currency_symbol.c: New file.
52918         * lib/unictype/pr_dash.c: New file.
52919         * lib/unictype/pr_decimal_digit.c: New file.
52920         * lib/unictype/pr_default_ignorable_code_point.c: New file.
52921         * lib/unictype/pr_deprecated.c: New file.
52922         * lib/unictype/pr_diacritic.c: New file.
52923         * lib/unictype/pr_extender.c: New file.
52924         * lib/unictype/pr_format_control.c: New file.
52925         * lib/unictype/pr_grapheme_base.c: New file.
52926         * lib/unictype/pr_grapheme_extend.c: New file.
52927         * lib/unictype/pr_grapheme_link.c: New file.
52928         * lib/unictype/pr_hex_digit.c: New file.
52929         * lib/unictype/pr_hyphen.c: New file.
52930         * lib/unictype/pr_id_continue.c: New file.
52931         * lib/unictype/pr_id_start.c: New file.
52932         * lib/unictype/pr_ideographic.c: New file.
52933         * lib/unictype/pr_ids_binary_operator.c: New file.
52934         * lib/unictype/pr_ids_trinary_operator.c: New file.
52935         * lib/unictype/pr_ignorable_control.c: New file.
52936         * lib/unictype/pr_iso_control.c: New file.
52937         * lib/unictype/pr_join_control.c: New file.
52938         * lib/unictype/pr_left_of_pair.c: New file.
52939         * lib/unictype/pr_line_separator.c: New file.
52940         * lib/unictype/pr_logical_order_exception.c: New file.
52941         * lib/unictype/pr_lowercase.c: New file.
52942         * lib/unictype/pr_math.c: New file.
52943         * lib/unictype/pr_non_break.c: New file.
52944         * lib/unictype/pr_not_a_character.c: New file.
52945         * lib/unictype/pr_numeric.c: New file.
52946         * lib/unictype/pr_other_alphabetic.c: New file.
52947         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
52948         * lib/unictype/pr_other_grapheme_extend.c: New file.
52949         * lib/unictype/pr_other_id_continue.c: New file.
52950         * lib/unictype/pr_other_id_start.c: New file.
52951         * lib/unictype/pr_other_lowercase.c: New file.
52952         * lib/unictype/pr_other_math.c: New file.
52953         * lib/unictype/pr_other_uppercase.c: New file.
52954         * lib/unictype/pr_paired_punctuation.c: New file.
52955         * lib/unictype/pr_paragraph_separator.c: New file.
52956         * lib/unictype/pr_pattern_syntax.c: New file.
52957         * lib/unictype/pr_pattern_white_space.c: New file.
52958         * lib/unictype/pr_private_use.c: New file.
52959         * lib/unictype/pr_punctuation.c: New file.
52960         * lib/unictype/pr_quotation_mark.c: New file.
52961         * lib/unictype/pr_radical.c: New file.
52962         * lib/unictype/pr_sentence_terminal.c: New file.
52963         * lib/unictype/pr_soft_dotted.c: New file.
52964         * lib/unictype/pr_space.c: New file.
52965         * lib/unictype/pr_terminal_punctuation.c: New file.
52966         * lib/unictype/pr_test.c: New file.
52967         * lib/unictype/pr_titlecase.c: New file.
52968         * lib/unictype/pr_unassigned_code_value.c: New file.
52969         * lib/unictype/pr_unified_ideograph.c: New file.
52970         * lib/unictype/pr_uppercase.c: New file.
52971         * lib/unictype/pr_variation_selector.c: New file.
52972         * lib/unictype/pr_white_space.c: New file.
52973         * lib/unictype/pr_xid_continue.c: New file.
52974         * lib/unictype/pr_xid_start.c: New file.
52975         * lib/unictype/pr_zero_width.c: New file.
52976         * lib/unictype/scripts.c: New file.
52977         * lib/unictype/sy_c_ident.c: New file.
52978         * lib/unictype/sy_c_whitespace.c: New file.
52979         * lib/unictype/sy_java_ident.c: New file.
52980         * lib/unictype/sy_java_whitespace.c: New file.
52981
52982         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
52983         Unicode 5.0.0.
52984         * lib/unictype/blocks.h: Likewise.
52985         * lib/unictype/categ_C.h: Likewise.
52986         * lib/unictype/categ_Cc.h: Likewise.
52987         * lib/unictype/categ_Cf.h: Likewise.
52988         * lib/unictype/categ_Cn.h: Likewise.
52989         * lib/unictype/categ_Co.h: Likewise.
52990         * lib/unictype/categ_Cs.h: Likewise.
52991         * lib/unictype/categ_L.h: Likewise.
52992         * lib/unictype/categ_Ll.h: Likewise.
52993         * lib/unictype/categ_Lm.h: Likewise.
52994         * lib/unictype/categ_Lo.h: Likewise.
52995         * lib/unictype/categ_Lt.h: Likewise.
52996         * lib/unictype/categ_Lu.h: Likewise.
52997         * lib/unictype/categ_M.h: Likewise.
52998         * lib/unictype/categ_Mc.h: Likewise.
52999         * lib/unictype/categ_Me.h: Likewise.
53000         * lib/unictype/categ_Mn.h: Likewise.
53001         * lib/unictype/categ_N.h: Likewise.
53002         * lib/unictype/categ_Nd.h: Likewise.
53003         * lib/unictype/categ_Nl.h: Likewise.
53004         * lib/unictype/categ_No.h: Likewise.
53005         * lib/unictype/categ_P.h: Likewise.
53006         * lib/unictype/categ_Pc.h: Likewise.
53007         * lib/unictype/categ_Pd.h: Likewise.
53008         * lib/unictype/categ_Pe.h: Likewise.
53009         * lib/unictype/categ_Pf.h: Likewise.
53010         * lib/unictype/categ_Pi.h: Likewise.
53011         * lib/unictype/categ_Po.h: Likewise.
53012         * lib/unictype/categ_Ps.h: Likewise.
53013         * lib/unictype/categ_S.h: Likewise.
53014         * lib/unictype/categ_Sc.h: Likewise.
53015         * lib/unictype/categ_Sk.h: Likewise.
53016         * lib/unictype/categ_Sm.h: Likewise.
53017         * lib/unictype/categ_So.h: Likewise.
53018         * lib/unictype/categ_Z.h: Likewise.
53019         * lib/unictype/categ_Zl.h: Likewise.
53020         * lib/unictype/categ_Zp.h: Likewise.
53021         * lib/unictype/categ_Zs.h: Likewise.
53022         * lib/unictype/categ_of.h: Likewise.
53023         * lib/unictype/combining.h: Likewise.
53024         * lib/unictype/ctype_alnum.h: Likewise.
53025         * lib/unictype/ctype_alpha.h: Likewise.
53026         * lib/unictype/ctype_blank.h: Likewise.
53027         * lib/unictype/ctype_cntrl.h: Likewise.
53028         * lib/unictype/ctype_digit.h: Likewise.
53029         * lib/unictype/ctype_graph.h: Likewise.
53030         * lib/unictype/ctype_lower.h: Likewise.
53031         * lib/unictype/ctype_print.h: Likewise.
53032         * lib/unictype/ctype_punct.h: Likewise.
53033         * lib/unictype/ctype_space.h: Likewise.
53034         * lib/unictype/ctype_upper.h: Likewise.
53035         * lib/unictype/ctype_xdigit.h: Likewise.
53036         * lib/unictype/decdigit.h: Likewise.
53037         * lib/unictype/digit.h: Likewise.
53038         * lib/unictype/mirror.h: Likewise.
53039         * lib/unictype/numeric.h: Likewise.
53040         * lib/unictype/pr_alphabetic.h: Likewise.
53041         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53042         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53043         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53044         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53045         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53046         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53047         * lib/unictype/pr_bidi_control.h: Likewise.
53048         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53049         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53050         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53051         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53052         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53053         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53054         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53055         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53056         * lib/unictype/pr_bidi_pdf.h: Likewise.
53057         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53058         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53059         * lib/unictype/pr_combining.h: Likewise.
53060         * lib/unictype/pr_composite.h: Likewise.
53061         * lib/unictype/pr_currency_symbol.h: Likewise.
53062         * lib/unictype/pr_dash.h: Likewise.
53063         * lib/unictype/pr_decimal_digit.h: Likewise.
53064         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53065         * lib/unictype/pr_deprecated.h: Likewise.
53066         * lib/unictype/pr_diacritic.h: Likewise.
53067         * lib/unictype/pr_extender.h: Likewise.
53068         * lib/unictype/pr_format_control.h: Likewise.
53069         * lib/unictype/pr_grapheme_base.h: Likewise.
53070         * lib/unictype/pr_grapheme_extend.h: Likewise.
53071         * lib/unictype/pr_grapheme_link.h: Likewise.
53072         * lib/unictype/pr_hex_digit.h: Likewise.
53073         * lib/unictype/pr_hyphen.h: Likewise.
53074         * lib/unictype/pr_id_continue.h: Likewise.
53075         * lib/unictype/pr_id_start.h: Likewise.
53076         * lib/unictype/pr_ideographic.h: Likewise.
53077         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53078         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53079         * lib/unictype/pr_ignorable_control.h: Likewise.
53080         * lib/unictype/pr_iso_control.h: Likewise.
53081         * lib/unictype/pr_join_control.h: Likewise.
53082         * lib/unictype/pr_left_of_pair.h: Likewise.
53083         * lib/unictype/pr_line_separator.h: Likewise.
53084         * lib/unictype/pr_logical_order_exception.h: Likewise.
53085         * lib/unictype/pr_lowercase.h: Likewise.
53086         * lib/unictype/pr_math.h: Likewise.
53087         * lib/unictype/pr_non_break.h: Likewise.
53088         * lib/unictype/pr_not_a_character.h: Likewise.
53089         * lib/unictype/pr_numeric.h: Likewise.
53090         * lib/unictype/pr_other_alphabetic.h: Likewise.
53091         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53092         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53093         * lib/unictype/pr_other_id_continue.h: Likewise.
53094         * lib/unictype/pr_other_id_start.h: Likewise.
53095         * lib/unictype/pr_other_lowercase.h: Likewise.
53096         * lib/unictype/pr_other_math.h: Likewise.
53097         * lib/unictype/pr_other_uppercase.h: Likewise.
53098         * lib/unictype/pr_paired_punctuation.h: Likewise.
53099         * lib/unictype/pr_paragraph_separator.h: Likewise.
53100         * lib/unictype/pr_pattern_syntax.h: Likewise.
53101         * lib/unictype/pr_pattern_white_space.h: Likewise.
53102         * lib/unictype/pr_private_use.h: Likewise.
53103         * lib/unictype/pr_punctuation.h: Likewise.
53104         * lib/unictype/pr_quotation_mark.h: Likewise.
53105         * lib/unictype/pr_radical.h: Likewise.
53106         * lib/unictype/pr_sentence_terminal.h: Likewise.
53107         * lib/unictype/pr_soft_dotted.h: Likewise.
53108         * lib/unictype/pr_space.h: Likewise.
53109         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53110         * lib/unictype/pr_titlecase.h: Likewise.
53111         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53112         * lib/unictype/pr_unified_ideograph.h: Likewise.
53113         * lib/unictype/pr_uppercase.h: Likewise.
53114         * lib/unictype/pr_variation_selector.h: Likewise.
53115         * lib/unictype/pr_white_space.h: Likewise.
53116         * lib/unictype/pr_xid_continue.h: Likewise.
53117         * lib/unictype/pr_xid_start.h: Likewise.
53118         * lib/unictype/pr_zero_width.h: Likewise.
53119         * lib/unictype/scripts.h: Likewise.
53120         * lib/unictype/scripts_byname.gperf: Likewise.
53121         * lib/unictype/sy_c_ident.h: Likewise.
53122         * lib/unictype/sy_c_whitespace.h: Likewise.
53123         * lib/unictype/sy_java_ident.h: Likewise.
53124         * lib/unictype/sy_java_whitespace.h: Likewise.
53125
53126         * lib/unictype/Makefile: New file.
53127         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
53128         glibc.
53129         * lib/unictype/3level.h: New file, copied from glibc.
53130         * lib/unictype/3levelbit.h: New file.
53131
53132 2007-11-11  Bruno Haible  <bruno@clisp.org>
53133
53134         * modules/gperf: New file.
53135         * modules/iconv_open (Depends-on): Add it.
53136         (Makefile.am): Remove the GPERF definition.
53137
53138 2007-11-11  Bruno Haible  <bruno@clisp.org>
53139
53140         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
53141         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
53142
53143 2007-11-11  Bruno Haible  <bruno@clisp.org>
53144
53145         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
53146         (usage): Remove function.
53147
53148 2007-11-11  Bruno Haible  <bruno@clisp.org>
53149
53150         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
53151         gl_FUNC_CEILF_LIBS.
53152         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
53153         gl_FUNC_CEIL_LIBS.
53154         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
53155         gl_FUNC_CEILL_LIBS.
53156         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
53157         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
53158         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
53159
53160 2007-11-11  Bruno Haible  <bruno@clisp.org>
53161
53162         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
53163         roundf were declared but do not exist on functions.
53164         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
53165         roundl were declared but do not exist on functions.
53166         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
53167         HAVE_FLOORL_AND_CEILL, respectively.
53168         Needed for Sun C on Solaris 10.
53169
53170 2007-11-11  Bruno Haible  <bruno@clisp.org>
53171
53172         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
53173         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
53174         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
53175         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53176         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53177         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53178         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53179         HAVE_DECL_ROUNDF.
53180         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53181         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53183         of HAVE_DECL_ROUND*.
53184         * modules/math (Makefile.am): Update.
53185
53186 2007-11-10  Bruno Haible  <bruno@clisp.org>
53187
53188         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53189         ptrdiff_t as m4/intl.m4.
53190
53191 2007-11-10  Jim Meyering  <meyering@redhat.com>
53192
53193         Avoid link failure for the argmatch test.
53194         * tests/test-argmatch.c (usage): Define function to avoid a link
53195         failure: argmatch_die requires a usage function.
53196
53197 2007-11-09  Bruno Haible  <bruno@clisp.org>
53198
53199         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53200         * doc/functions/vsnprintf.texi: Likewise.
53201         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53202         with a size argument < 2.
53203
53204 2007-11-09  Bruno Haible  <bruno@clisp.org>
53205
53206         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
53207         buffer. Fixes an inefficiency introduced on 2007-11-03.
53208
53209 2007-11-09  Bruno Haible  <bruno@clisp.org>
53210
53211         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
53212         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
53213
53214 2007-11-08  Jim Meyering  <meyering@redhat.com>
53215
53216         Change cache variable name prefix "jm_" to "gl_" everywhere.
53217         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
53218         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
53219         * m4/uptime.m4: s/gl_/jm_/
53220
53221 2007-11-07  Bruno Haible  <bruno@clisp.org>
53222
53223         Update to GNU gettext 0.17.
53224         * m4/intl.m4: Update to GNU gettext 0.17.
53225         * m4/po.m4: Likewise.
53226         * modules/gettext (Files): Remove m4/ulonglong.m4.
53227         (configure.ac): Require gettext infrastructure from version 0.17.
53228
53229 2007-11-06  Bruno Haible  <bruno@clisp.org>
53230
53231         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
53232         symbolic values are not defined in a public header.
53233         * lib/freadable.c (freadable) [QNX]: Likewise.
53234         * lib/freadahead.c (freadahead) [QNX]: Likewise.
53235         * lib/freading.c (freading) [QNX]: Likewise.
53236         * lib/fseterr.c (fseterr) [QNX]: Likewise.
53237         * lib/fwritable.c (fwritable) [QNX]: Likewise.
53238         * lib/fwriting.c (fwriting) [QNX]: Likewise.
53239         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
53240         Reported by Alain Magloire.
53241
53242         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
53243
53244 2007-11-05  Bruno Haible  <bruno@clisp.org>
53245
53246         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
53247         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
53248         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
53249         Reported by Eric Blake.
53250
53251 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53252             Bruno Haible  <bruno@clisp.org>
53253
53254         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
53255         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
53256         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
53257         (malloc): Undefine also before including <stdlib.h>.
53258         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
53259         Needed on OSF/1 4.0.
53260
53261 2007-11-05  Jim Meyering  <meyering@redhat.com>
53262
53263         git-version-gen: sync from coreutils.
53264         * build-aux/git-version-gen: Add comments.
53265         Change the first '-' to '.' in the snapshot version string,
53266         e.g., 6.9-377-08144 -> 6.9.377-08144
53267         Remove first parameter.
53268         Don't declare a version "-dirty" merely because a time
53269         stamp has changed.
53270
53271 2007-11-04  Bruno Haible  <bruno@clisp.org>
53272
53273         * lib/lock.h: Protect all macro definitions containing an 'if'
53274         statement through a "do { ... } while (0)".
53275         * lib/tls.h: Likewise.
53276
53277 2007-11-04  Bruno Haible  <bruno@clisp.org>
53278
53279         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
53280
53281 2007-11-04  Bruno Haible  <bruno@clisp.org>
53282
53283         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
53284         * modules/fprintf-posix (Depends-on): Add nocrash.
53285         * modules/snprintf-posix (Depends-on): Likewise.
53286         * modules/sprintf-posix (Depends-on): Likewise.
53287         * modules/vasnprintf-posix (Depends-on): Likewise.
53288         * modules/vasprintf-posix (Depends-on): Likewise.
53289         * modules/vfprintf-posix (Depends-on): Likewise.
53290         * modules/vsnprintf-posix (Depends-on): Likewise.
53291         * modules/vsprintf-posix (Depends-on): Likewise.
53292         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53293         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53294         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53295         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53296         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53297         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53298         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53299
53300 2007-11-04  Bruno Haible  <bruno@clisp.org>
53301
53302         * modules/nocrash: New file.
53303         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
53304         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
53305
53306 2007-11-04  Bruno Haible  <bruno@clisp.org>
53307
53308         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
53309         precision handling.
53310         * tests/test-vasprintf-posix.c (test_function): Likewise.
53311         * tests/test-snprintf-posix.h (test_function): Likewise.
53312         * tests/test-sprintf-posix.h (test_function): Likewise.
53313
53314         Fix *printf behaviour for large precisions on mingw and BeOS.
53315         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
53316         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
53317         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
53318         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53319         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53320         gl_PRINTF_PRECISION and test its result. Invoke
53321         gl_PREREQ_VASNPRINTF_PRECISION.
53322         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53323         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53324         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53325         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53326         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53327         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53328         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53329         * doc/functions/fprintf.texi: Update.
53330         * doc/functions/printf.texi: Update.
53331         * doc/functions/snprintf.texi: Update.
53332         * doc/functions/sprintf.texi: Update.
53333         * doc/functions/vfprintf.texi: Update.
53334         * doc/functions/vprintf.texi: Update.
53335         * doc/functions/vsnprintf.texi: Update.
53336         * doc/functions/vsprintf.texi: Update.
53337
53338 2007-11-04  Bruno Haible  <bruno@clisp.org>
53339
53340         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
53341
53342 2007-11-04  Bruno Haible  <bruno@clisp.org>
53343
53344         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
53345         Reported by Sylvain Beucler <beuc@gnu.org>.
53346
53347 2007-11-03  Bruno Haible  <bruno@clisp.org>
53348
53349         * tests/test-fprintf-posix2.sh: New file.
53350         * tests/test-fprintf-posix2.c: New file.
53351         * modules/fprintf-posix-tests (Files): Add them.
53352         (TESTS): Add test-fprintf-posix2.sh.
53353         (configure.ac): Check for getrlimit and setrlimit.
53354         (check_PROGRAMS): Add test-fprintf-posix2.
53355
53356         * tests/test-printf-posix2.sh: New file.
53357         * tests/test-printf-posix2.c: New file.
53358         * modules/printf-posix-tests (Files): Add them.
53359         (TESTS): Add test-printf-posix2.sh.
53360         (configure.ac): Check for getrlimit and setrlimit.
53361         (check_PROGRAMS): Add test-printf-posix2.
53362
53363         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
53364         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
53365         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
53366         (decode_double): New function, copied from decode_long_double.
53367         (scale10_round_decimal_decoded): New function, extracted from
53368         scale10_round_decimal_long_double.
53369         (scale10_round_decimal_long_double): Use it.
53370         (scale10_round_decimal_double): New function.
53371         (floorlog10): New function.
53372         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
53373         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
53374         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53375         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53376         gl_PRINTF_ENOMEM and test its result. Invoke
53377         gl_PREREQ_VASNPRINTF_ENOMEM.
53378         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53379         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53380         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53381         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53382         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53383         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53384         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53385         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
53386         * modules/snprintf-posix (Depends-on): Likewise.
53387         * modules/sprintf-posix (Depends-on): Likewise.
53388         * modules/vasnprintf-posix (Depends-on): Likewise.
53389         * modules/vasprintf-posix (Depends-on): Likewise.
53390         * modules/vfprintf-posix (Depends-on): Likewise.
53391         * modules/vsnprintf-posix (Depends-on): Likewise.
53392         * modules/vsprintf-posix (Depends-on): Likewise.
53393         * doc/functions/fprintf.texi: Update.
53394         * doc/functions/printf.texi: Update.
53395         * doc/functions/snprintf.texi: Update.
53396         * doc/functions/sprintf.texi: Update.
53397         * doc/functions/vfprintf.texi: Update.
53398         * doc/functions/vprintf.texi: Update.
53399         * doc/functions/vsnprintf.texi: Update.
53400         * doc/functions/vsprintf.texi: Update.
53401
53402 2007-11-03  Bruno Haible  <bruno@clisp.org>
53403
53404         * modules/frexp-nolibm-tests: New file.
53405
53406         * modules/frexp-nolibm: New file.
53407         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
53408
53409 2007-11-03  Bruno Haible  <bruno@clisp.org>
53410
53411         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
53412         value is C99 compliant.
53413         Needed for OSF/1 5.1.
53414
53415 2007-11-03  Bruno Haible  <bruno@clisp.org>
53416
53417         Fix out-of-memory handling of vasnprintf.
53418         * lib/printf-parse.c: Include <errno.h>.
53419         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
53420         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
53421         is already set.
53422
53423 2007-11-02  Eric Blake  <ebb9@byu.net>
53424
53425         Fix tests on cygwin.
53426         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
53427
53428 2007-11-01  Bruno Haible  <bruno@clisp.org>
53429
53430         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
53431         warning.
53432         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
53433         needed for POSIX compatibility.
53434
53435 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53436
53437         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
53438         for compatibility with GNU.
53439
53440 2007-11-01  Bruno Haible  <bruno@clisp.org>
53441
53442         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
53443         (putenv): Renamed from rpl_putenv. Change argument type from
53444         'const char *' to 'char *'.
53445         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
53446         of defining putenv in config.h, just set REPLACE_PUTENV.
53447         * modules/putenv (Depends-on): Add stdlib.
53448         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53449         (Include): Use <stdlib.h>.
53450         * lib/stdlib.in.h (putenv): New declaration.
53451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
53452         REPLACE_PUTENV.
53453         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
53454         REPLACE_PUTENV.
53455         Needed for MacOS X 10.5.0.
53456         Reported by Peter O'Gorman <peter@pogma.com>.
53457
53458 2007-11-01  Jim Meyering  <meyering@redhat.com>
53459
53460         Treat an empty date string exactly like "0".
53461         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
53462         if the remaining date string (to be parsed) is empty, use "0".
53463         Reported by Mischa Molhoek and discussed in this thread:
53464         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
53465
53466 2007-10-31  Bruno Haible  <bruno@clisp.org>
53467
53468         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
53469         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
53470         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
53471         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
53472         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
53473         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
53474
53475 2007-10-31  Bruno Haible  <bruno@clisp.org>
53476
53477         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
53478         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
53479         (AC_TYPE_LONG_LONG_INT): Use it.
53480         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
53481         it as well.
53482         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
53483         to m4/longlong.m4.
53484         * modules/stdint (Files): Remove m4/ulonglong.m4.
53485         * modules/strtoull (Files): Use m4/longlong.m4 instead of
53486         m4/ulonglong.m4.
53487         * modules/strtoumax (Files): Likewise.
53488
53489 2007-10-30  Bruno Haible  <bruno@clisp.org>
53490
53491         * modules/xvasprintf-posix: New file.
53492         Suggested by Eric Blake.
53493
53494 2007-10-30  Bruno Haible  <bruno@clisp.org>
53495
53496         * modules/xprintf-posix-tests: New file.
53497         * tests/test-xprintf-posix.sh: New file.
53498         * tests/test-xprintf-posix.c: New file.
53499         * tests/test-xfprintf-posix.c: New file.
53500
53501         * modules/xprintf-posix: New file.
53502
53503 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53504
53505         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
53506         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
53507         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
53508
53509 2007-10-29  Bruno Haible  <bruno@clisp.org>
53510
53511         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
53512         contain the special marker '_cv_'.
53513         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
53514         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
53515         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
53516         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
53517         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
53518         Reported by Ralf Wildenhues.
53519
53520 2007-10-29  Bruno Haible  <bruno@clisp.org>
53521
53522         * gnulib-tool (func_import): When --lgpl is not specified, set
53523         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
53524         GPLv3.
53525         Reported by Simon Josefsson.
53526
53527 2007-10-28  Bruno Haible  <bruno@clisp.org>
53528
53529         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
53530         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
53531         HAVE_DECL_ISFINITE.
53532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53533         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
53534         HAVE_DECL_ISFINITE.
53535
53536 2007-10-28  Bruno Haible  <bruno@clisp.org>
53537
53538         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
53539         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
53540
53541 2007-10-28  Bruno Haible  <bruno@clisp.org>
53542
53543         Fix link errors with Sun C 5.0 on Solaris 10.
53544         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
53545         function is declared but not present in the compiler's libm.
53546         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53547         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
53548         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
53549         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
53550         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
53551         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
53552         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
53553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53554         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
53555         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
53556         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
53557         HAVE_DECL_FLOORL.
53558
53559 2007-10-28  Bruno Haible  <bruno@clisp.org>
53560
53561         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
53562         gl_FUNC_FLOORL. Cache the result.
53563         (gl_FUNC_FLOORL): Use it.
53564         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
53565         gl_FUNC_CEILL. Cache the result.
53566         (gl_FUNC_CEILL): Use it.
53567
53568         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
53569         gl_FUNC_FLOOR. Cache the result.
53570         (gl_FUNC_FLOOR): Use it.
53571         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
53572         gl_FUNC_CEIL. Cache the result.
53573         (gl_FUNC_CEIL): Use it.
53574
53575         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
53576         gl_FUNC_FLOORF. Cache the result.
53577         (gl_FUNC_FLOORF): Use it.
53578         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
53579         gl_FUNC_CEILF. Cache the result.
53580         (gl_FUNC_CEILF): Use it.
53581
53582 2007-10-28  Bruno Haible  <bruno@clisp.org>
53583
53584         * gnulib-tool: Allow specifying the LGPL version number through
53585         --lgpl=2 or --lgpl=3.
53586         (func_usage): Document --lgpl with argument.
53587         Handle --lgpl=... arguments.
53588         (func_import): Recognize also gl_LGPL calls with an argument. When
53589         --lgpl=2 is used and the module's license is just LGPL, report an
53590         error. Set sed_transform_lib_file according to the lgpl variable. In
53591         the generated files, use --lgpl or gl_LGPL invocations with argument,
53592         if necessary.
53593         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
53594         an LGPv2+ license.
53595         * doc/gnulib-tool.texi (Modified imports): Update explanation of
53596         gl_LGPL macro.
53597
53598 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53599             Bruno Haible  <bruno@clisp.org>
53600
53601         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
53602         (u16_uctomb_aux): Likewise.
53603         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
53604         !HAVE_INLINE.
53605         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
53606
53607 2007-10-28  Bruno Haible  <bruno@clisp.org>
53608
53609         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
53610         Invoke AM_GETTEXT_OPTION if it exists.
53611         * modules/vasprintf: Likewise.
53612         * modules/verror: Likewise.
53613         * modules/xprintf: Likewise.
53614         * modules/xvasprintf: Likewise.
53615
53616 2007-10-27  Ben Pfaff  <blp@gnu.org>
53617
53618         * lib/math.in.h: Define isfinite macro and prototypes for
53619         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
53620         implementations.
53621         * m4/math_h.m4: New substitutions for isfinite module.
53622         * lib/isfinite.c: New file.
53623         * m4/isfinite.m4: New file.
53624         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
53625         * modules/isfinite: New file.
53626         * modules/isfinite-tests: New file.
53627         * tests/tests-isfinite.c: New file.
53628         * doc/functions/isfinite.texi: Mention isfinite module.
53629         * MODULES.html.sh: Mention new module.
53630
53631 2007-10-27  Ben Pfaff  <blp@gnu.org>
53632
53633         Ralf Wildenhues reported that Tru64 4.0D declares the round
53634         functions but does not have definitions.
53635         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
53636         cannot be found in any library, set the output variable to
53637         "missing" instead of "".
53638         * m4/round.m4: Also use our substitute if we cannot find round in
53639         any library, even if it is declared.
53640         * m4/roundf.m4: Likewise for roundf.
53641         * m4/roundl.m4: Likewise for roundl.
53642         * lib/math.in.h: Undefine roundf, round, roundl before defining
53643         their replacements, to allow for hypothetical systems where these
53644         may be defined as macros but not available in libraries.
53645
53646 2007-10-27  Bruno Haible  <bruno@clisp.org>
53647
53648         * doc/gnulib.texi: Invoke @firstparagraphindent.
53649         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
53650         changes in gnulib.
53651         (Source changes): New section.
53652
53653 2007-10-26  Bruno Haible  <bruno@clisp.org>
53654
53655         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
53656         borrowed from autoconf.
53657
53658 2007-10-26  Bruno Haible  <bruno@clisp.org>
53659
53660         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
53661         strerror returned the empty string. Needed on HP-UX 11.00.
53662
53663 2007-10-24  Micah Cowan  <micah@cowan.name>
53664
53665         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
53666         * build-aux/bootstrap: Remove support for now-unnecessary option,
53667         --cvs-user, and envvars CVS_USER, CVS_RSH.
53668
53669 2007-10-24  Jim Meyering  <meyering@redhat.com>
53670
53671         Avoid diagnostics from sha1sum when there is no cached checksum.
53672         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
53673         if the po.s1 file hasn't been created yet.
53674
53675         * build-aux/bootstrap: Sync from coreutils:
53676         2007-10-24  Jim Meyering  <meyering@redhat.com>
53677         Get gnulib from the git repository, not from an obsolete cvs one.
53678         * build-aux/bootstrap: Suggestion from Micah Cowan.
53679         2007-10-04  Jim Meyering  <jim@meyering.net>
53680         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
53681         (update_po_files): Work also when there are no .po files in po/.
53682
53683 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53684
53685         * README: Append ".git" to git and cg examples.
53686         Problem reported by Benoit Sigoure.
53687
53688 2007-10-23  Micah Cowan  <micah@cowan.name>
53689
53690         * users.txt: Add wget.
53691
53692 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53693
53694         Fix linking of some unistdio tests on FreeBSD.
53695         * modules/unistdio/u16-vsnprintf-tests
53696         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
53697         * modules/unistdio/u16-vsprintf-tests
53698         (test_u16_vsnprintf1_LDADD): Likewise.
53699         * modules/unistdio/u32-vsnprintf-tests
53700         (test_u32_vsnprintf1_LDADD): Likewise.
53701         * modules/unistdio/u32-vsprintf-tests
53702         (test_u32_vsprintf1_LDADD): Likewise.
53703         * modules/unistdio/u8-vsnprintf-tests
53704         (test_u8_vsnprintf1_LDADD): Likewise.
53705         * modules/unistdio/u8-vsprintf-tests
53706         (test_u8_vsprintf1_LDADD): Likewise.
53707         * modules/unistdio/ulc-vsnprintf-tests
53708         (test_ulc_vsnprintf1_LDADD): Likewise.
53709         * modules/unistdio/ulc-vsprintf-tests
53710         (test_ulc_vsprintf1_LDADD): Likewise.
53711
53712         Fix linking of some uniconv tests on FreeBSD.
53713         * modules/uniconv/u16-conv-from-enc-tests
53714         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
53715         * modules/uniconv/u16-conv-to-enc-tests
53716         (test_u16_conv_to_enc_LDADD): Likewise.
53717         * modules/uniconv/u16-strconv-from-enc-tests
53718         (test_u16_strconv_from_enc_LDADD): Likewise.
53719         * modules/uniconv/u16-strconv-to-enc-tests
53720         (test_u16_strconv_to_enc_LDADD): Likewise.
53721         * modules/uniconv/u32-conv-from-enc-tests
53722         (test_u32_conv_from_enc_LDADD): Likewise.
53723         * modules/uniconv/u32-conv-to-enc-tests
53724         (test_u32_conv_to_enc_LDADD): Likewise.
53725         * modules/uniconv/u32-strconv-from-enc-tests
53726         (test_u32_strconv_from_enc_LDADD): Likewise.
53727         * modules/uniconv/u32-strconv-to-enc-tests
53728         (test_u32_strconv_to_enc_LDADD): Likewise.
53729         * modules/uniconv/u8-conv-from-enc-tests
53730         (test_u8_conv_from_enc_LDADD): Likewise.
53731         * modules/uniconv/u8-conv-to-enc-tests
53732         (test_u8_conv_to_enc_LDADD): Likewise.
53733         * modules/uniconv/u8-strconv-from-enc-tests
53734         (test_u8_strconv_from_enc_LDADD): Likewise.
53735         * modules/uniconv/u8-strconv-to-enc-tests
53736         (test_u8_strconv_to_enc_LDADD): Likewise.
53737
53738 2007-10-22  Bruno Haible  <bruno@clisp.org>
53739
53740         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
53741         size.
53742
53743 2007-10-22  Eric Blake  <ebb9@byu.net>
53744
53745         Tweak x*printf documentation.
53746         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
53747         variable name and comments.
53748         Suggested by Bruno Haible.
53749
53750 2007-10-22  Bruno Haible  <bruno@clisp.org>
53751
53752         * lib/acl.c (copy_acl): Fix file name in comment.
53753
53754 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53755
53756         Fix Tru64 problem with stdbool.h.
53757         * lib/stdbool.in.h (false, true):
53758         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
53759         Don't declare as an enum in this situation; it runs afoul of Tru64.
53760         Problem reported by Steven M. Schweda in
53761         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
53762
53763 2007-10-22  Eric Blake  <ebb9@byu.net>
53764
53765         Also wrap vf?printf.
53766         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
53767         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
53768         (xvprintf, xvfprintf): New functions.
53769
53770 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53771
53772         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
53773         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
53774
53775         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
53776         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
53777
53778 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53779
53780         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
53781         by Bruno Haible.
53782
53783 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53784
53785         * lib/getloadavg.c
53786         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
53787         Undef `sys' after including sys/table.h, for Tru64 4.0D.
53788
53789         * tests/test-i-ring.c: Work for C89.
53790
53791 2007-10-22  Bruno Haible  <bruno@clisp.org>
53792
53793         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
53794         -1u, in preprocessor expression, so that we don't test for the bug
53795         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
53796         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
53797
53798 2007-10-22  Eric Blake  <ebb9@byu.net>
53799
53800         * tests/test-yesno.sh: Silence stderr during test.
53801
53802 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53803
53804         * modules/crypto/gc-camellia: New file.
53805
53806         * m4/gc-camellia.m4: New file.
53807
53808         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
53809
53810         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
53811
53812 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53813
53814         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
53815         --help to stdout.  Reported by sms@antinode.org (Steven
53816         M. Schweda).
53817
53818 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53819
53820         * users.txt: Fix link to libksba.
53821
53822 2007-10-21  Ben Pfaff  <blp@gnu.org>
53823
53824         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
53825         round.c roundf implementation that depends on floorf and ceilf to
53826         be tested unconditionally.
53827
53828 2007-10-21  Ben Pfaff  <blp@gnu.org>
53829
53830         * m4/check-libm-func.m4: Removed.
53831         * m4/check-math-lib.m4: New file.
53832         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
53833         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
53834         definition and lack of AC_LIBOBJ([roundf]).
53835         * m4/roundl.m4: Ditto, and similarly for roundl.
53836         * modules/round: Reference new m4 file.
53837         * modules/roundf: Ditto.
53838         * modules/roundl: Ditto.
53839         * tests/test-round2.c (main): Use ROUND instead of round.
53840         Bug report from Bruno Haible.
53841
53842 2007-10-21  Bruno Haible  <bruno@clisp.org>
53843
53844         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
53845         context.
53846
53847 2007-10-21  Bruno Haible  <bruno@clisp.org>
53848
53849         * tests/test-wcwidth.c (main): Allow negative result for some control
53850         characters.
53851
53852         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
53853         Needed on OSF/1 5.1.
53854
53855 2007-10-21  Bruno Haible  <bruno@clisp.org>
53856
53857         * tests/test-floorf1.c: Include isnanf.h.
53858         (main): Use isnanf() instead of isnan().
53859         * tests/test-ceilf1.c: Include isnanf.h.
53860         (main): Use isnanf() instead of isnan().
53861         * tests/test-truncf1.c: Include isnanf.h.
53862         (main): Use isnanf() instead of isnan().
53863         * tests/test-roundf1.c: Include isnanf.h.
53864         (main): Use isnanf() instead of isnan().
53865
53866 2007-10-21  Eric Blake  <ebb9@byu.net>
53867
53868         * users.txt: Update URL for m4.
53869
53870 2007-10-21  Bruno Haible  <bruno@clisp.org>
53871
53872         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
53873
53874 2007-10-21  Bruno Haible  <bruno@clisp.org>
53875
53876         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
53877         Git's management files if the CVS files are not present.
53878
53879 2007-10-20  Bruno Haible  <bruno@clisp.org>
53880
53881         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
53882         gcc-3.4.x.
53883
53884 2007-10-20  Ben Pfaff  <blp@gnu.org>
53885
53886         * lib/math.in.h: Declare round, roundf, roundl if we are providing
53887         implementations.
53888         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
53889         * lib/round.c: New file.
53890         * lib/roundf.c: New file.
53891         * lib/roundl.c: New file.
53892         * m4/round.m4: New file.
53893         * m4/roundf.m4: New file.
53894         * m4/roundl.m4: New file.
53895         * m4/check-libm-func-m4: New file.
53896         * modules/math: Replace round, roundf, roundl related @VARS@ in
53897         math.in.h.
53898         * modules/round: New file.
53899         * modules/round-tests: New file.
53900         * modules/roundf: New file.
53901         * modules/roundf-tests: New file.
53902         * modules/roundl: New file.
53903         * modules/roundl-tests: New file.
53904         * tests/test-round1.c: New file.
53905         * tests/test-round2.c: New file.
53906         * tests/test-roundf1.c: New file.
53907         * tests/test-roundf2.c: New file.
53908         * tests/test-roundl.c: New file.
53909         * doc/functions/round.texi: Mention round module.
53910         * doc/functions/roundf.texi: Mention roundf module.
53911         * doc/functions/roundl.texi: Mention roundl module.
53912         * MODULES.html.sh: Mention new modules.
53913         Thanks to Bruno Haible for suggestions.
53914
53915 2007-10-20  Jim Meyering  <meyering@redhat.com>
53916
53917         * lib/xprintf.c: Include <config.h> unconditionally.
53918
53919         Change xprintf's license to GPL.
53920         * modules/xprintf (License): s/LGPL/GPL/, since this module
53921         depends on modules (exit and exitfail) which are GPL.
53922         Suggestion from Bruno Haible.
53923
53924         xprintf fixes.
53925         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
53926         Use a clearer diagnostic.
53927         Patch from Bruno Haible.
53928
53929 2007-10-20  Bruno Haible  <bruno@clisp.org>
53930
53931         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
53932         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
53933         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53934
53935 2007-10-20  Bruno Haible  <bruno@clisp.org>
53936
53937         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
53938         precision in the comparison result > x - 1 or similar.
53939         * tests/test-ceilf2.c (correct_result_p): Likewise.
53940         * tests/test-truncf2.c (correct_result_p): Likewise.
53941         * tests/test-trunc2.c (correct_result_p): Likewise.
53942         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53943
53944 2007-10-20  Bruno Haible  <bruno@clisp.org>
53945
53946         * modules/ceil: New file.
53947         * m4/ceil.m4: New file.
53948         * doc/functions/ceil.texi: Mention the 'ceil' module.
53949
53950 2007-10-20  Bruno Haible  <bruno@clisp.org>
53951
53952         * modules/floor: New file.
53953         * m4/floor.m4: New file.
53954         * doc/functions/floor.texi: Mention the 'floor' module.
53955
53956 2007-10-20  Bruno Haible  <bruno@clisp.org>
53957
53958         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
53959         of %a.
53960         * modules/floorf-tests (Depends-on): Likewise.
53961         * modules/truncf-tests (Depends-on): Likewise.
53962         * modules/trunc-tests (Depends-on): Likewise.
53963         Reported by Ben Pfaff.
53964
53965 2007-10-19  Jim Meyering  <meyering@redhat.com>
53966
53967         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
53968         Don't bother testing specific errno values.  Just test ferror.
53969
53970         New module: xprintf
53971         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
53972
53973 2007-10-19  Bruno Haible  <bruno@clisp.org>
53974
53975         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
53976         syntax.
53977         * modules/javaexec (Makefile.am): Likewise.
53978         * modules/relocatable-prog (Makefile.am): Likewise.
53979         Suggested by Jim Meyering.
53980
53981 2007-10-18  Bruno Haible  <bruno@clisp.org>
53982
53983         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
53984         Reported by Jim Meyering.
53985
53986 2007-10-18  Eric Blake  <ebb9@byu.net>
53987
53988         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
53989
53990 2007-10-18  Bruno Haible  <bruno@clisp.org>
53991
53992         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
53993         the format string into writable memory. Needed in Fortify conditions.
53994
53995 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
53996             Bruno Haible  <bruno@clisp.org>
53997
53998         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
53999         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54000         * modules/trim (Depends-on): Add mbchar.
54001         (configure.ac): Add gl_FUNC_MBRTOWC.
54002         (Makefile.am): Augment lib_SOURCES.
54003
54004 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54005
54006         Modify glob.c to use fstatat and dirfd, to simplify it.
54007         Suggested by Eric Blake.
54008         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54009         Don't include <stdbool.h>; not used.
54010         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54011         (link_exists_p): Simplify implementation, since we can now assume
54012         dirfd and fstatat.
54013         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54014
54015 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54016
54017         * gnulib-tool (func_get_dependencies): Fix sed script to
54018         match only tests.
54019
54020 2007-10-17  Bruno Haible  <bruno@clisp.org>
54021
54022         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54023         allow locale names without encoding suffix.
54024         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54025         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54026
54027 2007-10-16  Bruno Haible  <bruno@clisp.org>
54028
54029         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54030         * lib/getgroups.c (getgroups): Likewise.
54031         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54032
54033 2007-10-16  Bruno Haible  <bruno@clisp.org>
54034
54035         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54036         * modules/malloc-posix (License): Likewise.
54037         * modules/realloc-posix (License): Likewise.
54038         * modules/calloc-posix (License): Likewise.
54039         * modules/intprops (License): Change from GPL to LGPL, with
54040         Paul Eggert's approval.
54041
54042 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54043
54044         Merge glibc changes into lib/glob.c.
54045
54046         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54047         2007-10-15 04:59:03 UTC.  Here are the changes:
54048
54049         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54050
54051         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54052
54053         * lib/glob.c: Add some branch prediction throughout.
54054
54055         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54056
54057         [BZ #5103]
54058         * lib/glob.c (glob): Recognize patterns starting \/.
54059
54060         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54061
54062         [BZ #3996]
54063         * lib/glob.c (attribute_hidden): Define if not defined.
54064         (glob): Unescape dirname, filename or username when needed and not
54065         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54066         is NULL.  Handle unescaped [ in pattern without closing ].
54067         Don't pass GLOB_CHECK down to recursive glob for directories.
54068         (__glob_pattern_type): New function.
54069         (__glob_pattern_p): Implement using __glob_pattern_type.
54070         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54071         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54072         Remove unreachable code.
54073
54074         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54075
54076         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54077         explain why there are no leaks.
54078
54079         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54080
54081         [BZ #3253]
54082         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54083         time, rather allocate increasingly bigger arrays of pointers, if
54084         possible with alloca, if too large with malloc.
54085
54086 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54087
54088         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54089         Problem reported by H.Merijn Brand in
54090         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54091         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54092         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54093
54094 2007-10-15  Bruno Haible  <bruno@clisp.org>
54095
54096         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54097         with explicit rpl_ prefix.
54098         * lib/fopen.c (fopen): Likewise.
54099         * lib/freopen.c (freopen): Likewise.
54100         * lib/iconv.c (iconv): Likewise.
54101         * lib/iconv_close.c (iconv_close): Likewise.
54102
54103 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54104
54105         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54106
54107 2007-10-15  Bruno Haible  <bruno@clisp.org>
54108
54109         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54110         <stddef.h> instead of <stdlib.h> since we only need NULL.
54111         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54112
54113 2007-10-15  Bruno Haible  <bruno@clisp.org>
54114
54115         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54116         Replace paragraph talking about LIBOBJS.
54117         Reported by Colin Watson <cjwatson@debian.org>.
54118
54119 2007-10-15  Bruno Haible  <bruno@clisp.org>
54120
54121         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54122         <stdlib.h> before using NULL.
54123
54124 2007-10-15  Simon Josefsson  <simon@josefsson.org>
54125
54126         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
54127         Reported by Albert Chin <china@thewrittenword.com>.
54128
54129 2007-10-14  Bruno Haible  <bruno@clisp.org>
54130
54131         * modules/iconv_open-utf-tests: New file.
54132         * tests/test-iconv-utf.c: New file.
54133
54134         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
54135         * modules/iconv_open-utf: New file.
54136         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
54137         (iconv, iconv_close): New declarations.
54138         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
54139         be defined.
54140         (iconv_open): Add special handling of conversion between UTF-8 and
54141         UTF-{16,32}{BE,LE}.
54142         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
54143         * lib/iconv_close.c: New file.
54144         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
54145         gl_FUNC_ICONV_OPEN.
54146         (gl_FUNC_ICONV_OPEN): Use it.
54147         (gl_FUNC_ICONV_OPEN_UTF): New macro.
54148         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
54149         and REPLACE_ICONV_UTF.
54150         * modules/iconv_open (Depends-on): Add c-strcase.
54151         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
54152         ICONV_CONST.
54153         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
54154
54155 2007-10-13  Albert Chin  <china@thewrittenword.com>
54156             Bruno Haible  <bruno@clisp.org>
54157
54158         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
54159         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
54160
54161 2007-10-13  Bruno Haible  <bruno@clisp.org>
54162
54163         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
54164         defined, use the ISO C99 inline semantics.
54165         * lib/argp.h (ARGP_EI): Likewise.
54166
54167 2007-10-13  Bruno Haible  <bruno@clisp.org>
54168
54169         Handle 'inline' change in gcc 4.3.0.
54170         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
54171         argp_fmtstream_write, argp_fmtstream_set_lmargin,
54172         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
54173         argp_fmtstream_point): Disable 'extern' declaration if the function
54174         definition is going to be provided inline.
54175         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54176         semantics, not the ISO C99 inline semantics.
54177         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54178         'extern' declaration if the function definition is going to be provided
54179         inline.
54180         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54181         the GNU C inline semantics, not the ISO C99 inline semantics. With
54182         GCC 4.2, avoid a warning.
54183
54184 2007-10-13  Bruno Haible  <bruno@clisp.org>
54185
54186         * lib/freading.h (freading): Enable the use of __freading for
54187         glibc >= 2.7.
54188         * lib/freading.c (freading): Likewise.
54189
54190 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54191
54192         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54193         "warning: C99 inline functions are not supported; using GNU89".
54194
54195 2007-10-12  Bruno Haible  <bruno@clisp.org>
54196
54197         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54198         of 2.
54199         * tests/test-ceilf2.c: New file.
54200         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54201
54202         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54203         * modules/ceilf-tests: Update.
54204
54205 2007-10-12  Bruno Haible  <bruno@clisp.org>
54206
54207         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
54208         of 2.
54209         * tests/test-floorf2.c: New file.
54210         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
54211
54212         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
54213         * modules/floorf-tests: Update.
54214
54215 2007-10-12  Bruno Haible  <bruno@clisp.org>
54216
54217         * tests/test-trunc2.c: New file.
54218         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
54219
54220         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
54221         * modules/trunc-tests: Update.
54222
54223 2007-10-12  Bruno Haible  <bruno@clisp.org>
54224
54225         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
54226         of 2.
54227         * tests/test-truncf2.c: New file.
54228         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
54229
54230         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
54231         * modules/truncf-tests: Update.
54232
54233 2007-10-11  Eric Blake  <ebb9@byu.net>
54234
54235         Don't claim strerror is broken on Interix.
54236         * doc/functions/strerror.texi (strerror): Known broken systems are
54237         now Solaris 8, and not Interix.
54238         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
54239         Interix on cross-compile.
54240         Reported by Martin Koeppe in
54241         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
54242
54243 2007-10-11  Bruno Haible  <bruno@clisp.org>
54244
54245         * modules/i-ring-tests: New file.
54246         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
54247         instead of assert.
54248
54249 2007-10-11  Bruno Haible  <bruno@clisp.org>
54250
54251         * modules/filenamecat-tests: New file.
54252         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
54253         * lib/filenamecat.c: Remove test code.
54254
54255 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54256
54257         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
54258
54259         * lib/strerror.c: Include <string.h> always, to test interface,
54260         and to remove the need for the dummy.
54261         Include intprops.h to compute width instead of doing it ourselves
54262         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
54263         (strerror): Define it to return NULL if there's no system strerror.
54264         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
54265         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
54266         ancient pre-strerror Unix systems well any more.  Saying "unknown
54267         system error" is enough.
54268         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
54269         simpler strerror.c implementation.
54270         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
54271         Simplify the tests to reflect the simpler strerror implementation.
54272         * modules/strerror (Depends-on): Add intprops.
54273
54274 2007-10-09  Eric Blake  <ebb9@byu.net>
54275
54276         Silence test-fpending.
54277         * modules/fpending-tests (Files): Add wrapper script.
54278         * tests/test-fpending.sh: New file.
54279
54280 2007-10-09  Bruno Haible  <bruno@clisp.org>
54281
54282         * MODULES.html.sh (func_module): Don't create a hyperlink for
54283         function names like 'printf_frexp'.
54284         (Misc): Add crc, memxor.
54285         (Characteristics of floating types): New section.
54286         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
54287         isnanf-nolibm, signbit, trunc, truncf, truncl.
54288         (Enhancements for ISO C 99 functions): New subsection Input/output.
54289         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
54290         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
54291         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
54292         (Compatibility checks for POSIX:2001 functions): Add clock-time.
54293         (Enhancements for POSIX:2001 functions): Add chdir-long.
54294         (File system functions): Add areadlink, chdir-safer, read-file.
54295         Remove cycle-check.
54296         (File system as inode set): New section.
54297         (Date and time): Add gethrxtime.
54298         (Multithreading): Add openmp.
54299         (Internationalization functions): Add localename.
54300         (Unicode string functions): Add unistr/u*-mbsnlen.
54301         (Support for maintaining and releasing projects): Add git-version-gen.
54302         (Lone files): Remove directories.
54303
54304 2007-10-08  Ben Pfaff  <blp@gnu.org>
54305
54306         * lib/xmalloca.h: Fix typo in comment.
54307
54308 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54309
54310         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
54311         when avoiding problems with integer overflow.  Use a portable test
54312         instead.
54313
54314 2007-10-08  Simon Josefsson  <simon@josefsson.org>
54315
54316         * modules/dummy (License): Change to LGPLv2+.
54317         * modules/float (License): Likewise
54318         * modules/realloc (License): Likewise
54319         * modules/stdlib (License): Likewise
54320
54321 2007-10-07  Bruno Haible  <bruno@clisp.org>
54322
54323         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
54324         * floor.c (TWO_MANT_DIG): Likewise.
54325         * ceil.c (TWO_MANT_DIG): Likewise.
54326         Reported by Ben Pfaff.
54327
54328 2007-10-07  Bruno Haible  <bruno@clisp.org>
54329
54330         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
54331         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
54332         * lib/frexp.c (FUNC): Likewise.
54333         * lib/printf-frexp.h (printf_frexp): Likewise.
54334         * lib/printf-frexpl.h (printf_frexpl): Likewise.
54335         * lib/printf-frexp.c (FUNC): Likewise.
54336         Suggested by Jim Meyering.
54337
54338 2007-10-07  Jim Meyering  <meyering@redhat.com>
54339
54340         Make xnanosleep's integer overflow test more robust.
54341         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
54342         so that gcc-4.3.0 doesn't optimize away this test for overflow.
54343
54344 2007-10-07  Bruno Haible  <bruno@clisp.org>
54345
54346         * NEWS: Mention the license change.
54347
54348         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
54349         abbreviations in the modules files.
54350
54351         Change copyright notice from GPLv2+ to GPLv3+.
54352         * README: Change copyright notice.
54353         * MODULES.html.sh: Likewise.
54354         * build-aux/bootstrap.conf: Likewise.
54355         * build-aux/config.libpath: Likewise.
54356         * build-aux/csharpcomp.sh.in: Likewise.
54357         * build-aux/csharpexec.sh.in: Likewise.
54358         * build-aux/install-reloc: Likewise.
54359         * build-aux/javacomp.sh.in: Likewise.
54360         * build-aux/javaexec.sh.in: Likewise.
54361         * build-aux/ldd.sh.in: Likewise.
54362         * build-aux/reloc-ldflags: Likewise.
54363         * build-aux/relocatable.sh.in: Likewise.
54364         * build-aux/x-to-1.in: Likewise.
54365         * check-module: Likewise.
54366         * config/srclistvars.sh: Likewise.
54367         * gnulib-tool: Likewise.
54368         * lib/acl-internal.h: Likewise.
54369         * lib/acl.c: Likewise.
54370         * lib/acl.h: Likewise.
54371         * lib/acl_entries.c: Likewise.
54372         * lib/areadlink-with-size.c: Likewise.
54373         * lib/areadlink.c: Likewise.
54374         * lib/areadlink.h: Likewise.
54375         * lib/argmatch.c: Likewise.
54376         * lib/argmatch.h: Likewise.
54377         * lib/argp-ba.c: Likewise.
54378         * lib/argp-eexst.c: Likewise.
54379         * lib/argp-fmtstream.c: Likewise.
54380         * lib/argp-fmtstream.h: Likewise.
54381         * lib/argp-fs-xinl.c: Likewise.
54382         * lib/argp-help.c: Likewise.
54383         * lib/argp-namefrob.h: Likewise.
54384         * lib/argp-parse.c: Likewise.
54385         * lib/argp-pin.c: Likewise.
54386         * lib/argp-pv.c: Likewise.
54387         * lib/argp-pvh.c: Likewise.
54388         * lib/argp-xinl.c: Likewise.
54389         * lib/argp.h: Likewise.
54390         * lib/at-func.c: Likewise.
54391         * lib/atanl.c: Likewise.
54392         * lib/backupfile.c: Likewise.
54393         * lib/backupfile.h: Likewise.
54394         * lib/basename.c: Likewise.
54395         * lib/binary-io.h: Likewise.
54396         * lib/byteswap.in.h: Likewise.
54397         * lib/c-stack.c: Likewise.
54398         * lib/c-stack.h: Likewise.
54399         * lib/c-strcasestr.c: Likewise.
54400         * lib/c-strcasestr.h: Likewise.
54401         * lib/c-strstr.c: Likewise.
54402         * lib/c-strstr.h: Likewise.
54403         * lib/c-strtod.c: Likewise.
54404         * lib/calloc.c: Likewise.
54405         * lib/canon-host.c: Likewise.
54406         * lib/canon-host.h: Likewise.
54407         * lib/canonicalize-lgpl.c: Likewise.
54408         * lib/canonicalize.c: Likewise.
54409         * lib/canonicalize.h: Likewise.
54410         * lib/ceil.c: Likewise.
54411         * lib/ceilf.c: Likewise.
54412         * lib/ceill.c: Likewise.
54413         * lib/chdir-long.c: Likewise.
54414         * lib/chdir-long.h: Likewise.
54415         * lib/chdir-safer.c: Likewise.
54416         * lib/chdir-safer.h: Likewise.
54417         * lib/chown.c: Likewise.
54418         * lib/classpath.c: Likewise.
54419         * lib/classpath.h: Likewise.
54420         * lib/clean-temp.c: Likewise.
54421         * lib/clean-temp.h: Likewise.
54422         * lib/cloexec.c: Likewise.
54423         * lib/close-stream.c: Likewise.
54424         * lib/closein.c: Likewise.
54425         * lib/closein.h: Likewise.
54426         * lib/closeout.c: Likewise.
54427         * lib/closeout.h: Likewise.
54428         * lib/concat-filename.c: Likewise.
54429         * lib/copy-file.c: Likewise.
54430         * lib/copy-file.h: Likewise.
54431         * lib/count-one-bits.h: Likewise.
54432         * lib/crc.c: Likewise.
54433         * lib/crc.h: Likewise.
54434         * lib/creat-safer.c: Likewise.
54435         * lib/csharpcomp.c: Likewise.
54436         * lib/csharpcomp.h: Likewise.
54437         * lib/csharpexec.c: Likewise.
54438         * lib/csharpexec.h: Likewise.
54439         * lib/cycle-check.c: Likewise.
54440         * lib/cycle-check.h: Likewise.
54441         * lib/diacrit.c: Likewise.
54442         * lib/diacrit.h: Likewise.
54443         * lib/diffseq.h: Likewise.
54444         * lib/dirchownmod.c: Likewise.
54445         * lib/dirent.in.h: Likewise.
54446         * lib/dirfd.c: Likewise.
54447         * lib/dirfd.h: Likewise.
54448         * lib/dirname.c: Likewise.
54449         * lib/dirname.h: Likewise.
54450         * lib/dummy.c: Likewise.
54451         * lib/dup-safer.c: Likewise.
54452         * lib/dup2.c: Likewise.
54453         * lib/eealloc.h: Likewise.
54454         * lib/error.c: Likewise.
54455         * lib/error.h: Likewise.
54456         * lib/euidaccess.c: Likewise.
54457         * lib/exclude.c: Likewise.
54458         * lib/exclude.h: Likewise.
54459         * lib/execute.c: Likewise.
54460         * lib/execute.h: Likewise.
54461         * lib/exitfail.c: Likewise.
54462         * lib/exitfail.h: Likewise.
54463         * lib/expl.c: Likewise.
54464         * lib/fatal-signal.c: Likewise.
54465         * lib/fatal-signal.h: Likewise.
54466         * lib/fbufmode.c: Likewise.
54467         * lib/fbufmode.h: Likewise.
54468         * lib/fchdir.c: Likewise.
54469         * lib/fchmodat.c: Likewise.
54470         * lib/fchownat.c: Likewise.
54471         * lib/fcntl--.h: Likewise.
54472         * lib/fcntl-safer.h: Likewise.
54473         * lib/fcntl.in.h: Likewise.
54474         * lib/fd-safer.c: Likewise.
54475         * lib/fflush.c: Likewise.
54476         * lib/file-has-acl.c: Likewise.
54477         * lib/file-set.c: Likewise.
54478         * lib/file-type.c: Likewise.
54479         * lib/file-type.h: Likewise.
54480         * lib/fileblocks.c: Likewise.
54481         * lib/filemode.c: Likewise.
54482         * lib/filemode.h: Likewise.
54483         * lib/filename.h: Likewise.
54484         * lib/filenamecat.c: Likewise.
54485         * lib/filenamecat.h: Likewise.
54486         * lib/findprog.c: Likewise.
54487         * lib/findprog.h: Likewise.
54488         * lib/float.in.h: Likewise.
54489         * lib/floor.c: Likewise.
54490         * lib/floorf.c: Likewise.
54491         * lib/floorl.c: Likewise.
54492         * lib/fopen-safer.c: Likewise.
54493         * lib/fopen.c: Likewise.
54494         * lib/fpending.c: Likewise.
54495         * lib/fpending.h: Likewise.
54496         * lib/fprintf.c: Likewise.
54497         * lib/fprintftime.h: Likewise.
54498         * lib/fpucw.h: Likewise.
54499         * lib/fpurge.c: Likewise.
54500         * lib/fpurge.h: Likewise.
54501         * lib/freadable.c: Likewise.
54502         * lib/freadable.h: Likewise.
54503         * lib/freadahead.c: Likewise.
54504         * lib/freadahead.h: Likewise.
54505         * lib/freading.c: Likewise.
54506         * lib/freading.h: Likewise.
54507         * lib/free.c: Likewise.
54508         * lib/freopen.c: Likewise.
54509         * lib/frexp.c: Likewise.
54510         * lib/frexpl.c: Likewise.
54511         * lib/fseek.c: Likewise.
54512         * lib/fseterr.c: Likewise.
54513         * lib/fseterr.h: Likewise.
54514         * lib/fstatat.c: Likewise.
54515         * lib/fstrcmp.c: Likewise.
54516         * lib/fstrcmp.h: Likewise.
54517         * lib/fsusage.c: Likewise.
54518         * lib/fsusage.h: Likewise.
54519         * lib/ftell.c: Likewise.
54520         * lib/ftello.c: Likewise.
54521         * lib/fts-cycle.c: Likewise.
54522         * lib/fts.c: Likewise.
54523         * lib/fts_.h: Likewise.
54524         * lib/full-read.c: Likewise.
54525         * lib/full-read.h: Likewise.
54526         * lib/full-write.c: Likewise.
54527         * lib/full-write.h: Likewise.
54528         * lib/fwritable.c: Likewise.
54529         * lib/fwritable.h: Likewise.
54530         * lib/fwriteerror.c: Likewise.
54531         * lib/fwriteerror.h: Likewise.
54532         * lib/fwriting.c: Likewise.
54533         * lib/fwriting.h: Likewise.
54534         * lib/gcd.c: Likewise.
54535         * lib/gcd.h: Likewise.
54536         * lib/getcwd.c: Likewise.
54537         * lib/getdate.h: Likewise.
54538         * lib/getdate.y: Likewise.
54539         * lib/getdomainname.c: Likewise.
54540         * lib/getdomainname.h: Likewise.
54541         * lib/getgroups.c: Likewise.
54542         * lib/gethostname.c: Likewise.
54543         * lib/gethrxtime.c: Likewise.
54544         * lib/gethrxtime.h: Likewise.
54545         * lib/getloadavg.c: Likewise.
54546         * lib/getndelim2.c: Likewise.
54547         * lib/getndelim2.h: Likewise.
54548         * lib/getnline.c: Likewise.
54549         * lib/getnline.h: Likewise.
54550         * lib/getopt.c: Likewise.
54551         * lib/getopt.in.h: Likewise.
54552         * lib/getopt1.c: Likewise.
54553         * lib/getopt_int.h: Likewise.
54554         * lib/getpagesize.h: Likewise.
54555         * lib/getsubopt.c: Likewise.
54556         * lib/gettime.c: Likewise.
54557         * lib/getugroups.c: Likewise.
54558         * lib/getugroups.h: Likewise.
54559         * lib/getusershell.c: Likewise.
54560         * lib/gl_anyavltree_list1.h: Likewise.
54561         * lib/gl_anyavltree_list2.h: Likewise.
54562         * lib/gl_anyhash_list1.h: Likewise.
54563         * lib/gl_anyhash_list2.h: Likewise.
54564         * lib/gl_anylinked_list1.h: Likewise.
54565         * lib/gl_anylinked_list2.h: Likewise.
54566         * lib/gl_anyrbtree_list1.h: Likewise.
54567         * lib/gl_anyrbtree_list2.h: Likewise.
54568         * lib/gl_anytree_list1.h: Likewise.
54569         * lib/gl_anytree_list2.h: Likewise.
54570         * lib/gl_anytree_oset.h: Likewise.
54571         * lib/gl_anytreehash_list1.h: Likewise.
54572         * lib/gl_anytreehash_list2.h: Likewise.
54573         * lib/gl_array_list.c: Likewise.
54574         * lib/gl_array_list.h: Likewise.
54575         * lib/gl_array_oset.c: Likewise.
54576         * lib/gl_array_oset.h: Likewise.
54577         * lib/gl_avltree_list.c: Likewise.
54578         * lib/gl_avltree_list.h: Likewise.
54579         * lib/gl_avltree_oset.c: Likewise.
54580         * lib/gl_avltree_oset.h: Likewise.
54581         * lib/gl_avltreehash_list.c: Likewise.
54582         * lib/gl_avltreehash_list.h: Likewise.
54583         * lib/gl_carray_list.c: Likewise.
54584         * lib/gl_carray_list.h: Likewise.
54585         * lib/gl_linked_list.c: Likewise.
54586         * lib/gl_linked_list.h: Likewise.
54587         * lib/gl_linkedhash_list.c: Likewise.
54588         * lib/gl_linkedhash_list.h: Likewise.
54589         * lib/gl_list.c: Likewise.
54590         * lib/gl_list.h: Likewise.
54591         * lib/gl_oset.c: Likewise.
54592         * lib/gl_oset.h: Likewise.
54593         * lib/gl_rbtree_list.c: Likewise.
54594         * lib/gl_rbtree_list.h: Likewise.
54595         * lib/gl_rbtree_oset.c: Likewise.
54596         * lib/gl_rbtree_oset.h: Likewise.
54597         * lib/gl_rbtreehash_list.c: Likewise.
54598         * lib/gl_rbtreehash_list.h: Likewise.
54599         * lib/gl_sublist.c: Likewise.
54600         * lib/gl_sublist.h: Likewise.
54601         * lib/group-member.c: Likewise.
54602         * lib/group-member.h: Likewise.
54603         * lib/hard-locale.c: Likewise.
54604         * lib/hard-locale.h: Likewise.
54605         * lib/hash-pjw.c: Likewise.
54606         * lib/hash-pjw.h: Likewise.
54607         * lib/hash-triple.c: Likewise.
54608         * lib/hash.c: Likewise.
54609         * lib/hash.h: Likewise.
54610         * lib/human.c: Likewise.
54611         * lib/human.h: Likewise.
54612         * lib/i-ring.c: Likewise.
54613         * lib/i-ring.h: Likewise.
54614         * lib/idcache.c: Likewise.
54615         * lib/imaxabs.c: Likewise.
54616         * lib/imaxdiv.c: Likewise.
54617         * lib/inet_pton.c: Likewise.
54618         * lib/inet_pton.h: Likewise.
54619         * lib/intprops.h: Likewise.
54620         * lib/inttostr.c: Likewise.
54621         * lib/inttostr.h: Likewise.
54622         * lib/inttypes.in.h: Likewise.
54623         * lib/isapipe.c: Likewise.
54624         * lib/isdir.c: Likewise.
54625         * lib/isnan.c: Likewise.
54626         * lib/isnan.h: Likewise.
54627         * lib/isnanf.c: Likewise.
54628         * lib/isnanf.h: Likewise.
54629         * lib/isnanl-nolibm.h: Likewise.
54630         * lib/isnanl.c: Likewise.
54631         * lib/isnanl.h: Likewise.
54632         * lib/javacomp.c: Likewise.
54633         * lib/javacomp.h: Likewise.
54634         * lib/javaexec.c: Likewise.
54635         * lib/javaexec.h: Likewise.
54636         * lib/javaversion.c: Likewise.
54637         * lib/javaversion.h: Likewise.
54638         * lib/javaversion.java: Likewise.
54639         * lib/lbrkprop.h: Likewise.
54640         * lib/lchmod.h: Likewise.
54641         * lib/lchown.c: Likewise.
54642         * lib/ldexpl.c: Likewise.
54643         * lib/linebreak.c: Likewise.
54644         * lib/linebreak.h: Likewise.
54645         * lib/linebuffer.c: Likewise.
54646         * lib/linebuffer.h: Likewise.
54647         * lib/locale.in.h: Likewise.
54648         * lib/logl.c: Likewise.
54649         * lib/long-options.c: Likewise.
54650         * lib/long-options.h: Likewise.
54651         * lib/lstat.c: Likewise.
54652         * lib/lstat.h: Likewise.
54653         * lib/math.in.h: Likewise.
54654         * lib/mbchar.c: Likewise.
54655         * lib/mbchar.h: Likewise.
54656         * lib/mbfile.h: Likewise.
54657         * lib/mbiter.h: Likewise.
54658         * lib/mbscasecmp.c: Likewise.
54659         * lib/mbscasestr.c: Likewise.
54660         * lib/mbschr.c: Likewise.
54661         * lib/mbscspn.c: Likewise.
54662         * lib/mbslen.c: Likewise.
54663         * lib/mbsncasecmp.c: Likewise.
54664         * lib/mbsnlen.c: Likewise.
54665         * lib/mbspbrk.c: Likewise.
54666         * lib/mbspcasecmp.c: Likewise.
54667         * lib/mbsrchr.c: Likewise.
54668         * lib/mbssep.c: Likewise.
54669         * lib/mbsspn.c: Likewise.
54670         * lib/mbsstr.c: Likewise.
54671         * lib/mbstok_r.c: Likewise.
54672         * lib/mbswidth.c: Likewise.
54673         * lib/mbswidth.h: Likewise.
54674         * lib/mbuiter.h: Likewise.
54675         * lib/memcasecmp.c: Likewise.
54676         * lib/memcasecmp.h: Likewise.
54677         * lib/memchr.c: Likewise.
54678         * lib/memcmp.c: Likewise.
54679         * lib/memcoll.c: Likewise.
54680         * lib/memcoll.h: Likewise.
54681         * lib/memcpy.c: Likewise.
54682         * lib/memrchr.c: Likewise.
54683         * lib/mkancesdirs.c: Likewise.
54684         * lib/mkdir-p.c: Likewise.
54685         * lib/mkdir-p.h: Likewise.
54686         * lib/mkdir.c: Likewise.
54687         * lib/mkdirat.c: Likewise.
54688         * lib/mkdtemp.c: Likewise.
54689         * lib/mkstemp-safer.c: Likewise.
54690         * lib/mkstemp.c: Likewise.
54691         * lib/modechange.c: Likewise.
54692         * lib/modechange.h: Likewise.
54693         * lib/mountlist.c: Likewise.
54694         * lib/mountlist.h: Likewise.
54695         * lib/mpsort.c: Likewise.
54696         * lib/nanosleep.c: Likewise.
54697         * lib/obstack.c: Likewise.
54698         * lib/obstack.h: Likewise.
54699         * lib/open-safer.c: Likewise.
54700         * lib/open.c: Likewise.
54701         * lib/openat-die.c: Likewise.
54702         * lib/openat-priv.h: Likewise.
54703         * lib/openat-proc.c: Likewise.
54704         * lib/openat.c: Likewise.
54705         * lib/openat.h: Likewise.
54706         * lib/pagealign_alloc.c: Likewise.
54707         * lib/pagealign_alloc.h: Likewise.
54708         * lib/physmem.c: Likewise.
54709         * lib/physmem.h: Likewise.
54710         * lib/pipe-safer.c: Likewise.
54711         * lib/pipe.c: Likewise.
54712         * lib/pipe.h: Likewise.
54713         * lib/posixtm.c: Likewise.
54714         * lib/posixtm.h: Likewise.
54715         * lib/posixver.c: Likewise.
54716         * lib/printf-frexp.c: Likewise.
54717         * lib/printf-frexp.h: Likewise.
54718         * lib/printf-frexpl.c: Likewise.
54719         * lib/printf-frexpl.h: Likewise.
54720         * lib/printf.c: Likewise.
54721         * lib/progname.c: Likewise.
54722         * lib/progname.h: Likewise.
54723         * lib/progreloc.c: Likewise.
54724         * lib/putenv.c: Likewise.
54725         * lib/quote.c: Likewise.
54726         * lib/quote.h: Likewise.
54727         * lib/quotearg.c: Likewise.
54728         * lib/quotearg.h: Likewise.
54729         * lib/raise.c: Likewise.
54730         * lib/readline.c: Likewise.
54731         * lib/readline.h: Likewise.
54732         * lib/readlink.c: Likewise.
54733         * lib/readtokens.c: Likewise.
54734         * lib/readtokens.h: Likewise.
54735         * lib/readtokens0.c: Likewise.
54736         * lib/readtokens0.h: Likewise.
54737         * lib/readutmp.c: Likewise.
54738         * lib/readutmp.h: Likewise.
54739         * lib/realloc.c: Likewise.
54740         * lib/relocwrapper.c: Likewise.
54741         * lib/rename-dest-slash.c: Likewise.
54742         * lib/rename.c: Likewise.
54743         * lib/rmdir.c: Likewise.
54744         * lib/rpmatch.c: Likewise.
54745         * lib/safe-read.c: Likewise.
54746         * lib/safe-read.h: Likewise.
54747         * lib/safe-write.c: Likewise.
54748         * lib/safe-write.h: Likewise.
54749         * lib/same-inode.h: Likewise.
54750         * lib/same.c: Likewise.
54751         * lib/same.h: Likewise.
54752         * lib/save-cwd.c: Likewise.
54753         * lib/save-cwd.h: Likewise.
54754         * lib/savedir.c: Likewise.
54755         * lib/savedir.h: Likewise.
54756         * lib/savewd.c: Likewise.
54757         * lib/savewd.h: Likewise.
54758         * lib/search.in.h: Likewise.
54759         * lib/setenv.c: Likewise.
54760         * lib/setenv.h: Likewise.
54761         * lib/settime.c: Likewise.
54762         * lib/sh-quote.c: Likewise.
54763         * lib/sh-quote.h: Likewise.
54764         * lib/sig2str.c: Likewise.
54765         * lib/sig2str.h: Likewise.
54766         * lib/signal.in.h: Likewise.
54767         * lib/signbitd.c: Likewise.
54768         * lib/signbitf.c: Likewise.
54769         * lib/signbitl.c: Likewise.
54770         * lib/sigprocmask.c: Likewise.
54771         * lib/sincosl.c: Likewise.
54772         * lib/sleep.c: Likewise.
54773         * lib/sprintf.c: Likewise.
54774         * lib/sqrtl.c: Likewise.
54775         * lib/stat-time.h: Likewise.
54776         * lib/stdio--.h: Likewise.
54777         * lib/stdio-safer.h: Likewise.
54778         * lib/stdlib--.h: Likewise.
54779         * lib/stdlib-safer.h: Likewise.
54780         * lib/stdlib.in.h: Likewise.
54781         * lib/stpcpy.c: Likewise.
54782         * lib/stpncpy.c: Likewise.
54783         * lib/strchrnul.c: Likewise.
54784         * lib/strcspn.c: Likewise.
54785         * lib/strerror.c: Likewise.
54786         * lib/strftime.c: Likewise.
54787         * lib/strftime.h: Likewise.
54788         * lib/striconveh.c: Likewise.
54789         * lib/striconveh.h: Likewise.
54790         * lib/striconveha.c: Likewise.
54791         * lib/striconveha.h: Likewise.
54792         * lib/stripslash.c: Likewise.
54793         * lib/strnlen1.c: Likewise.
54794         * lib/strnlen1.h: Likewise.
54795         * lib/strtod.c: Likewise.
54796         * lib/strtoimax.c: Likewise.
54797         * lib/strtok_r.c: Likewise.
54798         * lib/strtol.c: Likewise.
54799         * lib/strtoll.c: Likewise.
54800         * lib/strtoul.c: Likewise.
54801         * lib/strtoull.c: Likewise.
54802         * lib/sysexits.in.h: Likewise.
54803         * lib/tempname.c: Likewise.
54804         * lib/tempname.h: Likewise.
54805         * lib/timespec.h: Likewise.
54806         * lib/tls.c: Likewise.
54807         * lib/tls.h: Likewise.
54808         * lib/tmpdir.c: Likewise.
54809         * lib/tmpdir.h: Likewise.
54810         * lib/tmpfile-safer.c: Likewise.
54811         * lib/tmpfile.c: Likewise.
54812         * lib/trigl.c: Likewise.
54813         * lib/trigl.h: Likewise.
54814         * lib/trim.c: Likewise.
54815         * lib/trim.h: Likewise.
54816         * lib/trunc.c: Likewise.
54817         * lib/truncf.c: Likewise.
54818         * lib/truncl.c: Likewise.
54819         * lib/tsearch.c: Likewise.
54820         * lib/unicodeio.c: Likewise.
54821         * lib/unicodeio.h: Likewise.
54822         * lib/unistd--.h: Likewise.
54823         * lib/unistd-safer.h: Likewise.
54824         * lib/unistdio/ulc-fprintf.c: Likewise.
54825         * lib/unistdio/ulc-vfprintf.c: Likewise.
54826         * lib/unlinkdir.c: Likewise.
54827         * lib/unlinkdir.h: Likewise.
54828         * lib/unlocked-io.h: Likewise.
54829         * lib/unsetenv.c: Likewise.
54830         * lib/userspec.c: Likewise.
54831         * lib/utime.c: Likewise.
54832         * lib/utimecmp.c: Likewise.
54833         * lib/utimecmp.h: Likewise.
54834         * lib/utimens.c: Likewise.
54835         * lib/verify.h: Likewise.
54836         * lib/verror.c: Likewise.
54837         * lib/verror.h: Likewise.
54838         * lib/version-etc-fsf.c: Likewise.
54839         * lib/version-etc.c: Likewise.
54840         * lib/version-etc.h: Likewise.
54841         * lib/vfprintf.c: Likewise.
54842         * lib/vprintf.c: Likewise.
54843         * lib/vsprintf.c: Likewise.
54844         * lib/w32spawn.h: Likewise.
54845         * lib/wait-process.c: Likewise.
54846         * lib/wait-process.h: Likewise.
54847         * lib/wcwidth.c: Likewise.
54848         * lib/write-any-file.c: Likewise.
54849         * lib/xalloc-die.c: Likewise.
54850         * lib/xalloc.h: Likewise.
54851         * lib/xasprintf.c: Likewise.
54852         * lib/xgetcwd.c: Likewise.
54853         * lib/xgetcwd.h: Likewise.
54854         * lib/xgetdomainname.c: Likewise.
54855         * lib/xgetdomainname.h: Likewise.
54856         * lib/xgethostname.c: Likewise.
54857         * lib/xmalloc.c: Likewise.
54858         * lib/xmalloca.c: Likewise.
54859         * lib/xmalloca.h: Likewise.
54860         * lib/xmemcoll.c: Likewise.
54861         * lib/xnanosleep.c: Likewise.
54862         * lib/xreadlink.c: Likewise.
54863         * lib/xreadlink.h: Likewise.
54864         * lib/xsetenv.c: Likewise.
54865         * lib/xsetenv.h: Likewise.
54866         * lib/xstriconv.c: Likewise.
54867         * lib/xstriconv.h: Likewise.
54868         * lib/xstrndup.c: Likewise.
54869         * lib/xstrndup.h: Likewise.
54870         * lib/xstrtod.c: Likewise.
54871         * lib/xstrtod.h: Likewise.
54872         * lib/xstrtol-error.c: Likewise.
54873         * lib/xstrtol.c: Likewise.
54874         * lib/xstrtol.h: Likewise.
54875         * lib/xtime.h: Likewise.
54876         * lib/xvasprintf.c: Likewise.
54877         * lib/xvasprintf.h: Likewise.
54878         * lib/yesno.c: Likewise.
54879         * lib/yesno.h: Likewise.
54880         * posix-modules: Likewise.
54881         * tests/test-alloca-opt.c: Likewise.
54882         * tests/test-arcfour.c: Likewise.
54883         * tests/test-arctwo.c: Likewise.
54884         * tests/test-argmatch.c: Likewise.
54885         * tests/test-argp-2.sh: Likewise.
54886         * tests/test-argp.c: Likewise.
54887         * tests/test-arpa_inet.c: Likewise.
54888         * tests/test-array_list.c: Likewise.
54889         * tests/test-array_oset.c: Likewise.
54890         * tests/test-atexit.c: Likewise.
54891         * tests/test-avltree_list.c: Likewise.
54892         * tests/test-avltree_oset.c: Likewise.
54893         * tests/test-avltreehash_list.c: Likewise.
54894         * tests/test-base64.c: Likewise.
54895         * tests/test-binary-io.c: Likewise.
54896         * tests/test-byteswap.c: Likewise.
54897         * tests/test-c-ctype.c: Likewise.
54898         * tests/test-c-strcasecmp.c: Likewise.
54899         * tests/test-c-strcasestr.c: Likewise.
54900         * tests/test-c-strncasecmp.c: Likewise.
54901         * tests/test-c-strstr.c: Likewise.
54902         * tests/test-canonicalize-lgpl.c: Likewise.
54903         * tests/test-canonicalize.c: Likewise.
54904         * tests/test-carray_list.c: Likewise.
54905         * tests/test-ceilf.c: Likewise.
54906         * tests/test-ceill.c: Likewise.
54907         * tests/test-count-one-bits.c: Likewise.
54908         * tests/test-crc.c: Likewise.
54909         * tests/test-dirname.c: Likewise.
54910         * tests/test-fbufmode.c: Likewise.
54911         * tests/test-fcntl.c: Likewise.
54912         * tests/test-fflush.c: Likewise.
54913         * tests/test-floorf.c: Likewise.
54914         * tests/test-floorl.c: Likewise.
54915         * tests/test-fopen.c: Likewise.
54916         * tests/test-fprintf-posix.c: Likewise.
54917         * tests/test-fprintf-posix.h: Likewise.
54918         * tests/test-fpurge.c: Likewise.
54919         * tests/test-freadable.c: Likewise.
54920         * tests/test-freadahead.c: Likewise.
54921         * tests/test-freading.c: Likewise.
54922         * tests/test-freopen.c: Likewise.
54923         * tests/test-frexp.c: Likewise.
54924         * tests/test-frexpl.c: Likewise.
54925         * tests/test-fseek.c: Likewise.
54926         * tests/test-fseeko.c: Likewise.
54927         * tests/test-fseterr.c: Likewise.
54928         * tests/test-fstrcmp.c: Likewise.
54929         * tests/test-ftell.c: Likewise.
54930         * tests/test-ftello.c: Likewise.
54931         * tests/test-fwritable.c: Likewise.
54932         * tests/test-fwriting.c: Likewise.
54933         * tests/test-getaddrinfo.c: Likewise.
54934         * tests/test-getpass.c: Likewise.
54935         * tests/test-gettimeofday.c: Likewise.
54936         * tests/test-hmac-md5.c: Likewise.
54937         * tests/test-hmac-sha1.c: Likewise.
54938         * tests/test-iconv.c: Likewise.
54939         * tests/test-iconvme.c: Likewise.
54940         * tests/test-inttypes.c: Likewise.
54941         * tests/test-isnan.c: Likewise.
54942         * tests/test-isnanf.c: Likewise.
54943         * tests/test-isnanl-nolibm.c: Likewise.
54944         * tests/test-isnanl.c: Likewise.
54945         * tests/test-isnanl.h: Likewise.
54946         * tests/test-ldexpl.c: Likewise.
54947         * tests/test-linked_list.c: Likewise.
54948         * tests/test-linkedhash_list.c: Likewise.
54949         * tests/test-locale.c: Likewise.
54950         * tests/test-localename.c: Likewise.
54951         * tests/test-lock.c: Likewise.
54952         * tests/test-lseek.c: Likewise.
54953         * tests/test-malloca.c: Likewise.
54954         * tests/test-math.c: Likewise.
54955         * tests/test-mbscasecmp.c: Likewise.
54956         * tests/test-mbscasestr1.c: Likewise.
54957         * tests/test-mbscasestr2.c: Likewise.
54958         * tests/test-mbscasestr3.c: Likewise.
54959         * tests/test-mbscasestr4.c: Likewise.
54960         * tests/test-mbschr.c: Likewise.
54961         * tests/test-mbscspn.c: Likewise.
54962         * tests/test-mbsncasecmp.c: Likewise.
54963         * tests/test-mbspbrk.c: Likewise.
54964         * tests/test-mbspcasecmp.c: Likewise.
54965         * tests/test-mbsrchr.c: Likewise.
54966         * tests/test-mbsspn.c: Likewise.
54967         * tests/test-mbsstr1.c: Likewise.
54968         * tests/test-mbsstr2.c: Likewise.
54969         * tests/test-mbsstr3.c: Likewise.
54970         * tests/test-md5.c: Likewise.
54971         * tests/test-memmem.c: Likewise.
54972         * tests/test-netinet_in.c: Likewise.
54973         * tests/test-open.c: Likewise.
54974         * tests/test-printf-frexp.c: Likewise.
54975         * tests/test-printf-frexpl.c: Likewise.
54976         * tests/test-printf-posix.c: Likewise.
54977         * tests/test-printf-posix.h: Likewise.
54978         * tests/test-rbtree_list.c: Likewise.
54979         * tests/test-rbtree_oset.c: Likewise.
54980         * tests/test-rbtreehash_list.c: Likewise.
54981         * tests/test-read-file.c: Likewise.
54982         * tests/test-rijndael.c: Likewise.
54983         * tests/test-search.c: Likewise.
54984         * tests/test-signbit.c: Likewise.
54985         * tests/test-sleep.c: Likewise.
54986         * tests/test-snprintf-posix.c: Likewise.
54987         * tests/test-snprintf-posix.h: Likewise.
54988         * tests/test-snprintf.c: Likewise.
54989         * tests/test-sprintf-posix.c: Likewise.
54990         * tests/test-sprintf-posix.h: Likewise.
54991         * tests/test-stat-time.c: Likewise.
54992         * tests/test-stdbool.c: Likewise.
54993         * tests/test-stdint.c: Likewise.
54994         * tests/test-stdio.c: Likewise.
54995         * tests/test-stdlib.c: Likewise.
54996         * tests/test-stpncpy.c: Likewise.
54997         * tests/test-strcasestr.c: Likewise.
54998         * tests/test-striconv.c: Likewise.
54999         * tests/test-striconveh.c: Likewise.
55000         * tests/test-striconveha.c: Likewise.
55001         * tests/test-string.c: Likewise.
55002         * tests/test-sys_select.c: Likewise.
55003         * tests/test-sys_socket.c: Likewise.
55004         * tests/test-sys_stat.c: Likewise.
55005         * tests/test-sys_time.c: Likewise.
55006         * tests/test-sysexits.c: Likewise.
55007         * tests/test-time.c: Likewise.
55008         * tests/test-tls.c: Likewise.
55009         * tests/test-trunc.c: Likewise.
55010         * tests/test-truncf.c: Likewise.
55011         * tests/test-truncl.c: Likewise.
55012         * tests/test-unistd.c: Likewise.
55013         * tests/test-vasnprintf-posix.c: Likewise.
55014         * tests/test-vasnprintf-posix2.c: Likewise.
55015         * tests/test-vasnprintf.c: Likewise.
55016         * tests/test-vasprintf-posix.c: Likewise.
55017         * tests/test-vasprintf.c: Likewise.
55018         * tests/test-verify.c: Likewise.
55019         * tests/test-vfprintf-posix.c: Likewise.
55020         * tests/test-vprintf-posix.c: Likewise.
55021         * tests/test-vsnprintf-posix.c: Likewise.
55022         * tests/test-vsnprintf.c: Likewise.
55023         * tests/test-vsprintf-posix.c: Likewise.
55024         * tests/test-wchar.c: Likewise.
55025         * tests/test-wctype.c: Likewise.
55026         * tests/test-wcwidth.c: Likewise.
55027         * tests/test-xstrtol.c: Likewise.
55028         * tests/test-xvasprintf.c: Likewise.
55029         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55030         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55031         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55032         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55033         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55034         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55035         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55036         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55037         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55038         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55039         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55040         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55041         * tests/uniname/test-uninames.c: Likewise.
55042         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55043         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55044         * tests/unistdio/test-u16-printf1.h: Likewise.
55045         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55046         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55047         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55048         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55049         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55050         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55051         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55052         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55053         * tests/unistdio/test-u32-printf1.h: Likewise.
55054         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55055         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55056         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55057         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55058         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55059         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55060         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55061         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55062         * tests/unistdio/test-u8-printf1.h: Likewise.
55063         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55064         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55065         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55066         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55067         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55068         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55069         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55070         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55071         * tests/unistdio/test-ulc-printf1.h: Likewise.
55072         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55073         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55074         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55075         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55076         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55077         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55078         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55079         * tests/uniwidth/test-u16-width.c: Likewise.
55080         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55081         * tests/uniwidth/test-u32-width.c: Likewise.
55082         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55083         * tests/uniwidth/test-u8-width.c: Likewise.
55084         * tests/uniwidth/test-uc_width.c: Likewise.
55085         * config/srclist-update: Likewise.
55086         (fixlicense): Update to GPLv3+.
55087
55088         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55089         * tests/test-tsearch.c: Change copyright notice.
55090
55091         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55092         * lib/c-strcaseeq.h: Change copyright notice.
55093         * lib/streq.h: Likewise.
55094         * lib/uniconv.h: Likewise.
55095         * lib/uniconv/u-conv-from-enc.h: Likewise.
55096         * lib/uniconv/u-conv-to-enc.h: Likewise.
55097         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55098         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55099         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55100         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55101         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55102         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55103         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55104         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55105         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55106         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55107         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55108         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55109         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55110         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55111         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55112         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55113         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55114         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55115         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55116         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55117         * lib/uniname.h: Likewise.
55118         * lib/uniname/uniname.c: Likewise.
55119         * lib/unistdio.h: Likewise.
55120         * lib/unistdio/u-asnprintf.h: Likewise.
55121         * lib/unistdio/u-asprintf.h: Likewise.
55122         * lib/unistdio/u-printf-args.c: Likewise.
55123         * lib/unistdio/u-printf-args.h: Likewise.
55124         * lib/unistdio/u-printf-parse.h: Likewise.
55125         * lib/unistdio/u-snprintf.h: Likewise.
55126         * lib/unistdio/u-sprintf.h: Likewise.
55127         * lib/unistdio/u-vasprintf.h: Likewise.
55128         * lib/unistdio/u-vsnprintf.h: Likewise.
55129         * lib/unistdio/u-vsprintf.h: Likewise.
55130         * lib/unistdio/u16-asnprintf.c: Likewise.
55131         * lib/unistdio/u16-asprintf.c: Likewise.
55132         * lib/unistdio/u16-printf-parse.c: Likewise.
55133         * lib/unistdio/u16-snprintf.c: Likewise.
55134         * lib/unistdio/u16-sprintf.c: Likewise.
55135         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
55136         * lib/unistdio/u16-u16-asprintf.c: Likewise.
55137         * lib/unistdio/u16-u16-snprintf.c: Likewise.
55138         * lib/unistdio/u16-u16-sprintf.c: Likewise.
55139         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
55140         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
55141         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
55142         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55143         * lib/unistdio/u16-vasnprintf.c: Likewise.
55144         * lib/unistdio/u16-vasprintf.c: Likewise.
55145         * lib/unistdio/u16-vsnprintf.c: Likewise.
55146         * lib/unistdio/u16-vsprintf.c: Likewise.
55147         * lib/unistdio/u32-asnprintf.c: Likewise.
55148         * lib/unistdio/u32-asprintf.c: Likewise.
55149         * lib/unistdio/u32-printf-parse.c: Likewise.
55150         * lib/unistdio/u32-snprintf.c: Likewise.
55151         * lib/unistdio/u32-sprintf.c: Likewise.
55152         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
55153         * lib/unistdio/u32-u32-asprintf.c: Likewise.
55154         * lib/unistdio/u32-u32-snprintf.c: Likewise.
55155         * lib/unistdio/u32-u32-sprintf.c: Likewise.
55156         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
55157         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
55158         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
55159         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
55160         * lib/unistdio/u32-vasnprintf.c: Likewise.
55161         * lib/unistdio/u32-vasprintf.c: Likewise.
55162         * lib/unistdio/u32-vsnprintf.c: Likewise.
55163         * lib/unistdio/u32-vsprintf.c: Likewise.
55164         * lib/unistdio/u8-asnprintf.c: Likewise.
55165         * lib/unistdio/u8-asprintf.c: Likewise.
55166         * lib/unistdio/u8-printf-parse.c: Likewise.
55167         * lib/unistdio/u8-snprintf.c: Likewise.
55168         * lib/unistdio/u8-sprintf.c: Likewise.
55169         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
55170         * lib/unistdio/u8-u8-asprintf.c: Likewise.
55171         * lib/unistdio/u8-u8-snprintf.c: Likewise.
55172         * lib/unistdio/u8-u8-sprintf.c: Likewise.
55173         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
55174         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
55175         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55176         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55177         * lib/unistdio/u8-vasnprintf.c: Likewise.
55178         * lib/unistdio/u8-vasprintf.c: Likewise.
55179         * lib/unistdio/u8-vsnprintf.c: Likewise.
55180         * lib/unistdio/u8-vsprintf.c: Likewise.
55181         * lib/unistdio/ulc-asnprintf.c: Likewise.
55182         * lib/unistdio/ulc-asprintf.c: Likewise.
55183         * lib/unistdio/ulc-printf-parse.c: Likewise.
55184         * lib/unistdio/ulc-snprintf.c: Likewise.
55185         * lib/unistdio/ulc-sprintf.c: Likewise.
55186         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55187         * lib/unistdio/ulc-vasprintf.c: Likewise.
55188         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55189         * lib/unistdio/ulc-vsprintf.c: Likewise.
55190         * lib/unistr.h: Likewise.
55191         * lib/unistr/u-cpy-alloc.h: Likewise.
55192         * lib/unistr/u-cpy.h: Likewise.
55193         * lib/unistr/u-endswith.h: Likewise.
55194         * lib/unistr/u-move.h: Likewise.
55195         * lib/unistr/u-set.h: Likewise.
55196         * lib/unistr/u-startswith.h: Likewise.
55197         * lib/unistr/u-stpcpy.h: Likewise.
55198         * lib/unistr/u-stpncpy.h: Likewise.
55199         * lib/unistr/u-strcat.h: Likewise.
55200         * lib/unistr/u-strcpy.h: Likewise.
55201         * lib/unistr/u-strcspn.h: Likewise.
55202         * lib/unistr/u-strdup.h: Likewise.
55203         * lib/unistr/u-strlen.h: Likewise.
55204         * lib/unistr/u-strncat.h: Likewise.
55205         * lib/unistr/u-strncpy.h: Likewise.
55206         * lib/unistr/u-strnlen.h: Likewise.
55207         * lib/unistr/u-strpbrk.h: Likewise.
55208         * lib/unistr/u-strspn.h: Likewise.
55209         * lib/unistr/u-strstr.h: Likewise.
55210         * lib/unistr/u-strtok.h: Likewise.
55211         * lib/unistr/u16-check.c: Likewise.
55212         * lib/unistr/u16-chr.c: Likewise.
55213         * lib/unistr/u16-cmp.c: Likewise.
55214         * lib/unistr/u16-cpy-alloc.c: Likewise.
55215         * lib/unistr/u16-cpy.c: Likewise.
55216         * lib/unistr/u16-endswith.c: Likewise.
55217         * lib/unistr/u16-mblen.c: Likewise.
55218         * lib/unistr/u16-mbsnlen.c: Likewise.
55219         * lib/unistr/u16-mbtouc-aux.c: Likewise.
55220         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
55221         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
55222         * lib/unistr/u16-mbtouc.c: Likewise.
55223         * lib/unistr/u16-mbtoucr.c: Likewise.
55224         * lib/unistr/u16-move.c: Likewise.
55225         * lib/unistr/u16-next.c: Likewise.
55226         * lib/unistr/u16-prev.c: Likewise.
55227         * lib/unistr/u16-set.c: Likewise.
55228         * lib/unistr/u16-startswith.c: Likewise.
55229         * lib/unistr/u16-stpcpy.c: Likewise.
55230         * lib/unistr/u16-stpncpy.c: Likewise.
55231         * lib/unistr/u16-strcat.c: Likewise.
55232         * lib/unistr/u16-strchr.c: Likewise.
55233         * lib/unistr/u16-strcmp.c: Likewise.
55234         * lib/unistr/u16-strcpy.c: Likewise.
55235         * lib/unistr/u16-strcspn.c: Likewise.
55236         * lib/unistr/u16-strdup.c: Likewise.
55237         * lib/unistr/u16-strlen.c: Likewise.
55238         * lib/unistr/u16-strmblen.c: Likewise.
55239         * lib/unistr/u16-strmbtouc.c: Likewise.
55240         * lib/unistr/u16-strncat.c: Likewise.
55241         * lib/unistr/u16-strncmp.c: Likewise.
55242         * lib/unistr/u16-strncpy.c: Likewise.
55243         * lib/unistr/u16-strnlen.c: Likewise.
55244         * lib/unistr/u16-strpbrk.c: Likewise.
55245         * lib/unistr/u16-strrchr.c: Likewise.
55246         * lib/unistr/u16-strspn.c: Likewise.
55247         * lib/unistr/u16-strstr.c: Likewise.
55248         * lib/unistr/u16-strtok.c: Likewise.
55249         * lib/unistr/u16-to-u32.c: Likewise.
55250         * lib/unistr/u16-to-u8.c: Likewise.
55251         * lib/unistr/u16-uctomb-aux.c: Likewise.
55252         * lib/unistr/u16-uctomb.c: Likewise.
55253         * lib/unistr/u32-check.c: Likewise.
55254         * lib/unistr/u32-chr.c: Likewise.
55255         * lib/unistr/u32-cmp.c: Likewise.
55256         * lib/unistr/u32-cpy-alloc.c: Likewise.
55257         * lib/unistr/u32-cpy.c: Likewise.
55258         * lib/unistr/u32-endswith.c: Likewise.
55259         * lib/unistr/u32-mblen.c: Likewise.
55260         * lib/unistr/u32-mbsnlen.c: Likewise.
55261         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
55262         * lib/unistr/u32-mbtouc.c: Likewise.
55263         * lib/unistr/u32-mbtoucr.c: Likewise.
55264         * lib/unistr/u32-move.c: Likewise.
55265         * lib/unistr/u32-next.c: Likewise.
55266         * lib/unistr/u32-prev.c: Likewise.
55267         * lib/unistr/u32-set.c: Likewise.
55268         * lib/unistr/u32-startswith.c: Likewise.
55269         * lib/unistr/u32-stpcpy.c: Likewise.
55270         * lib/unistr/u32-stpncpy.c: Likewise.
55271         * lib/unistr/u32-strcat.c: Likewise.
55272         * lib/unistr/u32-strchr.c: Likewise.
55273         * lib/unistr/u32-strcmp.c: Likewise.
55274         * lib/unistr/u32-strcpy.c: Likewise.
55275         * lib/unistr/u32-strcspn.c: Likewise.
55276         * lib/unistr/u32-strdup.c: Likewise.
55277         * lib/unistr/u32-strlen.c: Likewise.
55278         * lib/unistr/u32-strmblen.c: Likewise.
55279         * lib/unistr/u32-strmbtouc.c: Likewise.
55280         * lib/unistr/u32-strncat.c: Likewise.
55281         * lib/unistr/u32-strncmp.c: Likewise.
55282         * lib/unistr/u32-strncpy.c: Likewise.
55283         * lib/unistr/u32-strnlen.c: Likewise.
55284         * lib/unistr/u32-strpbrk.c: Likewise.
55285         * lib/unistr/u32-strrchr.c: Likewise.
55286         * lib/unistr/u32-strspn.c: Likewise.
55287         * lib/unistr/u32-strstr.c: Likewise.
55288         * lib/unistr/u32-strtok.c: Likewise.
55289         * lib/unistr/u32-to-u16.c: Likewise.
55290         * lib/unistr/u32-to-u8.c: Likewise.
55291         * lib/unistr/u32-uctomb.c: Likewise.
55292         * lib/unistr/u8-check.c: Likewise.
55293         * lib/unistr/u8-chr.c: Likewise.
55294         * lib/unistr/u8-cmp.c: Likewise.
55295         * lib/unistr/u8-cpy-alloc.c: Likewise.
55296         * lib/unistr/u8-cpy.c: Likewise.
55297         * lib/unistr/u8-endswith.c: Likewise.
55298         * lib/unistr/u8-mblen.c: Likewise.
55299         * lib/unistr/u8-mbsnlen.c: Likewise.
55300         * lib/unistr/u8-mbtouc-aux.c: Likewise.
55301         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
55302         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
55303         * lib/unistr/u8-mbtouc.c: Likewise.
55304         * lib/unistr/u8-mbtoucr.c: Likewise.
55305         * lib/unistr/u8-move.c: Likewise.
55306         * lib/unistr/u8-next.c: Likewise.
55307         * lib/unistr/u8-prev.c: Likewise.
55308         * lib/unistr/u8-set.c: Likewise.
55309         * lib/unistr/u8-startswith.c: Likewise.
55310         * lib/unistr/u8-stpcpy.c: Likewise.
55311         * lib/unistr/u8-stpncpy.c: Likewise.
55312         * lib/unistr/u8-strcat.c: Likewise.
55313         * lib/unistr/u8-strchr.c: Likewise.
55314         * lib/unistr/u8-strcmp.c: Likewise.
55315         * lib/unistr/u8-strcpy.c: Likewise.
55316         * lib/unistr/u8-strcspn.c: Likewise.
55317         * lib/unistr/u8-strdup.c: Likewise.
55318         * lib/unistr/u8-strlen.c: Likewise.
55319         * lib/unistr/u8-strmblen.c: Likewise.
55320         * lib/unistr/u8-strmbtouc.c: Likewise.
55321         * lib/unistr/u8-strncat.c: Likewise.
55322         * lib/unistr/u8-strncmp.c: Likewise.
55323         * lib/unistr/u8-strncpy.c: Likewise.
55324         * lib/unistr/u8-strnlen.c: Likewise.
55325         * lib/unistr/u8-strpbrk.c: Likewise.
55326         * lib/unistr/u8-strrchr.c: Likewise.
55327         * lib/unistr/u8-strspn.c: Likewise.
55328         * lib/unistr/u8-strstr.c: Likewise.
55329         * lib/unistr/u8-strtok.c: Likewise.
55330         * lib/unistr/u8-to-u16.c: Likewise.
55331         * lib/unistr/u8-to-u32.c: Likewise.
55332         * lib/unistr/u8-uctomb-aux.c: Likewise.
55333         * lib/unistr/u8-uctomb.c: Likewise.
55334         * lib/unitypes.h: Likewise.
55335         * lib/uniwidth.h: Likewise.
55336         * lib/uniwidth/cjk.h: Likewise.
55337         * lib/uniwidth/u16-strwidth.c: Likewise.
55338         * lib/uniwidth/u16-width.c: Likewise.
55339         * lib/uniwidth/u32-strwidth.c: Likewise.
55340         * lib/uniwidth/u32-width.c: Likewise.
55341         * lib/uniwidth/u8-strwidth.c: Likewise.
55342         * lib/uniwidth/u8-width.c: Likewise.
55343         * lib/uniwidth/width.c: Likewise.
55344
55345 2007-10-07  Bruno Haible  <bruno@clisp.org>
55346
55347         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
55348         The file is still under LGPL (see modules/inttypes).
55349
55350 2007-10-06  Bruno Haible  <bruno@clisp.org>
55351
55352         * modules/trunc (Dependencies): Add 'extensions'.
55353         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
55354         Reported by Ben Pfaff <blp@gnu.org>.
55355
55356 2007-10-06  Bruno Haible  <bruno@clisp.org>
55357
55358         * modules/freopen-tests: New file.
55359         * tests/test-freopen.c: New file.
55360
55361         * modules/fopen-tests: New file.
55362         * tests/test-fopen.c: New file.
55363
55364         * modules/fopen: New file.
55365         * lib/fopen.c: New file.
55366         * m4/fopen.m4: New file.
55367         * modules/freopen: New file.
55368         * lib/freopen.c: New file.
55369         * m4/freopen.m4: New file.
55370         * lib/stdio.in.h (fopen, freopen): New declarations.
55371         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
55372         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55373         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
55374         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55375         * doc/functions/fopen.texi: Mention the 'fopen' module.
55376         * doc/functions/freopen.texi: Mention the 'freopen' module.
55377
55378 2007-10-06  Bruno Haible  <bruno@clisp.org>
55379
55380         * modules/open-tests: New file.
55381         * tests/test-open.c: New file.
55382
55383         * modules/open: New file.
55384         * lib/open.c: New file.
55385         * m4/open.m4: New file.
55386         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
55387         lib/open.c does.
55388         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
55389         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
55390         macros.
55391         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
55392         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
55393         REPLACE_OPEN.
55394         * doc/functions/open.texi: Mention the 'open' module.
55395
55396 2007-10-04  Bruno Haible  <bruno@clisp.org>
55397
55398         * modules/ceill-tests: New file.
55399         * tests/test-ceill.c: New file.
55400
55401         * modules/ceill: New file.
55402         * lib/ceill.c: Replace entire file.
55403         * m4/ceill.m4: New file.
55404         * lib/math.in.h (ceill): Replace declaration.
55405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
55406         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
55407         * doc/functions/ceill.texi: Mention the 'ceill' module.
55408         * modules/mathl (Files): Remove lib/ceill.c.
55409         (Depends-on): Add ceill.
55410
55411 2007-10-04  Bruno Haible  <bruno@clisp.org>
55412
55413         * modules/ceilf-tests: New file.
55414         * tests/test-ceilf.c: New file.
55415
55416         * modules/ceilf: New file.
55417         * lib/ceil.c: New file.
55418         * lib/ceilf.c: New file.
55419         * m4/ceilf.m4: New file.
55420         * lib/math.in.h (ceilf): New declaration.
55421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
55422         HAVE_DECL_CEILF.
55423         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
55424         HAVE_DECL_CEILF.
55425         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
55426
55427 2007-10-04  Bruno Haible  <bruno@clisp.org>
55428
55429         * modules/floorl-tests: New file.
55430         * tests/test-floorl.c: New file.
55431
55432         * modules/floorl: New file.
55433         * lib/floorl.c: Replace entire file.
55434         * m4/floorl.m4: New file.
55435         * lib/math.in.h (floorl): Replace declaration.
55436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
55437         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
55438         * doc/functions/floorl.texi: Mention the 'floorl' module.
55439         * modules/mathl (Files): Remove lib/floorl.c.
55440         (Depends-on): Add floorl.
55441
55442 2007-10-04  Bruno Haible  <bruno@clisp.org>
55443
55444         * modules/floorf-tests: New file.
55445         * tests/test-floorf.c: New file.
55446
55447         * modules/floorf: New file.
55448         * lib/floor.c: New file.
55449         * lib/floorf.c: New file.
55450         * m4/floorf.m4: New file.
55451         * lib/math.in.h (floorf): New declaration.
55452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
55453         HAVE_DECL_FLOORF.
55454         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
55455         HAVE_DECL_FLOORF.
55456         * doc/functions/floorf.texi: Mention the 'floorf' module.
55457
55458 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
55459             Bruno Haible  <bruno@clisp.org>
55460
55461         Advertise for the Git server instead of the CVS server.
55462         * doc/gnulib-intro.texi (Steady Development): Mention the Git
55463         repository instead of the CVS one.
55464         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
55465         about all VCS systems generically.
55466         * doc/gnulib.texi (Introduction): Capitalize `Git'.
55467
55468 2007-10-04  Bruno Haible  <bruno@clisp.org>
55469
55470         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
55471         means.
55472         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
55473
55474 2007-10-04  Bruno Haible  <bruno@clisp.org>
55475
55476         * modules/truncl-tests: New file.
55477         * tests/test-truncl.c: New file.
55478
55479         * modules/truncl: New file.
55480         * lib/truncl.c: New file.
55481         * m4/truncl.m4: New file.
55482         * lib/math.in.h (truncl): New declaration.
55483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
55484         HAVE_DECL_TRUNCL.
55485         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
55486         HAVE_DECL_TRUNCL.
55487         * doc/functions/truncl.texi: Mention the 'truncl' module.
55488
55489 2007-10-04  Bruno Haible  <bruno@clisp.org>
55490
55491         * modules/truncf-tests: New file.
55492         * tests/test-truncf.c: New file.
55493
55494         * modules/truncf: New file.
55495         * lib/trunc.c: Make paramerizable through USE_* macros.
55496         * lib/truncf.c: New file.
55497         * m4/truncf.m4: New file.
55498         * lib/math.in.h (truncf): New declaration.
55499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
55500         HAVE_DECL_TRUNCF.
55501         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
55502         HAVE_DECL_TRUNCF.
55503         * doc/functions/truncf.texi: Mention the 'truncf' module.
55504
55505 2007-10-03  Bruno Haible  <bruno@clisp.org>
55506
55507         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55508         augmentation also for tests modules.
55509         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
55510         * modules/atexit-tests (Makefile.am): Likewise.
55511         * modules/binary-io-tests (Makefile.am): Likewise.
55512         * modules/c-strcase-tests (Makefile.am): Likewise.
55513         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
55514         * modules/canonicalize-tests (Makefile.am): Likewise.
55515         * modules/closein-tests (Makefile.am): Likewise.
55516         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55517         * modules/freadahead-tests (Makefile.am): Likewise.
55518         * modules/fseek-tests (Makefile.am): Likewise.
55519         * modules/fseeko-tests (Makefile.am): Likewise.
55520         * modules/ftell-tests (Makefile.am): Likewise.
55521         * modules/ftello-tests (Makefile.am): Likewise.
55522         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
55523         * modules/isnanl-tests (Makefile.am): Likewise.
55524         * modules/lseek-tests (Makefile.am): Likewise.
55525         * modules/mbscasecmp-tests (Makefile.am): Likewise.
55526         * modules/mbscasestr-tests (Makefile.am): Likewise.
55527         * modules/mbschr-tests (Makefile.am): Likewise.
55528         * modules/mbscspn-tests (Makefile.am): Likewise.
55529         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
55530         * modules/mbspbrk-tests (Makefile.am): Likewise.
55531         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
55532         * modules/mbsrchr-tests (Makefile.am): Likewise.
55533         * modules/mbsspn-tests (Makefile.am): Likewise.
55534         * modules/mbsstr-tests (Makefile.am): Likewise.
55535         * modules/printf-posix-tests (Makefile.am): Likewise.
55536         * modules/snprintf-posix-tests (Makefile.am): Likewise.
55537         * modules/sprintf-posix-tests (Makefile.am): Likewise.
55538         * modules/tsearch-tests (Makefile.am): Likewise.
55539         * modules/uniname/uniname-tests (Makefile.am): Likewise.
55540         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
55541         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
55542         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
55543         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
55544         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
55545         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
55546         * modules/vprintf-posix-tests (Makefile.am): Likewise.
55547         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
55548         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
55549         * modules/xstrtoimax-tests (Makefile.am): Likewise.
55550         * modules/xstrtol-tests (Makefile.am): Likewise.
55551         * modules/xstrtoumax-tests (Makefile.am): Likewise.
55552         * modules/yesno-tests (Makefile.am): Likewise.
55553
55554 2007-10-03  Bruno Haible  <bruno@clisp.org>
55555
55556         * modules/trunc-tests: New file.
55557         * tests/test-trunc.c: New file.
55558
55559         * modules/trunc: New file.
55560         * lib/trunc.c: New file.
55561         * m4/trunc.m4: New file.
55562         * lib/math.in.h (trunc): New declaration.
55563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
55564         HAVE_DECL_TRUNC.
55565         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
55566         HAVE_DECL_TRUNC.
55567         * doc/functions/trunc.texi: Mention the 'trunc' module.
55568
55569 2007-10-03  Bruno Haible  <bruno@clisp.org>
55570
55571         * tests/test-fpending.c: New file, mostly copied
55572         from coreutils/lib/t-fpending.c.
55573         * modules/fpending-tests: New file.
55574
55575 2007-10-03  Bruno Haible  <bruno@clisp.org>
55576
55577         Port the stdio extensions to QNX (untested).
55578         * lib/fseterr.c (fseterr): Add support for QNX.
55579         * lib/fbufmode.c (fbufmode): Likewise.
55580         * lib/freadable.c (freadable): Likewise.
55581         * lib/fwritable.c (fwritable): Likewise.
55582         * lib/freading.c (freading): Likewise.
55583         * lib/fwriting.c (fwriting): Likewise.
55584         * lib/freadahead.c (freadahed): Likewise.
55585         * lib/fpurge.c (fpurge): Likewise.
55586         * lib/fseeko.c (rpl_fseeko): Likewise.
55587
55588 2007-10-03  Bruno Haible  <bruno@clisp.org>
55589             Jim Meyering  <jim@meyering.net>
55590             Eric Blake  <ebb9@byu.net>
55591
55592         * doc/relocatable.texi: Use @command instead of @program.
55593
55594 2007-10-02  Jim Meyering  <jim@meyering.net>
55595
55596         Perform one more "_.h" -> ".in.h" substitution.
55597         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
55598         instead of unistd_.h here, too.
55599
55600 2007-10-01  Bruno Haible  <bruno@clisp.org>
55601
55602         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
55603         Needed for the alloca-opt module.
55604
55605 2007-09-30  Bruno Haible  <bruno@clisp.org>
55606
55607         * lib/alloca.in.h: Renamed from lib/alloca_.h.
55608         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
55609         alloca_.h.
55610         * lib/argz.in.h: Renamed from lib/argz_.h.
55611         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
55612         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
55613         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
55614         byteswap_.h.
55615         * lib/dirent.in.h: Renamed from lib/dirent_.h.
55616         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
55617         dirent_.h.
55618         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
55619         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
55620         fcntl_.h.
55621         * lib/float.in.h: Renamed from lib/float_.h.
55622         * modules/float (Files, Makefile.am): Use float.in.h instead of
55623         float_.h.
55624         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
55625         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
55626         fnmatch_.h.
55627         * lib/getopt.in.h: Renamed from lib/getopt_.h.
55628         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
55629         getopt_.h.
55630         * lib/glob.in.h: Renamed from lib/glob_.h.
55631         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
55632         * lib/iconv.in.h: Renamed from lib/iconv_.h.
55633         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
55634         iconv_.h.
55635         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
55636         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
55637         inttypes_.h.
55638         * lib/locale.in.h: Renamed from lib/locale_.h.
55639         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
55640         locale_.h.
55641         * lib/math.in.h: Renamed from lib/math_.h.
55642         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
55643         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
55644         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
55645         of netinet_in_.h. Add dependency.
55646         * lib/poll.in.h: Renamed from lib/poll_.h.
55647         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
55648         * lib/search.in.h: Renamed from lib/search_.h.
55649         * modules/search (Files, Makefile.am): Use search.in.h instead of
55650         search_.h.
55651         * lib/signal.in.h: Renamed from lib/signal_.h.
55652         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
55653         _signal.h.
55654         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
55655         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
55656         stdbool_.h.
55657         * lib/stdint.in.h: Renamed from lib/stdint_.h.
55658         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
55659         stdint_.h.
55660         * lib/stdio.in.h: Renamed from lib/stdio_.h.
55661         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
55662         stdio_.h.
55663         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
55664         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
55665         stdlib_.h.
55666         * lib/string.in.h: Renamed from lib/string_.h.
55667         * modules/string (Files, Makefile.am): Use string.in.h instead of
55668         string_.h.
55669         * doc/gnulib-tool.texi (Initial import): Update.
55670         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
55671         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
55672         of sys_select_.h. Add dependency.
55673         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
55674         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
55675         of sys_socket_.h.
55676         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
55677         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
55678         sys_stat_.h.
55679         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
55680         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
55681         sys_time_.h.
55682         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
55683         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
55684         sysexits_.h.
55685         * lib/time.in.h: Renamed from lib/time_.h.
55686         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
55687         * lib/unistd.in.h: Renamed from lib/unistd_.h.
55688         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
55689         unistd_.h.
55690         * lib/wchar.in.h: Renamed from lib/wchar_.h.
55691         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
55692         wchar_.h.
55693         * lib/wctype.in.h: Renamed from lib/wctype_.h.
55694         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
55695         wctype_.h.
55696         * build-aux/bootstrap (slurp): Update.
55697         * lib/.cppi-disable: Update.
55698
55699 2007-09-30  Bruno Haible  <bruno@clisp.org>
55700
55701         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
55702         Needed on BeOS.
55703
55704 2007-09-30  Bruno Haible  <bruno@clisp.org>
55705
55706         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
55707
55708 2007-09-29  Bruno Haible  <bruno@clisp.org>
55709
55710         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
55711
55712 2007-09-29  Bruno Haible  <bruno@clisp.org>
55713
55714         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
55715         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
55716         * build-aux/install-reloc: Compile also areadlink.c.
55717         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
55718
55719 2007-09-29  Bruno Haible  <bruno@clisp.org>
55720
55721         * gnulib-tool (func_emit_initmacro_done): Indentation.
55722
55723 2007-09-29  Bruno Haible  <bruno@clisp.org>
55724
55725         * README: Add CVS checkout update instructions.
55726         Info from Bob Proulx <bob@proulx.com>.
55727
55728 2007-09-28  Eric Blake  <ebb9@byu.net>
55729
55730         Provide move-if-change.
55731         * build-aux/move-if-change: New file, based on best practice
55732         rather than any canonical upstream location.
55733
55734 2007-09-28  Jim Meyering  <jim@meyering.net>
55735
55736         Fix canonicalize loop-detection corner case.
55737         Do not attempt to stat the symlink values stored via seen_triple.
55738         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
55739         on linux-2.6.18, (but not 2.6.22).
55740         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
55741         triple_compare.  The former compares dev,ino,filename, while the latter
55742         would actually stat dirname(filename) when dev and ino were equal.
55743         * lib/hash-triple.c: Install <string.h>.
55744         (STREQ): Define.
55745         (triple_compare_ino_str): New function.
55746         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
55747
55748 2007-09-28  Eric Blake  <ebb9@byu.net>
55749
55750         Enforce that AC_REPLACE_FUNCS files exist.
55751         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
55752         override check for typos.
55753
55754         Fix test-closein on Solaris 10.
55755         * tests/test-closein.c (main): Don't assume stdin can be inherited
55756         closed on all systems.
55757         * tests/test-closein.sh: Likewise.
55758         Reported by Piotr Tarnowski.
55759
55760 2007-09-28  Jim Meyering  <jim@meyering.net>
55761
55762         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
55763
55764 2007-09-27  Jim Meyering  <jim@meyering.net>
55765
55766         canonicalize: Avoid a false-positive cycle failure.
55767         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
55768         Sort.  Remove cycle-check.
55769         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
55770         not cycle-check.h.
55771         (seen_triple): New function.
55772         (canonicalize_filename_mode): Use it instead of cycle-check.
55773         * tests/test-canonicalize.c: Add a test for this bug.
55774         * tests/test-canonicalize.sh: Set up and run the test.
55775
55776         New module, file-set, from coreutils.
55777         * modules/file-set: Define it.
55778         * lib/file-set.c, lib/file-set.h: Implement.
55779
55780         New module, hash-triple, from coreutils.
55781         * modules/hash-triple: Define it.
55782         * lib/hash-triple.c, lib/hash-triple.h: Implement.
55783
55784 2007-09-25  Eric Blake  <ebb9@byu.net>
55785
55786         Fix strerror on Interix.
55787         * lib/string_.h (strerror): Declare replacement.
55788         * doc/functions/strerror.texi (strerror): Document the Interix
55789         shortcoming.
55790         * modules/string (Makefile.am): Support new hooks.
55791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
55792         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
55793         gl_FUNC_STRERROR_SEPARATE.
55794         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
55795         * lib/strerror.c (rpl_strerror): Provide replacement.
55796         * modules/strerror (Depends-on): Add string.
55797         (configure.ac): Detect use of module.
55798         * tests/test-strerror.c: New file.
55799         * modules/strerror-tests: New test module.
55800         * modules/argp (Depends-on): Add strerror.
55801         * modules/error (Depends-on): Likewise.
55802         Reported by Martin Koeppe.
55803
55804 2007-09-24  Bruno Haible  <bruno@clisp.org>
55805
55806         * README: Update git instructions.
55807
55808 2007-09-24  Eric Blake  <ebb9@byu.net>
55809
55810         Revert fpending breakage from 2007-09-08.
55811         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
55812         __fpending.c.
55813
55814 2007-09-24  Jim Meyering  <jim@meyering.net>
55815
55816         filenamecat.c: Add a test.
55817         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
55818         showing how the function works when DIR is the empty string.
55819
55820 2007-09-21  Simon Josefsson  <simon@josefsson.org>
55821
55822         * tests/test-canonicalize.sh: Turn on executable bit.
55823
55824 2007-09-19  Eric Blake  <ebb9@byu.net>
55825
55826         * README: Update CVS instructions.
55827
55828 2007-09-18  Bruno Haible  <bruno@clisp.org>
55829
55830         * modules/areadlink: New file.
55831         * lib/areadlink.h (areadlink): New declaration.
55832         * lib/areadlink.c: New file, based on lib/xreadlink.c.
55833
55834 2007-09-17  Jim Meyering  <jim@meyering.net>
55835
55836         * lib/savewd.c (ESTALE) [!defined]: Define.
55837         Reported to be required on Interix by Martin Koeppe.
55838
55839 2007-09-17  Bruno Haible  <bruno@clisp.org>
55840
55841         * gnulib-tool (func_version): Use $version.
55842
55843 2007-09-16  Bruno Haible  <bruno@clisp.org>
55844
55845         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
55846         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
55847         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
55848         Reported by Greg Schafer <gschafer@zip.com.au>.
55849
55850 2007-09-15  Bruno Haible  <bruno@clisp.org>
55851
55852         * gnulib-tool (sed): Try a little harder to make bash understand the
55853         alias.
55854         Reported by Bruce Korb <bruce.korb@gmail.com>.
55855
55856 2007-09-13  Eric Blake  <ebb9@byu.net>
55857
55858         * ChangeLog: Remove conflict markers.
55859
55860 2007-09-13  Simon Josefsson  <simon@josefsson.org>
55861
55862         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
55863         Reported by Bruno Haible <bruno@clisp.org>.
55864
55865 2007-09-12  Bruno Haible  <bruno@clisp.org>
55866
55867         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
55868         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
55869         is not defined.
55870
55871 2007-09-12  Eric Blake  <ebb9@byu.net>
55872
55873         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
55874         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
55875         Autoconf definition.
55876         * modules/euidaccess (Depends-on): Add extensions, for
55877         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
55878         * modules/fnmatch (Depends-on): Likewise.
55879         * modules/getaddrinfo (Depends-on): Likewise.
55880         * modules/getdelim (Depends-on): Likewise.
55881         * modules/getline (Depends-on): Likewise.
55882         * modules/getsubopt (Depends-on): Likewise.
55883         * modules/gettext (Depends-on): Likewise.
55884         * modules/group-member (Depends-on): Likewise.
55885         * modules/mbchar (Depends-on): Likewise.
55886         * modules/memmem (Depends-on): Likewise.
55887         * modules/mempcpy (Depends-on): Likewise.
55888         * modules/memrchr (Depends-on): Likewise.
55889         * modules/pagealign_alloc (Depends-on): Likewise.
55890         * modules/readutmp (Depends-on): Likewise.
55891         * modules/stpcpy (Depends-on): Likewise.
55892         * modules/stpncpy (Depends-on): Likewise.
55893         * modules/strchrnul (Depends-on): Likewise.
55894         * modules/strndup (Depends-on): Likewise.
55895         * modules/strsep (Depends-on): Likewise.
55896         * modules/strverscmp (Depends-on): Likewise.
55897         * modules/vasprintf (Depends-on): Likewise.
55898         * modules/wcwidth (Depends-on): Likewise.
55899         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
55900         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
55901         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
55902         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
55903         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55904         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55905         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
55906         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55907         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
55908         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55909         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55910         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55911         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55912         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
55913         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
55914         * m4/readutmp.m4 (gl_READUTMP): Likewise.
55915         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55916         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55917         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55918         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55919         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55920         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55921         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55922         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
55923         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
55924         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55925         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
55926         so that lock.m4 can be used in gettext without extensions module.
55927
55928 2007-09-11  Bruno Haible  <bruno@clisp.org>
55929
55930         * m4/isc-posix.m4: Remove file.
55931         Suggested by Eric Blake.
55932
55933 2007-09-11  Eric Blake  <ebb9@byu.net>
55934
55935         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
55936
55937 2007-09-10  Bruno Haible  <bruno@clisp.org>
55938
55939         * posix-modules: Fix typo in error message.
55940         Reported by Matt <mkraai@beckman.com>.
55941
55942 2007-09-09  Bruno Haible  <bruno@clisp.org>
55943
55944         * doc/functions/getdelim.texi: Update list of platforms lacking the
55945         function.
55946         * doc/functions/getline.texi: Likewise.
55947
55948 2007-09-09  Jim Meyering  <jim@meyering.net>
55949
55950         * lib/hash.c (hash_initialize): Detect calloc failure.
55951         Reported by Bruno Haible.
55952
55953 2007-09-09  Bruno Haible  <bruno@clisp.org>
55954
55955         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
55956         malloc or realloc fails.
55957
55958 2007-09-09  Bruno Haible  <bruno@clisp.org>
55959
55960         * modules/getcwd (Depends-on): Add malloc-posix.
55961         * modules/glob (Depends-on): Likewise.
55962         * modules/putenv (Depends-on): Likewise.
55963         * modules/strdup (Depends-on): Likewise.
55964         * modules/getdelim (Depends-on): Add realloc-posix.
55965         * modules/read-file (Depends-on): Likewise.
55966
55967 2007-09-09  Bruno Haible  <bruno@clisp.org>
55968
55969         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
55970         (gl_FUNC_MALLOC_POSIX): Require it.
55971         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
55972         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
55973         * modules/realloc (Files): Add m4/malloc.m4.
55974         * modules/calloc (Files): Likewise.
55975
55976 2007-09-09  Bruno Haible  <bruno@clisp.org>
55977
55978         * modules/malloc-posix: New file.
55979         * modules/malloc (Depends-on): Add malloc-posix.
55980         * lib/malloc.c: Include errno.h.
55981         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
55982         and a POSIX-compatible malloc into a single function. Set ENOMEM
55983         when returning NULL.
55984         * m4/malloc.m4: New file.
55985         * doc/functions/malloc.texi: Mention the malloc-posix module.
55986         * lib/stdlib_.h (malloc): New declaration.
55987         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55988         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
55989         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
55990         and HAVE_MALLOC_POSIX.
55991
55992 2007-09-09  Bruno Haible  <bruno@clisp.org>
55993
55994         * modules/realloc-posix: New file.
55995         * modules/realloc (Depends-on): Add realloc-posix.
55996         * lib/realloc.c: Include errno.h.
55997         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
55998         and a POSIX-compatible realloc into a single function. Set ENOMEM
55999         when returning NULL.
56000         * m4/realloc.m4: New file.
56001         * doc/functions/realloc.texi: Mention the realloc-posix module.
56002         * lib/stdlib_.h (realloc): New declaration.
56003         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56004         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56005         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56006         and HAVE_REALLOC_POSIX.
56007
56008 2007-09-09  Bruno Haible  <bruno@clisp.org>
56009
56010         * modules/calloc-posix: New file.
56011         * modules/calloc (Depends-on): Add calloc-posix.
56012         * lib/calloc.c: Include errno.h.
56013         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56014         and a POSIX-compatible calloc into a single function. Set ENOMEM
56015         when returning NULL.
56016         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56017         * doc/functions/calloc.texi: Mention the calloc-posix module.
56018         * lib/stdlib_.h (calloc): New declaration.
56019         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56020         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56021         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56022         and HAVE_CALLOC_POSIX.
56023
56024 2007-09-09  Bruno Haible  <bruno@clisp.org>
56025
56026         Allow for modules to show an arbitrary notice.
56027         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56028         * gnulib-tool: New option --extract-notice.
56029         (func_usage): Document it.
56030         (sed_extract_prog): Update.
56031         (func_get_notice): New function.
56032         (func_modules_notice): New function.
56033         (func_import, func_create_testdir): Invoke it.
56034         Suggested by Jim Meyering.
56035
56036 2007-09-09  Bruno Haible  <bruno@clisp.org>
56037
56038         * gnulib-tool: New options --verbose, --quiet.
56039         (func_usage): Document them.
56040         (verbose): New variable.
56041         (func_execute_command): New function.
56042         (func_import): Don't show the module list and the file list if
56043         $verbose < 0.
56044         (func_create_testdir): Likewise. Use func_execute_command.
56045         (func_create_megatestdir): Use func_execute_command.
56046
56047 2007-09-08  Bruno Haible  <bruno@clisp.org>
56048
56049         * gnulib-tool (func_import): Prefer rsync over wget when available,
56050         for fetching the PO files.
56051
56052 2007-09-08  Bruno Haible  <bruno@clisp.org>
56053
56054         * posix-modules: New file. Portions copied from gnulib-tool.
56055         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56056
56057 2007-09-08  Jim Meyering  <jim@meyering.net>
56058
56059         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56060         * lib/fpending.h: Rename from __fpending.h.
56061         * lib/fpending.c: Rename from __fpending.c.
56062         Include "fpending.h", not "__fpending.h".
56063         * lib/__fpending.h, lib/__fpending.c: Remove files.
56064         * modules/fpending (Files): Reflect new file names.
56065         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56066
56067 2007-09-08  Bruno Haible  <bruno@clisp.org>
56068
56069         * m4/inttypes-h.m4: Remove stub file.
56070
56071 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56072
56073         * doc/headers/stdint.texi: Discuss #include_next issue.
56074
56075 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56076
56077         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56078
56079 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56080
56081         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56082         in variable name.
56083
56084 2007-09-03  Jim Meyering  <jim@meyering.net>
56085
56086         New module: git-version-gen.
56087         * modules/git-version-gen: New file.
56088
56089         Import changes from coreutils for bootstrap script.
56090
56091         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56092
56093         bootstrap: uses rsync to download the .po files
56094         * build-aux/bootstrap (po_download_command_format): New global.
56095         (download_po_files): Use rsync.
56096         (update_po_files): Don't remove .po files after download,
56097         so future rsync runs can take advantage of the copies.
56098
56099         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56100
56101         Solve the unnecessary-.po-file-regeneration problem once and for all.
56102         * build-aux/bootstrap (download_po_files): New function, renamed from
56103         get_translations.  Now, downloads, but doesn't update LINGUAS.
56104         (update_po_files): New function.
56105
56106         bootstrap: Ignore more.
56107         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56108         uniwidth to e.g., lib/.gitignore.
56109         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56110
56111         * build-aux/bootstrap: New setting: vc_ignore.
56112         (insert_sorted_if_absent): Create $file if absent.
56113         Adapt to new, possibly empty, list: $vc_ignore.
56114
56115         bootstrap: generate more ignorable names
56116         * build-aux/bootstrap (slurp): When generating ignorable names,
56117         also map .sin to .sed, .gperf to .c, and .y to .c.
56118
56119 2007-09-03  Jim Meyering  <jim@meyering.net>
56120
56121         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56122         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56123
56124 2007-09-02  Bruno Haible  <bruno@clisp.org>
56125
56126         Fix mis-recognition of 'mcs' on QNX 6.
56127         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
56128         output contains the string "Mono".
56129         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
56130         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
56131
56132 2007-09-01  Bruno Haible  <bruno@clisp.org>
56133
56134         Fix collision between uniwidth/* and linebreak modules.
56135         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
56136         u32_width): Remove declarations.
56137         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
56138         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
56139         streq3, streq2, streq1, streq0): Remove functions.
56140         (STREQ): Remove macro.
56141         (is_cjk_encoding): Remove function.
56142         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
56143         (uc_width, u8_width, u16_width, u32_width): Remove functions.
56144         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
56145         * NEWS: Document the change.
56146
56147 2007-09-01  Bruno Haible  <bruno@clisp.org>
56148
56149         * lib/streq.h: Add double-inclusion guard.
56150
56151 2007-09-01  Karl Berry  <karl@gnu.org>
56152
56153         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
56154
56155 2007-08-28  Jim Meyering  <jim@meyering.net>
56156
56157         Rename mreadlink_with_size to areadlink_with_size.
56158         * NEWS: Document the change.
56159         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
56160         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
56161         * lib/mreadlink.h: Rename this to...
56162         * lib/areadlink.h: ...this.
56163         * modules/mreadlink-with-size: Rename this to...
56164         * modules/areadlink-with-size: ...this.
56165         * lib/canonicalize.c: Reflect the renaming.
56166         * modules/canonicalize: Likewise.
56167
56168 2007-08-26  Bruno Haible  <bruno@clisp.org>
56169
56170         * gnulib-tool (func_import): When deciding which files to remove,
56171         consider also dangling symbolic links.
56172         Reported by Eric Blake.
56173
56174 2007-08-26  Bruno Haible  <bruno@clisp.org>
56175
56176         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56177
56178 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56179
56180         * lib/readline.c: Don't include getline.h, the prototype is now
56181         found in stdio.h.
56182
56183 2007-08-23  Jim Meyering  <jim@meyering.net>
56184
56185         Getdelim touchup.
56186         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56187         around the funlockfile call, since funlockfile never sets errno.
56188         Don't set errno upon failed realloc.
56189
56190 2007-08-22  Eric Blake  <ebb9@byu.net>
56191
56192         Getline touchups.
56193         * lib/getdelim.c (getdelim): Revert regression that required *n to
56194         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56195         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56196         getdelim, rather than whether implementation is missing.
56197         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56198         * lib/stdio_.h (getline): Also declare if replacement is
56199         required.
56200         * doc/functions/getdelim.texi: New file.
56201         * doc/functions/getline.texi: Likewise.
56202         * doc/gnulib.texi (Function Substitutes): Add new files.
56203         Reported by Bruno Haible.
56204
56205 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
56206
56207         * users.txt: Add Guile.
56208
56209 2007-08-22  Eric Blake  <ebb9@byu.net>
56210
56211         * tests/test-getdelim.c (main): Use remove, not unlink.
56212         * tests/test-getline.c (main): Likewise.
56213
56214         Move getline and getdelim into stdio.h, per POSIX 200x.
56215         * modules/getline (Files): Remove getline.h.
56216         (Depends-on): Add stdio.
56217         (configure.ac): Add module indicator.
56218         * modules/getdelim (Files): Remove getdelim.h.
56219         (Depends-on): Add stdio.
56220         (configure.ac): Add module indicator.
56221         * modules/stdio (Makefile.am): Work with new indicators.
56222         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56223         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
56224         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56225         * lib/getdelim.h: Delete.
56226         * lib/getline.h: Delete.
56227         * lib/stdio_.h (getdelim, getline): Declare.
56228         * modules/getdelim-tests: New module.
56229         * modules/getline-tests: Likewise.
56230         * tests/test-getdelim.c: New file.
56231         * tests/test-getline.c: Likewise.
56232         * NEWS: Document the change.
56233         * lib/getline.c: Update choice of header.
56234         * lib/csharpcomp.c: Likewise.
56235         * lib/getpass.c: Likewise.
56236         * lib/javacomp.c: Likewise.
56237         * lib/javaversion.c: Likewise.
56238         * lib/yesno.c: Likewise.
56239         * lib/getdelim.c: Likewise.
56240         (getdelim): Set errno on failure, and avoid memory leak.
56241
56242 2007-08-19  Bruno Haible  <bruno@clisp.org>
56243
56244         * modules/closein (Depends-on): Add freadahead.
56245         * lib/closein.c: Include freadahead.h.
56246         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
56247         is zero.
56248
56249 2007-08-19  Bruno Haible  <bruno@clisp.org>
56250
56251         * modules/freadahead-tests: New file.
56252         * tests/test-freadahead.sh: New file.
56253         * tests/test-freadahead.c: New file.
56254
56255         * modules/freadahead: New file.
56256         * lib/freadahead.h: New file.
56257         * lib/freadahead.c: New file.
56258         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
56259         fbufmode, fpurge, freadable, fwritable.
56260
56261 2007-08-19  Eric Blake  <ebb9@byu.net>
56262
56263         Test yesno in combination with closein.
56264         * lib/yesno.c (yesno): Document use of stdin.
56265         * modules/yesno-tests (Files): New module.
56266         * tests/test-yesno.c (main): New file.
56267         * tests/test-yesno.sh: Likewise.
56268
56269 2007-08-19  Bruno Haible  <bruno@clisp.org>
56270
56271         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
56272         * lib/fseeko.c (rpl_fseeko): Likewise.
56273         * lib/fseterr.c (fseterr): Likewise.
56274
56275 2007-08-19  Bruno Haible  <bruno@clisp.org>
56276
56277         * tests/test-lseek.c (main): Disable a test for BeOS.
56278         * doc/functions/lseek.texi: Document the BeOS bug.
56279
56280 2007-08-19  Bruno Haible  <bruno@clisp.org>
56281             Eric Blake  <ebb9@byu.net>
56282
56283         * lib/lseek.c: Include <sys/stat.h>.
56284         (rpl_lseek): Add workaround code also for Unix platforms.
56285         Needed for BeOS.
56286         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
56287         * doc/functions/lseek.texi: Document BeOS definiency.
56288
56289 2007-08-18  Bruno Haible  <bruno@clisp.org>
56290
56291         * modules/fstrcmp-tests: New file.
56292         * tests/test-fstrcmp.c: New file.
56293
56294 2007-08-18  Bruno Haible  <bruno@clisp.org>
56295
56296         * modules/fstrcmp: New file, from GNU gettext with modifications.
56297         * lib/fstrcmp.h: New file, from GNU gettext.
56298         * lib/fstrcmp.c: New file, from GNU gettext.
56299         * MODULES.html.sh (String handling): Add fstrcmp.
56300
56301 2007-08-18  Bruno Haible  <bruno@clisp.org>
56302
56303         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
56304         'bool'.
56305         (diag, compareseq): Remove const from the ctxt argument.
56306         (USE_HEURISTIC): Undefine at the end.
56307
56308 2007-08-18  Jim Meyering  <jim@meyering.net>
56309
56310         New file: lib/idcache.h
56311         * NEWS: Mention the addition.
56312         * modules/idcache (Files): Add lib/idcache.h
56313         * lib/idcache.c: Include "idcache.h".
56314         Don't include <sys/types.h>.
56315         Add a FIXME comment.
56316         Move file-scoped "static" declarations to the top.
56317         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
56318
56319 2007-08-17  Bruno Haible  <bruno@clisp.org>
56320         and Paul Eggert  <eggert@cs.ucla.edu>
56321
56322         * MODULES.html.sh: Add diffseq.
56323         * modules/diffseq: New file.
56324         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
56325         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
56326
56327 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56328
56329         Import changes from coreutils for bootstrap script.
56330
56331         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
56332
56333         * build-aux/bootstrap (slurp): Work even in environments where
56334         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
56335         current code does not slurp files whose names start with ".", and
56336         this looks like it might be a troublesome area.
56337
56338         2007-07-11  Jim Meyering  <jim@meyering.net>
56339
56340         If there's a GPL vN copyright comment, require that N == 3.
56341
56342         2007-07-08  Jim Meyering  <jim@meyering.net>
56343
56344         Run the coreutils-specific code only if tests/Makefile.am.in exists.
56345         * build-aux/bootstrap (mam_template): Move definition out of loop.
56346
56347         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
56348
56349         * build-aux/bootstrap (symlink_to_dir): Rename function from
56350         symlink_to_gnulib.  Add a directory parameter.  Update all
56351         callers.
56352         (cp_mark_as_generated): Also check for -- and link to -- files in
56353         gl/.
56354
56355         2007-07-08  Jim Meyering  <jim@meyering.net>
56356
56357         Adapt to deeper hierarchy in gnulib.
56358         * build-aux/bootstrap (symlink_to_dir): If the destination
56359         directory doesn't exist, create it. This is required at least for
56360         "lib/uniwidth/cjk.h".
56361
56362         2007-05-15  Jim Meyering  <jim@meyering.net>
56363
56364         * build-aux/bootstrap: Now that generated Makefile.am files
56365         are no longer under version control, they must be created at
56366         bootstrap time.
56367
56368 2007-08-14  Ben Pfaff  <blp@gnu.org>
56369
56370         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
56371
56372 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56373
56374         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
56375         given the changes below.
56376         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
56377         even on hosts that have padding bits beyond the supported 64.
56378
56379 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56380
56381         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
56382         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
56383         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
56384         depends on it.
56385         (xstrtol_error): Remove.
56386         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
56387         but with a different signature.
56388         (ATTRIBUTE_NORETURN, __attribute__): New macros.
56389         * lib/xstrtol-error.c: Include exitfail.h.
56390         (xstrtol_fatal): New function, with a different signature from the
56391         old xstrtol_error, so that the caller need not worry about passing
56392         in an exit status, or about storage management of the option argument.
56393         (xstrtol_error): Now a static function.  Redo signature to
56394         implement xstrtol_fatal.  Output the correct number of hyphens in
56395         front of the option so that the caller need not worry about
56396         storage management.
56397         (N_): New macro.
56398         (_): Remove; not used now.
56399         * modules/xstrtol: Depend on getopt.
56400         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
56401         of old STRTOL_FATAL_ERROR macro.
56402         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
56403         of test program.
56404         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
56405         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
56406
56407 2007-08-08  Eric Blake  <ebb9@byu.net>
56408
56409         * lib/xstrtol-error.c: Add missing include.
56410
56411         Move xstrtol messages into gnulib domain, when --pobase is used.
56412         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
56413         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
56414         * modules/xstrtol (Files): Distribute new file.
56415         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
56416         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
56417         * tests/test-xstrtol.c: ...into new file.
56418         * tests/test-xstrtoul.c: Also test xstrtoul.
56419         * tests/test-xstrtoimax.c: Also test xstrtoimax.
56420         * tests/test-xstrtoumax.c: Also test xstrtoumax.
56421         * tests/test-xstrtol.sh: Drive the tests.
56422         * tests/test-xstrtoimax.sh: Likewise.
56423         * tests/test-xstrtoumax.sh: Likewise.
56424         * modules/xstrtol-tests: New module.
56425         * modules/xstrtoimax-tests: Likewise.
56426         * modules/xstrtoumax-tests: Likewise.
56427
56428 2007-08-08  Jim Meyering  <jim@meyering.net>
56429
56430         New function: mfile_name_concat.
56431         * lib/filenamecat.c (mfile_name_concat): New function, just like
56432         file_name_concat, but return NULL upon failure rather than exiting
56433         with a diagnostic.
56434         * lib/filenamecat.h: Declare it.
56435
56436 2007-08-07  Bruno Haible  <bruno@clisp.org>
56437
56438         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
56439         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
56440         warning from gcc.
56441         Reported by Eric Blake.
56442
56443 2007-08-07  Simon Josefsson  <simon@josefsson.org>
56444
56445         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
56446         * modules/crypto/arcfour (License): Likewise.
56447         * modules/crypto/des-tests (License): Likewise.
56448         * modules/crypto/gc-arctwo-tests (License): Likewise.
56449         * modules/crypto/gc-des-tests (License): Likewise.
56450         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
56451         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
56452         * modules/crypto/gc-md2-tests (License): Likewise.
56453         * modules/crypto/gc-md4-tests (License): Likewise.
56454         * modules/crypto/gc-md5-tests (License): Likewise.
56455         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
56456         * modules/crypto/gc-rijndael-tests (License): Likewise.
56457         * modules/crypto/gc-sha1-tests (License): Likewise.
56458         * modules/crypto/gc-tests (License): Likewise.
56459         * modules/crypto/hmac-md5 (License): Likewise.
56460         * modules/crypto/hmac-sha1 (License): Likewise.
56461         * modules/crypto/md2-tests (License): Likewise.
56462         * modules/crypto/md4-tests (License): Likewise.
56463         * modules/crypto/md5 (License): Likewise.
56464         * modules/crypto/rijndael (License): Likewise.
56465         * modules/crypto/sha1 (License): Likewise.
56466         * modules/memxor (License): Likewise.
56467
56468 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56469         and Bruno Haible  <bruno@clisp.org>
56470
56471         * NEWS: Describe interface changes to human, xstrtol.
56472         * lib/human.h: Include <xstrtol.h>.
56473         (human_options): Return enum strtol_error, not int.  Remove
56474         bool arg; take int * instead.
56475         * lib/human.c: Don't include "gettext.h".
56476         (_): Remove; no longer used.
56477         Don't include <xstrtol.h>, since human.h does it.
56478         (human_options): Adjust to abovementioned interface changes.
56479         Do not report error to stderr; that's now the caller's
56480         responsibility.
56481         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
56482         interface change.
56483         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
56484         Str, Argument_type_string.  All uses changed.  Put " argument"
56485         in diagnostics to make them clearer.  Change wording of suffix
56486         message for clarity.
56487         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
56488         Argument_type_string.
56489         (STRTOL_FATAL_WARN): Remove; no longer used.
56490         * modules/human (Depends-on): Remove gettext-h.
56491
56492 2007-08-06  Simon Josefsson  <simon@josefsson.org>
56493
56494         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
56495
56496 2007-07-31  Bruno Haible  <bruno@clisp.org>
56497
56498         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
56499         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
56500         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
56501
56502 2007-07-31  Bruno Haible  <bruno@clisp.org>
56503
56504         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
56505         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
56506
56507 2007-07-30  Bruno Haible  <bruno@clisp.org>
56508
56509         * modules/base64 (License): Use the synonymous term "LGPLv2+".
56510         * modules/c-ctype (License): Likewise.
56511         * modules/c-strcase (License): Likewise.
56512         * modules/check-version (License): Likewise.
56513         * modules/iconv (License): Likewise.
56514         * modules/iconv_open (License): Likewise.
56515         * modules/read-file (License): Likewise.
56516         * modules/striconv (License): Likewise.
56517         * modules/strverscmp (License): Likewise.
56518         * modules/vasprintf (License): Likewise.
56519         * modules/crypto/des (License): Likewise.
56520         * modules/crypto/gc (License): Likewise.
56521         * modules/crypto/gc-arcfour (License): Likewise.
56522         * modules/crypto/gc-arctwo (License): Likewise.
56523         * modules/crypto/gc-des (License): Likewise.
56524         * modules/crypto/gc-hmac-md5 (License): Likewise.
56525         * modules/crypto/gc-hmac-sha1 (License): Likewise.
56526         * modules/crypto/gc-md2 (License): Likewise.
56527         * modules/crypto/gc-md4 (License): Likewise.
56528         * modules/crypto/gc-md5 (License): Likewise.
56529         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
56530         * modules/crypto/gc-random (License): Likewise.
56531         * modules/crypto/gc-rijndael (License): Likewise.
56532         * modules/crypto/gc-sha1 (License): Likewise.
56533         * modules/crypto/md2 (License): Likewise.
56534         * modules/crypto/md4 (License): Likewise.
56535
56536 2007-07-30  Jim Meyering  <jim@meyering.net>
56537
56538         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
56539         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
56540         it has valid stat data.  This bug would cause du not to count the
56541         sizes of inaccessible directories.
56542         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
56543         in <http://bugzilla.redhat.com/250077>.
56544
56545 2007-07-25  Peter O'Gorman  <peter@pogma.com>
56546             Bruno Haible  <bruno@clisp.org>
56547
56548         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
56549         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
56550         #include_next, gives a diagnostic about it, but reports no error in
56551         the exit code.
56552         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
56553
56554 2007-07-24  Ben Pfaff  <blp@gnu.org>
56555
56556         Improve name: "count-one-bits" is better than "popcount".
56557         * MODULES.html.sh: Update name.
56558         * lib/popcount.h: Renamed lib/count-one-bits.h.
56559         (popcount): Renamed count_one_bits.
56560         (popcountl): Renamed count_one_bits_l.
56561         (popcountll): Renamed count_one_bits_ll.
56562         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
56563         * modules/popcount: Renamed module/count-one-bits.
56564         * modules/popcount-tests: Renamed module/count-one-bits-tests.
56565         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
56566
56567 2007-07-23  Ben Pfaff  <blp@gnu.org>
56568
56569         * lib/popcount.h (popcount32): Reduce size of constants, to allow
56570         better code generation, and add U to large constants to avoid
56571         warnings, in non-GCC case.
56572         Suggested by Bruno Haible.
56573
56574 2007-07-23  Ben Pfaff  <blp@gnu.org>
56575
56576         * lib/popcount.h: Use verify_true instead of if...abort.
56577         * modules/popcount: Depend on verify module.
56578         Suggested by Jim Meyering.
56579
56580 2007-07-23  Bruno Haible  <bruno@clisp.org>
56581
56582         * gnulib-tool (func_import): Create a .cvsignore file also when the
56583         directory is not yet in CVS but the toplevel directory is. When
56584         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
56585         Reported by Karl Berry.
56586
56587 2007-07-22  Ben Pfaff  <blp@gnu.org>
56588
56589         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
56590         case.
56591         Suggested by Eric Blake.
56592
56593 2007-07-22  Ben Pfaff  <blp@gnu.org>
56594
56595         New module: popcount.
56596         * MODULES.html.sh: Add popcount.
56597         * modules/popcount: New file.
56598         * modules/popcount-tests: New file.
56599         * tests/test-popcount.c: New file.
56600         * lib/popcount.h: New file.
56601         * m4/popcount.m4: New file.
56602
56603 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56604
56605         * build-aux/announce-gen: Update to GPLv3.
56606
56607         * build-aux/config.guess: Update from config.
56608
56609 2007-07-21  Bruno Haible  <bruno@clisp.org>
56610
56611         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
56612         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
56613
56614 2007-07-20  Jim Meyering  <jim@meyering.net>
56615
56616         * check-module: Diagnose a self-dependency.
56617
56618 2007-07-19  Bruno Haible  <bruno@clisp.org>
56619
56620         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
56621         empty.
56622         Reported by Eric Blake.
56623
56624 2007-07-18  Bruno Haible  <bruno@clisp.org>
56625
56626         * gnulib-tool: New options --po-base, --po-domain.
56627         (func_usage): Document them.
56628         (pobase, po_domain): New variables.
56629         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
56630         DEFAULT_TEXT_DOMAIN.
56631         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
56632         (func_import): Consider pobase and po_domain. Create a po/ directory.
56633         (func_create_testdir): Set pobase and po_domain to empty.
56634         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
56635         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
56636
56637 2007-07-18  Bruno Haible  <bruno@clisp.org>
56638
56639         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56640         EXTRA_DIST augmentation for files in build-aux/.
56641
56642 2007-07-16  Bruno Haible  <bruno@clisp.org>
56643
56644         * modules/lseek (License): Use the synonymous term "LGPLv2+".
56645         * modules/getdelim (License): Likewise.
56646
56647 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56648
56649         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
56650         * modules/d-type (License): Likewise.
56651         * modules/extensions (License): Likewise.
56652         * modules/fnmatch (License): Likewise.
56653         * modules/fseeko (License): Likewise.
56654         * modules/getaddrinfo (License): Likewise.
56655         * modules/getline (License): Likewise.
56656         * modules/getlogin_r (License): Likewise.
56657         * modules/getpass (License): Likewise.
56658         * modules/gettimeofday (License): Likewise.
56659         * modules/glob (License): Likewise.
56660         * modules/inet_ntop (License): Likewise.
56661         * modules/malloc (License): Likewise.
56662         * modules/malloca (License): Likewise.
56663         * modules/memmem (License): Likewise.
56664         * modules/mempcpy (License): Likewise.
56665         * modules/memset (License): Likewise.
56666         * modules/minmax (License): Likewise.
56667         * modules/mktime (License): Likewise.
56668         * modules/netinet_in (License): Likewise.
56669         * modules/pathmax (License): Likewise.
56670         * modules/poll (License): Likewise.
56671         * modules/regex (License): Likewise.
56672         * modules/snprintf (License): Likewise.
56673         * modules/stdbool (License): Likewise.
56674         * modules/stdint (License): Likewise.
56675         * modules/stdio (License): Likewise.
56676         * modules/strcase (License): Likewise.
56677         * modules/strcasestr (License): Likewise.
56678         * modules/strdup (License): Likewise.
56679         * modules/string (License): Likewise.
56680         * modules/strndup (License): Likewise.
56681         * modules/strnlen (License): Likewise.
56682         * modules/strpbrk (License): Likewise.
56683         * modules/strptime (License): Likewise.
56684         * modules/strsep (License): Likewise.
56685         * modules/sys_select (License): Likewise.
56686         * modules/sys_socket (License): Likewise.
56687         * modules/sys_stat (License): Likewise.
56688         * modules/sys_time (License): Likewise.
56689         * modules/time (License): Likewise.
56690         * modules/time_r (License): Likewise.
56691         * modules/timegm (License): Likewise.
56692         * modules/unistd (License): Likewise.
56693         * modules/vsnprintf (License): Likewise.
56694         * modules/wctype (License): Likewise.
56695
56696 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56697
56698         * modules/argz (License): LGPLv2+.
56699
56700 2007-07-15  Karl Berry  <karl@gnu.org>
56701
56702         * doc/gnulib.texi: revise node structure per new fdl.texi.
56703
56704 2007-07-14  Bruno Haible  <bruno@clisp.org>
56705
56706         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
56707         the output file.
56708         * lib/uniname/uninames.h: Regenerated.
56709
56710 2007-07-14  Karl Berry  <karl@gnu.org>
56711
56712         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
56713         omitting sectioning and index commands.
56714
56715 2007-07-13  Bruno Haible  <bruno@clisp.org>
56716
56717         New gnulib-tool option --more-symlinks.
56718         * gnulib-tool (func_usage): Document --more-symlinks.
56719         (do_copyrights): New variable.
56720         Recognize option --more-symlinks.
56721         (func_import): Don't add a copyright notice transform to
56722         sed_transform_lib_file if do_copyrights is empty.
56723
56724 2007-07-13  Bruno Haible  <bruno@clisp.org>
56725
56726         * lib/vasnprintf.c (decimal_point_char): Define also if
56727         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
56728         && !NEED_PRINTF_DIRECTIVE_A.
56729         Reported by Clemens Koller <clemens.koller@anagramm.de> via
56730         Gary V. Vaughan <gary@gnu.org>.
56731
56732 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
56733
56734         * lib/inttypes_.h: Undo previous change, since it was fixed
56735         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
56736
56737 2007-07-13  Bruno Haible  <bruno@clisp.org>
56738
56739         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
56740         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
56741
56742 2007-07-13  Jim Meyering  <jim@meyering.net>
56743
56744         df: Don't fail for Tru64's "file-on-file mount".
56745         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
56746         so we fall through and use statfs instead.  Details here:
56747         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
56748         Reported by Albert Chin.
56749
56750 2007-07-13  Bruno Haible  <bruno@clisp.org>
56751
56752         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
56753         * modules/configmake (License): Likewise.
56754         * modules/gettext (License): Likewise.
56755         * modules/gettext-h (License): Likewise.
56756         * modules/include_next (License): Likewise.
56757         * modules/link-warning (License): Likewise.
56758         * modules/localcharset (License): Likewise.
56759         * modules/localename (License): Likewise.
56760         * modules/lock (License): Likewise.
56761         * modules/relocatable-lib-lgpl (License): Likewise.
56762         * modules/size_max (License): Likewise.
56763         * modules/vasnprintf (License): Likewise.
56764         * modules/wchar (License): Likewise.
56765         * modules/xsize (License): Likewise.
56766
56767 2007-07-13  Bruno Haible  <bruno@clisp.org>
56768
56769         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
56770         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
56771
56772 2007-07-12  Bruno Haible  <bruno@clisp.org>
56773
56774         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
56775         in the modules files.
56776
56777 2007-07-11  Karl Berry  <karl@gnu.org>
56778
56779         * MODULES.html.sh (func_module): use
56780          sed -e '\|^'"${includefile}"'$|d'
56781          instead of /.../d, to avoid errors on $includefile's containing /.
56782
56783 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56784
56785         * gnulib-tool (func_import): Avoid duplication of --avoid
56786         statements
56787         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
56788         names to `_' in variable names.
56789
56790 2007-07-10  Eric Blake  <ebb9@byu.net>
56791
56792         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
56793         * NEWS: Document this change.
56794
56795 2007-07-08  Bruno Haible  <bruno@clisp.org>
56796
56797         Update to Unicode 5.0.
56798         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
56799         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
56800         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
56801         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
56802         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
56803         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
56804         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
56805         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
56806         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
56807         U+10A3F, U+1D242..U+1D244.
56808         (nonspacing_table_ind): Update.
56809         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
56810         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
56811
56812 2007-07-08  Bruno Haible  <bruno@clisp.org>
56813
56814         Update to Unicode 5.0.
56815         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
56816         code transform. Extend the name index field of unicode_name_to_code and
56817         unicode_code_to_name from 16 to 24 bits.
56818         * lib/uniname/uniname.c (unicode_character_name,
56819         unicode_name_character): Add the range 0x12xxx to the code transform.
56820         * lib/uniname/uninames.h: Regenerated.
56821         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
56822
56823 2007-07-07  Bruno Haible  <bruno@clisp.org>
56824
56825         * modules/wcwidth-tests: New file.
56826         * tests/test-wcwidth.c: New file.
56827
56828         Work around MacOS X wcwidth() bug.
56829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
56830         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
56831         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
56832         original wcwidth in non-UTF-8 locales.
56833         * modules/wcwidth (Depends-on): Add localcharset, streq,
56834         uniwidth/width.
56835         * doc/functions/wcwidth.texi: Update.
56836
56837 2007-07-07  Bruno Haible  <bruno@clisp.org>
56838
56839         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
56840         (wcwidth): New declaration.
56841         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
56842         macros.
56843         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
56844         here. Prepare for creating <wchar.h> unconditionally.
56845         * modules/wchar (Depends-on): Add link-warning.
56846         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
56847         REPLACE_WCWIDTH, and GL_LINK_WARNING.
56848         * lib/wcwidth.h: Remove file.
56849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
56850         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
56851         * modules/wcwidth (Files): Remove lib/wcwidth.h.
56852         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
56853         (Include): Replace wcwidth.h with <wchar.h>.
56854         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
56855         * lib/mbchar.h: Don't include wcwidth.h.
56856         * lib/mbswidth.c: Likewise.
56857         * NEWS: Mention the change.
56858
56859 2007-07-07  Bruno Haible  <bruno@clisp.org>
56860
56861         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
56862         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
56863         definition with an external declaration.
56864         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
56865         defined as a function. Remove AC_C_INLINE requirement.
56866         * modules/wcwidth (Files): Add lib/wcwidth.c.
56867         (Makefile.am): Remove redundant statement.
56868
56869 2007-07-07  Bruno Haible  <bruno@clisp.org>
56870
56871         * MODULES.html.sh (Unicode string functions): Add the new modules.
56872
56873         * tests/uniwidth/test-u32-strwidth.c: New file.
56874         * modules/uniwidth/u32-strwidth-tests: New file.
56875
56876         * lib/uniwidth/u32-strwidth.c: New file.
56877         * modules/uniwidth/u32-strwidth: New file.
56878
56879         * tests/uniwidth/test-u16-strwidth.c: New file.
56880         * modules/uniwidth/u16-strwidth-tests: New file.
56881
56882         * lib/uniwidth/u16-strwidth.c: New file.
56883         * modules/uniwidth/u16-strwidth: New file.
56884
56885         * tests/uniwidth/test-u8-strwidth.c: New file.
56886         * modules/uniwidth/u8-strwidth-tests: New file.
56887
56888         * lib/uniwidth/u8-strwidth.c: New file.
56889         * modules/uniwidth/u8-strwidth: New file.
56890
56891         * tests/uniwidth/test-u32-width.c: New file.
56892         * modules/uniwidth/u32-width-tests: New file.
56893
56894         * lib/uniwidth/u32-width.c: New file.
56895         * modules/uniwidth/u32-width: New file.
56896
56897         * tests/uniwidth/test-u16-width.c: New file.
56898         * modules/uniwidth/u16-width-tests: New file.
56899
56900         * lib/uniwidth/u16-width.c: New file.
56901         * modules/uniwidth/u16-width: New file.
56902
56903         * tests/uniwidth/test-u8-width.c: New file.
56904         * modules/uniwidth/u8-width-tests: New file.
56905
56906         * lib/uniwidth/u8-width.c: New file.
56907         * modules/uniwidth/u8-width: New file.
56908
56909         * tests/uniwidth/test-uc_width.c: New file.
56910         * modules/uniwidth/width-tests: New file.
56911
56912         * lib/uniwidth/width.c: New file, from GNU libiconv.
56913         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
56914         * modules/uniwidth/width: New file.
56915
56916         * lib/uniwidth.h: New file, from GNU libiconv.
56917         * modules/uniwidth/base: New file.
56918
56919 2007-07-07  Bruno Haible  <bruno@clisp.org>
56920
56921         * lib/uniname.h: New file, from GNU gettext.
56922         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
56923         * lib/uniname/uninames.h: New file, from GNU gettext.
56924         * lib/uniname/uniname.c: New file, from GNU gettext.
56925         * tests/uniname/test-uninames.sh: New file.
56926         * tests/uniname/test-uninames.c: New file, from GNU gettext.
56927         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
56928         * modules/uniname/base: New file.
56929         * modules/uniname/uniname: New file.
56930         * modules/uniname/uniname-tests: New file.
56931         * MODULES.html.sh (Unicode string functions): Add the new modules.
56932
56933 2007-07-06  Bruno Haible  <bruno@clisp.org>
56934
56935         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
56936
56937 2007-07-06  Bruno Haible  <bruno@clisp.org>
56938
56939         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
56940         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
56941         includes <cygwin/sys_time.h> which includes <sys/select.h> which
56942         include <sys/time.h>.
56943         Reported by Eric Blake.
56944
56945 2007-07-06  Eric Blake  <ebb9@byu.net>
56946
56947         Fix testing canonicalize on cygwin.
56948         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56949         Revert patch from 2007-06-19.
56950         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
56951         canonicalize module is also in use.
56952         * tests/test-canonicalize.c: New file.
56953         * tests/test-canonicalize.sh: Likewise.
56954         * modules/canonicalize-tests: Likewise.
56955
56956 2007-07-06  Jim Meyering  <jim@meyering.net>
56957
56958         * lib/getugroups.c (getugroups): Detect getgrent failure.
56959         Adjust comment to reflect reality: this function may return -1.
56960
56961 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56962
56963         * build-aux/bootstrap (TP_URL,get_translations): Update to use
56964         the new TP address.
56965         (usage): Fix typo
56966         (gnulib_mk): New variable.
56967
56968 2007-07-05  Jim Meyering  <jim@meyering.net>
56969
56970         Don't let endgrent clobber errno, no matter how improbable.
56971         * lib/getugroups.c (getugroups): Save and restore errno around
56972         endgrent call.
56973
56974         Close the group DB even when failing with 2^31 or more members.
56975         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
56976
56977 2007-07-04  Jim Meyering  <jim@meyering.net>
56978
56979         * lib/getugroups.h: New file.
56980         * lib/getugroups.c: Include "getugroups.h".
56981         Remove uses of "register" keyword.
56982         Move local variable, "cp", down into scope where used.
56983         Give "username" parameter the "const" attribute.
56984         * modules/getugroups (Files): Add lib/getugroups.h
56985
56986 2007-07-04  Karl Berry  <karl@gnu.org>
56987
56988         * MODULES.html.sh (func_all_modules): Complete rename of
56989         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
56990
56991 2007-07-02  Bruno Haible  <bruno@clisp.org>
56992
56993         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
56994         mode, when inttypes.h comes from gnulib.
56995         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56996
56997 2007-07-02  Simon Josefsson  <simon@josefsson.org>
56998
56999         * NEWS: Mention lgpl module name change.
57000
57001         * modules/lgpl-2.1: Renamed from lgpl.
57002
57003         * NEWS: Mention gpl module name change.
57004
57005         * modules/gpl-3.0: New file, based on gpl-2.0.
57006
57007         * modules/gpl-2.0: Renamed from gpl.
57008
57009         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57010         doc/gpl-2.0.texi.
57011
57012 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57013
57014         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57015         #define __STDC_LIMIT_MACROS temporarily while including
57016         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57017         Problem reported by Joel E. Denny in
57018         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57019
57020 2007-07-01  Bruno Haible  <bruno@clisp.org>
57021
57022         * lib/unistdio.h: New file.
57023         * lib/unistdio/u-asnprintf.h: New file.
57024         * lib/unistdio/u-asprintf.h: New file.
57025         * lib/unistdio/u-printf-args.c: New file.
57026         * lib/unistdio/u-printf-args.h: New file.
57027         * lib/unistdio/u-printf-parse.h: New file.
57028         * lib/unistdio/u-snprintf.h: New file.
57029         * lib/unistdio/u-sprintf.h: New file.
57030         * lib/unistdio/u-vasprintf.h: New file.
57031         * lib/unistdio/u-vsnprintf.h: New file.
57032         * lib/unistdio/u-vsprintf.h: New file.
57033         * lib/unistdio/ulc-asnprintf.c: New file.
57034         * lib/unistdio/ulc-asprintf.c: New file.
57035         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57036         * lib/unistdio/ulc-printf-parse.c: New file.
57037         * lib/unistdio/ulc-snprintf.c: New file.
57038         * lib/unistdio/ulc-sprintf.c: New file.
57039         * lib/unistdio/ulc-vasnprintf.c: New file.
57040         * lib/unistdio/ulc-vasprintf.c: New file.
57041         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57042         * lib/unistdio/ulc-vsnprintf.c: New file.
57043         * lib/unistdio/ulc-vsprintf.c: New file.
57044         * lib/unistdio/u8-asnprintf.c: New file.
57045         * lib/unistdio/u8-asprintf.c: New file.
57046         * lib/unistdio/u8-printf-parse.c: New file.
57047         * lib/unistdio/u8-snprintf.c: New file.
57048         * lib/unistdio/u8-sprintf.c: New file.
57049         * lib/unistdio/u8-vasnprintf.c: New file.
57050         * lib/unistdio/u8-vasprintf.c: New file.
57051         * lib/unistdio/u8-vsnprintf.c: New file.
57052         * lib/unistdio/u8-vsprintf.c: New file.
57053         * lib/unistdio/u8-u8-asnprintf.c: New file.
57054         * lib/unistdio/u8-u8-asprintf.c: New file.
57055         * lib/unistdio/u8-u8-snprintf.c: New file.
57056         * lib/unistdio/u8-u8-sprintf.c: New file.
57057         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57058         * lib/unistdio/u8-u8-vasprintf.c: New file.
57059         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57060         * lib/unistdio/u8-u8-vsprintf.c: New file.
57061         * lib/unistdio/u16-asnprintf.c: New file.
57062         * lib/unistdio/u16-asprintf.c: New file.
57063         * lib/unistdio/u16-printf-parse.c: New file.
57064         * lib/unistdio/u16-snprintf.c: New file.
57065         * lib/unistdio/u16-sprintf.c: New file.
57066         * lib/unistdio/u16-vasnprintf.c: New file.
57067         * lib/unistdio/u16-vasprintf.c: New file.
57068         * lib/unistdio/u16-vsnprintf.c: New file.
57069         * lib/unistdio/u16-vsprintf.c: New file.
57070         * lib/unistdio/u16-u16-asnprintf.c: New file.
57071         * lib/unistdio/u16-u16-asprintf.c: New file.
57072         * lib/unistdio/u16-u16-snprintf.c: New file.
57073         * lib/unistdio/u16-u16-sprintf.c: New file.
57074         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57075         * lib/unistdio/u16-u16-vasprintf.c: New file.
57076         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57077         * lib/unistdio/u16-u16-vsprintf.c: New file.
57078         * lib/unistdio/u32-asnprintf.c: New file.
57079         * lib/unistdio/u32-asprintf.c: New file.
57080         * lib/unistdio/u32-printf-parse.c: New file.
57081         * lib/unistdio/u32-snprintf.c: New file.
57082         * lib/unistdio/u32-sprintf.c: New file.
57083         * lib/unistdio/u32-vasnprintf.c: New file.
57084         * lib/unistdio/u32-vasprintf.c: New file.
57085         * lib/unistdio/u32-vsnprintf.c: New file.
57086         * lib/unistdio/u32-vsprintf.c: New file.
57087         * lib/unistdio/u32-u32-asnprintf.c: New file.
57088         * lib/unistdio/u32-u32-asprintf.c: New file.
57089         * lib/unistdio/u32-u32-snprintf.c: New file.
57090         * lib/unistdio/u32-u32-sprintf.c: New file.
57091         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57092         * lib/unistdio/u32-u32-vasprintf.c: New file.
57093         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57094         * lib/unistdio/u32-u32-vsprintf.c: New file.
57095         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57096         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57097         * tests/unistdio/test-ulc-printf1.h: New file.
57098         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57099         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57100         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57101         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57102         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57103         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57104         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57105         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57106         * tests/unistdio/test-u8-asnprintf1.c: New file.
57107         * tests/unistdio/test-u8-asnprintf1.h: New file.
57108         * tests/unistdio/test-u8-printf1.h: New file.
57109         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57110         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57111         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57112         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57113         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57114         * tests/unistdio/test-u8-vasprintf1.c: New file.
57115         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57116         * tests/unistdio/test-u8-vsprintf1.c: New file.
57117         * tests/unistdio/test-u16-asnprintf1.c: New file.
57118         * tests/unistdio/test-u16-asnprintf1.h: New file.
57119         * tests/unistdio/test-u16-printf1.h: New file.
57120         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57121         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57122         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57123         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57124         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
57125         * tests/unistdio/test-u16-vasprintf1.c: New file.
57126         * tests/unistdio/test-u16-vsnprintf1.c: New file.
57127         * tests/unistdio/test-u16-vsprintf1.c: New file.
57128         * tests/unistdio/test-u32-asnprintf1.c: New file.
57129         * tests/unistdio/test-u32-asnprintf1.h: New file.
57130         * tests/unistdio/test-u32-printf1.h: New file.
57131         * tests/unistdio/test-u32-vasnprintf1.c: New file.
57132         * tests/unistdio/test-u32-vasnprintf2.c: New file.
57133         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
57134         * tests/unistdio/test-u32-vasnprintf3.c: New file.
57135         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
57136         * tests/unistdio/test-u32-vasprintf1.c: New file.
57137         * tests/unistdio/test-u32-vsnprintf1.c: New file.
57138         * tests/unistdio/test-u32-vsprintf1.c: New file.
57139         * modules/unistdio/base: New file.
57140         * modules/unistdio/u-printf-args: New file.
57141         * modules/unistdio/ulc-asnprintf: New file.
57142         * modules/unistdio/ulc-asprintf: New file.
57143         * modules/unistdio/ulc-fprintf: New file.
57144         * modules/unistdio/ulc-printf-parse: New file.
57145         * modules/unistdio/ulc-snprintf: New file.
57146         * modules/unistdio/ulc-sprintf: New file.
57147         * modules/unistdio/ulc-vasnprintf: New file.
57148         * modules/unistdio/ulc-vasprintf: New file.
57149         * modules/unistdio/ulc-vfprintf: New file.
57150         * modules/unistdio/ulc-vsnprintf: New file.
57151         * modules/unistdio/ulc-vsprintf: New file.
57152         * modules/unistdio/u8-asnprintf: New file.
57153         * modules/unistdio/u8-asprintf: New file.
57154         * modules/unistdio/u8-printf-parse: New file.
57155         * modules/unistdio/u8-snprintf: New file.
57156         * modules/unistdio/u8-sprintf: New file.
57157         * modules/unistdio/u8-vasnprintf: New file.
57158         * modules/unistdio/u8-vasprintf: New file.
57159         * modules/unistdio/u8-vsnprintf: New file.
57160         * modules/unistdio/u8-vsprintf: New file.
57161         * modules/unistdio/u8-u8-asnprintf: New file.
57162         * modules/unistdio/u8-u8-asprintf: New file.
57163         * modules/unistdio/u8-u8-snprintf: New file.
57164         * modules/unistdio/u8-u8-sprintf: New file.
57165         * modules/unistdio/u8-u8-vasnprintf: New file.
57166         * modules/unistdio/u8-u8-vasprintf: New file.
57167         * modules/unistdio/u8-u8-vsnprintf: New file.
57168         * modules/unistdio/u8-u8-vsprintf: New file.
57169         * modules/unistdio/u16-asnprintf: New file.
57170         * modules/unistdio/u16-asprintf: New file.
57171         * modules/unistdio/u16-printf-parse: New file.
57172         * modules/unistdio/u16-snprintf: New file.
57173         * modules/unistdio/u16-sprintf: New file.
57174         * modules/unistdio/u16-vasnprintf: New file.
57175         * modules/unistdio/u16-vasprintf: New file.
57176         * modules/unistdio/u16-vsnprintf: New file.
57177         * modules/unistdio/u16-vsprintf: New file.
57178         * modules/unistdio/u16-u16-asnprintf: New file.
57179         * modules/unistdio/u16-u16-asprintf: New file.
57180         * modules/unistdio/u16-u16-snprintf: New file.
57181         * modules/unistdio/u16-u16-sprintf: New file.
57182         * modules/unistdio/u16-u16-vasnprintf: New file.
57183         * modules/unistdio/u16-u16-vasprintf: New file.
57184         * modules/unistdio/u16-u16-vsnprintf: New file.
57185         * modules/unistdio/u16-u16-vsprintf: New file.
57186         * modules/unistdio/u32-asnprintf: New file.
57187         * modules/unistdio/u32-asprintf: New file.
57188         * modules/unistdio/u32-printf-parse: New file.
57189         * modules/unistdio/u32-snprintf: New file.
57190         * modules/unistdio/u32-sprintf: New file.
57191         * modules/unistdio/u32-vasnprintf: New file.
57192         * modules/unistdio/u32-vasprintf: New file.
57193         * modules/unistdio/u32-vsnprintf: New file.
57194         * modules/unistdio/u32-vsprintf: New file.
57195         * modules/unistdio/u32-u32-asnprintf: New file.
57196         * modules/unistdio/u32-u32-asprintf: New file.
57197         * modules/unistdio/u32-u32-snprintf: New file.
57198         * modules/unistdio/u32-u32-sprintf: New file.
57199         * modules/unistdio/u32-u32-vasnprintf: New file.
57200         * modules/unistdio/u32-u32-vasprintf: New file.
57201         * modules/unistdio/u32-u32-vsnprintf: New file.
57202         * modules/unistdio/u32-u32-vsprintf: New file.
57203         * modules/unistdio/ulc-asnprintf-tests: New file.
57204         * modules/unistdio/ulc-vasnprintf-tests: New file.
57205         * modules/unistdio/ulc-vasprintf-tests: New file.
57206         * modules/unistdio/ulc-vsnprintf-tests: New file.
57207         * modules/unistdio/ulc-vsprintf-tests: New file.
57208         * modules/unistdio/u8-asnprintf-tests: New file.
57209         * modules/unistdio/u8-vasnprintf-tests: New file.
57210         * modules/unistdio/u8-vasprintf-tests: New file.
57211         * modules/unistdio/u8-vsnprintf-tests: New file.
57212         * modules/unistdio/u8-vsprintf-tests: New file.
57213         * modules/unistdio/u16-asnprintf-tests: New file.
57214         * modules/unistdio/u16-vasnprintf-tests: New file.
57215         * modules/unistdio/u16-vasprintf-tests: New file.
57216         * modules/unistdio/u16-vsnprintf-tests: New file.
57217         * modules/unistdio/u16-vsprintf-tests: New file.
57218         * modules/unistdio/u32-asnprintf-tests: New file.
57219         * modules/unistdio/u32-vasnprintf-tests: New file.
57220         * modules/unistdio/u32-vasprintf-tests: New file.
57221         * modules/unistdio/u32-vsnprintf-tests: New file.
57222         * modules/unistdio/u32-vsprintf-tests: New file.
57223         * MODULES.html.sh (Unicode string functions): Add the new modules.
57224
57225 2007-07-01  Bruno Haible  <bruno@clisp.org>
57226
57227         * lib/sprintf.c (sprintf): Limit the available length estimation,
57228         to avoid address wraparound.
57229         * lib/vsprintf.c (vsprintf): Likewise.
57230         * modules/sprintf-posix (Dependencies): Add stdint.
57231         * modules/vsprintf-posix (Dependencies): Likewise.
57232
57233 2007-07-01  Bruno Haible  <bruno@clisp.org>
57234
57235         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
57236         Windows PATH as well. Conservative double-quoting. Comments.
57237
57238 2007-07-01  Bruno Haible  <bruno@clisp.org>
57239             Eric Blake  <ebb9@byu.net>
57240             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57241
57242         * gnulib-tool (self_abspathname): Fix algorithm to cope with
57243         empty components in $PATH, denoting '.'.
57244
57245 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57246
57247         * gnulib-tool: Fix indentation.
57248         (func_create_megatestdir): Likewise.
57249         Report by Bruno Haible.
57250
57251 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57252
57253         Sync from Automake.
57254         * build-aux/gnupload: Fix shell portability issues with for loops.
57255         Report by Karl Berry.
57256
57257 2007-06-29  Simon Josefsson  <simon@josefsson.org>
57258
57259         * build-aux/maint.mk (POURL): Use translationproject.org.
57260
57261 2007-06-27  Simon Josefsson  <simon@josefsson.org>
57262             Bruno Haible  <bruno@clisp.org>
57263
57264         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
57265         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
57266         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
57267         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
57268         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
57269
57270 2007-06-27  Bruno Haible  <bruno@clisp.org>
57271
57272         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
57273         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
57274
57275 2007-06-26  Karl Berry  <karl@gnu.org>
57276
57277         * MODULES.html.sh: remove xreadlink-with-size.
57278
57279 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57280
57281         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
57282         method that I hope also handles the double-include problem noted
57283         by Bruno Haible in
57284         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
57285
57286 2007-06-23  Bruno Haible  <bruno@clisp.org>
57287
57288         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57289         Don't let the 'mostlyclean' target fail if the last subdirectory could
57290         not be removed.
57291         Reported by Karl Berry.
57292
57293 2007-06-23  Bruno Haible  <bruno@clisp.org>
57294
57295         * gnulib-tool (echo): Add a speedier workaround for ksh.
57296         * tests/test-echo.sh: Likewise.
57297
57298 2007-06-23  Bruno Haible  <bruno@clisp.org>
57299
57300         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
57301         * tests/test-echo.sh: Likewise.
57302
57303 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57304
57305         * gnulib-tool (IFS): Initialize early, so we don't set it to
57306         empty later.
57307         (self_abspathname): Rewrite algorithm to set it, reindent.
57308         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
57309         (func_create_megatestdir): Merge some sed scripts.
57310
57311 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57312
57313         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
57314         exposed by Sun Studio 11 cc on Solaris 8.
57315
57316 2007-06-22  Bruno Haible  <bruno@clisp.org>
57317
57318         * gnulib-tool (echo): Ensure the echo primitive does not interpret
57319         backslashes.
57320         * tests/test-echo.sh: New file.
57321
57322 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57323
57324         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
57325         simplify `sed_replace_build_aux' scripts, they are portable but
57326         echoing them with `echo' is not.
57327         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
57328
57329 2007-06-21  Karl Berry  <karl@gnu.org>
57330
57331         * config/srclist.txt: guess we can't handle the licenses via
57332         srclist at the moment.
57333
57334 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57335
57336         * MODULES.html.sh: Add include_next.
57337         * modules/include_next: New file.
57338
57339 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57340
57341         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
57342         INCLUDE_NEXT.
57343         (gl_CHECK_NEXT_HEADERS): New macro.
57344         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
57345         the obsolescent gl_ABSOLUTE_HEADER.
57346         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
57347         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
57348         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57349         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57350         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57351         * m4/math_h.m4 (gl_MATH_H): Likewise.
57352         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57353         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57354         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57355         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57356         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57357         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57358         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57359         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57360         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57361         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57362         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57363         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57364         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
57365         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57366         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57367         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57368         * m4/inttypes.m4 (gl_INTTYPES_H): Define
57369         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
57370         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
57371         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
57372         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
57373         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
57374         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
57375         * lib/float_.h: Likewise.
57376         * lib/inttypes_.h: Likewise.
57377         * lib/math_.h: Likewise.
57378         * lib/search_.h: Likewise.
57379         * lib/signal_.h: Likewise.
57380         * lib/stdint_.h: Likewise.
57381         * lib/stdio_.h: Likewise.
57382         * lib/stdlib_.h: Likewise.
57383         * lib/string_.h: Likewise.
57384         * lib/sys_stat_.h: Likewise.
57385         * lib/sys_time_.h: Likewise.
57386         * lib/time_.h: Likewise.
57387         * lib/unistd_.h: Likewise.
57388         * lib/wchar_.h: Likewise.
57389         * lib/wctype_.h: Likewise.
57390         * lib/dirent_.h: Likewise.
57391         * lib/iconv_.h: Likewise.
57392         * lib/locale_.h: Likewise.
57393         * lib/netinet_in_.h: Likewise.
57394         * lib/sys_select_.h: Likewise.
57395         * lib/sys_socket_.h: Likewise.
57396         * lib/sysexits_.h: Likewise.
57397         * modules/fcntl (Depends-on): Depend on include_next, not
57398         absolute_header.
57399         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
57400         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
57401         * modules/fchdir: Likewise.
57402         * modules/float: Likewise.
57403         * modules/iconv_open: Likewise.
57404         * modules/inttypes: Likewise.
57405         * modules/locale: Likewise.
57406         * modules/math: Likewise.
57407         * modules/netinet_in: Likewise.
57408         * modules/search: Likewise.
57409         * modules/signal: Likewise.
57410         * modules/stdint: Likewise.
57411         * modules/stdio: Likewise.
57412         * modules/stdlib: Likewise.
57413         * modules/string: Likewise.
57414         * modules/sys_select: Likewise.
57415         * modules/sys_socket: Likewise.
57416         * modules/sys_stat: Likewise.
57417         * modules/sys_time: Likewise.
57418         * modules/sysexits: Likewise.
57419         * modules/time: Likewise.
57420         * modules/unistd: Likewise.
57421         * modules/wchar: Likewise.
57422         * modules/wctype: Likewise.
57423         * modules/sys_stat: Change maintainer to "all".
57424         * modules/unistd: Likewise.
57425
57426 2007-06-20  Karl Berry  <karl@gnu.org>
57427
57428         * config/srclist.txt: track www changes in license files.
57429
57430 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
57431
57432         * build-aux/bootstrap: Remove stray dot.
57433         Make sure build_aux settings are honored when linking
57434         gnulib_extra_files.
57435
57436 2007-06-19  Eric Blake  <ebb9@byu.net>
57437
57438         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57439         Allow compilation on cygwin.
57440
57441 2007-06-19  Jim Meyering  <jim@meyering.net>
57442
57443         xreadlink-with-size: Remove module.  No longer used.
57444         Ex-callers now use xreadlink or mreadlink-with-size.
57445         * modules/xreadlink-with-size: Remove module.
57446         * lib/xreadlink-with-size.c: Remove file.
57447         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
57448         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
57449         just before the function definition *is* accurate.
57450
57451         Eliminate one way canonicalize_filename_mode could exit.
57452         * lib/canonicalize.c (canonicalize_filename_mode):
57453         Use mreadlink_with_size, not xreadlink_with_size.
57454
57455 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
57456
57457         Detect porting problems to FreeBSD/arm, which has time_t wider than
57458         long int.  Original problem reported for GNU diff by Xin Li in
57459         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
57460         * modules/getdate (Depends-on): Add intprops, verify.
57461         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
57462         is an integer type no wider than long int.
57463
57464 2007-06-18  Jim Meyering  <jim@meyering.net>
57465
57466         New module: mreadlink-with-size.
57467         * MODULES.html.sh: Add mreadlink-with-size.
57468         * modules/mreadlink-with-size: New module
57469         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
57470         not xreadlink-with-size.
57471         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
57472
57473 2007-06-16  Bruno Haible  <bruno@clisp.org>
57474
57475         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
57476         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
57477         Reported by Gary V. Vaughan <gary@gnu.org>.
57478
57479 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
57480
57481         Revamp lchown so that it lives in unistd.h where it belongs.
57482         * lib/lchown.h: Remove.
57483         * lib/dirchownmod.c: Don't include lib/lchown.h.
57484         * lib/fchownat.c: Likewise.
57485         * lib/openat.c: Likewise.
57486         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
57487         does not follow symlinks.
57488         (EOPNOTSUPP): Define if not defined.
57489         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
57490         is defined to 0.
57491         (lchown): New decl.
57492         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
57493         Do not check for lchown decl.
57494         Set REPLACE_LCHOWN.
57495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
57496         REPLACE_LCHOWN.
57497         * modules/chown: Make it clear it follows symlinks.
57498         * modules/lchown: Make it clear it doesn't follow symlinks.
57499         (Files): Remove lib/lchown.h
57500         (Depends-on): Add unistd.
57501         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
57502         (Include): Include <unistd.h>, not "lchown.h".
57503         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
57504         REPLACE_LCHOWN.
57505
57506 2007-06-15  Jim Meyering  <jim@meyering.net>
57507
57508         Change license (GPL to LGPL) of fsusage and dependents.
57509         * modules/fsusage (License): Change to LGPL.
57510         * modules/full-read (License): Likewise.
57511         * modules/full-write (License): Likewise.
57512         * modules/safe-read (License): Likewise.
57513         * modules/safe-write (License): Likewise.
57514
57515 2007-06-14  Ben Pfaff  <blp@gnu.org>
57516
57517         Missing part of allocsa -> malloca transition.
57518         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
57519         gl_MALLOCA.
57520
57521 2007-06-12  Bruno Haible  <bruno@clisp.org>
57522
57523         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
57524         to ia64, x86_64, i386.
57525         Reported by Eric Blake.
57526
57527 2007-06-12  Bruno Haible  <bruno@clisp.org>
57528
57529         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
57530         cross-compiling to x86_64.
57531
57532 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
57533
57534         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
57535         glitch reported by Ralf Wildenhues in
57536         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
57537
57538         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
57539         Vin Shelton.
57540
57541 2007-06-11  Bruno Haible  <bruno@clisp.org>
57542
57543         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
57544         replacement string.
57545         Reported by Eric Blake.
57546
57547 2007-06-10  Bruno Haible  <bruno@clisp.org>
57548
57549         Prepare vasnprintf code for use with Unicode strings.
57550         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
57551         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
57552         TYPE_U32_STRING.
57553         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
57554         a_u32_string variants.
57555         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57556         * lib/printf-args.c: Don't include config.h and the specification
57557         header if PRINTF_FETCHARGS is already defined.
57558         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57559         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
57560         TYPE_U16_STRING, TYPE_U32_STRING.
57561         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
57562         u16_directive, u16_directives, u32_directive, u32_directives): New
57563         types.
57564         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
57565         New declarations.
57566         * lib/printf-parse.c: Don't include config.h and the specification
57567         header if PRINTF_PARSE is already defined. Eliminate the set of
57568         parameters for WIDE_CHAR_VERSION; the user of this file must provide
57569         them now. Include c-ctype.h.
57570         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
57571         directive and CHAR_T_ONLY_ASCII.
57572         * lib/vasnprintf.c: Don't include config.h and the specification header
57573         if VASNPRINTF is already defined.
57574         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
57575         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
57576         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
57577         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
57578         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
57579         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
57580         code accordingly.
57581         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
57582         pad_ourselves also in this case, with the 'c' and 's' directives, and
57583         with a different notion of "width".
57584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
57585
57586 2007-06-10  Bruno Haible  <bruno@clisp.org>
57587
57588         * modules/unistr/u32-mbsnlen: New file.
57589         * lib/unistr/u32-mbsnlen.c: New file.
57590
57591         * modules/unistr/u16-mbsnlen: New file.
57592         * lib/unistr/u16-mbsnlen.c: New file.
57593
57594         * modules/unistr/u8-mbsnlen: New file.
57595         * lib/unistr/u8-mbsnlen.c: New file.
57596
57597         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
57598         declarations.
57599
57600 2007-06-10  Bruno Haible  <bruno@clisp.org>
57601
57602         * lib/string_.h (mbsnlen): New declaration.
57603         * lib/mbsnlen.c: New file.
57604         * m4/mbsnlen.m4: New file.
57605         * modules/mbsnlen: New file.
57606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
57607         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
57608         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
57609
57610 2007-06-10  Bruno Haible  <bruno@clisp.org>
57611
57612         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
57613
57614 2007-06-10  Bruno Haible  <bruno@clisp.org>
57615
57616         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
57617         * lib/mbuiter.h: Likewise.
57618
57619 2007-06-10  Bruno Haible  <bruno@clisp.org>
57620
57621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
57622         declaration.
57623
57624 2007-06-10  Karl Berry  <karl@gnu.org>
57625
57626         * config/srclist.txt: remove gettext entries, Bruno prefers
57627         to update individually.
57628
57629 2007-06-10  Bruno Haible  <bruno@clisp.org>
57630
57631         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
57632         'maxlen'. Ensure only length + width bytes are allocated, not
57633         length + 1 + width.
57634
57635 2007-06-09  Bruno Haible  <bruno@clisp.org>
57636
57637         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
57638         (CHAR_T): Remove macro.
57639         (VASNPRINTF): Update.
57640
57641 2007-06-09  Bruno Haible  <bruno@clisp.org>
57642
57643         * MODULES.html.sh (Unicode string functions): Add the new modules.
57644
57645         * modules/uniconv/u32-conv-to-enc: New file.
57646         * lib/uniconv/u32-conv-to-enc.c: New file.
57647         * modules/uniconv/u32-conv-to-enc-tests: New file.
57648         * tests/uniconv/test-u32-conv-to-enc.c: New file.
57649
57650         * modules/uniconv/u16-conv-to-enc: New file.
57651         * lib/uniconv/u16-conv-to-enc.c: New file.
57652         * lib/uniconv/u-conv-to-enc.h: New file.
57653         * modules/uniconv/u16-conv-to-enc-tests: New file.
57654         * tests/uniconv/test-u16-conv-to-enc.c: New file.
57655
57656         * modules/uniconv/u8-conv-to-enc: New file.
57657         * lib/uniconv/u8-conv-to-enc.c: New file.
57658         * modules/uniconv/u8-conv-to-enc-tests: New file.
57659         * tests/uniconv/test-u8-conv-to-enc.c: New file.
57660
57661         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
57662         u32_conv_to_encoding): New declarations.
57663
57664 2007-06-09  Bruno Haible  <bruno@clisp.org>
57665
57666         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
57667
57668 2007-06-09  Bruno Haible  <bruno@clisp.org>
57669
57670         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
57671         * modules/malloca: Renamed from modules/allocsa, updated.
57672         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
57673         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
57674         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
57675         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
57676         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
57677         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
57678         * modules/xmalloca: Renamed from modules/xallocsa, updated.
57679         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
57680         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
57681         * modules/c-strcasestr (Depends-on): Update.
57682         * lib/c-strcasestr.c: Update.
57683         * modules/c-strstr (Depends-on): Update.
57684         * lib/c-strstr.c: Update.
57685         * modules/canonicalize-lgpl (Depends-on): Update.
57686         * lib/canonicalize-lgpl.c: Update.
57687         * modules/clean-temp (Depends-on): Update.
57688         * lib/clean-temp.c: Update.
57689         * modules/csharpcomp (Depends-on): Update.
57690         * lib/csharpcomp.c: Update.
57691         * modules/csharpexec (Depends-on): Update.
57692         * lib/csharpexec.c: Update.
57693         * modules/javacomp (Depends-on): Update.
57694         * lib/javacomp.c: Update.
57695         * modules/javaexec (Depends-on): Update.
57696         * lib/javaexec.c: Update.
57697         * modules/mbscasestr (Depends-on): Update.
57698         * lib/mbscasestr.c: Update.
57699         * modules/mbsstr (Depends-on): Update.
57700         * lib/mbsstr.c: Update.
57701         * modules/setenv (Depends-on): Update.
57702         * lib/setenv.c: Update.
57703         * modules/strcasestr (Depends-on): Update.
57704         * lib/strcasestr.c: Update.
57705         * modules/striconveha (Depends-on): Update.
57706         * lib/striconveha.c: Update.
57707         * modules/relocatable-prog-wrapper (Files): Update.
57708         * lib/relocwrapper.c: Update.
57709         * build-aux/install-reloc: Update.
57710         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
57711
57712 2007-06-08  Bruno Haible  <bruno@clisp.org>
57713
57714         Port to uClibc.
57715         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
57716         * lib/fpurge.c (fpurge): Likewise.
57717         * lib/freading.c (freading): Likewise.
57718         * lib/fseeko.c (rpl_fseeko): Likewise.
57719         * lib/fseterr.c (fseterr): Likewise.
57720         * lib/fwriting.c (fwriting): Likewise.
57721         * tests/test-fflush.c (main): Avoid a failure on uClibc.
57722
57723 2007-06-08  Bruno Haible  <bruno@clisp.org>
57724
57725         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
57726         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
57727         * modules/gettext (Files): Add m4/intlmacosx.m4.
57728
57729 2007-06-07  Bruno Haible  <bruno@clisp.org>
57730
57731         * modules/localename-tests: New file.
57732         * tests/test-localename.c: New file.
57733
57734         New module 'localename'.
57735         * lib/localename.h: New file.
57736         * lib/localename.c: New file, from GNU gettext.
57737         * m4/localename.m4: New file.
57738         * modules/localename: New file.
57739
57740 2007-06-07  Bruno Haible  <bruno@clisp.org>
57741
57742         Work around the lack of <wchar.h> on some builds of uClibc.
57743         * doc/headers/wchar.texi: Update.
57744         * lib/wchar_.h: Include <wchar.h> only if it exists.
57745         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
57746         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
57747         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
57748         doesn't exist.
57749         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
57750         * modules/mbfile (Depends-on): Add wchar.
57751         * modules/mbiter (Depends-on): Likewise.
57752         * modules/mbuiter (Depends-on): Likewise.
57753         Reported by Simon Josefsson.
57754
57755 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
57756
57757         Work around problem reported by Steven M. Schweda in
57758         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
57759         Tru64 5.1B with the Compaq compiler environment installed declares
57760         an 'isblank' function but does not define it in the C library.
57761         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
57762         * lib/regex_internal.h (isblank): Likewise.
57763         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
57764         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57765
57766 2007-06-05  Bruno Haible  <bruno@clisp.org>
57767
57768         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
57769         ia64.
57770         * modules/printf-safe: New file.
57771         * modules/fprintf-posix (Depends-on): Add printf-safe.
57772         * modules/printf-posix (Depends-on): Likewise.
57773         * modules/snprintf-posix (Depends-on): Likewise.
57774         * modules/sprintf-posix (Depends-on): Likewise.
57775         * modules/vasnprintf-posix (Depends-on): Likewise.
57776         * modules/vasprintf-posix (Depends-on): Likewise.
57777         * modules/vfprintf-posix (Depends-on): Likewise.
57778         * modules/vprintf-posix (Depends-on): Likewise.
57779         * modules/vsnprintf-posix (Depends-on): Likewise.
57780         * modules/vsprintf-posix (Depends-on): Likewise.
57781         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
57782         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
57783         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
57784         "no" on i386, x86_64, ia64.
57785         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
57786         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57787         on i386, x86_64, ia64.
57788         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
57789         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57790         on i386, x86_64, ia64.
57791         * tests/test-vasnprintf-posix.c: Include float.h.
57792         (LDBL80_WORDS): New macro.
57793         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57794         on i386, x86_64, ia64.
57795         * tests/test-vasprintf-posix.c: Include float.h.
57796         (LDBL80_WORDS): New macro.
57797         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57798         on i386, x86_64, ia64.
57799         * tests/test-snprintf-posix.c: Include float.h.
57800         * tests/test-sprintf-posix.c: Likewise.
57801         * tests/test-vsnprintf-posix.c: Likewise.
57802         * tests/test-vsprintf-posix.c: Likewise.
57803
57804 2007-06-05  Bruno Haible  <bruno@clisp.org>
57805
57806         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
57807         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
57808         non-IEEE numbers on i386, x86_64, ia64.
57809         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
57810         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
57811         * tests/test-isnanl.h: Include float.h.
57812         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
57813
57814 2007-06-05  Bruno Haible  <bruno@clisp.org>
57815
57816         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
57817         also the %a / %A. Handle the %a / %A code before this extra handling.
57818
57819 2007-06-05  Bruno Haible  <bruno@clisp.org>
57820
57821         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
57822         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
57823
57824 2007-06-05  Bruno Haible  <bruno@clisp.org>
57825
57826         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
57827         typo in variable name.
57828
57829 2007-06-05  Eric Blake  <ebb9@byu.net>
57830
57831         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
57832         Reported by Simon Josefsson.
57833
57834 2007-06-04  Bruno Haible  <bruno@clisp.org>
57835
57836         Avoid test failures on some PowerPC platforms.
57837         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
57838         Define differently for PowerPC.
57839         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
57840         Reported by Gary V. Vaughan <gary@gnu.org>.
57841
57842 2007-06-02  Bruno Haible  <bruno@clisp.org>
57843
57844         Fix test-stdint failure on FreeBSD/ia64.
57845         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
57846         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
57847         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
57848         * doc/headers/stdint.texi: Update.
57849
57850 2007-06-01  Bruno Haible  <bruno@clisp.org>
57851
57852         * tests/test-binary-io.c (main): Pass a third argument to open().
57853         Reported by Gary V. Vaughan <gary@gnu.org>.
57854
57855 2007-06-01  Bruno Haible  <bruno@clisp.org>
57856
57857         * doc/functions/frexpl.texi: Update for mingw.
57858
57859 2007-06-01  Bruno Haible  <bruno@clisp.org>
57860
57861         * tests/test-lseek.c (main): Disable test of errno for invalid third
57862         argument.
57863         * doc/functions/lseek.texi: Update.
57864         Reported by Gary V. Vaughan <gary@gnu.org>.
57865
57866 2007-05-28  Bruno Haible  <bruno@clisp.org>
57867
57868         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
57869
57870 2007-05-31  Eric Blake  <ebb9@byu.net>
57871
57872         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
57873         cross compiling.
57874
57875 2007-05-30  Eric Blake  <ebb9@byu.net>
57876         and Bruno Haible  <bruno@clisp.org>
57877
57878         Work around mingw test failures exposed by m4-1.4.9b.
57879         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
57880         * tests/test-unistd.c: Disable uid_t and git_t tests for the
57881         moment.
57882
57883 2007-05-30  Bruno Haible  <bruno@clisp.org>
57884
57885         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
57886         assuming that they are closed. Needed on HP-UX 11.
57887
57888 2007-05-29  Bruno Haible  <bruno@clisp.org>
57889
57890         Fix a problem with #include_next.
57891         * lib/dirent_.h: Split the double-inclusion guard.
57892         * lib/fcntl_.h: Likewise.
57893         * lib/float_.h: Likewise.
57894         * lib/iconv_.h: Likewise.
57895         * lib/inttypes_.h: Likewise.
57896         * lib/locale_.h: Likewise.
57897         * lib/math_.h: Likewise.
57898         * lib/netinet_in_.h: Likewise.
57899         * lib/search_.h: Likewise.
57900         * lib/signal_.h: Likewise.
57901         * lib/stdint_.h: Likewise.
57902         * lib/stdio_.h: Likewise.
57903         * lib/stdlib_.h: Likewise.
57904         * lib/string_.h: Likewise.
57905         * lib/sys_select_.h: Likewise.
57906         * lib/sys_socket_.h: Likewise.
57907         * lib/sys_stat_.h: Likewise.
57908         * lib/sys_time_.h: Likewise.
57909         * lib/sysexits_.h: Likewise.
57910         * lib/time_.h: Likewise.
57911         * lib/unistd_.h: Likewise.
57912         * lib/wchar_.h: Likewise.
57913         * lib/wctype_.h: Likewise.
57914
57915 2007-05-29  Bruno Haible  <bruno@clisp.org>
57916
57917         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
57918         for the moment.
57919
57920 2007-05-29  Bruno Haible  <bruno@clisp.org>
57921
57922         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
57923         invocation.
57924         Reported by Eric Blake.
57925
57926 2007-05-29  Bruno Haible  <bruno@clisp.org>
57927
57928         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
57929         compiling case.
57930
57931 2007-05-29  Eric Blake  <ebb9@byu.net>
57932             Bruno Haible  <bruno@clisp.org>
57933
57934         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
57935         cross compiles.
57936
57937 2007-05-28  Eric Blake  <ebb9@byu.net>
57938
57939         * modules/closein-tests (test_closein_LDADD): Support test on
57940         cygwin with libtool.
57941
57942 2007-05-28  Bruno Haible  <bruno@clisp.org>
57943
57944         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
57945         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57946         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57947         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57948         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57949         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57950         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57951         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57952         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57953
57954 2007-05-28  Eric Blake  <ebb9@byu.net>
57955
57956         Unconditionally include <config.h> in unit tests.
57957         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
57958         * tests/test-allocsa.c, tests/test-arcfour.c,
57959         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
57960         tests/test-array_list.c, tests/test-array_oset.c,
57961         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
57962         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
57963         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
57964         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
57965         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
57966         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
57967         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
57968         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
57969         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
57970         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
57971         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
57972         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
57973         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
57974         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
57975         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
57976         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
57977         test-md5.c, test-memmem.c, test-printf-posix.c,
57978         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
57979         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
57980         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
57981         test-strcasestr.c, test-striconv.c, test-striconveh.c,
57982         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
57983         test-vasnprintf-posix2.c, test-vasnprintf.c,
57984         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
57985         test-vfprintf-posix.c, test-vprintf-posix.c,
57986         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
57987         test-xvasprintf.c: Likewise.
57988
57989 2007-05-28  Bruno Haible  <bruno@clisp.org>
57990
57991         * gnulib-tool (func_import): Remember the --with-tests command-line
57992         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
57993         Reported by Eric Blake.
57994
57995 2007-05-28  Bruno Haible  <bruno@clisp.org>
57996
57997         * modules/ftell-tests: New file.
57998         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
57999         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58000
58001         * lib/ftell.c: New file.
58002         * modules/ftell: New file.
58003         * m4/ftell.m4: New file.
58004         * doc/functions/ftell.texi: Update.
58005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58006         REPLACE_FTELL.
58007         * lib/stdio_.h (rpl_ftell): New declaration.
58008         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58009         REPLACE_FTELL.
58010
58011 2007-05-28  Eric Blake  <ebb9@byu.net>
58012
58013         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58014
58015 2007-05-28  Bruno Haible  <bruno@clisp.org>
58016
58017         * modules/fseek-tests: New file.
58018         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58019         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58020
58021         * lib/fseek.c: New file.
58022         * modules/fseek: New file.
58023         * m4/fseek.m4: New file.
58024         * doc/functions/fseek.texi: Update.
58025         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58026         REPLACE_FSEEK.
58027         * lib/stdio_.h (rpl_fseek): New declaration.
58028         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58029         REPLACE_FSEEK.
58030
58031 2007-05-28  Bruno Haible  <bruno@clisp.org>
58032
58033         * lib/stdio_.h (fflush): More comments.
58034
58035 2007-05-28  Bruno Haible  <bruno@clisp.org>
58036
58037         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58038         runtime test.
58039
58040 2007-05-28  Eric Blake  <ebb9@byu.net>
58041
58042         Improve lseek module.
58043         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58044         * lib/unistd_.h (lseek): Scale back link warning message.
58045         * tests/test-lseek.c: Beef up test.
58046         * tests/test-lseek.sh: Exercise more facets of lseek.
58047         Reported by Bruno Haible.
58048
58049 2007-05-28  Bruno Haible  <bruno@clisp.org>
58050
58051         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58052         to define.
58053
58054 2007-05-27  Bruno Haible  <bruno@clisp.org>
58055
58056         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58057
58058 2007-05-27  Bruno Haible  <bruno@clisp.org>
58059
58060         * modules/openmp: New file.
58061         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58062         Noah Misch.
58063
58064 2007-05-26  Bruno Haible  <bruno@clisp.org>
58065
58066         * modules/chdir-long (Depends-on): Add fchdir.
58067         * modules/chdir-safer (Depends-on): Likewise.
58068         * modules/fts (Depends-on): Likewise.
58069         * modules/fts-lgpl (Depends-on): Likewise.
58070         * modules/openat (Depends-on): Likewise.
58071         * modules/savewd (Depends-on): Likewise.
58072
58073 2007-05-24  Eric Blake  <ebb9@byu.net>
58074
58075         Fix lseek on mingw.
58076         * modules/lseek: New module.
58077         * m4/lseek.m4: New file.
58078         * lib/lseek.c: New file.
58079         * modules/lseek-tests: New file.
58080         * tests/test-lseek.c: New file.
58081         * tests/test-lseek.sh: New file.
58082         * MODULES.html.sh: Document lseek module.
58083         * modules/fflush (Depends-on): Add lseek, fseeko.
58084         * modules/fseeko (Depends-on): Likewise.
58085         * modules/ftello (Depends-on): Likewise.
58086         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58087         broken.
58088         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58089         broken.
58090         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58091         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58092         * lib/ftello.c (rpl_ftello): Likewise.
58093         * tests/test-fseeko.c (main): Test this.
58094         * tests/test-fseeko.sh: Likewise.
58095         * tests/test-ftello.c (main): Likewise.
58096         * tests/test-ftello.sh: Likewise.
58097         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58098         implies replacing fseek.
58099         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58100         HAVE_FTELLO.
58101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58102         * modules/unistd (Makefile.am): Likewise.
58103         * lib/unistd_.h (lseek): Declare a replacement.
58104         * doc/functions/lseek.texi (lseek): Document this fix.
58105         * doc/functions/fseek.texi (fseek): Likewise.
58106         * doc/functions/ftell.texi (ftell): Likewise.
58107
58108 2007-05-24  Bruno Haible  <bruno@clisp.org>
58109
58110         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58111         in the printed representation of a NaN.
58112         * tests/test-vasprintf-posix.c (test_function): Likewise.
58113         * tests/test-snprintf-posix.h (test_function): Likewise.
58114         * tests/test-sprintf-posix.h (test_function): Likewise.
58115         Reported by Eric Blake.
58116
58117 2007-05-23  Eric Blake  <ebb9@byu.net>
58118
58119         Fix fseeko/ftello on cygwin 1.5.24.
58120         * doc/functions/fseeko.texi (fseeko): Document the fix.
58121         * doc/functions/ftello.texi (ftello): Document the fix.
58122         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58123         * doc/functions/stdout.text (stdout): New file.
58124         * doc/functions/stderr.text (stderr): New file.
58125         * doc/gnulib.texi (Function Substitutes): Use new files.
58126         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
58127         prior to 1.7.0.
58128         * tests/test-ftello.c (main): Likewise for ftello.
58129         * tests/test-fseeko.sh: New file.
58130         * tests/test-ftello.sh: New file.
58131         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
58132         with seekable stdin.
58133         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
58134         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
58135         (gl_REPLACE_FSEEKO): New macro.
58136         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
58137         * modules/fseeko (Files): Distribute fseeko.c.
58138         * modules/ftello (Files): Distribute ftello.c.
58139         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
58140         mode.
58141         * lib/ftello.c (rpl_ftello): New file.
58142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
58143         fseeko, ftello.
58144         (gl_STDIN_LARGE_OFFSET): New macro.
58145         * modules/stdio (Makefile.am): Perform the replacement.
58146         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
58147
58148 2007-05-23  Bruno Haible  <bruno@clisp.org>
58149
58150         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
58151         GNULIB_POSIXCHECK is defined.
58152
58153 2007-05-21  Bruno Haible  <bruno@clisp.org>
58154
58155         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
58156         Check also the output for NaN arguments. When cross-compiling, guess
58157         no on IRIX.
58158         * lib/vasnprintf.c: Update comments.
58159         * tests/test-vasnprintf-posix.c (strisnan): New function.
58160         (test_function): Use it.
58161         * tests/test-vasprintf-posix.c (strisnan): New function.
58162         (test_function): Use it.
58163         * tests/test-snprintf-posix.h (strisnan): New function.
58164         (test_function): Use it.
58165         * tests/test-sprintf-posix.h (strisnan): New function.
58166         (test_function): Use it.
58167         Reported by Eric Blake.
58168
58169 2007-05-20  Bruno Haible  <bruno@clisp.org>
58170
58171         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
58172         numbers that fails on BeOS.
58173         * doc/functions/frexpl.texi: Update.
58174
58175 2007-05-20  Jim Meyering  <jim@meyering.net>
58176
58177         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58178         forced upon us by glibc-2.6.
58179
58180 2007-05-20  Bruno Haible  <bruno@clisp.org>
58181
58182         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58183         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58184         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58185         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58186         NEED_PRINTF_INFINITE.
58187         (is_infinitel): New function.
58188         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58189         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58190         gl_PREREQ_VASNPRINTF_INFINITE.
58191         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58192         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58193         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58194         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58195         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58196         gl_PREREQ_VASNPRINTF_INFINITE.
58197         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58198         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58199         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58200         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58201         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58202         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58203         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58204         * doc/functions/fprintf.texi: Update.
58205         * doc/functions/printf.texi: Update.
58206         * doc/functions/snprintf.texi: Update.
58207         * doc/functions/sprintf.texi: Update.
58208         * doc/functions/vfprintf.texi: Update.
58209         * doc/functions/vprintf.texi: Update.
58210         * doc/functions/vsnprintf.texi: Update.
58211         * doc/functions/vsprintf.texi: Update.
58212
58213 2007-05-20  Bruno Haible  <bruno@clisp.org>
58214
58215         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
58216         was not found in libc.
58217         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58218
58219 2007-05-20  Bruno Haible  <bruno@clisp.org>
58220
58221         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58222         printed as "-nan" instead of "nan".
58223         * tests/test-vasprintf-posix.c (test_function): Likewise.
58224         * tests/test-snprintf-posix.h (test_function): Likewise.
58225         * tests/test-sprintf-posix.h (test_function): Likewise.
58226         Needed for HP-UX 11.
58227
58228 2007-05-20  Jim Meyering  <jim@meyering.net>
58229
58230         Fix buggy test for the fchownat-deref bug.
58231         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
58232         symlink required for the run-test.  Without it, this test would
58233         always declare that fchownat doesn't work, and client code would
58234         unnecessarily use the replacement function with fixed libc.
58235         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
58236         Reported by Greg Schafer.
58237
58238 2007-05-19  Bruno Haible  <bruno@clisp.org>
58239
58240         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
58241         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
58242         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
58243         Needed for IRIX 6.5 and Solaris 2.5.1.
58244
58245 2007-05-19  Bruno Haible  <bruno@clisp.org>
58246
58247         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
58248         (test_function): Skip tests involving -0.0 on platforms where
58249         -0.0 = 0.0.
58250         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
58251         (test_function): Skip tests involving -0.0 on platforms where
58252         -0.0 = 0.0.
58253         * tests/test-snprintf-posix.h (have_minus_zero): New function.
58254         (test_function): Skip tests involving -0.0 on platforms where
58255         -0.0 = 0.0.
58256         * tests/test-sprintf-posix.h (have_minus_zero): New function.
58257         (test_function): Skip tests involving -0.0 on platforms where
58258         -0.0 = 0.0.
58259         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
58260         tests.
58261         * tests/test-printf-posix.h (test_function): Likewise.
58262         * tests/test-printf-posix.output: Remove all -0.0 related results.
58263         Needed for IRIX 6.5.
58264
58265 2007-05-19  Bruno Haible  <bruno@clisp.org>
58266
58267         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58268         printed as "nan0x7fffffff" instead of "nan".
58269         * tests/test-vasprintf-posix.c (test_function): Likewise.
58270         * tests/test-snprintf-posix.h (test_function): Likewise.
58271         * tests/test-sprintf-posix.h (test_function): Likewise.
58272         * tests/test-fprintf-posix.h (NaN): Remove macro.
58273         (test_function): Remove all NaN related tests.
58274         * tests/test-printf-posix.h (NaN): Remove macro.
58275         (test_function): Remove all NaN related tests.
58276         * tests/test-printf-posix.output: Remove all NaN related results.
58277         Needed for IRIX 6.5.
58278
58279 2007-05-19  Bruno Haible  <bruno@clisp.org>
58280
58281         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
58282         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58283
58284 2007-05-19  Bruno Haible  <bruno@clisp.org>
58285
58286         * lib/float_.h: New file.
58287         * m4/float_h.m4: New file.
58288         * modules/float: New file.
58289         * modules/isnanl (Dependencies): Add float.
58290         * modules/isnanl-nolibm (Dependencies): Likewise.
58291         * modules/mathl (Dependencies): Likewise.
58292         * modules/printf-frexpl (Dependencies): Likewise.
58293         * modules/signbit (Dependencies): Likewise.
58294         * modules/vasnprintf (Dependencies): Likewise.
58295         * doc/headers/float.texi: Update.
58296
58297 2007-05-19  Jim Meyering  <jim@meyering.net>
58298
58299         * lib/utimens.c (gl_futimens): Rename from futimens,
58300         now that glibc-2.6 declares futimens.
58301         * lib/utimens.h: Likewise.
58302
58303 2007-05-19  Bruno Haible  <bruno@clisp.org>
58304
58305         Avoid test failures on mingw.
58306         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
58307         * tests/test-printf-posix.sh: Likewise.
58308         * tests/test-vfprintf-posix.sh: Likewise.
58309         * tests/test-vprintf-posix.sh: Likewise.
58310
58311 2007-05-19  Bruno Haible  <bruno@clisp.org>
58312
58313         Fix *printf result for NaN, Inf, -0.0 on mingw.
58314         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
58315         * lib/vasnprintf.c: Include math.h and isnan.h.
58316         (is_infinite_or_zero): New function.
58317         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
58318         values in the %f, %F, %e, %E, %g, %G directives.
58319         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
58320         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58321         gl_PRINTF_INFINITE and test its result. Invoke
58322         gl_PREREQ_VASNPRINTF_INFINITE.
58323         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58324         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58325         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58326         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58327         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58328         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58329         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58330         * doc/functions/fprintf.texi: Update.
58331         * doc/functions/printf.texi: Update.
58332         * doc/functions/snprintf.texi: Update.
58333         * doc/functions/sprintf.texi: Update.
58334         * doc/functions/vfprintf.texi: Update.
58335         * doc/functions/vprintf.texi: Update.
58336         * doc/functions/vsnprintf.texi: Update.
58337         * doc/functions/vsprintf.texi: Update.
58338
58339 2007-05-19  Bruno Haible  <bruno@clisp.org>
58340
58341         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
58342         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
58343         Instead of multiplying with 10^k, set extra_zeroes to k.
58344         (scale10_round_long_double): Remove function.
58345
58346 2007-05-18  Bruno Haible  <bruno@clisp.org>
58347
58348         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
58349         introduced on 2007-05-06.
58350
58351 2007-05-18  Bruno Haible  <bruno@clisp.org>
58352
58353         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
58354         %g directives.
58355         * tests/test-vasprintf-posix.c (test_function): Likewise.
58356         * tests/test-snprintf-posix.h (test_function): Likewise.
58357         * tests/test-sprintf-posix.h (test_function): Likewise.
58358
58359 2007-05-18  Bruno Haible  <bruno@clisp.org>
58360
58361         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
58362         (strmatch): New function.
58363         (test_function): Test the %f directive on numbers of various exponents.
58364         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
58365         (strmatch): New function.
58366         (test_function): Test the %f directive on numbers of various exponents.
58367         * tests/test-snprintf-posix.h (strmatch): New function.
58368         (test_function): Test the %f directive on numbers of various exponents.
58369         * tests/test-sprintf-posix.h (strmatch): New function.
58370         (test_function): Test the %f directive on numbers of various exponents.
58371         * tests/test-snprintf-posix.c (SIZEOF): New macro.
58372         * tests/test-sprintf-posix.c (SIZEOF): New macro.
58373         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
58374         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
58375
58376 2007-05-18  Bruno Haible  <bruno@clisp.org>
58377
58378         Add support for 'long double' number output.
58379         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
58380         * lib/vasnprintf.c: Include math.h and float+.h.
58381         (mp_limb_t): New type.
58382         (GMP_LIMB_BITS): New macro.
58383         (mp_twolimb_t): New type.
58384         (GMP_TWOLIMB_BITS): New macro.
58385         (mpn_t): New type.
58386         (multiply, divide, convert_to_decimal, decode_long_double,
58387         scale10_round_long_double, scale10_round_decimal_long_double,
58388         floorlog10l): New functions.
58389         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
58390         for the %f, %F, %e, %E, %g, %G directives.
58391         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
58392         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58393         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
58394         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
58395         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58396         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58397         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58398         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58399         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58400         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58401         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58402         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
58403         * modules/snprintf-posix (Depends-on): Likewise.
58404         * modules/sprintf-posix (Depends-on): Likewise.
58405         * modules/vasnprintf-posix (Depends-on): Likewise.
58406         * modules/vasprintf-posix (Depends-on): Likewise.
58407         * modules/vfprintf-posix (Depends-on): Likewise.
58408         * modules/vsnprintf-posix (Depends-on): Likewise.
58409         * modules/vsprintf-posix (Depends-on): Likewise.
58410         * modules/vasnprintf (Files): Add lib/float+.h.
58411         * doc/functions/fprintf.texi: Update.
58412         * doc/functions/printf.texi: Update.
58413         * doc/functions/snprintf.texi: Update.
58414         * doc/functions/sprintf.texi: Update.
58415         * doc/functions/vfprintf.texi: Update.
58416         * doc/functions/vprintf.texi: Update.
58417         * doc/functions/vsnprintf.texi: Update.
58418         * doc/functions/vsprintf.texi: Update.
58419
58420 2007-05-18  Bruno Haible  <bruno@clisp.org>
58421
58422         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
58423
58424 2007-05-18  Bruno Haible  <bruno@clisp.org>
58425
58426         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
58427         for printing 64-bit integers. Needed for mingw.
58428
58429 2007-05-18  Bruno Haible  <bruno@clisp.org>
58430
58431         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58432         gl_FUNC_FREXPL_WORKS.
58433         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
58434
58435 2007-05-18  Bruno Haible  <bruno@clisp.org>
58436
58437         * modules/frexpl-nolibm-tests: New file.
58438
58439         * modules/frexpl-nolibm: New file.
58440         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
58441
58442 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58443
58444         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
58445         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58446         GCC 4.2, which otherwise issues a lot of warnings.
58447         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
58448         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
58449         Likewise.
58450         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
58451         * modules/iconv_open (iconv.h): Likewise.
58452         * modules/locale (locale.h): Likewise.
58453         * modules/netinet_in (netinet/in.h): Likewise.
58454         * modules/sys_select (sys_select.h): Likewise.
58455         * modules/sys_socket (sys/socket.h): Likewise.
58456         * modules/sys_stat (sys/stat.h): Likewise.
58457         * modules/sysexits (sysexits.h): Likewise.
58458         * modules/unistd (unistd.h): Likewise.
58459
58460 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58461
58462         * modules/closein-tests (Makefile.am): Distribute
58463         `test-closein.sh'.
58464
58465 2007-05-17  Bruno Haible  <bruno@clisp.org>
58466
58467         * tests/test-printf-posix.output: Renamed from
58468         tests/test-fprintf-posix.out.
58469         * modules/fprintf-posix-tests: Update.
58470         * modules/printf-posix-tests: Update.
58471         * modules/vfprintf-posix-tests: Update.
58472         * modules/vprintf-posix-tests: Update.
58473         * tests/test-fprintf-posix.sh: Update.
58474         * tests/test-printf-posix.sh: Update.
58475         * tests/test-vfprintf-posix.sh: Update.
58476         * tests/test-vprintf-posix.sh: Update.
58477         Reported by Ralf Wildenhues.
58478
58479 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58480
58481         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
58482         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58483         GCC 4.2, which otherwise issues a lot of warnings.
58484         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
58485         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
58486         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
58487         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
58488         it should no longer be needed.
58489         * lib/string_.h: Likewise.
58490         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
58491         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
58492         * modules/inttypes (inttypes.h): Likewise.
58493         * modules/math (math.h): Likewise.
58494         * modules/search (search.h): Likewise.
58495         * modules/signal (signal.h): Likewise.
58496         * modules/stdint (stdint.h): Likewise.
58497         * modules/stdio (stdio.h): Likewise.
58498         * modules/stdlib (stdlib.h): Likewise.
58499         * modules/string (string.h): Likewise.
58500         * modules/sys_time (sys/time.h): Likewise.
58501         * modules/time (time.h): Likewise.
58502         * modules/wchar (wchar.h): Likewise.
58503         * modules/wctype (wtype.h): Likewise.
58504
58505 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58506
58507         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
58508
58509 2007-05-13  Bruno Haible  <bruno@clisp.org>
58510
58511         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
58512         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58513         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
58514         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58515         (gl_PREREQ_STRTOK_R): Don't require it here.
58516
58517 2007-05-13  Bruno Haible  <bruno@clisp.org>
58518
58519         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
58520         when used in C++ mode.
58521
58522 2007-05-12  Bruno Haible  <bruno@clisp.org>
58523
58524         * lib/linebuffer.h: Tweak doc.
58525         * lib/linebuffer.c: Likewise.
58526
58527 2007-05-12  James Youngman  <jay@gnu.org>
58528
58529         * lib/linebuffer.c (readlinebuffer_delim): New function,
58530         like readlinebuffer, but use a caller-specified delimiter.
58531         (readlinebuffer): Just call readlinebuffer_delim with '\n'
58532         as the delimiter.
58533         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
58534
58535 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58536
58537         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
58538         * modules/openat (Files): Remove openat-die.c.
58539         (Depends-on): Add openat-die.
58540         * modules/openat-die: New module.
58541
58542 2007-05-06  Bruno Haible  <bruno@clisp.org>
58543
58544         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
58545         Update with info about Cygwin.
58546         * doc/functions/fprintf.texi: Update.
58547         * doc/functions/printf.texi: Update.
58548         * doc/functions/snprintf.texi: Update.
58549         * doc/functions/sprintf.texi: Update.
58550         * doc/functions/vfprintf.texi: Update.
58551         * doc/functions/vprintf.texi: Update.
58552         * doc/functions/vsnprintf.texi: Update.
58553         * doc/functions/vsprintf.texi: Update.
58554         Reported by Eric Blake.
58555
58556 2007-05-06  Bruno Haible  <bruno@clisp.org>
58557
58558         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
58559         padding ourselves for the floating-point directives.
58560         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
58561         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
58562         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58563         gl_PRINTF_FLAG_ZERO and test its result. Invoke
58564         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
58565         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58566         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58567         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58568         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58569         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58570         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58571         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58572         * tests/test-snprintf-posix.h (test_function): Also check the width
58573         and some flags in the %f directive.
58574         * tests/test-sprintf-posix.h (test_function): Likewise.
58575         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58576         * tests/test-vasprintf-posix.c (test_function): Likewise.
58577         * doc/functions/fprintf.texi: Update.
58578         * doc/functions/printf.texi: Update.
58579         * doc/functions/snprintf.texi: Update.
58580         * doc/functions/sprintf.texi: Update.
58581         * doc/functions/vfprintf.texi: Update.
58582         * doc/functions/vprintf.texi: Update.
58583         * doc/functions/vsnprintf.texi: Update.
58584         * doc/functions/vsprintf.texi: Update.
58585
58586 2007-05-06  Bruno Haible  <bruno@clisp.org>
58587
58588         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
58589         pass the ' flag character to sprintf or snprintf.
58590         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
58591         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
58592         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58593         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
58594         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
58595         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58596         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58597         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58598         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58599         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58600         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58601         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58602         * tests/test-snprintf-posix.h (test_function): Also check the grouping
58603         flag.
58604         * tests/test-sprintf-posix.h (test_function): Likewise.
58605         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58606         * tests/test-vasprintf-posix.c (test_function): Likewise.
58607         * doc/functions/fprintf.texi: Update.
58608         * doc/functions/printf.texi: Update.
58609         * doc/functions/snprintf.texi: Update.
58610         * doc/functions/sprintf.texi: Update.
58611         * doc/functions/vfprintf.texi: Update.
58612         * doc/functions/vprintf.texi: Update.
58613         * doc/functions/vsnprintf.texi: Update.
58614         * doc/functions/vsprintf.texi: Update.
58615
58616 2007-05-01  Bruno Haible  <bruno@clisp.org>
58617
58618         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
58619
58620 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
58621
58622         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
58623         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
58624
58625 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58626
58627         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
58628         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
58629         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
58630
58631 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
58632
58633         * lib/argp-help.c (struct hol_entry): New member `ord'.
58634         (HOL_ENTRY_PTRCMP): Use ord for comparison
58635         (hol_sort): Initialize ord.
58636
58637 2007-05-01  Bruno Haible  <bruno@clisp.org>
58638
58639         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
58640         Reported by Eric Blake.
58641         * doc/gnulib.texi (Function Substitutes): Update.
58642
58643 2007-05-01  Bruno Haible  <bruno@clisp.org>
58644
58645         * doc/functions.texi: Remove file, now redundant through
58646         doc/functions/*.texi.
58647
58648 2007-05-01  Bruno Haible  <bruno@clisp.org>
58649
58650         * modules/argp (Depends-on): Add sleep.
58651
58652 2007-05-01  Bruno Haible  <bruno@clisp.org>
58653
58654         * modules/sleep-tests: New file.
58655         * tests/test-sleep.c: New file.
58656
58657         * modules/sleep: New file.
58658         * lib/sleep.c: New file.
58659         * m4/sleep.m4: New file.
58660         * lib/unistd_.h (sleep): New declaration.
58661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
58662         HAVE_SLEEP.
58663         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
58664         * doc/functions/sleep.texi: Document the sleep module.
58665
58666 2007-05-01  Bruno Haible  <bruno@clisp.org>
58667
58668         * lib/sigprocmask.h: Remove file.
58669         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
58670         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
58671         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
58672         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
58673         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
58674         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
58675         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
58676         HAVE_SIGSET_T as a shell variable.
58677         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
58678         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
58679         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
58680         (Depends-on): Add signal. Remove verify.
58681         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
58682         (Include): Mention <signal.h> instead of sigprocmask.h.
58683         * NEWS: Mention the change.
58684         * lib/fatal-signal.c: Don't include sigprocmask.h.
58685
58686 2007-05-01  Bruno Haible  <bruno@clisp.org>
58687
58688         * modules/signal: New file.
58689         * lib/signal_.h: New file.
58690         * m4/signal_h.m4: New file.
58691
58692 2007-05-01  Bruno Haible  <bruno@clisp.org>
58693
58694         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
58695         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
58696         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
58697         HAVE_WCTYPE_CTMP_BUG into wctype.h.
58698
58699 2007-05-01  Bruno Haible  <bruno@clisp.org>
58700
58701         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
58702         configure time.
58703         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
58704         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
58705         * modules/sys_stat (Makefile.am): Substitute their values into
58706         sys/stat.h.
58707
58708 2007-05-01  Bruno Haible  <bruno@clisp.org>
58709
58710         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
58711         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
58712         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
58713
58714 2007-05-01  Bruno Haible  <bruno@clisp.org>
58715
58716         * doc/header/assert.texi: Undo last change: don't mention the gnulib
58717         'assert' module here.
58718
58719 2007-05-01  Bruno Haible  <bruno@clisp.org>
58720
58721         * doc/functions/*.texi: New files.
58722         * doc/functions/google-ranking.txt: New file.
58723         * doc/gnulib.texi (Function Substitutes): New chapter.
58724         (ctime, inet_ntoa): Remove sections.
58725         * doc/ctime.texi: Remove file.
58726         * doc/inet_ntoa.texi: Remove file.
58727         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
58728         dependencies.
58729         (%.info): New rule, specifying a --reference-limit.
58730
58731 2007-05-01  Bruno Haible  <bruno@clisp.org>
58732
58733         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
58734
58735 2007-05-01  Bruno Haible  <bruno@clisp.org>
58736
58737         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
58738         the portability of 'mkdir' to mingw systems.
58739
58740 2007-05-01  Bruno Haible  <bruno@clisp.org>
58741
58742         * doc/headers/google-ranking.txt: New file.
58743
58744 2007-04-30  Eric Blake  <ebb9@byu.net>
58745
58746         Prefer fseeko to fseek.
58747         * modules/getpass (Depends-on): Add fseeko.
58748         * lib/getpass.c (getpass): Use fseeko, not fseek.
58749
58750 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
58751
58752         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
58753         assumes the sorting is stable, while most qsort implementations
58754         are not.  Use argument addresses to ensure they never compare as
58755         equal.
58756
58757         * tests/test-argp-2.sh (usage-indent test): Fix output
58758         (func_compare): Restore diff options
58759         * tests/test-argp.c: Restore #include "progname.h"
58760
58761 2007-04-29  Bruno Haible  <bruno@clisp.org>
58762
58763         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
58764         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58765         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
58766         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58767         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
58768         (configure.ac): Define CHECK_SNPRINTF_POSIX.
58769         (TESTS, check_PROGRAMS): Add test-snprintf.
58770         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
58771         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
58772         (TESTS, check_PROGRAMS): Add test-vsnprintf.
58773         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
58774         assertions that fail on HP-UX, OSF/1, or IRIX.
58775         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
58776
58777 2007-04-29  Bruno Haible  <bruno@clisp.org>
58778
58779         * MODULES.html.sh (posix_functions): Remove 'contents'.
58780
58781 2007-04-29  Karl Berry  <karl@gnu.org>
58782
58783         * config/srclist.txt (gendocs_template_min): new entry.
58784
58785 2007-04-29  Bruno Haible  <bruno@clisp.org>
58786
58787         Work around fpurge bug on BSD systems.
58788         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
58789         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
58790         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
58791         fpurge to rpl_fpurge if the system already has this function.
58792         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
58793         the case where the system already has this function. Correct invariants
58794         on BSD systems.
58795         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
58796         BSD systems.
58797
58798 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58799
58800         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
58801         proposed by Sven Verdoolaege.
58802
58803         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
58804         options.
58805         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
58806         (usage and help tests): Update
58807
58808 2007-04-29  Bruno Haible  <bruno@clisp.org>
58809
58810         * tests/test-fflush.c (main): Use a file of size 17, not 10.
58811         Print more information in case of failure. Disable a test on BeOS.
58812
58813 2007-04-29  Bruno Haible  <bruno@clisp.org>
58814
58815         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
58816         This helps debugging on systems on which no gdb is available.
58817
58818 2007-04-29  Bruno Haible  <bruno@clisp.org>
58819
58820         * lib/freading.h: Improve comments.
58821         * lib/fwriting.h: Likewise.
58822         * tests/test-freading.c (main): Don't check freading immediately after
58823         repositioning. Needed for glibc.
58824
58825 2007-04-29  Bruno Haible  <bruno@clisp.org>
58826
58827         * lib/freading.c (freading): Trivial simplification.
58828
58829 2007-04-28  Bruno Haible  <bruno@clisp.org>
58830
58831         * tests/test-fwriting.c (main): Also test the interaction between
58832         fflush and fwriting.
58833         * modules/fwriting-tests (Depends-on): Add fflush.
58834
58835         * tests/test-freading.c (main): Also test the interaction between
58836         fflush and freading.
58837         * modules/freading-tests (Depends-on): Add fflush.
58838
58839 2007-04-28  Bruno Haible  <bruno@clisp.org>
58840
58841         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
58842         fseeko and ftello.
58843         Suggested by Eric Blake.
58844
58845 2007-04-28  Jim Meyering  <jim@meyering.net>
58846
58847         Avoid false-negative in gl_STDINT_H's C99 conformance test.
58848         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
58849         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
58850
58851 2007-04-27  Eric Blake  <ebb9@byu.net>
58852
58853         * doc/headers/assert.texi (assert.h): Document assert module use.
58854
58855 2007-04-27  Bruno Haible  <bruno@clisp.org>
58856
58857         * doc/headers/*.texi: New files.
58858         * doc/gnulib.texi (Header File Substitutes): New chapter.
58859         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
58860         dependencies.
58861         (standards.info ,standards.html, standards.dvi): Update dependencies.
58862         (mostlyclean, clean): New targets.
58863
58864 2007-04-27  Bruno Haible  <bruno@clisp.org>
58865
58866         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
58867         * modules/sysexits (Files, Makefile.am): Update.
58868
58869         * lib/sys_socket_.h: Renamed from lib/socket_.h.
58870         * modules/sys_socket (Files, Makefile.am): Update.
58871
58872         * lib/sys_stat_.h: Renamed from lib/stat_.h.
58873         * modules/sys_stat (Files, Makefile.am): Update.
58874
58875 2007-04-27  Eric Blake  <ebb9@byu.net>
58876
58877         * lib/freading.h: Improve comments.
58878         * lib/fwriting.h: Likewise.
58879         * lib/fflush.c: Likewise.
58880
58881         Fix closein for mingw.
58882         * modules/closein-tests: Add tests for closein.
58883         * tests/test-closein.c: New file.
58884         * tests/test-closein.sh: Likewise.
58885         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
58886         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
58887
58888 2007-04-27  Bruno Haible  <bruno@clisp.org>
58889
58890         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
58891         version is < 6.
58892         * lib/math_.h [__DECC]: Likewise.
58893         * lib/stdio_.h [__DECC]: Likewise.
58894         * lib/stdlib_.h [__DECC]: Likewise.
58895         * lib/string_.h [__DECC]: Likewise.
58896         * lib/time_.h [__DECC]: Likewise.
58897         * lib/wchar_.h [__DECC]: Likewise.
58898         * lib/wctype_.h [__DECC]: Likewise.
58899
58900 2007-04-27  Bruno Haible  <bruno@clisp.org>
58901
58902         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
58903
58904 2007-04-27  Bruno Haible  <bruno@clisp.org>
58905
58906         * lib/fflush.c: Add comments.
58907         * modules/fpurge-tests (Depends-on): Add fflush.
58908         * modules/freadable-tests (Depends-on): Likewise.
58909         * modules/fwritable-tests (Depends-on): Likewise.
58910
58911 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
58912
58913         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
58914         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
58915         Report by Bruno Haible <bruno@clisp.org>.
58916
58917 2007-04-26  Eric Blake  <ebb9@byu.net>
58918
58919         Fix fflush on mingw.
58920         * modules/fflush (Depends-on): Add freading.
58921         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
58922         but unread data.
58923
58924 2007-04-26  Eric Blake  <ebb9@byu.net>
58925         and Bruno Haible  <bruno@clisp.org>
58926
58927         Implement freading and fwriting.
58928         * lib/freading.c: New file.
58929         * lib/freading.h: Likewise.
58930         * m4/freading.m4: Likewise.
58931         * modules/freading: Likewise.
58932         * modules/freading-tests: Likewise.
58933         * tests/test-freading.c: Likewise.
58934         * lib/fwriting.c: New file.
58935         * lib/fwriting.h: Likewise.
58936         * m4/fwriting.m4: Likewise.
58937         * modules/fwriting: Likewise.
58938         * modules/fwriting-tests: Likewise.
58939         * tests/test-fwriting.c: Likewise.
58940         * MODULES.html.sh (File stream based Input/Output): Mention them.
58941
58942 2007-04-26  Bruno Haible  <bruno@clisp.org>
58943
58944         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
58945         'long' when we assume it.
58946         Suggested by Eric Blake.
58947
58948 2007-04-26  Bruno Haible  <bruno@clisp.org>
58949
58950         Ensure fseeko, ftello are declared on glibc systems.
58951         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
58952         * modules/fseeko (configure.ac-early): Likewise.
58953         * modules/ftello (configure.ac-early): Likewise.
58954         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
58955         AC_FUNC_FSEEKO for this.
58956         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
58957         (gl_CHECK_FSEEKO): Remove macro.
58958
58959 2007-04-26  Bruno Haible  <bruno@clisp.org>
58960
58961         * tests/test-fflush.c (main): Also check the ftell result after
58962         fflush and fseek/fseeko.
58963         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
58964         file descriptor position cache in the stream.
58965         * lib/fseeko.c (rpl_fseeko): Likewise.
58966
58967 2007-04-26  Bruno Haible  <bruno@clisp.org>
58968
58969         * modules/fflush-tests (Depends-on): Add fseeko.
58970
58971 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
58972             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58973
58974         * lib/argz_.h: ensure error_t definition is obtained in same
58975         mechanism system argz.h would have.
58976         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
58977         argz facilities are known bad.  Err on the side of caution if
58978         cross-compiling.
58979
58980 2007-04-25  Eric Blake  <ebb9@byu.net>
58981
58982         * lib/fpurge.c (includes): Use stdlib.h for free.
58983         * tests/test-fflush.c (main): Also test fflush-fseeko.
58984
58985 2007-04-25  Bruno Haible  <bruno@clisp.org>
58986
58987         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
58988         * lib/fseeko.c: New file.
58989         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
58990         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
58991         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
58992         gl_FUNC_FSEEKO.
58993         (gl_FUNC_FSEEKO): Invoke it.
58994         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
58995         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
58996         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
58997
58998 2007-04-25  Bruno Haible  <bruno@clisp.org>
58999
59000         * modules/fflush (Depends-on): Add ftello.
59001
59002 2007-04-25  Bruno Haible  <bruno@clisp.org>
59003
59004         * modules/ftello-tests: New file.
59005         * tests/test-ftello.c: New file.
59006
59007         * modules/ftello: New file.
59008         * m4/ftello.m4: New file.
59009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59010         HAVE_FTELLO.
59011         * lib/stdio_.h (ftello): New declaration.
59012         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59013         HAVE_FTELLO.
59014
59015 2007-04-25  Bruno Haible  <bruno@clisp.org>
59016
59017         * modules/fseeko-tests: New file.
59018         * tests/test-fseeko.c: New file.
59019
59020         * modules/fseeko: New file.
59021         * m4/fseeko.m4: New file.
59022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59023         HAVE_FSEEKO.
59024         * lib/stdio_.h (fseeko): New declaration.
59025         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59026         HAVE_FSEEKO.
59027
59028 2007-04-25  Bruno Haible  <bruno@clisp.org>
59029
59030         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59031
59032 2007-04-25  Bruno Haible  <bruno@clisp.org>
59033
59034         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59035         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59036         * tests/test-unistd.c: Likewise.
59037         * tests/test-fcntl.c: Likewise.
59038
59039 2007-04-23  Eric Blake  <ebb9@byu.net>
59040
59041         * lib/fflush.c: Fix missing include.
59042         Reported by Bruno Haible.
59043
59044 2007-04-23  Bruno Haible  <bruno@clisp.org>
59045
59046         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59047         Reported by Eric Blake.
59048
59049 2007-04-23  Bruno Haible  <bruno@clisp.org>
59050
59051         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59052
59053 2007-04-23  Bruno Haible  <bruno@clisp.org>
59054
59055         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59056
59057 2007-04-23  Bruno Haible  <bruno@clisp.org>
59058
59059         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59060         Needed on HP-UX 11.
59061
59062 2007-04-16  Eric Blake  <ebb9@byu.net>
59063
59064         Make fflush rely on fpurge.
59065         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59066         open coding all variants.
59067         * modules/fflush (Depends-on): Add fpurge and unistd.
59068         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59069         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59070
59071         Fix --with-tests compilation on cygwin.
59072         * modules/argmatch-tests (Makefile.am): List gnulib library first
59073         in LDADD.
59074         * modules/argp-tests (Makefile.am): Likewise.
59075         * modules/array-list-tests (Makefile.am): Likewise.
59076         * modules/array-oset-tests (Makefile.am): Likewise.
59077         * modules/avltree-list-tests (Makefile.am): Likewise.
59078         * modules/avltree-oset-tests (Makefile.am): Likewise.
59079         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59080         * modules/carray-list-tests (Makefile.am): Likewise.
59081         * modules/dirname-tests (Makefile.am): Likewise.
59082         * modules/frexp-tests (Makefile.am): Likewise.
59083         * modules/isnanl-tests (Makefile.am): Likewise.
59084         * modules/linked-list-tests (Makefile.am): Likewise.
59085         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59086         * modules/lock-tests (Makefile.am): Likewise.
59087         * modules/rbtree-list-tests (Makefile.am): Likewise.
59088         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59089         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59090         * modules/tls-tests (Makefile.am): Likewise.
59091         * modules/tsearch-tests (Makefile.am): Likewise.
59092         * modules/xvasprintf-tests (Makefile.am): Likewise.
59093
59094         Fix fpurge for cygwin.
59095         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59096         value.
59097         * modules/fpurge-tests (Depends-on): Clean up trash.
59098
59099 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59100
59101         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59102
59103         * m4/autobuild.m4: Re-indent.
59104
59105 2007-04-13  Bruno Haible  <bruno@clisp.org>
59106
59107         * modules/fpurge-tests: New file.
59108         * tests/test-fpurge.c: New file.
59109
59110         * modules/fpurge: New file.
59111         * lib/fpurge.h: New file.
59112         * lib/fpurge.c: New file.
59113         * m4/fpurge.m4: New file.
59114
59115 2007-04-13  Bruno Haible  <bruno@clisp.org>
59116
59117         * modules/fbufmode-tests: New file.
59118         * tests/test-fbufmode.c: New file.
59119
59120         * modules/fbufmode: New file.
59121         * lib/fbufmode.h: New file.
59122         * lib/fbufmode.c: New file.
59123         * m4/fbufmode.m4: New file.
59124
59125 2007-04-13  Bruno Haible  <bruno@clisp.org>
59126
59127         * modules/fwritable-tests: New file.
59128         * tests/test-fwritable.c: New file.
59129
59130         * modules/fwritable: New file.
59131         * lib/fwritable.h: New file.
59132         * lib/fwritable.c: New file.
59133         * m4/fwritable.m4: New file.
59134
59135 2007-04-13  Bruno Haible  <bruno@clisp.org>
59136
59137         * modules/freadable-tests: New file.
59138         * tests/test-freadable.c: New file.
59139
59140         * modules/freadable: New file.
59141         * lib/freadable.h: New file.
59142         * lib/freadable.c: New file.
59143         * m4/freadable.m4: New file.
59144
59145 2007-04-13  Bruno Haible  <bruno@clisp.org>
59146
59147         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
59148         MOSTLYCLEANFILES.
59149
59150 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59151
59152         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
59153         gzip bootstrap.conf to avoid dragging in i18n machinery.
59154         (gnulib_tool_option): Use it.
59155
59156 2007-04-13  Bruno Haible  <bruno@clisp.org>
59157
59158         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
59159         %F directives.
59160         * tests/test-vasprintf-posix.c (test_function): Likewise.
59161         * tests/test-snprintf-posix.h (test_function): Likewise.
59162         * tests/test-sprintf-posix.h (test_function): Likewise.
59163         * tests/test-fprintf-posix.h (test_function): Likewise.
59164         * tests/test-printf-posix.h (test_function): Likewise.
59165         * tests/test-fprintf-posix.out: Likewise.
59166
59167 2007-04-13  Bruno Haible  <bruno@clisp.org>
59168
59169         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
59170         * modules/tls-tests (configure.ac): Likewise.
59171         Reported by Arto C. Nirkko <anirkko@insel.ch>.
59172
59173 2007-04-13  Bruno Haible  <bruno@clisp.org>
59174
59175         * lib/tls.c (glthread_tls_get): Fix return type.
59176         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59177
59178 2007-04-12  Eric Blake  <ebb9@byu.net>
59179
59180         * modules/gettime (Depends-on): Remove gettime.
59181         Reported by Dmitry V. Levin.
59182
59183 2007-04-12  Bruno Haible  <bruno@clisp.org>
59184
59185         * modules/fflush (Include): Mention <stdio.h>.
59186         * modules/strtoimax (Include): Mention <inttypes.h>.
59187         * modules/strtoumax (Include): Likewise.
59188
59189 2007-04-12  Eric Blake  <ebb9@byu.net>
59190
59191         * .cvsignore: New file.
59192         * .gitignore: Likewise.
59193
59194 2007-04-12  Bruno Haible  <bruno@clisp.org>
59195
59196         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59197         not before, since $(LDADD) often contains libgnu.a.
59198         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59199         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59200         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59201         Needed on Cygwin.
59202
59203 2007-04-12  Eric Blake  <ebb9@byu.net>
59204
59205         Work around glibc's failure to flush stdin on fclose.
59206         * lib/closein.c (close_stdin): Flush stdin before closing.
59207
59208         Work around glibc's failure to reset seekable stdin on exit.
59209         * modules/closein: New module.
59210         * lib/closein.c: New file.
59211         * lib/closein.h: Likewise.
59212         * m4/closein.m4: Likewise.
59213         * MODULES.html.sh (File stream based Input/Output): Document it.
59214
59215 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59216
59217         * gnulib-tool: Rename generated 'autobuild' script to
59218         'do-autobuild' in --create-megatestdir output.
59219
59220         * doc/gnulib.texi (Build robot for gnulib): Fix.
59221
59222 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59223
59224         * modules/sysexits (Depends-on): Add absolute-header.
59225
59226 2007-04-12  Eric Blake  <ebb9@byu.net>
59227
59228         No need to preserve errno on success.
59229         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
59230         Reported by Bruno Haible.
59231
59232 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59233
59234         * MODULES.html.sh (Support for maintaining and releasing
59235         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
59236
59237 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59238
59239         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
59240
59241 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59242
59243         * modules/autobuild: New module.
59244
59245         * m4/autobuild.m4: New file.
59246
59247 2007-04-11  Bruno Haible  <bruno@clisp.org>
59248
59249         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
59250         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
59251         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
59252         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
59253         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59254         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59255         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59256         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59257         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59258         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59259         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
59260         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59261         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59262         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
59263         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59264         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59265         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
59266         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59267         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59268         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
59269         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59270         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59271         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
59272         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59273         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59274         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
59275         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59276         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59277         Reported by Eric Blake.
59278
59279 2007-04-11  Bruno Haible  <bruno@clisp.org>
59280
59281         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
59282
59283 2007-04-10  Bruno Haible  <bruno@clisp.org>
59284
59285         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
59286         for NaN and Infinity. Needed on FreeBSD 6.1.
59287         * tests/test-vasnprintf-posix.c (test_function): Undo last change
59288         regarding results for "%010a" of Infinity and NaN.
59289         * tests/test-vasprintf-posix.c (test_function): Likewise.
59290         * tests/test-snprintf-posix.h (test_function): Likewise.
59291         * tests/test-sprintf-posix.h (test_function): Likewise.
59292         * tests/test-fprintf-posix.h (test_function): Likewise.
59293         * tests/test-printf-posix.h (test_function): Likewise.
59294         * tests/test-fprintf-posix.out: Likewise.
59295
59296 2007-04-10  Bruno Haible  <bruno@clisp.org>
59297
59298         * modules/locale-tests: New file.
59299         * tests/test-locale.c: New file.
59300
59301         * modules/locale: New file.
59302         * lib/locale_.h: New file.
59303         * m4/locale_h.m4: New file.
59304
59305 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
59306             Bruno Haible  <bruno@clisp.org>
59307
59308         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
59309         be determined, test for availability of the copysignf, copysign,
59310         copysignl functions.
59311         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
59312         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
59313         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
59314
59315 2007-04-09  Eric Blake  <ebb9@byu.net>
59316
59317         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
59318         * modules/stdio (Makefile.am): Support fflush.
59319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59320         * modules/fflush: New file.
59321         * lib/fflush.c: Likewise.
59322         * m4/fflush.m4: Likewise.
59323         * modules/fflush-tests: New test.
59324         * tests/test-fflush.c: Likewise.
59325         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
59326
59327 2007-04-06  Bruno Haible  <bruno@clisp.org>
59328
59329         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
59330         (VASNPRINTF): Use signbit for faster determination whether to print a
59331         minus sign.
59332         * modules/vasnprintf (Files): Remove lib/float+.h.
59333         * modules/fprintf-posix (Depends-on): Add signbit.
59334         * modules/snprintf-posix (Depends-on): Likewise.
59335         * modules/sprintf-posix (Depends-on): Likewise.
59336         * modules/vasnprintf-posix (Depends-on): Likewise.
59337         * modules/vasprintf-posix (Depends-on): Likewise.
59338         * modules/vfprintf-posix (Depends-on): Likewise.
59339         * modules/vsnprintf-posix (Depends-on): Likewise.
59340         * modules/vsprintf-posix (Depends-on): Likewise.
59341
59342 2007-04-06  Bruno Haible  <bruno@clisp.org>
59343
59344         * tests/test-frexp.c (main): Test also the sign bit of zero results.
59345         * tests/test-frexpl.c (main): Likewise.
59346         * tests/test-ldexpl.c (main): Likewise.
59347         * modules/frexp-tests (Depends-on): Add signbit.
59348         * modules/frexpl-tests (Depdends-on): Likewise.
59349         * modules/ldexpl-tests (Depdends-on): Likewise.
59350
59351 2007-04-06  Bruno Haible  <bruno@clisp.org>
59352
59353         * modules/signbit-tests: New file.
59354         * tests/test-signbit.c: New file.
59355
59356         * modules/signbit: New file.
59357         * lib/signbitf.c: New file.
59358         * lib/signbitd.c: New file.
59359         * lib/signbitl.c: New file.
59360         * m4/signbit.m4: New file.
59361         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
59362         (signbit): New macro.
59363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
59364         REPLACE_SIGNBIT.
59365         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
59366         REPLACE_FREXPL into math.h.
59367
59368 2007-04-06  Bruno Haible  <bruno@clisp.org>
59369
59370         * modules/isnanf-nolibm-tests: New file.
59371         * tests/test-isnanf.c: New file.
59372
59373         * modules/isnanf-nolibm: New file.
59374         * lib/isnanf.h: New file.
59375         * lib/isnanf.c: New file.
59376         * lib/isnan.c: Consider the USE_FLOAT macro.
59377         * m4/isnanf.m4: New file.
59378
59379 2007-04-06  Bruno Haible  <bruno@clisp.org>
59380
59381         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
59382         (Link): New section.
59383
59384         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
59385
59386 2007-04-06  Bruno Haible  <bruno@clisp.org>
59387
59388         Assume the 'long double' type.
59389         * m4/longdouble.m4: Remove file.
59390         * config/srclist.txt: Don't mention longdouble.m4.
59391         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
59392         * lib/float+.h: Likewise.
59393         * lib/frexp.c: Likewise.
59394         * lib/printf-args.h: Likewise.
59395         * lib/printf-args.c: Likewise.
59396         * lib/printf-frexp.c: Likewise.
59397         * lib/printf-parse.c: Likewise.
59398         * lib/vasnprintf.c: Likewise.
59399         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
59400         * m4/intl.m4: Likewise.
59401         * m4/isnanl.m4: Likewise.
59402         * m4/printf.m4: Likewise.
59403         * m4/printf-frexpl.m4: Likewise.
59404         * m4/vasnprintf.m4: Likewise.
59405         * modules/allocsa (Files): Remove m4/longdouble.m4.
59406         * modules/gettext (Files): Likewise.
59407         * modules/relocatable-prog-wrapper (Files): Likewise.
59408         * modules/vasnprintf (Files): Likewise.
59409         * modules/isnanl (Files): Likewise.
59410         (Include): Simplify.
59411         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
59412         (Include): Simplify.
59413         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
59414         (Include): Simplify.
59415         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
59416         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59417         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
59418         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59419         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59420         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59421         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
59422         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59423         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59424         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59425         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
59426         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59427         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
59428         * tests/test-isnanl.c: Likewise.
59429         * tests/test-snprintf-posix.h: Likewise.
59430         * tests/test-sprintf-posix.h: Likewise.
59431         * tests/test-vasnprintf-posix.c: Likewise.
59432         * tests/test-vasnprintf-posix2.c: Likewise.
59433         * tests/test-vasprintf-posix.c: Likewise.
59434
59435 2007-04-06  Bruno Haible  <bruno@clisp.org>
59436
59437         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
59438         * lib/math_.h [__DECC]: Include the overridden include file through
59439         #include_next, outside the double-inclusion guard.
59440         * lib/stdio_.h [__DECC]: Likewise.
59441         * lib/stdlib_.h [__DECC]: Likewise.
59442         * lib/string_.h [__DECC]: Likewise.
59443         * lib/time_.h [__DECC]: Likewise.
59444         * lib/wchar_.h [__DECC]: Likewise.
59445         * lib/wctype_.h [__DECC]: Likewise.
59446         * lib/inttypes_.h [__DECC]: Likewise.
59447         Reported by Albert Chin <china@thewrittenword.com> in
59448         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
59449
59450 2007-04-04  Eric Blake  <ebb9@byu.net>
59451
59452         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
59453         1.5.x.
59454
59455 2007-04-04  Bruno Haible  <bruno@clisp.org>
59456
59457         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
59458         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
59459
59460 2007-04-04  Bruno Haible  <bruno@clisp.org>
59461
59462         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
59463         results for "%010a" of Infinity and NaN.
59464         * tests/test-vasprintf-posix.c (test_function): Likewise.
59465         * tests/test-snprintf-posix.h (test_function): Likewise.
59466         * tests/test-sprintf-posix.h (test_function): Likewise.
59467         * tests/test-fprintf-posix.h (test_function): Remove these tests.
59468         * tests/test-printf-posix.h (test_function): Likewise.
59469         * tests/test-fprintf-posix.out: Update.
59470         Needed for FreeBSD 6.1.
59471
59472 2007-04-04  Bruno Haible  <bruno@clisp.org>
59473
59474         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
59475         directly used by the gnulib modules nor by gnulib-tool.
59476
59477 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59478
59479         * DEPENDENCIES: Give overall description of version dependency
59480         desirability.  Use more-typical names for apps.
59481         Add shell, coreutils, diffutils, grep, tar, gzip.
59482
59483 2007-04-04  Simon Josefsson  <simon@josefsson.org>
59484
59485         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
59486
59487 2007-04-04  Karl Berry  <karl@gnu.org>
59488
59489         * MODULES.html.sh (func_module): missing '.
59490
59491 2007-04-03  Bruno Haible  <bruno@clisp.org>
59492
59493         * modules/argmatch-tests (Makefile.am): New variable
59494         test_argmatch_LDADD.
59495         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
59496         * modules/array-list-tests (Makefile.am): New variable
59497         test_array_list_LDADD.
59498         * modules/array-oset-tests (Makefile.am): New variable
59499         test_array_oset_LDADD.
59500         * modules/avltree-list-tests (Makefile.am): New variable
59501         test_avltree_list_LDADD.
59502         * modules/avltree-oset-tests (Makefile.am): New variable
59503         test_avltree_oset_LDADD.
59504         * modules/avltreehash-list-tests (Makefile.am): New variable
59505         test_avltreehash_list_LDADD.
59506         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
59507         test_canonicalize_lgpl_LDADD.
59508         * modules/carray-list-tests (Makefile.am): New variable
59509         test_carray_list_LDADD.
59510         * modules/dirname-tests (Makefile.am): New variable
59511         test_dirname_LDADD.
59512         * modules/linked-list-tests (Makefile.am): New variable
59513         test_linked_list_LDADD.
59514         * modules/linkedhash-list-tests (Makefile.am): New variable
59515         test_linkedhash_list_LDADD.
59516         * modules/rbtree-list-tests (Makefile.am): New variable
59517         test_rbtree_list_LDADD.
59518         * modules/rbtree-oset-tests (Makefile.am): New variable
59519         test_rbtree_oset_LDADD.
59520         * modules/rbtreehash-list-tests (Makefile.am): New variable
59521         test_rbtreehash_list_LDADD.
59522         * modules/xvasprintf-tests (Makefile.am): New variable
59523         test_xvasprintf_LDADD.
59524         Reported by Eric Blake.
59525
59526 2007-04-03  Eric Blake  <ebb9@byu.net>
59527
59528         * DEPENDENCIES: Weaken m4 requirements.
59529
59530 2007-04-03  Bruno Haible  <bruno@clisp.org>
59531
59532         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
59533         * modules/isnanl-tests (configure.ac): Likewise.
59534
59535 2007-04-03  Ben Pfaff  <blp@gnu.org>
59536
59537         * modules/iconv_open: Add $(srcdir)/ to source directory
59538         references in Makefile fragments that call gperf, to fix VPATH
59539         builds.
59540
59541 2007-04-03  Bruno Haible  <bruno@clisp.org>
59542
59543         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
59544         * lib/ldexpl.c: Undo last change.
59545
59546 2007-04-03  Bruno Haible  <bruno@clisp.org>
59547
59548         * modules/printf-frexpl (Depends-on): Undo last change.
59549         (Files): Add m4/ldexpl.m4.
59550
59551 2007-04-03  Bruno Haible  <bruno@clisp.org>
59552
59553         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
59554         * modules/isnanl (Link): New section.
59555
59556         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
59557         * modules/frexp (Link): New section.
59558
59559         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
59560         * modules/frexpl (Link): New section.
59561
59562         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
59563         * modules/ldexpl (Link): New section.
59564
59565 2007-04-03  Bruno Haible  <bruno@clisp.org>
59566
59567         * modules/TEMPLATE-EXTENDED: New file.
59568         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
59569
59570 2007-04-03  Bruno Haible  <bruno@clisp.org>
59571
59572         * DEPENDENCIES: New file.
59573         Suggested by Simon Josefsson.
59574
59575 2007-04-03  Bruno Haible  <bruno@clisp.org>
59576
59577         * doc/gnulib.texi: Escape @.
59578
59579 2007-04-03  James Youngman  <jay@gnu.org>
59580         and Paul Eggert  <eggert@cs.ucla.edu>
59581
59582         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
59583         birthtime on all systems that have birthtime, not just those which
59584         use st_birthtimensec rather than st_birthtim.  Putting zero in
59585         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
59586         that the birth time is not available for files on an NFS mount.
59587
59588 2007-04-03  Simon Josefsson  <simon@josefsson.org>
59589
59590         * modules/memxor: Move back from crypto/, suggested by Bruno.
59591         * modules/crypto/hmac-sha1: Fix memxor dependency.
59592
59593         * modules/crypto/gc: Moved from ../.
59594
59595 2007-04-02  Eric Blake  <ebb9@byu.net>
59596
59597         * lib/ldexpl.c (includes): Avoid libm.
59598
59599         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
59600
59601 2007-04-02  Bruno Haible  <bruno@clisp.org>
59602
59603         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
59604         on IRIX.
59605
59606 2007-04-02  Bruno Haible  <bruno@clisp.org>
59607
59608         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
59609         x86 or x86_64 platforms running MacOS X.
59610         Reported by Ryan Schmidt <@ryandesign.com>.
59611
59612 2007-04-02  Bruno Haible  <bruno@clisp.org>
59613
59614         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
59615         i386.
59616
59617 2007-04-01  Simon Josefsson  <simon@josefsson.org>
59618
59619         * modules/crypto/arcfour: Moved from ../.
59620         * modules/crypto/arcfour-tests: Moved from ../.
59621         * modules/crypto/arctwo: Moved from ../.
59622         * modules/crypto/arctwo-tests: Moved from ../.
59623         * modules/crypto/des: Moved from ../.
59624         * modules/crypto/des-tests: Moved from ../.
59625         * modules/crypto/gc-arcfour: Moved from ../.
59626         * modules/crypto/gc-arcfour-tests: Moved from ../.
59627         * modules/crypto/gc-arctwo: Moved from ../.
59628         * modules/crypto/gc-arctwo-tests: Moved from ../.
59629         * modules/crypto/gc-des: Moved from ../.
59630         * modules/crypto/gc-des-tests: Moved from ../.
59631         * modules/crypto/gc-hmac-md5: Moved from ../.
59632         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
59633         * modules/crypto/gc-hmac-sha1: Moved from ../.
59634         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
59635         * modules/crypto/gc-md2: Moved from ../.
59636         * modules/crypto/gc-md2-tests: Moved from ../.
59637         * modules/crypto/gc-md4: Moved from ../.
59638         * modules/crypto/gc-md4-tests: Moved from ../.
59639         * modules/crypto/gc-md5: Moved from ../.
59640         * modules/crypto/gc-md5-tests: Moved from ../.
59641         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
59642         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
59643         * modules/crypto/gc-random: Moved from ../.
59644         * modules/crypto/gc-rijndael: Moved from ../.
59645         * modules/crypto/gc-rijndael-tests: Moved from ../.
59646         * modules/crypto/gc-sha1: Moved from ../.
59647         * modules/crypto/gc-sha1-tests: Moved from ../.
59648         * modules/crypto/gc-tests: Moved from ../.
59649         * modules/crypto/hmac-md5: Moved from ../.
59650         * modules/crypto/hmac-md5-tests: Moved from ../.
59651         * modules/crypto/hmac-sha1: Moved from ../.
59652         * modules/crypto/hmac-sha1-tests: Moved from ../.
59653         * modules/crypto/md2: Moved from ../.
59654         * modules/crypto/md2-tests: Moved from ../.
59655         * modules/crypto/md4: Moved from ../.
59656         * modules/crypto/md4-tests: Moved from ../.
59657         * modules/crypto/md5: Moved from ../.
59658         * modules/crypto/md5-tests: Moved from ../.
59659         * modules/crypto/memxor: Moved from ../.
59660         * modules/crypto/rijndael: Moved from ../.
59661         * modules/crypto/rijndael-tests: Moved from ../.
59662         * modules/crypto/sha1: Moved from ../.
59663
59664 2007-03-30  James Youngman  <jay@gnu.org>
59665
59666         * tests/test-stat-time.c (prepare_test): use chmod() rather than
59667         rename() to change the ctime of a file (because ctime is unaffected
59668         by rename on jfs2 on AIX 5.1).
59669         (main): Start by doing cleanup, in case a previous run failed leaving
59670         test files behind.
59671
59672 2007-03-31  Bruno Haible  <bruno@clisp.org>
59673
59674         Support old proprietary implementations of iconv.
59675         * modules/iconv_open: New file.
59676         * lib/iconv_.h: New file.
59677         * m4/iconv_h.m4: New file.
59678         * lib/iconv_open.c: New file.
59679         * lib/iconv_open-aix.gperf: New file.
59680         * lib/iconv_open-hpux.gperf: New file.
59681         * lib/iconv_open-irix.gperf: New file.
59682         * lib/iconv_open-osf.gperf: New file.
59683         * m4/iconv_open.m4: New file.
59684         * modules/linebreak (Depends-on): Add iconv_open.
59685         * modules/striconv (Depends-on): Likewise.
59686         * modules/striconveh (Depends-on): Likewise.
59687         * modules/unicodeio (Depends-on): Likewise.
59688         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
59689         (iconv_t)(-1).
59690         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
59691         conversion if cd is (iconv_t)(-1).
59692         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
59693         is not possible.
59694
59695 2007-03-31  Bruno Haible  <bruno@clisp.org>
59696
59697         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59698         work on Solaris either. Protect also second use of "autodetect_jp".
59699
59700 2007-03-31  Bruno Haible  <bruno@clisp.org>
59701
59702         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
59703         the function is not present.
59704
59705 2007-03-31  Bruno Haible  <bruno@clisp.org>
59706
59707         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
59708         the function is not present.
59709
59710 2007-03-31  Bruno Haible  <bruno@clisp.org>
59711
59712         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
59713         a bug in HP-UX iconv_open().
59714
59715 2007-03-31  Bruno Haible  <bruno@clisp.org>
59716
59717         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
59718         (Mathematics <math.h>): New section, add fpieee.
59719         (Input/output <stdio.h>): Add fseterr.
59720         (Mathematics <math.h>): New section, add printf-frexp.
59721         (Container data structures): Add sublist.
59722         (Core language properties): Add fpucw, inline.
59723         (Functions for greatest-width integer types <inttypes.h>): Add
59724         imaxabs, imaxdiv, inttypes.
59725         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
59726         isnanl-nolibm, ldexp.
59727         (Mathematics <math.h>): New section, add printf-frexpl.
59728         (Support for systems lacking POSIX:2001): Add fprintf-posix,
59729         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
59730         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
59731         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
59732         (Unicode string functions): Add unistr/u*-mbtoucr.
59733         (Java): Add javacomp-script, javaexec-script.
59734         (C#): Add csharpcomp-script, csharpexec-script.
59735         (Support for building libraries and executables): Add havelib,
59736         relocatable-*.
59737         (Support for maintaining and releasing projects): Renamed from
59738         'Support for maintaining and release projects'. Add announce-gen.
59739
59740 2007-03-31  Bruno Haible  <bruno@clisp.org>
59741
59742         * README: Talk primarily about git.
59743         (git and CVS): Renamed from CVS.
59744         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
59745         gnulib is available through git.
59746         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
59747
59748 2007-03-30  Bruno Haible  <bruno@clisp.org>
59749
59750         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
59751         * lib/poll_.h: Likewise.
59752         * lib/stat_.h: Likewise.
59753         * lib/sys_time_.h: Likewise.
59754         * lib/sysexit_.h: Likewise.
59755         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
59756         * lib/stdbool_.h: Likewise.
59757         * lib/byteswap_.h: Add double-inclusion guard.
59758
59759 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
59760
59761         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
59762
59763 2007-03-30  Karl Berry  <karl@gnu.org>
59764
59765         * config/srclist-update: double space after USA in the license
59766         substitution, since that's how it's usually (?) written.
59767
59768 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59769
59770         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
59771         reported by Bruno Haible.
59772
59773 2007-03-29  Bruno Haible  <bruno@clisp.org>
59774
59775         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
59776         a bug in AIX iconv().
59777
59778 2007-03-29  Bruno Haible  <bruno@clisp.org>
59779
59780         * modules/ldexpl-tests: New file.
59781         * tests/test-ldexpl.c: New file.
59782
59783 2007-03-29  Bruno Haible  <bruno@clisp.org>
59784
59785         * lib/ldexpl.c: Include fpucw.h.
59786         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
59787         multiplication.
59788         * modules/ldexpl (Depends-on): Add fpucw.
59789
59790 2007-03-29  Bruno Haible  <bruno@clisp.org>
59791
59792         * modules/ldexpl: New file.
59793         * m4/ldexpl.m4: New file.
59794         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
59795         set.
59796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
59797         REPLACE_LDEXPL.
59798         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
59799         REPLACE_LDEXPL.
59800         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59801         gl_FUNC_LDEXPL_WORKS.
59802         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
59803         * modules/mathl (Files): Remove lib/ldexpl.c.
59804         (Depends-on): Add ldexpl.
59805
59806 2007-03-29  Bruno Haible  <bruno@clisp.org>
59807
59808         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
59809
59810 2007-03-29  Bruno Haible  <bruno@clisp.org>
59811
59812         * tests/test-striconveh.c (main): Don't assume that a direct conversion
59813         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
59814         and possibly also HP-UX.
59815         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59816         work on AIX, IRIX, HP-UX, OSF/1.
59817         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
59818         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
59819         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
59820         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
59821         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
59822         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
59823
59824 2007-03-29  Bruno Haible  <bruno@clisp.org>
59825
59826         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
59827
59828 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59829
59830         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
59831         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
59832
59833 2007-03-29  Eric Blake  <ebb9@byu.net>
59834
59835         * lib/acl-internal.h: Remove redundant include.
59836         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
59837         Cygwin when a file is locked.
59838
59839 2007-03-29  Bruno Haible  <bruno@clisp.org>
59840
59841         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
59842         file.
59843         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
59844
59845 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59846
59847         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
59848         try to remove a parent directory if the child couldn't be removed
59849         (except for the first rmdir, which could fail because the child
59850         doesn't exist).  Problem reported by Jeff Blaine in
59851         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
59852
59853 2007-03-28  Bruno Haible  <bruno@clisp.org>
59854
59855         * lib/striconveh.c (utf8conv_carefully): New function.
59856         (mem_cd_iconveh_internal): Invoke it.
59857
59858 2007-03-28  Bruno Haible  <bruno@clisp.org>
59859
59860         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
59861         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
59862         input.
59863         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
59864         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
59865         unistr/u8-uctomb.
59866
59867 2007-03-28  Bruno Haible  <bruno@clisp.org>
59868
59869         * modules/unistr/u8-mbtoucr: New file.
59870         * lib/unistr/u8-mbtoucr.c: New file.
59871         * modules/unistr/u16-mbtoucr: New file.
59872         * lib/unistr/u16-mbtoucr.c: New file.
59873         * modules/unistr/u16-mbtoucr: New file.
59874         * lib/unistr/u16-mbtoucr.c: New file.
59875         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
59876
59877 2007-03-27  Simon Josefsson  <simon@josefsson.org>
59878             Bruno Haible  <bruno@clisp.org>
59879
59880         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
59881         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
59882         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
59883
59884         * m4/stdio_h.m4: Add stubs for vasprintf too.
59885
59886         * modules/stdio: Support vasprintf in sed command.
59887
59888         * modules/vasprintf: Depend on stdio for prototypes.  Remove
59889         vasprintf.h.  Add stdio module indicator.
59890
59891         * lib/stdio_.h: Declare asprintf and vasprintf, based on
59892         vasprintf.h.
59893
59894         * lib/vasprintf.h: File removed.
59895
59896         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
59897         * lib/vasprintf.c: Ditto.
59898         * lib/xvasprintf.c: Ditto.
59899         * tests/test-vasprintf-posix.c: Ditto.
59900         * tests/test-vasprintf.c: Ditto.
59901
59902 2007-03-27  Bruno Haible  <bruno@clisp.org>
59903
59904         Make vasnprintf multithread-safe.
59905         * lib/vasnprintf.c (decimal_point_char): New function.
59906         (VASNPRINTF): Use it.
59907         Suggested by Simon Josefsson.
59908
59909 2007-03-27  Eric Blake  <ebb9@byu.net>
59910
59911         Support sub-second birthtime on cygwin.
59912         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
59913         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
59914         (get_stat_birthtime): Also work with st_birthtim.
59915
59916 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
59917
59918         * lib/stat-time.h (USE_BIRTHTIME): Remove.
59919         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
59920         (get_stat_birthtime_ns): Do not try to use "spare" fields.
59921         (get_stat_birthtime_ns): Simplify compile-time tests.
59922         (get_stat_birthtime): Change the API to look like
59923         get_stat_mtime etc., except return a negative tv_nsec on error.
59924         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
59925         Don't check for "spare" fields.
59926         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
59927         or for struct stat.st_birthtime, as these tests aren't used.
59928         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
59929
59930 2007-03-27  Bruno Haible  <bruno@clisp.org>
59931
59932         * lib/stat-time.h: Include <sys/stat.h>.
59933
59934 2007-03-27  James Youngman  <jay@gnu.org>
59935
59936         * lib/stat-time.h (get_stat_birthtime): New function for
59937           retrieving st_birthtime as provided by UFS2 (hence *BSD).
59938         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
59939           and its variants.
59940         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
59941         * modules/stat-time-test: New file.
59942         * tests/test-stat-time.c: New test, devised by Bruno Haible.
59943
59944 2007-03-26  Bruno Haible  <bruno@clisp.org>
59945
59946         Better support of signalling NaNs.
59947         * lib/atanl.c: Include isnanl.h.
59948         (atanl): Perform test for NaN at the beginning of the function and
59949         through a call to isnanl.
59950         * lib/cosl.c: Include isnanl.h.
59951         (cosl): Perform test for NaN at the beginning of the function and
59952         through a call to isnanl.
59953         * lib/ldexpl.c: Include isnanl.h.
59954         (ldexpl): Perform test for NaN through a call to isnanl.
59955         * lib/logl.c: Include isnanl.h.
59956         (logl): Perform test for NaN at the beginning of the function and
59957         through a call to isnanl.
59958         * lib/sinl.c: Include isnanl.h.
59959         (sinl): Perform test for NaN at the beginning of the function and
59960         through a call to isnanl.
59961         * lib/sqrtl.c: Include isnanl.h.
59962         (sqrtl): Perform test for NaN at the beginning of the function and
59963         through a call to isnanl.
59964         * lib/tanl.c: Include isnanl.h.
59965         (tanl): Perform test for NaN at the beginning of the function and
59966         through a call to isnanl.
59967         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
59968         * modules/mathl (Depends-on): Add isnanl.
59969
59970 2007-03-26  Eric Blake  <ebb9@byu.net>
59971
59972         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
59973         regression in logic sense of previous patch.
59974
59975 2007-03-26  Bruno Haible  <bruno@clisp.org>
59976
59977         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
59978         unportable shell command "if ! ...".
59979         Reported by Ralf Wildenhues.
59980
59981 2007-03-25  Bruno Haible  <bruno@clisp.org>
59982
59983         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
59984         <sysexits.h> file, and only add EX_CONFIG.
59985         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
59986         absolute file name and whether it is sufficient. Substitute also
59987         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
59988         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
59989         ABSOLUTE_SYSEXITS_H into sysexits.h.
59990
59991 2007-03-25  Bruno Haible  <bruno@clisp.org>
59992
59993         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
59994         hints is NULL.
59995
59996 2007-03-25  Bruno Haible  <bruno@clisp.org>
59997
59998         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
59999         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60000
60001 2007-03-25  Bruno Haible  <bruno@clisp.org>
60002
60003         * lib/vasnprintf.c: Include langinfo.h.
60004         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60005         multithread-safe.
60006         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60007         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60008         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60009         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60010         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60011         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60012         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60013         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60014         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60015         Reported by Simon Josefsson.
60016
60017 2007-03-25  Bruno Haible  <bruno@clisp.org>
60018
60019         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60020         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60021         * modules/vasnprintf (Depends-on): Add stdint.
60022
60023 2007-03-25  Bruno Haible  <bruno@clisp.org>
60024
60025         * modules/fpieee: New file.
60026         * m4/fpieee.m4: New file.
60027         * modules/isnan-nolibm (Depends-on): Add fpieee.
60028         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60029         * modules/isnanl (Depends-on): Add fpieee.
60030
60031 2007-03-25  Bruno Haible  <bruno@clisp.org>
60032
60033         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60034
60035 2007-03-25  Bruno Haible  <bruno@clisp.org>
60036
60037         Avoid test failures on IRIX 6.5.
60038         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60039         (main): Use it.
60040         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60041         macros.
60042         (main): Use them.
60043
60044 2007-03-25  Bruno Haible  <bruno@clisp.org>
60045
60046         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60047         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60048         exists but doesn't work.
60049         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60050         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60051         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60052         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60053         math.h.
60054
60055 2007-03-25  Bruno Haible  <bruno@clisp.org>
60056
60057         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60058         returns inf. Needed on IRIX 6.5.
60059
60060 2007-03-25  Bruno Haible  <bruno@clisp.org>
60061
60062         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60063         (main): Use isnanl instead of x != x idiom.
60064         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60065
60066         * tests/test-frexp.c: Include isnan.h.
60067         (main): Use isnan instead of x != x idiom.
60068         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60069
60070 2007-03-25  Bruno Haible  <bruno@clisp.org>
60071
60072         * tests/test-frexp.c (NaN): New function/macro.
60073         (main): Use it instead of 0.0 / 0.0.
60074         * tests/test-isnan.c (NaN): New function/macro.
60075         (main): Use it instead of 0.0 / 0.0.
60076         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60077         (test_function): Use it instead of 0.0 / 0.0.
60078         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60079         (test_function): Use it instead of 0.0 / 0.0.
60080         * tests/test-snprintf-posix.h (NaN): New function/macro.
60081         (test_function): Use it instead of 0.0 / 0.0.
60082         * tests/test-sprintf-posix.h (NaN): New function/macro.
60083         (test_function): Use it instead of 0.0 / 0.0.
60084         * tests/test-fprintf-posix.h (NaN): New function/macro.
60085         (test_function): Use it instead of 0.0 / 0.0.
60086         * tests/test-printf-posix.h (NaN): New function/macro.
60087         (test_function): Use it instead of 0.0 / 0.0.
60088
60089         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60090
60091 2007-03-25  Bruno Haible  <bruno@clisp.org>
60092
60093         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60094
60095 2007-03-25  Bruno Haible  <bruno@clisp.org>
60096
60097         * lib/regexec.c (merge_state_with_log): Make static.
60098
60099 2007-03-25  Bruno Haible  <bruno@clisp.org>
60100
60101         * lib/trigl.c (kernel_rem_pio2): Make static.
60102
60103 2007-03-25  Bruno Haible  <bruno@clisp.org>
60104
60105         * lib/sincosl.c (sincosl_table): Make static.
60106
60107 2007-03-25  Bruno Haible  <bruno@clisp.org>
60108
60109         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60110         if the compiler does not support C99.
60111
60112 2007-03-25  Bruno Haible  <bruno@clisp.org>
60113
60114         * modules/time (Makefile.am): Ensure all rule action lines start with a
60115         tab.
60116
60117 2007-03-24  Bruno Haible  <bruno@clisp.org>
60118
60119         * modules/tsearch-tests: New file.
60120         * tests/test-tsearch.sh: New file.
60121         * tests/test-tsearch.c: New file, mostly copied from glibc.
60122
60123         * modules/search-tests: New file.
60124         * tests/test-search.c: New file.
60125
60126         * modules/search: New file.
60127         * lib/search_.h: New file, incorporating lib/tsearch.h.
60128         * m4/search_h.m4: New file.
60129         * lib/tsearch.h: Remove file.
60130         * lib/tsearch.c: Include search.h instead of tsearch.h.
60131         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
60132         HAVE_TSEARCH.
60133         * modules/tsearch (Files): Remove lib/tsearch.h.
60134         (Depends-on): Add search.
60135         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
60136         (Include): Change tsearch.h into search.h.
60137
60138 2007-03-24  Bruno Haible  <bruno@clisp.org>
60139
60140         * modules/fpucw: New file.
60141         * lib/fpucw.h: New file.
60142         * lib/frexp.c: Include fpucw.h.
60143         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60144         (FUNC): Use them.
60145         * lib/printf-frexp.c: Include fpucw.h.
60146         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60147         (FUNC): Use them.
60148         * lib/vasnprintf.c: Include fpucw.h.
60149         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
60150         'long double' calculations.
60151         * tests/test-frexpl.c: Include fpucw.h.
60152         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60153         * tests/test-printf-frexpl.c: Include fpucw.h.
60154         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60155         * modules/frexpl (Depends-on): Add fpucw.
60156         * modules/printf-frexpl (Depends-on): Likewise.
60157         * modules/fprintf-posix (Depends-on): Likewise.
60158         * modules/snprintf-posix (Depends-on): Likewise.
60159         * modules/sprintf-posix (Depends-on): Likewise.
60160         * modules/vasnprintf-posix (Depends-on): Likewise.
60161         * modules/vasprintf-posix (Depends-on): Likewise.
60162         * modules/vfprintf-posix (Depends-on): Likewise.
60163         * modules/vsnprintf-posix (Depends-on): Likewise.
60164         * modules/vsprintf-posix (Depends-on): Likewise.
60165         * modules/frexpl-tests (Depends-on): Likewise.
60166         * modules/printf-frexpl-tests (Depends-on): Likewise.
60167
60168 2007-03-24  Bruno Haible  <bruno@clisp.org>
60169
60170         * lib/float+.h: New file.
60171         * lib/isnan.c: Include float+.h.
60172         (SIZE): New macro.
60173         (FUNC): Compare only SIZE bytes of the value.
60174         * lib/vasnprintf.c: Include float+.h.
60175         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60176         SIZEOF_LDBL or SIZEOF_DBL bytes.
60177         * modules/isnan-nolibm (Files): Add lib/float+.h.
60178         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60179         * modules/isnanl (Files): Add lib/float+.h.
60180         * modules/vasnprintf (Files): Add lib/float+.h.
60181
60182 2007-03-24  Bruno Haible  <bruno@clisp.org>
60183
60184         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60185         include isnanl-nolibm.h.
60186
60187 2007-03-24  Bruno Haible  <bruno@clisp.org>
60188
60189         * tests/test-read-file.c (main): Don't produce spurious output for
60190         expected situations. Make the test fail if it encountered unexpected
60191         results.
60192
60193 2007-03-24  Bruno Haible  <bruno@clisp.org>
60194
60195         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60196         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60197
60198 2007-03-24  Bruno Haible  <bruno@clisp.org>
60199
60200         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60201
60202 2007-03-24  Bruno Haible  <bruno@clisp.org>
60203
60204         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60205         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
60206
60207         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
60208         * modules/utf8-ucs4: Turn into a symbolic link to module
60209         unistr/u8-mbtouc.
60210
60211         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
60212         utf8-ucs4-unsafe.
60213         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
60214         unistr/u8-mbtouc-unsafe.
60215
60216         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
60217         * modules/utf16-ucs4: Turn into a symbolic link to module
60218         unistr/u16-mbtouc.
60219
60220         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
60221         utf16-ucs4-unsafe.
60222         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
60223         unistr/u16-mbtouc-unsafe.
60224
60225         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
60226         * modules/ucs4-utf8: Turn into a symbolic link to module
60227         unistr/u8-ubtomb.
60228
60229         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
60230         * modules/ucs4-utf16: Turn into a symbolic link to module
60231         unistr/u16-ubtomb.
60232
60233 2007-03-24  Bruno Haible  <bruno@clisp.org>
60234
60235         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
60236         Enable the function only if HAVE_INLINE.
60237         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
60238         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60239         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
60240         Enable the function only if HAVE_INLINE.
60241         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
60242         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60243         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
60244         Enable the function only if HAVE_INLINE.
60245         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
60246         Enable the function only if HAVE_INLINE.
60247         * modules/utf8-ucs4: Update.
60248         * modules/utf8-ucs4-unsafe: Update.
60249         * modules/utf16-ucs4: Update.
60250         * modules/utf16-ucs4-unsafe: Update.
60251         * modules/ucs4-utf8: Update.
60252         * modules/ucs4-utf16: Update.
60253
60254 2007-03-24  Bruno Haible  <bruno@clisp.org>
60255
60256         * lib/utf8-ucs4.h: Remove file.
60257         * lib/utf8-ucs4-unsafe.h: Remove file.
60258         * lib/utf16-ucs4.h: Remove file.
60259         * lib/utf16-ucs4-unsafe.h: Remove file.
60260         * lib/ucs4-utf8.h: Remove file.
60261         * lib/ucs4-utf16.h: Remove file.
60262         * lib/unistr.h: Include their previous contents.
60263         * m4/utf-ucs4.m4: Remove file.
60264         * m4/ucs4-utf.m4: Remove file.
60265         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
60266         (Depends-on): Add unistr/base.
60267         (configure.ac): Remove gl_UTF_UCS4.
60268         (Makefile.am): Update.
60269         (Include): Change to unistr.h.
60270         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
60271         (Depends-on): Add unistr/base.
60272         (configure.ac): Remove gl_UTF_UCS4.
60273         (Makefile.am): Update.
60274         (Include): Change to unistr.h.
60275         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
60276         (Depends-on): Add unistr/base.
60277         (configure.ac): Remove gl_UTF_UCS4.
60278         (Makefile.am): Update.
60279         (Include): Change to unistr.h.
60280         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
60281         (Depends-on): Add unistr/base.
60282         (configure.ac): Remove gl_UTF_UCS4.
60283         (Makefile.am): Update.
60284         (Include): Change to unistr.h.
60285         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
60286         (Depends-on): Add unistr/base.
60287         (configure.ac): Remove gl_UCS4_UTF.
60288         (Makefile.am): Update.
60289         (Include): Change to unistr.h.
60290         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
60291         (Depends-on): Add unistr/base.
60292         (configure.ac): Remove gl_UCS4_UTF.
60293         (Makefile.am): Update.
60294         (Include): Change to unistr.h.
60295         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
60296         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
60297         utf8-ucs4-unsafe.h.
60298         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
60299         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
60300         utf16-ucs4-unsafe.h.
60301         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
60302         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
60303         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
60304         * lib/unistr/u8-strchr.c: Likewise.
60305         * lib/unistr/u8-strrchr.c: Likewise.
60306         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
60307         * lib/unistr/u16-strchr.c: Likewise.
60308         * lib/unistr/u16-strrchr.c: Likewise.
60309         * lib/striconveh.c: Update.
60310         * lib/linebreak.c: Update.
60311
60312 2007-03-24  Bruno Haible  <bruno@clisp.org>
60313
60314         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
60315         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
60316
60317 2007-03-22  Bruno Haible  <bruno@clisp.org>
60318
60319         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
60320
60321 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60322
60323         * MODULES.html.sh (File system functions): New module write-any-file.
60324         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
60325         * m4/write-any-file.m4: New files.
60326
60327 2007-03-23  Eric Blake  <ebb9@byu.net>
60328
60329         * gnulib-tool: Rearrange space-tab sequences, since some editors
60330         like to eat them.
60331
60332 2007-03-23  Eric Blake  <ebb9@byu.net>
60333
60334         * lib/version-etc.c (version_etc_va): Update license wording to
60335         be more concise.  Recommended by Richard Stallman.
60336
60337 2007-03-22  Bruno Haible  <bruno@clisp.org>
60338
60339         * lib/poll.c (MSG_PEEK): New fallback definition.
60340
60341 2007-03-22  Bruno Haible  <bruno@clisp.org>
60342
60343         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
60344         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
60345         (main): Update.
60346         Fixes a compilation error on BeOS.
60347
60348 2007-03-22  Bruno Haible  <bruno@clisp.org>
60349
60350         * modules/frexpl-tests: New file.
60351         * tests/test-frexpl.c: New file.
60352
60353         * modules/frexpl: New file.
60354         * m4/frexpl.m4: New file.
60355         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
60356         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
60357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
60358         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
60359         (Depends-on): Add frexpl. Remove isnanl-nolibm.
60360         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
60361
60362 2007-03-22  Bruno Haible  <bruno@clisp.org>
60363
60364         * lib/frexpl.c: Share code with lib/frexp.c.
60365         * modules/mathl (Files): Add lib/frexp.c.
60366         (Depends-on): Add isnanl-nolibm.
60367
60368 2007-03-22  Bruno Haible  <bruno@clisp.org>
60369
60370         * modules/printf-frexp (Files): Add m4/frexp.m4.
60371         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
60372         only if the found frexp function actually works.
60373
60374 2007-03-22  Bruno Haible  <bruno@clisp.org>
60375
60376         * lib/frexp.c: Remove older implementation that uses divisions.
60377
60378 2007-03-21  Bruno Haible  <bruno@clisp.org>
60379
60380         * modules/frexp-tests: New file.
60381         * tests/test-frexp.c: New file.
60382
60383         * modules/frexp: New file.
60384         * lib/frexp.c: New file.
60385         * m4/frexp.m4: New file.
60386         * lib/math_.h (frexp): New declaration.
60387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
60388         REPLACE_FREXP.
60389         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
60390
60391 2007-03-21  Bruno Haible  <bruno@clisp.org>
60392
60393         * modules/isnanl-tests: New file.
60394         * tests/test-isnanl.c: New file.
60395
60396         * modules/isnanl: New file.
60397         * lib/isnanl.h: New file.
60398         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
60399         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
60400         gl_FUNC_ISNANL_WORKS.
60401         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
60402         New macros.
60403
60404 2007-03-21  Bruno Haible  <bruno@clisp.org>
60405
60406         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
60407         lib/isnanl.h.
60408         (Include): Update.
60409         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
60410         * lib/vasnprintf.c: Update.
60411         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
60412         tests/test-isnanl.h, remove tests/test-isnanl.c.
60413         (Makefile.am): Update.
60414         * tests/test-isnanl-nolibm.c: New file.
60415         * tests/test-isnanl.h: New file.
60416         * tests/test-isnanl.c: Remove file.
60417
60418 2007-03-21  Jim Meyering  <jim@meyering.net>
60419
60420         When trying to open ".", treat ESTALE like EACCES.
60421         * lib/savewd.c (savewd_save): Resort to forking not just upon
60422         failure with EACCES, but also when errno is ESTALE.
60423
60424 2007-03-20  Bruno Haible  <bruno@clisp.org>
60425
60426         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
60427         Needed on AIX 5.1. Reported by Matthew Woehlke.
60428
60429 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60430
60431         Suggestions by Bruno Haible:
60432         * lib/acl-internal.h: Include "gettext.h" rather than rolling
60433         our own.
60434         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
60435         * modules/acl (Depends-on): Add gettext.
60436
60437 2007-03-19  Bruno Haible  <bruno@clisp.org>
60438
60439         * modules/iconvme: Remove file.
60440         * lib/iconvme.h: Remove file.
60441         * lib/iconvme.c: Remove file.
60442         * m4/iconvme.m4: Remove file.
60443
60444 2007-03-19  Bruno Haible  <bruno@clisp.org>
60445
60446         * doc/relocatable-maint.texi: Break long shell script line.
60447         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60448
60449 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60450
60451         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
60452         handle file_has_acl.
60453         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
60454         * lib/acl.c: Move header inclusions and related macro defns into
60455         lib/acl-internal.h.
60456         (S_ISLNK): Remove defn, since that's now done for us.
60457         (file_has_acl): Move to lib/file-has-acl.c.
60458         Call acl_trivial if available.  This is the crucial part of the fix.
60459         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
60460         shared within the library.  Rewrite a bit, partly to make it compatible
60461         with the GNU coding style.
60462         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
60463         Remove unnecessary double-quotes.
60464         Don't test for acl_to_text; the build will catch that.
60465         Replace acl_entries if it doesn't exist and it is needed.
60466         Check for -lsec and acl_trivial (as used on Solaris 10).
60467         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
60468         lib/file-has-acl.c.
60469         (Depends-on): Add sys_stat, for S_ISLNK.
60470
60471 2007-03-19  Ben Pfaff  <blp@gnu.org>
60472
60473         * doc/gnulib.texi: Fix typos.
60474         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60475
60476 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60477
60478         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
60479         If size is zero here, buf must be zero.
60480
60481 2007-03-19  Simon Josefsson  <simon@josefsson.org>
60482
60483         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
60484         <bruno@clisp.org>.
60485
60486 2007-03-18  Bruno Haible  <bruno@clisp.org>
60487
60488         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
60489         Suggested by Eric Blake.
60490
60491 2007-03-18  Ben Pfaff  <blp@gnu.org>
60492
60493         * doc/relocatable.texi: Recommend using as prefix a directory
60494         that does not exist and will never be created.  Based on
60495         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
60496         and others.
60497
60498 2007-03-17  Bruno Haible  <bruno@clisp.org>
60499
60500         * lib/fchownat.c: Include lchown.h.
60501
60502 2007-03-17  Bruno Haible  <bruno@clisp.org>
60503
60504         Fix endless loop when the given allocated size was > INT_MAX.
60505         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
60506         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
60507         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
60508         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
60509         * lib/sprintf.c (sprintf): Likewise.
60510
60511 2007-03-17  Bruno Haible  <bruno@clisp.org>
60512
60513         * tests/test-argp-2.sh (func_compare): Output a context diff.
60514
60515 2007-03-17  Bruno Haible  <bruno@clisp.org>
60516
60517         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
60518         locale's decimal-point character.
60519
60520 2007-03-17  Bruno Haible  <bruno@clisp.org>
60521
60522         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
60523         before comparing it. Needed because on some platforms (e.g. x86) a
60524         'long double' occupies less bytes than sizeof (long double).
60525
60526 2007-03-17  Bruno Haible  <bruno@clisp.org>
60527
60528         * tests/test-crc.c (main): Make printf statements 64-bit clean.
60529         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
60530         * tests/test-getaddrinfo.c (simple): Likewise.
60531         * tests/test-read-file.c (main): Likewise.
60532
60533 2007-03-17  Bruno Haible  <bruno@clisp.org>
60534
60535         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
60536
60537 2007-03-17  Bruno Haible  <bruno@clisp.org>
60538
60539         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
60540         unused variable.
60541
60542 2007-03-17  Bruno Haible  <bruno@clisp.org>
60543
60544         * tests/test-c-strcasecmp.c: Include c-strcase.h.
60545         * tests/test-c-strncasecmp.c: Likewise.
60546
60547 2007-03-17  Bruno Haible  <bruno@clisp.org>
60548
60549         * modules/stdlib (Depends-on): Add unistd.
60550         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
60551         Needed for MacOS X 10.3.
60552
60553 2007-03-17  Bruno Haible  <bruno@clisp.org>
60554
60555         * lib/unistr/u-strdup.h: Include <stdlib.h>.
60556
60557 2007-03-17  Bruno Haible  <bruno@clisp.org>
60558
60559         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
60560
60561 2007-03-17  Bruno Haible  <bruno@clisp.org>
60562
60563         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
60564         to reflect files copied from gnulib (with or without modifications).
60565         Suggested by Jim Meyering.
60566
60567 2007-03-17  Eric Blake  <ebb9@byu.net>
60568
60569         * NEWS: Document stdlib change from 2007-02-18.
60570
60571 2007-03-17  Jim Meyering  <jim@meyering.net>
60572
60573         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
60574         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
60575         someone uses a name containing shell meta-characters.
60576         Reported by Alfred M. Szmidt.
60577
60578         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
60579
60580 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60581
60582         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
60583         and copy gettext configuration files only if configure.ac contains
60584         a use of AM_GNU_GETTEXT_VERSION.
60585
60586 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60587
60588         * build-aux/bootstrap (gnulib_name): New variable.
60589         (gnulib_tool_options): Use it.
60590
60591 2007-03-13  Simon Josefsson  <simon@josefsson.org>
60592
60593         * tests/test-des.c: Use new namespace.
60594
60595 2007-03-15  Bruno Haible  <bruno@clisp.org>
60596
60597         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
60598         Reported by James Youngman <jay@gnu.org>.
60599
60600 2007-03-15  Bruno Haible  <bruno@clisp.org>
60601
60602         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
60603         declared prototype. Needed with cc on OSF/1 5.1.
60604
60605 2007-03-15  Bruno Haible  <bruno@clisp.org>
60606
60607         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
60608         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
60609         (struct gl_list_implementation): Add dispose_fn argument to the
60610         'create_empty', 'create' methods.
60611         (struct gl_list_impl_base): Add field 'dispose_fn'.
60612         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
60613         argument.
60614         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
60615         dispose_fn argument.
60616         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
60617         dispose_fn on the dropped values.
60618         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
60619         dispose_fn argument.
60620         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
60621         dropped values.
60622         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
60623         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60624         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
60625         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60626         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
60627         argument.
60628         (gl_tree_list_free): Call dispose_fn on the dropped values.
60629         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
60630         the dropped values.
60631         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60632         Add dispose_fn argument.
60633         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
60634         Call dispose_fn on the dropped values.
60635         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
60636         Add dispose_fn argument.
60637         (gl_sublist_create): Initialize the 'dispose_fn' field.
60638         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
60639         * tests/test-array_list.c (main): Update.
60640         * tests/test-carray_list.c (main): Update.
60641         * tests/test-avltree_list.c (main): Update.
60642         * tests/test-rbtree_list.c (main): Update.
60643         * tests/test-avltreehash_list.c (main): Update.
60644         * tests/test-rbtreehash_list.c (main): Update.
60645         * tests/test-linked_list.c (main): Update.
60646         * tests/test-linkedhash_list.c (main): Update.
60647         * tests/test-array_oset.c (main): Update.
60648
60649 2007-03-15  Bruno Haible  <bruno@clisp.org>
60650
60651         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
60652         (gl_oset_create_empty): Add dispose_fn argument.
60653         (struct gl_oset_implementation): Add dispose_fn argument to
60654         'create_empty' method.
60655         (struct gl_oset_impl_base): Add dispose_fn field.
60656         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
60657         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
60658         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
60659         values.
60660         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
60661         (gl_tree_oset_free): Call dispose_fn on the dropped values.
60662         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60663         dropped value.
60664         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60665         dropped value.
60666         * tests/test-array_oset.c (main): Update.
60667         * tests/test-avltree_oset.c (main): Update.
60668         * tests/test-rbtree_oset.c (main): Update.
60669         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
60670
60671 2007-03-13  Bruno Haible  <bruno@clisp.org>
60672
60673         * tests/test-stdbool.c (i): Update after last patch.
60674
60675 2007-03-12  Bruno Haible  <bruno@clisp.org>
60676
60677         * lib/quotearg.c: Include <wctype.h> early, before the definition of
60678         the iswprint macro. Needed on Solaris 2.5.1.
60679
60680 2007-03-12  Bruno Haible  <bruno@clisp.org>
60681
60682         * tests/test-printf-frexp.c (main): Declare x as volatile.
60683
60684 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60685
60686         * doc/gnulib.texi (Build robot for gnulib): New section.
60687
60688 2007-03-12  Jim Meyering  <jim@meyering.net>
60689
60690         * build-aux/bootstrap: New file.
60691         * build-aux/bootstrap.conf: New file, from coreutils.
60692
60693 2007-03-11  Bruno Haible  <bruno@clisp.org>
60694
60695         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
60696
60697 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60698
60699         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
60700         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
60701         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
60702
60703 2007-03-11  Bruno Haible  <bruno@clisp.org>
60704
60705         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
60706         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
60707
60708 2007-03-11  Bruno Haible  <bruno@clisp.org>
60709
60710         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
60711         formula. Needed for SunPRO C 5.0.
60712
60713 2007-03-11  Bruno Haible  <bruno@clisp.org>
60714
60715         * modules/long-options (Depends-on): Add getopt.
60716
60717 2007-03-11  Bruno Haible  <bruno@clisp.org>
60718
60719         * modules/modechange (Depends-on): Add stdbool.
60720
60721 2007-03-11  Bruno Haible  <bruno@clisp.org>
60722
60723         * modules/i-ring (Depends-on): Add stdbool.
60724
60725 2007-03-11  Bruno Haible  <bruno@clisp.org>
60726
60727         * modules/gc-des (Depends-on): Add stdbool.
60728
60729 2007-03-11  Bruno Haible  <bruno@clisp.org>
60730
60731         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
60732
60733 2007-03-11  Bruno Haible  <bruno@clisp.org>
60734
60735         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
60736
60737 2007-03-11  Bruno Haible  <bruno@clisp.org>
60738
60739         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
60740
60741 2007-03-11  Bruno Haible  <bruno@clisp.org>
60742
60743         * lib/vasnprintf.c (sprintf): Undefine.
60744
60745 2007-03-11  Bruno Haible  <bruno@clisp.org>
60746
60747         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
60748         initializers in SunPRO C and Compaq C compilers.
60749
60750 2007-03-11  Bruno Haible  <bruno@clisp.org>
60751
60752         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
60753         decrementing code ANSI C compliant.
60754
60755 2007-03-11  Bruno Haible  <bruno@clisp.org>
60756
60757         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
60758         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
60759
60760 2007-03-11  Bruno Haible  <bruno@clisp.org>
60761
60762         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
60763         <stdbool.h> substitute doesn't pass.
60764
60765 2007-03-11  Bruno Haible  <bruno@clisp.org>
60766
60767         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
60768
60769 2007-03-11  Bruno Haible  <bruno@clisp.org>
60770
60771         * gnulib-tool (func_create_megatestdir): Create also an autobuild
60772         script, for submission to autobuild.josefsson.org.
60773
60774 2007-03-10  Bruno Haible  <bruno@clisp.org>
60775
60776         * modules/canonicalize-lgpl-tests: New file.
60777         * tests/test-canonicalize-lgpl.sh: New file.
60778         * tests/test-canonicalize-lgpl.c: New file.
60779
60780         * modules/c-strcase-tests: New file.
60781         * tests/test-c-strcase.sh: New file.
60782         * tests/test-c-strcasecmp.c: New file.
60783         * tests/test-c-strncasecmp.c: New file.
60784
60785         * modules/atexit-tests: New file.
60786         * tests/test-atexit.sh: New file.
60787         * tests/test-atexit.c: New file.
60788
60789 2007-03-10  Bruno Haible  <bruno@clisp.org>
60790
60791         * tests/test-binary-io.sh: Use temporary filenames that are not so
60792         likely to clash with those of other tests (in a parallel make).
60793         * tests/test-binary-io.c: Likewise.
60794
60795 2007-03-10  Bruno Haible  <bruno@clisp.org>
60796
60797         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
60798         fallback; use #error instead.
60799         Suggested by Simon Josefsson.
60800
60801 2007-03-10  Bruno Haible  <bruno@clisp.org>
60802
60803         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
60804         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
60805         first and the last.
60806
60807 2007-03-10  Bruno Haible  <bruno@clisp.org>
60808
60809         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
60810
60811 2007-03-10  Bruno Haible  <bruno@clisp.org>
60812
60813         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
60814         "make distcheck".
60815         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
60816         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
60817         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
60818
60819 2007-03-10  Bruno Haible  <bruno@clisp.org>
60820
60821         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
60822         variable.
60823         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
60824         variable.
60825
60826 2007-03-09  Eric Blake  <ebb9@byu.net>
60827         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
60828
60829         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
60830         types are not being provided by gnulib.
60831         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
60832         types are supported.
60833
60834 2007-03-10  Bruno Haible  <bruno@clisp.org>
60835
60836         * lib/stdio_.h (__attribute__): New macro.
60837         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
60838         vsprintf): Specify __attribute__ __format__ for GCC.
60839         Suggested by Eric Blake.
60840
60841 2007-03-09  Bruno Haible  <bruno@clisp.org>
60842
60843         * modules/printf-posix-tests: New file.
60844         * tests/test-printf-posix.sh: New file.
60845         * tests/test-printf-posix.c: New file.
60846
60847         * modules/printf-posix: New file.
60848         * lib/printf.c: New file.
60849         * m4/printf-posix-rpl.m4: New file.
60850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
60851         REPLACE_PRINTF.
60852         * lib/stdio_.h (printf): New declaration.
60853         (format, __format__, ____printf____, ____scanf____, ____strftime____,
60854         ____strfmon____): New macros.
60855         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
60856         REPLACE_PRINTF.
60857
60858 2007-03-09  Bruno Haible  <bruno@clisp.org>
60859
60860         * tests/test-vasnprintf-posix2.sh: New file.
60861         * tests/test-vasnprintf-posix2.c: New file.
60862         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
60863         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
60864         (Makefile.am): Activate test-vasnprintf-posix2.sh.
60865
60866         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
60867         a locale dependent decimal point, rather than always '.'.
60868
60869 2007-03-09  Eric Blake  <ebb9@byu.net>
60870
60871         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
60872         spite of platforms like Tandem/NSK that define it to -1.
60873
60874 2007-03-08  Bruno Haible  <bruno@clisp.org>
60875
60876         * modules/vprintf-posix-tests: New file.
60877         * tests/test-vprintf-posix.sh: New file.
60878         * tests/test-vprintf-posix.c: New file.
60879         * tests/test-printf-posix.h: New file.
60880
60881         * modules/vprintf-posix: New file.
60882         * lib/vprintf.c: New file.
60883         * m4/vprintf-posix.m4: New file.
60884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
60885         REPLACE_VPRINTF.
60886         * lib/stdio_.h (vprintf): New declaration.
60887         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
60888         REPLACE_VPRINTF.
60889
60890 2007-03-08  Bruno Haible  <bruno@clisp.org>
60891
60892         * modules/fprintf-posix-tests: New file.
60893         * tests/test-fprintf-posix.sh: New file.
60894         * tests/test-fprintf-posix.c: New file.
60895
60896         * modules/fprintf-posix: New file.
60897         * lib/fprintf.c: New file.
60898         * m4/fprintf-posix.m4: New file.
60899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
60900         REPLACE_FPRINTF.
60901         * lib/stdio_.h (fprintf): New declaration.
60902         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
60903         REPLACE_FPRINTF.
60904
60905 2007-03-08  Bruno Haible  <bruno@clisp.org>
60906
60907         * modules/vfprintf-posix-tests: New file.
60908         * tests/test-vfprintf-posix.sh: New file.
60909         * tests/test-vfprintf-posix.c: New file.
60910         * tests/test-fprintf-posix.h: New file.
60911         * tests/test-fprintf-posix.out: New file.
60912
60913         * modules/vfprintf-posix: New file.
60914         * lib/vfprintf.c: New file.
60915         * m4/vfprintf-posix.m4: New file.
60916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
60917         REPLACE_VFPRINTF.
60918         * lib/stdio_.h (vfprintf): New declaration.
60919         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
60920         REPLACE_VFPRINTF.
60921
60922 2007-03-08  Bruno Haible  <bruno@clisp.org>
60923
60924         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
60925
60926 2007-03-08  Bruno Haible  <bruno@clisp.org>
60927
60928         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
60929         instead of 'expr' invocations.
60930         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60931         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60932         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60933         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60934         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60935         Suggested by Paul Eggert.
60936
60937 2007-03-08  Bruno Haible  <bruno@clisp.org>
60938
60939         * modules/fseterr-tests: New file.
60940         * tests/test-fseterr.c: New file.
60941
60942         * modules/fseterr: New file.
60943         * lib/fseterr.h: New file.
60944         * lib/fseterr.c: New file.
60945
60946 2007-03-08  Bruno Haible  <bruno@clisp.org>
60947
60948         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
60949         * lib/getopt_.h: Likewise.
60950         * lib/mbswidth.h: Likewise.
60951         * lib/setenv.h: Likewise.
60952         * lib/vasnprintf.h: Likewise.
60953         * lib/vasprintf.h: Likewise.
60954         * lib/verror.h: Likewise.
60955         * lib/xsetenv.h: Likewise.
60956         * lib/xvasprintf.h: Likewise.
60957
60958 2007-03-08  Jim Meyering  <jim@meyering.net>
60959
60960         * users.txt: Add parted.
60961
60962         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
60963
60964 2007-03-07  Bruno Haible  <bruno@clisp.org>
60965
60966         * m4/printf.m4: Make the shell script snippets copy&pastable.
60967
60968 2007-03-02  Bruno Haible  <bruno@clisp.org>
60969
60970         * lib/netinet_in_.h: New file.
60971         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
60972         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
60973         * modules/netinet_in (Files): Add lib/netinet_in_.h.
60974         (Depends-on): Add absolute-header.
60975         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
60976         into netinet/in.h.
60977
60978 2007-03-03  Bruno Haible  <bruno@clisp.org>
60979
60980         * lib/sys_select_.h: New file.
60981         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
60982         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
60983         * modules/sys_select (Files): Add lib/sys_select_.h.
60984         (Depends-on): Add absolute-header.
60985         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
60986         into sys/select.h.
60987
60988 2007-03-02  Bruno Haible  <bruno@clisp.org>
60989
60990         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
60991         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
60992         values.
60993         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
60994         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
60995         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
60996         * modules/sys_socket (Depends-on): Add absolute-header.
60997         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
60998         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
60999         (Include): Remove requirement of inclusion of <sys/types.h>.
61000
61001 2007-03-02  Bruno Haible  <bruno@clisp.org>
61002
61003         * lib/byteswap_.h (bswap_32): Fix formula.
61004
61005 2007-03-06  Bruno Haible  <bruno@clisp.org>
61006
61007         * modules/sprintf-posix-tests: New file.
61008         * tests/test-sprintf-posix.c: New file.
61009
61010         * modules/sprintf-posix: New file.
61011         * lib/sprintf.c: New file.
61012         * m4/sprintf-posix.m4: New file.
61013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61014         REPLACE_SPRINTF.
61015         * lib/stdio_.h (sprintf): New declaration.
61016         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61017         REPLACE_SPRINTF.
61018
61019 2007-03-06  Bruno Haible  <bruno@clisp.org>
61020
61021         * modules/vsprintf-posix-tests: New file.
61022         * tests/test-vsprintf-posix.c: New file.
61023         * tests/test-sprintf-posix.h: New file.
61024
61025         * modules/vsprintf-posix: New file.
61026         * lib/vsprintf.c: New file.
61027         * m4/vsprintf-posix.m4: New file.
61028         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61029         REPLACE_VSPRINTF.
61030         * lib/stdio_.h (vsprintf): New declaration.
61031         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61032         REPLACE_VSPRINTF.
61033
61034 2007-03-06  Bruno Haible  <bruno@clisp.org>
61035
61036         * modules/vsnprintf (Depend-on): Remove minmax.
61037
61038 2007-03-06  Bruno Haible  <bruno@clisp.org>
61039
61040         * modules/snprintf-posix-tests: New file.
61041         * tests/test-snprintf-posix.c: New file.
61042
61043         * modules/snprintf-posix: New file.
61044         * m4/snprintf-posix.m4: New file.
61045         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61046         gl_FUNC_SNPRINTF.
61047         (gl_FUNC_SNPRINTF): Invoke it.
61048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61049         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61050         is set.
61051         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61052
61053 2007-03-06  Bruno Haible  <bruno@clisp.org>
61054
61055         * modules/vsnprintf-posix-tests: New file.
61056         * tests/test-vsnprintf-posix.c: New file.
61057         * tests/test-snprintf-posix.h: New file.
61058
61059         * modules/vsnprintf-posix: New file.
61060         * m4/vsnprintf-posix.m4: New file.
61061         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61062         gl_FUNC_VSNPRINTF.
61063         (gl_FUNC_VSNPRINTF): Invoke it.
61064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61065         * lib/stdio_.h (vsnprintf): Define as a replacement if
61066         REPLACE_VSNPRINTF is set.
61067         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61068
61069 2007-03-06  Bruno Haible  <bruno@clisp.org>
61070
61071         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61072         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61073
61074 2007-03-06  Bruno Haible  <bruno@clisp.org>
61075
61076         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61077         (asinl): Declare also if HAVE_DECL_ASINL is set.
61078         (atanl): Declare also if HAVE_DECL_ATANL is set.
61079         (ceill): Declare also if HAVE_DECL_CEILL is set.
61080         (cosl): Declare also if HAVE_DECL_COSL is set.
61081         (expl): Declare also if HAVE_DECL_EXPL is set.
61082         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61083         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61084         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61085         (logl): Declare also if HAVE_DECL_LOGL is set.
61086         (sinl): Declare also if HAVE_DECL_SINL is set.
61087         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61088         (tanl): Declare also if HAVE_DECL_TANL is set.
61089         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61091         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61092         declaration of frexpl, ldexpl.
61093         * modules/printf-frexpl (Depends-on): Add math.
61094         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61095
61096 2007-03-05  Bruno Haible  <bruno@clisp.org>
61097
61098         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61099         frexpl and ldexpl are declared.
61100         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61101
61102 2007-03-05  Bruno Haible  <bruno@clisp.org>
61103
61104         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61105         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61106
61107 2007-03-05  Bruno Haible  <bruno@clisp.org>
61108
61109         * lib/stdio_.h: Include <stddef.h>.
61110
61111 2007-03-05  Bruno Haible  <bruno@clisp.org>
61112
61113         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61114
61115 2007-03-05  Bruno Haible  <bruno@clisp.org>
61116
61117         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61118         NetBSD 4, from Ralf Wildenhues.
61119
61120 2007-03-04  Bruno Haible  <bruno@clisp.org>
61121
61122         * lib/vasprintf.h: Update #if logic for the case when the functions
61123         exist but are overridden.
61124
61125 2007-03-04  Bruno Haible  <bruno@clisp.org>
61126
61127         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
61128         implementations: glibc-2.4 and MacOS X 10.3.
61129         * tests/test-vasnprintf-posix.c (test_function): Test also the case
61130         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
61131         * tests/test-vasprintf-posix.c (test_function): Likewise.
61132
61133 2007-03-04  Bruno Haible  <bruno@clisp.org>
61134
61135         * modules/vasprintf-posix-tests: New file.
61136         * tests/test-vasprintf-posix.c: New file.
61137
61138         * modules/vasprintf-posix: New file.
61139         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
61140         defined.
61141         * m4/vasprintf-posix.m4: New file.
61142         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
61143         gl_FUNC_VASPRINTF.
61144         (gl_FUNC_VASPRINTF): Invoke it.
61145         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
61146         here.
61147         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
61148
61149 2007-03-04  Bruno Haible  <bruno@clisp.org>
61150
61151         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
61152         REPLACE_GETTIMEOFDAY.
61153         * modules/sys_time (Makefile.am): Likewise.
61154         * m4/sys_time_h.m4: Likewise.
61155         * m4/gettimeofday.m4: Likewise.
61156
61157 2007-03-04  Bruno Haible  <bruno@clisp.org>
61158
61159         * modules/vasnprintf-posix-tests: New file.
61160         * tests/test-vasnprintf-posix.c: New file.
61161
61162         * modules/vasnprintf-posix: New file.
61163         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
61164         printf-frexpl.h.
61165         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
61166         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
61167         REPLACE_VASNPRINTF is defined.
61168         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
61169         gl_FUNC_VASNPRINTF.
61170         (gl_FUNC_VASNPRINTF): Invoke it.
61171         * m4/vasnprintf-posix.m4: New file.
61172         * m4/printf.m4: New file.
61173
61174 2007-03-04  Bruno Haible  <bruno@clisp.org>
61175
61176         Compile progreloc.c only if --enable-relocatable is specified.
61177         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61178         if --enable-relocatable was specified.
61179         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61180         lib_SOURCES.
61181
61182 2007-03-04  Jim Meyering  <jim@meyering.net>
61183
61184         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61185         Use it consistently, rather than enumerating errno constants.
61186
61187 2007-03-04  Bruno Haible  <bruno@clisp.org>
61188
61189         * modules/xvasprintf-tests: New file.
61190         * tests/test-xvasprintf.c: New file.
61191
61192         * modules/vasprintf-tests: New file.
61193         * tests/test-vasprintf.c: New file.
61194
61195         * modules/vasnprintf-tests: New file.
61196         * tests/test-vasnprintf.c: New file.
61197
61198         * modules/vsnprintf-tests: New file.
61199         * tests/test-vsnprintf.c: New file.
61200
61201         * modules/snprintf-tests: New file.
61202         * tests/test-snprintf.c: New file.
61203
61204 2007-03-04  Bruno Haible  <bruno@clisp.org>
61205
61206         Compile relocatable.c only if --enable-relocatable is specified.
61207         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
61208         gl_RELOCATABLE_LIBRARY.
61209         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
61210         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
61211         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
61212         gl_RELOCATABLE_LIBRARY.
61213         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
61214         (Makefile.am): Remove lib_SOURCES.
61215         * modules/relocatable-lib-lgpl (configure.ac): Invoke
61216         gl_RELOCATABLE_LIBRARY.
61217         (Makefile.am): Remove lib_SOURCES.
61218         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
61219         always.
61220         * modules/relocatable-prog-wrapper (configure.ac): Invoke
61221         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
61222
61223 2007-03-04  Bruno Haible  <bruno@clisp.org>
61224
61225         * modules/argmatch-tests: New file.
61226         * tests/test-argmatch.c: New file.
61227
61228         * tests/test-allocsa.c (main): Halve the number of loop runs.
61229
61230         * modules/alloca-opt-tests: New file.
61231         * tests/test-alloca-opt.c: New file.
61232
61233 2007-03-04  Jim Meyering  <jim@meyering.net>
61234
61235         Work around difference between Linux ACLs and Solaris 10 ZFS.
61236         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
61237         for EINVAL.
61238
61239 2007-03-03  Bruno Haible  <bruno@clisp.org>
61240
61241         * modules/relocatable-prog (Depends-on): Add back progreloc's
61242         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
61243
61244 2007-03-03  Bruno Haible  <bruno@clisp.org>
61245
61246         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
61247         * modules/relocatable-lib: New file.
61248
61249 2007-03-03  Bruno Haible  <bruno@clisp.org>
61250
61251         * modules/relocatable-prog: Renamed from modules/relocatable.
61252         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
61253
61254 2007-03-03  Bruno Haible  <bruno@clisp.org>
61255
61256         * modules/relocatable-script (Files): Add doc/relocatable.texi,
61257         m4/relocatable-lib.m4.
61258         (Depends-on): Remove 'relocatable'.
61259         (configure.ac): Add gl_RELOCATABLE_NOP.
61260
61261 2007-03-03  Bruno Haible  <bruno@clisp.org>
61262
61263         * modules/relocatable-prog-wrapper: New file.
61264         * modules/relocatable (Depends-on): Add it. Remove all other
61265         dependencies except progname.
61266         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
61267
61268         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
61269         (gl_FUNC_STRERROR): Nop.
61270         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
61271
61272         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
61273         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
61274
61275         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
61276         (gl_FUNC_READLINK): Update.
61277
61278         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
61279
61280 2007-03-03  Bruno Haible  <bruno@clisp.org>
61281
61282         * lib/xreadlink.c: Include <unistd.h> unconditionally.
61283         * modules/xreadlink (Depends-on): Add unistd.
61284         * modules/xreadlink-with-size (Depends-on): Likewise.
61285
61286 2007-03-03  Bruno Haible  <bruno@clisp.org>
61287
61288         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
61289         extracted from gt_FUNC_SETENV.
61290         (gt_FUNC_SETENV): Remove macro.
61291         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
61292         remove gt_FUNC_SETENV.
61293
61294 2007-03-03  Bruno Haible  <bruno@clisp.org>
61295
61296         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
61297         ENABLE_RELOCATABLE here.
61298         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
61299
61300 2007-03-03  Bruno Haible  <bruno@clisp.org>
61301
61302         * modules/rbtreehash-list-tests (Depends-on): Add progname.
61303         * tests/test-rbtreehash_list.c: Include progname.h.
61304         (main): Call set_program_name.
61305
61306         * modules/rbtree-oset-tests (Depends-on): Add progname.
61307         * tests/test-rbtree_oset.c: Include progname.h.
61308         (main): Call set_program_name.
61309
61310         * modules/rbtree-list-tests (Depends-on): Add progname.
61311         * tests/test-rbtree_list.c: Include progname.h.
61312         (main): Call set_program_name.
61313
61314         * modules/linked-list-tests (Depends-on): Add progname.
61315         * tests/test-linked_list.c: Include progname.h.
61316         (main): Call set_program_name.
61317
61318 2007-03-03  Bruno Haible  <bruno@clisp.org>
61319
61320         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
61321         All uses of __restrict changed to _Restrict_.
61322         * lib/glob_.h (__restrict): Remove macro.
61323
61324 2007-03-02  Bruno Haible  <bruno@clisp.org>
61325
61326         * modules/gettext (configure.ac): Require gettext infrastructure
61327         from version 0.16.1.
61328
61329 2007-03-02  Bruno Haible  <bruno@clisp.org>
61330
61331         * modules/linkedhash-list-tests (Depends-on): Add progname.
61332         * tests/test-linkedhash_list.c: Include progname.h.
61333         (main): Call set_program_name.
61334
61335         * modules/carray-list-tests (Depends-on): Add progname.
61336         * tests/test-carray_list.c: Include progname.h.
61337         (main): Call set_program_name.
61338
61339         * modules/avltreehash-list-tests (Depends-on): Add progname.
61340         * tests/test-avltreehash_list.c: Include progname.h.
61341         (main): Call set_program_name.
61342
61343         * modules/avltree-oset-tests (Depends-on): Add progname.
61344         * tests/test-avltree_oset.c: Include progname.h.
61345         (main): Call set_program_name.
61346
61347         * modules/avltree-list-tests (Depends-on): Add progname.
61348         * tests/test-avltree_list.c: Include progname.h.
61349         (main): Call set_program_name.
61350
61351         * modules/array-oset-tests (Depends-on): Add progname.
61352         * tests/test-array_oset.c: Include progname.h.
61353         (main): Call set_program_name.
61354
61355         * modules/array-list-tests (Depends-on): Add progname.
61356         * tests/test-array_list.c: Include progname.h.
61357         (main): Call set_program_name.
61358
61359         * modules/argp-tests (Depends-on): Add progname.
61360         * tests/test-argp.c: Include argp.h first. Include progname.h.
61361         (main): Call set_program_name.
61362
61363 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
61364
61365         * doc/gnulib-tool.texi (Initial import): Reword description of
61366         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
61367         limited effect even if defined after the first system include.
61368
61369 2007-03-01  Bruno Haible  <bruno@clisp.org>
61370
61371         * build-aux/config.libpath: Update to libtool-1.5.22.
61372         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61373
61374 2007-03-01  Bruno Haible  <bruno@clisp.org>
61375
61376         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
61377         foo_CFLAGS.
61378         Reported by Ralf Wildenhues.
61379
61380 2007-03-01  Bruno Haible  <bruno@clisp.org>
61381
61382         * build-aux/install-reloc: Remove object files left over by some
61383         compilers.
61384         Reported by Ralf Wildenhues.
61385
61386 2007-03-01  Bruno Haible  <bruno@clisp.org>
61387
61388         * build-aux/install-reloc: Break long lines.
61389
61390 2007-03-01  Bruno Haible  <bruno@clisp.org>
61391
61392         * doc/relocatable.texi: Document that it may not work on OpenBSD.
61393         Reported by Ralf Wildenhues.
61394
61395 2007-03-01  Bruno Haible  <bruno@clisp.org>
61396
61397         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
61398         include ordering constraints.
61399
61400 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61401
61402         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
61403         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
61404         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
61405         as another example.
61406         * lib/time_.h: Fix misspelling.
61407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61408         Require gl_HEADER_TIME_H_DEFAULTS.
61409         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
61410         * m4/time_r.m4 (gl_TIME_R): Likewise.
61411         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
61412
61413 2007-03-01  Bruno Haible  <bruno@clisp.org>
61414
61415         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
61416         * m4/utimens.m4 (gl_UTIMENS): Likewise.
61417
61418 2007-03-01  Jim Meyering  <jim@meyering.net>
61419
61420         * modules/xreadlink (Maintainer): Add my name.
61421         * modules/xreadlink-with-size (Depends-on): Alphabetize.
61422
61423 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
61424             Bruno Haible  <bruno@clisp.org>
61425
61426         * build-aux/install-reloc: Compile also c-ctype.c.
61427         * build-aux/relocatable.sh.in: New file.
61428         * doc/relocatable.texi: New file.
61429         * doc/relocatable-maint.texi: New file.
61430         * doc/gnulib.texi: Include relocatable-maint.texi.
61431         * lib/progreloc.c: Include unistd.h unconditionally.
61432         * lib/relocwrapper.c: Include unistd.h unconditionally.
61433         Include c-ctype.h.
61434         (add_dotbin): Use c_tolower.
61435         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
61436         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
61437         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
61438         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
61439         to m4/relocatable-lib.m4.
61440         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
61441         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
61442         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
61443         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
61444         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
61445         * modules/relocatable: New file.
61446         * modules/relocatable-lib: New file.
61447         * modules/relocatable-script: New file.
61448
61449 2007-02-28  Bruno Haible  <bruno@clisp.org>
61450
61451         Import --enable-relocatable infrastructure.
61452         * build-aux/config.libpath: New file, from GNU gettext.
61453         * build-aux/install-reloc: New file, from GNU gettext.
61454         * build-aux/reloc-ldflags: New file, from GNU gettext.
61455         * lib/relocatable.h: New file, from GNU gettext.
61456         * lib/relocatable.c: New file, from GNU gettext.
61457         * lib/relocwrapper.c: New file, from GNU gettext.
61458         * m4/relocatable.m4: New file, from GNU gettext.
61459
61460 2007-02-28  Bruno Haible  <bruno@clisp.org>
61461
61462         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
61463
61464         * modules/xreadlink: New file, from GNU gettext with modifications.
61465         * lib/xreadlink.c: New file, from GNU gettext.
61466         * lib/xreadlink.h: Add comments.
61467         (xreadlink): New declaration.
61468
61469         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
61470         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
61471         lib/xreadlink-with-size.c.
61472         (configure.ac): Remove gl_XREADLINK invocation.
61473         (Makefile.am): Augment lib_SOURCES.
61474         * m4/xreadlink.m4: Remove file.
61475         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
61476         (xreadlink_with_size): Renamed from xreadink.
61477         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
61478         * modules/canonicalize (Depends-on): Replace xreadlink with
61479         xreadlink-with-size.
61480         * lib/canonicalize.c (canonicalize_filename_mode): Update.
61481
61482 2007-02-25  Jim Meyering  <jim@meyering.net>
61483
61484         * build-aux/announce-gen: When complaining about excess arguments,
61485         list them.
61486
61487 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61488
61489         * README: Document signed integer overflow situation more
61490         accurately.
61491
61492 2007-02-25  Bruno Haible  <bruno@clisp.org>
61493
61494         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
61495         'a' or 'A' conversion.
61496
61497 2007-02-25  Bruno Haible  <bruno@clisp.org>
61498
61499         * modules/filename: Renamed from modules/pathname.
61500         (Files): Replace lib/pathname.h with lib/filename.h. Replace
61501         lib/concatpath.c with lib/concat-filename.c.
61502         (Makefile.am): Update.
61503         (Include): Replace pathname.h with filename.h.
61504         * lib/filename.h: Renamed from lib/pathname.h.
61505         (concatenated_filename): Renamed from concatenated_pathname.
61506         * lib/concat-filename.c: Renamed from lib/concatpath.c.
61507         (concatenated_filename): Renamed from concatenated_pathname.
61508         * lib/findprog.c: Include filename.h instead of pathname.h.
61509         (find_in_path): Update.
61510         * lib/javacomp.c: Include filename.h instead of pathname.h.
61511         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
61512         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
61513         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
61514         is_oldgcj_14_13_usable, is_javac_usable): Update.
61515         * lib/javaexec.c: Include filename.h instead of pathname.h.
61516         (execute_java_class): Update.
61517         * modules/findprog: Update.
61518         * modules/javacomp: Update.
61519         * modules/javaexec: Update.
61520         * MODULES.html.sh (File system functions): Add 'filename', remove
61521         'pathname'.
61522
61523 2007-02-25  Bruno Haible  <bruno@clisp.org>
61524
61525         * modules/printf-frexpl-tests: New file.
61526         * tests/test-printf-frexpl.c: New file.
61527
61528         * modules/printf-frexpl: New file.
61529         * lib/printf-frexpl.h: New file.
61530         * lib/printf-frexpl.c: New file.
61531         * m4/printf-frexpl.m4: New file.
61532
61533 2007-02-25  Bruno Haible  <bruno@clisp.org>
61534
61535         * modules/printf-frexp-tests: New file.
61536         * tests/test-printf-frexp.c: New file.
61537
61538         * modules/printf-frexp: New file.
61539         * lib/printf-frexp.h: New file.
61540         * lib/printf-frexp.c: New file.
61541         * m4/printf-frexp.m4: New file.
61542
61543 2007-02-25  Bruno Haible  <bruno@clisp.org>
61544
61545         Assume automake >= 1.10 for the tests.
61546         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
61547         * modules/arctwo-tests: Likewise.
61548         * modules/argp-tests: Likewise.
61549         * modules/avltree-list-tests: Likewise.
61550         * modules/avltree-oset-tests: Likewise.
61551         * modules/avltreehash-list-tests: Likewise.
61552         * modules/carray-list-tests: Likewise.
61553         * modules/crc-tests: Likewise.
61554         * modules/des-tests: Likewise.
61555         * modules/gc-arcfour-tests: Likewise.
61556         * modules/gc-arctwo-tests: Likewise.
61557         * modules/gc-des-tests: Likewise.
61558         * modules/gc-hmac-md5-tests: Likewise.
61559         * modules/gc-hmac-sha1-tests: Likewise.
61560         * modules/gc-md2-tests: Likewise.
61561         * modules/gc-md4-tests: Likewise.
61562         * modules/gc-md5-tests: Likewise.
61563         * modules/gc-pbkdf2-sha1-tests: Likewise.
61564         * modules/gc-rijndael-tests: Likewise.
61565         * modules/gc-sha1-tests: Likewise.
61566         * modules/gc-tests: Likewise.
61567         * modules/getaddrinfo-tests: Likewise.
61568         * modules/hmac-md5-tests: Likewise.
61569         * modules/hmac-sha1-tests: Likewise.
61570         * modules/linked-list-tests: Likewise.
61571         * modules/linkedhash-list-tests: Likewise.
61572         * modules/lock-tests: Likewise.
61573         * modules/md2-tests: Likewise.
61574         * modules/md4-tests: Likewise.
61575         * modules/md5-tests: Likewise.
61576         * modules/rbtree-list-tests: Likewise.
61577         * modules/rbtree-oset-tests: Likewise.
61578         * modules/rbtreehash-list-tests: Likewise.
61579         * modules/read-file-tests: Likewise.
61580         * modules/rijndael-tests: Likewise.
61581         * modules/stdint-tests: Likewise.
61582         * modules/tls-tests: Likewise.
61583
61584 2007-02-24  Bruno Haible  <bruno@clisp.org>
61585
61586         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
61587         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
61588         function; instead check whether isnan with a double argument links.
61589         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
61590         function; instead check whether isnan with a 'long double' argument
61591         links.
61592         Reported by Eric Blake <ebb9@byu.net>.
61593
61594 2007-02-24  Bruno Haible  <bruno@clisp.org>
61595
61596         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
61597         defined.
61598         * lib/isnanl.c: Remove all code. Just include isnan.c.
61599         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
61600
61601 2007-02-25  Jim Meyering  <jim@meyering.net>
61602
61603         Avoid conflicting types for 'unsetenv' on FreeBSD.
61604         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
61605         conflicting with FreeBSD's (5.0 and 6.1) function declaration
61606         in stdlib.h.
61607
61608 2007-02-24  Bruno Haible  <bruno@clisp.org>
61609
61610         * modules/isnanl-nolibm-tests: New file.
61611         * tests/test-isnanl.c: New file.
61612
61613         * modules/isnanl-nolibm: New file.
61614         * lib/isnanl.h: New file.
61615         * lib/isnanl.c: New file.
61616         * m4/isnanl.m4: New file.
61617
61618 2007-02-24  Bruno Haible  <bruno@clisp.org>
61619
61620         * modules/isnan-nolibm-tests: New file.
61621         * tests/test-isnan.c: New file.
61622
61623         * modules/isnan-nolibm: New file.
61624         * lib/isnan.h: New file.
61625         * lib/isnan.c: New file.
61626         * m4/isnan.m4: New file.
61627
61628 2007-02-24  Bruno Haible  <bruno@clisp.org>
61629
61630         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
61631         assume that an exponent fits in 20 bits.
61632
61633 2007-02-24  Jim Meyering  <jim@meyering.net>
61634
61635         * m4/regex.m4: Update the description of the configure-time option,
61636         --without-included-regex, to state accurately what the defaults are,
61637         and perhaps to give people an idea why using this option is risky.
61638
61639 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61640
61641         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
61642         loops on small arguments.  This attempts to avoid the problem
61643         Bruno Haible reported for AIX 4.3.2 in
61644         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
61645
61646 2007-02-23  Bruno Haible  <bruno@clisp.org>
61647
61648         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
61649         Needed for help2man.
61650
61651 2007-02-23  Karl Berry  <karl@gnu.org>
61652
61653         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
61654         exists, foo.h should be cvs-ignored, not committed.
61655
61656 2007-02-23  Eric Blake  <ebb9@byu.net>
61657
61658         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
61659         * lib/stat-time.h (includes): Likewise.
61660         * lib/utimecmp.c (includes): Likewise.
61661         * lib/utimens.h (includes): Likewise.
61662         * lib/getdate.y (includes): Also include "timespec.h" for use
61663         internal to the module.
61664         * modules/utimens (Depends-on): Revert yesterday's patch.
61665         * modules/nanosleep (Depends-on): Add missing dependency.
61666
61667 2007-02-22  Bruno Haible  <bruno@clisp.org>
61668
61669         * lib/glob.c: Don't include getlogin_r.h.
61670
61671 2007-02-22  Jim Meyering  <jim@meyering.net>
61672
61673         * modules/utimens (Depends-on): Add timespec, required for
61674         utimens.h's inclusion of timespec.h.
61675
61676 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
61677
61678         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
61679         long unreadable paths in GNU/Linux.  Problem reported by Andreas
61680         Schwab in
61681         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
61682         I'll try to think of a better way to fix the Solaris problem.
61683
61684         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
61685         like glibc; on Solaris 10, it fails with errno == EINVAL.
61686         POSIX says the behavior is unspecified if the first argument is NULL,
61687         so play it safe and never pass NULL to the system getcwd.
61688
61689 2007-02-21  Jim Meyering  <jim@meyering.net>
61690
61691         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
61692         of gettimeofday.  It would conflict with the one now always
61693         provided via sys_time_.h.  Reported by Matthew Woehlke, as
61694         an IRIX 6.5 build failure.
61695
61696 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61697
61698         Minor fixups to port to Solaris 10 with Sun C 5.8.
61699         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
61700         * modules/getcwd (Depends-on): Add dirfd.
61701         * lib/putenv.c (putenv): #undef it.
61702         (rpl_putenv): New decl.
61703         (malloc, free): Include <stdlib.h> rather than prototyping separately.
61704
61705 2007-02-20  Bruno Haible  <bruno@clisp.org>
61706
61707         * modules/stdio-tests: New file.
61708         * tests/test-stdio.c: New file.
61709
61710         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
61711         (Depends-on): Add stdio.
61712         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61713         (Include): Use <stdio.h> instead of vsnprintf.h.
61714         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61715         HAVE_DECL_VSNPRINTF.
61716         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
61717
61718         * modules/snprintf (Files): Remove lib/snprintf.h.
61719         (Depends-on): Add stdio.
61720         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61721         (Include): Use <stdio.h> instead of snprintf.h.
61722         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61723         HAVE_DECL_SNPRINTF.
61724         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
61725         * lib/getaddrinfo.c: Likewise.
61726
61727         * modules/stdio: New file.
61728         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
61729         * lib/snprintf.h: Remove file.
61730         * lib/vsnprintf.h: Remove file.
61731         * lib/.cppi-disable: Remove snprintf.h.
61732         * m4/stdio_h.m4: New file.
61733         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
61734
61735 2007-02-20  Jim Meyering  <jim@meyering.net>
61736
61737         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
61738         used by e.g., mingw.  From Bruno Haible.
61739
61740 2007-02-19  Bruno Haible  <bruno@clisp.org>
61741
61742         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
61743         warnings.
61744         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61745
61746 2007-02-19  Bruno Haible  <bruno@clisp.org>
61747
61748         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
61749         from mingw users.
61750
61751 2007-02-19  Bruno Haible  <bruno@clisp.org>
61752
61753         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
61754         warnings.
61755         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
61756
61757 2007-02-19  Jim Meyering  <jim@meyering.net>
61758
61759         Don't use FD after a successful "fdopendir (fd)".
61760         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
61761         Reset it by calling dirfd on the just-obtained DIR*.
61762
61763         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
61764         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
61765
61766 2007-02-18  Bruno Haible  <bruno@clisp.org>
61767
61768         * lib/readlink.c: Include <unistd.h>.
61769         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
61770         HAVE_READLINK.
61771         * modules/readlink (Depends-on): Add unistd.
61772         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61773         (Include): Add <unistd.h>.
61774
61775         * lib/getlogin_r.h: Remove file.
61776         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
61777         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
61778         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
61779         HAVE_DECL_GETLOGIN_R.
61780         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
61781         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61782         (Include): Use <unistd.h> instead of getlogin_r.h.
61783
61784         * lib/getcwd.h: Remove file.
61785         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
61786         * lib/xgetcwd.c: Likewise.
61787         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
61788         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
61789         * modules/getcwd (Files): Remove lib/getcwd.h.
61790         (Depends-on): Add unistd.
61791         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61792         (Include): Use <unistd.h> instad of getcwd.h.
61793
61794         * lib/ftruncate.c: Include <unistd.h> first.
61795         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
61796         Set HAVE_FTRUNCATE.
61797         * modules/ftruncate (Depends-on): Add unistd.
61798         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61799
61800         * lib/fchdir.c: Include <unistd.h> first.
61801         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
61802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
61803         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
61804         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61805         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
61806
61807         * lib/dup2.c: Include <unistd.h> first.
61808         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
61809         HAVE_DUP2.
61810         * modules/dup2 (Depends-on): Add unistd.
61811         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61812
61813         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
61814         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
61815         REPLACE_CHOWN. Don't define chown as a macro here.
61816         * modules/chown (Depends-on): Add unistd.
61817         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61818
61819         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
61820         Add definition for GL_LINK_WARNING.
61821         (chown, dup2): New declarations.
61822         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
61823         link warning.
61824         (ftruncate): New declaration.
61825         (getcwd): New declaration, taken from old getcwd.h.
61826         (getlogin_r): New declaration, taken from old getlogin_r.h.
61827         (readlink): New declaration.
61828         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
61829         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
61830         (gl_PREREQ_UNISTD): Remove macro.
61831         (gl_UNISTD_MODULE_INDICATOR): New macro.
61832         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
61833         many new variables. Don't set UNISTD_H.
61834         * modules/unistd (Description): Change.
61835         (Depends-on): Add link-warning.
61836         (configure.ac): Update.
61837         (Makefile.am): Create unistd.h always. Substitute many new variables
61838         into it.
61839
61840 2007-02-18  Bruno Haible  <bruno@clisp.org>
61841
61842         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
61843         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
61844         HAVE_GETSUBOPT.
61845         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
61846         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
61847         * lib/getsubopt.h: Remove file.
61848         * modules/getsubopt (Files): Remove lib/getsubopt.h.
61849         (Depends-on): Add stdlib.
61850         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61851         (Includes): Use <stdlib.h> instead of getsubopt.h.
61852         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
61853         Set HAVE_GETSUBOPT.
61854         * lib/getsubopt.c: Don't include getsubopt.h.
61855
61856 2007-02-18  Bruno Haible  <bruno@clisp.org>
61857
61858         * modules/fchdir (Depends-on): Add dup2.
61859
61860 2007-02-18  Bruno Haible  <bruno@clisp.org>
61861
61862         * lib/stdlib_.h: Handle glibc's special invocation convention
61863         specially.
61864
61865 2007-02-18  Bruno Haible  <bruno@clisp.org>
61866
61867         * modules/stdlib-tests: New file.
61868         * tests/test-stdlib.c: New file.
61869
61870         * modules/mkstemp (Files): Remove lib/mkstemp.h.
61871         (Depends-on): Add stdlib.
61872         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61873         (Includes): Use <stdlib.h> instead of mkstemp.h.
61874         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61875         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
61876         * lib/mkstemp.c: Don't include mkstemp.h.
61877         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
61878         * lib/stdlib--.h: Don't include mkstemp.h.
61879
61880         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
61881         (Depends-on): Add stdlib.
61882         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61883         (Includes): Use <stdlib.h> instead of mkdtemp.h.
61884         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61885         HAVE_MKDTEMP.
61886         * lib/mkdtemp.c: Don't include mkdtemp.h.
61887         * lib/clean-temp.c: Don't include mkdtemp.h.
61888
61889         * modules/exit (Files): Remove lib/exit.h.
61890         (Depends-on): Add stdlib.
61891         (Makefile.am): Remove lib_SOURCES.
61892         (Include): Use <stdlib.h> instead of exit.h.
61893         * lib/argmatch.c: Don't include exit.h.
61894         * lib/execute.c: Likewise.
61895         * lib/pagealign_alloc.c: Likewise.
61896         * lib/pipe.c: Likewise.
61897         * lib/wait-process.c: Likewise.
61898         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
61899         * lib/exitfail.c: Likewise.
61900         * lib/savewd.c: Likewise.
61901         * lib/xsetenv.c: Likewise.
61902
61903         * modules/stdlib: New file.
61904         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
61905         and extra comments about mkstemp().
61906         * lib/exit.h: Remove file.
61907         * lib/mkdtemp.h: Remove file.
61908         * lib/mkstemp.h: Remove file.
61909         * m4/stdlib_h.m4: New file.
61910         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
61911
61912 2007-02-18  Bruno Haible  <bruno@clisp.org>
61913
61914         * modules/math-tests: New file.
61915         * tests/test-math.c: New file.
61916
61917         * modules/math: New file.
61918         * modules/mathl (Files): Remove lib/mathl.h.
61919         (Depends-on): Add math.
61920         (Makefile.am): Don't mention mathl.h.
61921         (Include): Use <math.h> instead of mathl.h.
61922         * lib/math_.h: New file.
61923         * lib/mathl.h: Remove file.
61924         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
61925         mathl.h.
61926         * lib/asinl.c: Likewise.
61927         * lib/atanl.c: Likewise.
61928         * lib/ceill.c: Likewise.
61929         * lib/cosl.c: Likewise.
61930         * lib/expl.c: Likewise.
61931         * lib/floorl.c: Likewise.
61932         * lib/frexpl.c: Likewise.
61933         * lib/ldexpl.c: Likewise.
61934         * lib/logl.c: Likewise.
61935         * lib/sincosl.c: Likewise.
61936         * lib/sinl.c: Likewise.
61937         * lib/sqrtl.c: Likewise.
61938         * lib/tanl.c: Likewise.
61939         * lib/trigl.c: Likewise.
61940         * m4/math_h.m4: New file.
61941         * MODULES.html.sh (Mathematics): Add math.
61942
61943 2007-02-17  Bruno Haible  <bruno@clisp.org>
61944
61945         * modules/wctype-tests: New file.
61946         * tests/test-wctype.c: New file.
61947
61948         * modules/wchar-tests: New file.
61949         * tests/test-wchar.c: New file.
61950
61951         * modules/unistd-tests: New file.
61952         * tests/test-unistd.c: New file.
61953
61954         * modules/time-tests: New file.
61955         * tests/test-time.c: New file.
61956
61957         * modules/sysexits-tests: New file.
61958         * tests/test-sysexits.c: New file.
61959
61960         * modules/sys_time-tests: New file.
61961         * tests/test-sys_time.c: New file.
61962
61963         * modules/sys_stat-tests: New file.
61964         * tests/test-sys_stat.c: New file.
61965
61966         * modules/sys_socket-tests: New file.
61967         * tests/test-sys_socket.c: New file.
61968
61969         * modules/sys_select-tests: New file.
61970         * tests/test-sys_select.c: New file.
61971
61972         * modules/string-tests: New file.
61973         * tests/test-string.c: New file.
61974
61975         * modules/stdbool-tests: New file.
61976         * tests/test-stdbool.c: New file.
61977
61978         * modules/netinet_in-tests: New file.
61979         * tests/test-netinet_in.c: New file.
61980
61981         * modules/inttypes-tests: New file.
61982         * tests/test-inttypes.c: New file.
61983
61984         * modules/fcntl-tests: New file.
61985         * tests/test-fcntl.c: New file.
61986
61987         * modules/byteswap-tests: New file.
61988         * tests/test-byteswap.c: New file.
61989
61990         * modules/arpa_inet-tests: New file.
61991         * tests/test-arpa_inet.c: New file.
61992
61993 2007-02-17  Bruno Haible  <bruno@clisp.org>
61994
61995         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
61996         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
61997         if the corresponding module is not enabled. Emit link warnings if
61998         the function is used nevertheless.
61999         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62000         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62001         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62002         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62003         * modules/inttypes (Depends-on): Add link-warning.
62004         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62005         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62006         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62007         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62008         * modules/imaxdiv (configure.ac): Likewise.
62009         * modules/strtoimax (configure.ac): Likewise.
62010         * modules/strtoumax (configure.ac): Likewise.
62011
62012 2007-02-17  Bruno Haible  <bruno@clisp.org>
62013
62014         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62015         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62016         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62017         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62018
62019 2007-02-17  Bruno Haible  <bruno@clisp.org>
62020
62021         * modules/link-warning: New file.
62022         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62023         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62024         * modules/string (Depends-on): Add link-warning.
62025         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62026         string.h.
62027         * MODULES.html.sh (Support for building libraries and executables): Add
62028         link-warning.
62029
62030 2007-02-17  Bruno Haible  <bruno@clisp.org>
62031
62032         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62033         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62034         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62035         long lines.
62036
62037 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62038             Bruno Haible  <bruno@clisp.org>
62039
62040         * modules/tmpfile: New file.
62041         * lib/tmpfile.c: New file.
62042         * m4/tmpfile.m4: New file.
62043         * MODULES.html.sh (func_all_modules): New section "Input/output".
62044
62045 2007-02-15  Bruno Haible  <bruno@clisp.org>
62046
62047         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62048         (supports_delete_on_close): New function.
62049         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62050
62051 2007-02-14  Bruno Haible  <bruno@clisp.org>
62052
62053         * modules/mbspcasecmp-tests: New file.
62054         * tests/test-mbspcasecmp.sh: New file.
62055         * tests/test-mbspcasecmp.c: New file.
62056
62057         New module mbspcasecmp.
62058         * modules/mbspcasecmp: New file.
62059         * lib/mbspcasecmp.c: New file.
62060         * lib/string_.h (strncasecmp): Change warning message.
62061         (mbspcasecmp): New declaration.
62062         * m4/mbspcasecmp.m4: New file.
62063         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62064         GNULIB_MBSPCASECMP.
62065         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62066         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62067
62068 2007-02-14  Bruno Haible  <bruno@clisp.org>
62069
62070         * modules/mbsncasecmp-tests: New file.
62071         * tests/test-mbsncasecmp.sh: New file.
62072         * tests/test-mbsncasecmp.c: New file.
62073
62074         New module mbsncasecmp.
62075         * modules/mbsncasecmp: New file.
62076         * lib/mbsncasecmp.c: New file.
62077         * lib/string_.h (mbsncasecmp): New declaration.
62078         * m4/mbsncasecmp.m4: New file.
62079         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62080         GNULIB_MBSNCASECMP.
62081         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62082         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62083
62084 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62085
62086         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62087         Verify that it doesn't overlap with our flags.
62088         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62089         do not have the desired effect in multibyte locales; instead, use
62090         mbscasecmp.
62091         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62092         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62093         we don't require GNU fnmatch ourselves (if our users require it, they
62094         should do so explicitly).
62095
62096         Fix regex code so it doesn't rely on strcasecmp.
62097         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62098         Otherwise, include gnulib's langinfo.h.
62099         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62100         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62101         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62102         * modules/regex (FILES): Remove m4/codeset.m4.
62103         (Depends-on): Add localcharset.  Remove strcase.
62104
62105 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62106
62107         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62108         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62109
62110 2007-02-13  Bruno Haible  <bruno@clisp.org>
62111
62112         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62113         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62114
62115 2007-02-12  Bruno Haible  <bruno@clisp.org>
62116
62117         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62118         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62119         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62120         time warning rather than a link error.
62121
62122 2007-02-12  Bruno Haible  <bruno@clisp.org>
62123
62124         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
62125         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62126         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62127
62128 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62129
62130         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
62131         args, not 2.
62132
62133 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62134
62135         New module 'time', so that apps can include <time.h> as per
62136         POSIX and GNU instead of separate include files like time_r.h
62137         and timegm.h.  This implementation tries out a simpler approach
62138         for replacing decls in standard include files (as compared to
62139         the string module), somewhat as an experiment.
62140
62141         * config/srclist.txt: Comment out mktime.c for now.
62142         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
62143         since it doesn't apply any more.  Use generic wording instead.
62144         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
62145         'time'.
62146         * lib/time_.h, m4/time_h.m4, modules/time: New files.
62147         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
62148         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
62149         Don't include <sys/types.h>; no longer needed since we assume C89.
62150         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
62151         * lib/strftime.c: Likewise.
62152         * lib/time_r.c: Likewise.
62153         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
62154         * lib/nanosleep.c: Include <time.h> first, to check interface.
62155         * lib/strptime.c: Likewise.
62156         * lib/time_r.c: Likewise.
62157         * lib/timegm.c: Likewise.
62158         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
62159         needed.
62160         * lib/timegm.c: Don't include timegm.h; no longer needed.
62161         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
62162         time.h now handles any problems in that area.
62163         (struct timespec, nanosleep): Remove; time.h now arranges for these.
62164         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
62165         that time.h defines struct timespec.
62166         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
62167         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
62168         handles that.
62169         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
62170         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
62171         needed.  Set REPLACE_LOCALTIME.
62172         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
62173         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
62174         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
62175         nanosleep; time_h.m4 now does that.  Don't require
62176         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62177         module handles this now.
62178         * modules/getdate (Depends-on): Remove timespec.  Add time.
62179         * modules/nanosleep (Depends-on): Likewise.
62180         * modules/stat-time (Depends-on): Likewise.
62181         * modules/nanosleep (Include): Include time.h, not timespec.h.
62182         * modules/strptime (Files): Remove lib/strptime.h.
62183         (Depends-on): Add extensions, time.
62184         (Include): Include time.h, not strptime.h.
62185         * modules/time_r (Files): Remove lib/time_r.h.
62186         (Depends-on): Add time.
62187         (Include): Include time.h, not time_r.h.
62188         * modules/timegm: Likewise.
62189         * modules/timespec (Description): Now does timespec-related decls
62190         of our own, instead of struct timespec itself.
62191         (Depends-on): Add time; remove extensions.
62192         (Maintainer): Add self.
62193         * modules/utimecmp (Depends-on): Add time; remove timespec.
62194         * modules/utimens (Depends-on): Likewise.
62195         * modules/xnanosleep (Depends-on): Likewise.
62196
62197 2007-02-11  Bruno Haible  <bruno@clisp.org>
62198
62199         * lib/c-strstr.c: Include allocsa.h.
62200         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62201         * lib/c-strcasestr.c: Include allocsa.h.
62202         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62203         * lib/strcasestr.c: Include allocsa.h.
62204         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62205         * lib/mbsstr.c: Include allocsa.h.
62206         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62207         allocsa/freesa instead of malloc/free.
62208         * lib/mbscasestr.c: Include allocsa.h.
62209         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62210         allocsa/freesa instead of malloc/free.
62211         * modules/c-strstr (Depends-on): Add allocsa.
62212         * modules/c-strcasestr (Depends-on): Likewise.
62213         * modules/strcasestr (Depends-on): Likewise.
62214         * modules/mbsstr (Depends-on): Likewise.
62215         * modules/mbscasestr (Depends-on): Likewise.
62216
62217 2007-02-11  Bruno Haible  <bruno@clisp.org>
62218
62219         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
62220
62221         * modules/mbsspn-tests: New file.
62222         * tests/test-mbsspn.sh: New file.
62223         * tests/test-mbsspn.c: New file.
62224
62225 2007-02-11  Bruno Haible  <bruno@clisp.org>
62226
62227         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
62228
62229         * modules/mbspbrk-tests: New file.
62230         * tests/test-mbspbrk.sh: New file.
62231         * tests/test-mbspbrk.c: New file.
62232
62233 2007-02-11  Bruno Haible  <bruno@clisp.org>
62234
62235         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
62236         unneeded cast.
62237
62238         * modules/mbscspn-tests: New file.
62239         * tests/test-mbscspn.sh: New file.
62240         * tests/test-mbscspn.c: New file.
62241
62242 2007-02-11  Bruno Haible  <bruno@clisp.org>
62243
62244         * modules/mbscasecmp-tests: New file.
62245         * tests/test-mbscasecmp.sh: New file.
62246         * tests/test-mbscasecmp.c: New file.
62247
62248 2007-02-11  Bruno Haible  <bruno@clisp.org>
62249
62250         Ensure O(n) worst-case complexity of mbscasestr.
62251         * lib/mbscasestr.c: Include stdbool.h.
62252         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62253         functions.
62254         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
62255         the bookkeeping indicates that it's worth it.
62256         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
62257
62258         * modules/mbscasestr-tests: New file.
62259         * tests/test-mbscasestr1.c: New file.
62260         * tests/test-mbscasestr2.sh: New file.
62261         * tests/test-mbscasestr2.c: New file.
62262         * tests/test-mbscasestr3.sh: New file.
62263         * tests/test-mbscasestr3.c: New file.
62264         * tests/test-mbscasestr4.sh: New file.
62265         * tests/test-mbscasestr4.c: New file.
62266         * m4/locale-tr.m4: New file.
62267
62268 2007-02-11  Bruno Haible  <bruno@clisp.org>
62269
62270         Ensure O(n) worst-case complexity of mbsstr.
62271         * lib/mbsstr.c: Include stdbool.h.
62272         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62273         functions.
62274         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
62275         bookkeeping indicates that it's worth it.
62276         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
62277
62278         * modules/mbsstr-tests: New file.
62279         * tests/test-mbsstr1.c: New file.
62280         * tests/test-mbsstr2.sh: New file.
62281         * tests/test-mbsstr2.c: New file.
62282         * tests/test-mbsstr3.sh: New file.
62283         * tests/test-mbsstr3.c: New file.
62284         * m4/locale-fr.m4: New file.
62285
62286 2007-02-11  Bruno Haible  <bruno@clisp.org>
62287
62288         * lib/mbsrchr.c (mbsrchr): Fix bug.
62289
62290         * modules/mbsrchr-tests: New file.
62291         * tests/test-mbsrchr.sh: New file.
62292         * tests/test-mbsrchr.c: New file.
62293
62294 2007-02-11  Bruno Haible  <bruno@clisp.org>
62295
62296         * lib/mbschr.c (mbschr): Fix bug.
62297
62298         * modules/mbschr-tests: New file.
62299         * tests/test-mbschr.sh: New file.
62300         * tests/test-mbschr.c: New file.
62301         * m4/locale-zh.m4: New file.
62302
62303 2007-02-11  Bruno Haible  <bruno@clisp.org>
62304
62305         Support for copying multibyte string iterators.
62306         * lib/mbiter.h: Include <string.h>.
62307         (mbiter_multi_copy): New function.
62308         (mbi_copy): New macro.
62309         * lib/mbuiter.h: Include <string.h>.
62310         (mbuiter_multi_copy): New function.
62311         (mbui_copy): New macro.
62312
62313 2007-02-11  Bruno Haible  <bruno@clisp.org>
62314
62315         New module mbslen.
62316         * modules/mbslen: New file.
62317         * lib/mbslen.c: New file.
62318         * lib/string_.h (mbslen): New declaration.
62319         * m4/mbslen.m4: New file.
62320         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62321         GNULIB_MBSLEN.
62322         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
62323         * MODULES.html.sh (Internationalization functions): Add mbslen.
62324
62325 2007-02-11  Bruno Haible  <bruno@clisp.org>
62326
62327         Ensure O(n) worst-case complexity of strcasestr substitute.
62328         * lib/strcasestr.c: Include stdbool.h.
62329         (knuth_morris_pratt): New function.
62330         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62331         bookkeeping indicates that it's worth it.
62332         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
62333
62334         * modules/strcasestr-tests: New file.
62335         * tests/test-strcasestr.c: New file.
62336
62337 2007-02-11  Bruno Haible  <bruno@clisp.org>
62338
62339         Ensure O(n) worst-case complexity of c_strcasestr.
62340         * lib/c-strcasestr.c: Include stdbool.h, string.h.
62341         (knuth_morris_pratt): New function.
62342         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
62343         the bookkeeping indicates that it's worth it.
62344         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
62345
62346         * modules/c-strcasestr-tests: New file.
62347         * tests/test-c-strcasestr.c: New file.
62348
62349 2007-02-11  Bruno Haible  <bruno@clisp.org>
62350
62351         Ensure O(n) worst-case complexity of c_strstr.
62352         * lib/c-strstr.c: Include stdbool.h, string.h.
62353         (knuth_morris_pratt): New function.
62354         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62355         bookkeeping indicates that it's worth it.
62356         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
62357
62358         * lib/c-strstr.c: Complete rewrite for maintainability.
62359
62360         * modules/c-strstr-tests: New file.
62361         * tests/test-c-strstr.c: New file.
62362
62363 2007-02-11  Bruno Haible  <bruno@clisp.org>
62364
62365         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
62366         5.2.1 and earlier, whereby \055 was treated just like the range
62367         delimiter '-'.
62368         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62369
62370 2007-02-08  Bruno Haible  <bruno@clisp.org>
62371
62372         * modules/regex (Depends-on): Add stdbool.
62373         Reported by Dalibor Topic <robilad@kaffe.org>.
62374
62375 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62376
62377         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
62378         Prefer returning from main to exiting from it.
62379         Remove unnecessary parens after sizeof.
62380
62381 2007-02-05  Bruno Haible  <bruno@clisp.org>
62382
62383         New module mbssep.
62384         * modules/mbssep: New file.
62385         * lib/mbssep.c: New file.
62386         * lib/string_.h (strsep): Add a conditional link warning.
62387         (mbssep): New declaration.
62388         * m4/mbssep.m4: New file.
62389         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62390         GNULIB_MBSSEP.
62391         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
62392         * MODULES.html.sh (Internationalization functions): Add mbssep.
62393
62394 2007-02-05  Bruno Haible  <bruno@clisp.org>
62395
62396         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
62397         Optimize search in case of 1 delimiter.
62398
62399 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62400
62401         * lib/acl.h: Include sys/types.h before sys/acl.h.
62402
62403 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62404
62405         Merge upstream fix for glibc bugzilla #3957:
62406
62407         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
62408
62409         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
62410         bit for RE_HAT_LISTS_NOT_NEWLINE.
62411         (build_charclass_op): Remove bogus comment.
62412
62413 2007-02-05  Simon Josefsson  <simon@josefsson.org>
62414
62415         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
62416
62417 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62418
62419         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
62420         * lib/memmem.c [!defined _LIBC]: Include config.h.
62421
62422 2007-02-04  Bruno Haible  <bruno@clisp.org>
62423
62424         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
62425         warning message.
62426
62427 2007-02-04  Bruno Haible  <bruno@clisp.org>
62428
62429         New module mbstok_r.
62430         * modules/mbstok_r: New file.
62431         * lib/mbstok_r.c: New file.
62432         * lib/string_.h (strtok_r): Change argument names to match the
62433         comments. Add a conditional link warning.
62434         (mbstok_r): New declaration.
62435         * m4/mbstok_r.m4: New file.
62436         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62437         GNULIB_MBSTOK_R.
62438         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
62439         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
62440
62441 2007-02-04  Bruno Haible  <bruno@clisp.org>
62442
62443         New module mbsspn.
62444         * modules/mbsspn: New file.
62445         * lib/mbsspn.c: New file.
62446         * lib/string_.h (strspn): Add a conditional link warning.
62447         (mbsspn): New declaration.
62448         * m4/mbsspn.m4: New file.
62449         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62450         GNULIB_MBSSPN.
62451         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
62452         * MODULES.html.sh (Internationalization functions): Add mbsspn.
62453
62454 2007-02-04  Bruno Haible  <bruno@clisp.org>
62455
62456         New module mbspbrk.
62457         * modules/mbspbrk: New file.
62458         * lib/mbspbrk.c: New file.
62459         * lib/string_.h (strpbrk): Add a conditional link warning.
62460         (mbspbrk): New declaration.
62461         * m4/mbspbrk.m4: New file.
62462         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62463         GNULIB_MBSPBRK.
62464         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
62465         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
62466
62467 2007-02-04  Bruno Haible  <bruno@clisp.org>
62468
62469         New module mbscspn.
62470         * modules/mbscspn: New file.
62471         * lib/mbscspn.c: New file.
62472         * lib/string_.h (strcspn): Add a conditional link warning.
62473         (mbscspn): New declaration.
62474         * m4/mbscspn.m4: New file.
62475         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62476         GNULIB_MBSCSPN.
62477         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
62478         * MODULES.html.sh (Internationalization functions): Add mbscspn.
62479
62480 2007-02-04  Bruno Haible  <bruno@clisp.org>
62481
62482         New module mbscasestr, reduced goal of strcasestr.
62483         * modules/mbscasestr: New file.
62484         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
62485         (mbscasestr): Renamed from strcasestr.
62486         * lib/strcasestr.c: Don't include mbuiter.h.
62487         (strcasestr): Remove support for multibyte locales.
62488         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
62489         Change the conditional link warning.
62490         (mbscasestr): New declaration.
62491         * m4/mbscasestr.m4: New file.
62492         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
62493         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
62494         REPLACE_STRCASESTR.
62495         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
62496         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62497         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62498         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
62499         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
62500         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62501         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
62502         (Depends-on): Remove mbuiter.
62503         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
62504
62505 2007-02-04  Bruno Haible  <bruno@clisp.org>
62506
62507         Simplify handling of strncasecmp.
62508         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
62509         the conditional link warning.
62510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62511         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
62512         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
62513         * modules/strcase (configure.ac): Don't invoke
62514         gl_STRING_MODULE_INDICATOR.
62515         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
62516
62517 2007-02-04  Bruno Haible  <bruno@clisp.org>
62518
62519         New module mbscasecmp, reduced goal of strcasecmp.
62520         * modules/mbscasecmp: New file.
62521         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
62522         (mbscasecmp): Renamed from strcasecmp.
62523         * lib/strcasecmp.c: Don't include mbuiter.h.
62524         (strcasecmp): Remove support for multibyte locales.
62525         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
62526         Change the conditional link warning.
62527         (mbscasecmp): New declaration.
62528         * m4/mbscasecmp.m4: New file.
62529         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
62530         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
62531         REPLACE_STRCASECMP.
62532         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
62533         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62534         GNULIB_MBSCASECMP.
62535         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
62536         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
62537         * modules/strcase (Files): Remove m4/mbrtowc.m4.
62538         (Depends-on): Remove mbuiter.
62539         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
62540
62541 2007-02-04  Bruno Haible  <bruno@clisp.org>
62542
62543         New module mbsstr. Remove module strstr.
62544         * modules/mbsstr: New file.
62545         * modules/strstr: Remove file.
62546         * lib/mbsstr.c: Renamed from lib/strstr.c.
62547         (mbsstr): Renamed from strstr.
62548         * lib/string_.h (strstr): Remove declaration. Change the conditional
62549         link warning.
62550         (mbsstr): New declaration.
62551         * m4/mbsstr.m4: New file.
62552         * m4/strstr.m4: Remove file.
62553         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
62554         REPLACE_STRSTR.
62555         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
62556         Don't initialize GNULIB_STRSTR.
62557         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
62558         substitute GNULIB_STRSTR and REPLACE_STRSTR.
62559         * MODULES.html.sh (Internationalization functions): Add mbsstr.
62560         (Support for systems lacking ANSI C 89): Remove strstr.
62561
62562 2007-02-04  Bruno Haible  <bruno@clisp.org>
62563
62564         New module mbsrchr.
62565         * modules/mbsrchr: New file.
62566         * lib/mbsrchr.c: New file.
62567         * lib/string_.h (strrchr): Add a conditional link warning.
62568         (mbsrchr): New declaration.
62569         * m4/mbsrchr.m4: New file.
62570         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62571         GNULIB_MBSRCHR.
62572         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
62573         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
62574
62575 2007-02-04  Bruno Haible  <bruno@clisp.org>
62576
62577         New module mbschr.
62578         * modules/mbschr: New file.
62579         * lib/mbschr.c: New file.
62580         * lib/string_.h (strchr): Add a conditional link warning.
62581         (mbschr): New declaration.
62582         * m4/mbschr.m4: New file.
62583         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62584         GNULIB_MBSCHR.
62585         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
62586         * MODULES.html.sh (Internationalization functions): Add mbschr.
62587
62588 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62589
62590         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
62591
62592         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
62593
62594 2007-02-04  Bruno Haible  <bruno@clisp.org>
62595
62596         New module description section 'configure.ac-early'.
62597         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
62598         (func_get_autoconf_early_snippet): New function.
62599         (func_import, func_create_testdir): Use it. Remove special cases for
62600         modules 'extensions' and 'lock'.
62601         * modules/extensions (configure.ac-early): Require
62602         gl_USE_SYSTEM_EXTENSIONS.
62603         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
62604
62605 2007-02-04  Bruno Haible  <bruno@clisp.org>
62606
62607         Make use of gcj-4.3's -fsource and -ftarget option.
62608         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
62609         and if so try the options -fsource and -ftarget.
62610         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
62611         source_version, ftarget_option, target_version arguments.
62612         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
62613         (is_envjavac_oldgcj_14_14_usable): Renamed from
62614         is_envjavac_gcj_14_14_usable.
62615         (is_envjavac_oldgcj_14_13_usable): Renamed from
62616         is_envjavac_gcj_14_13_usable.
62617         (is_gcj_present): Update.
62618         (is_gcj_43, is_gcj43_usable): New functions.
62619         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
62620         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
62621         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
62622         try the options -fsource and -ftarget.
62623
62624 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62625
62626         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
62627         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
62628         larger value.
62629
62630 2007-02-03  Jim Meyering  <jim@meyering.net>
62631
62632         Give tools a better chance to allocate space for very large buffers.
62633         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
62634
62635         Make pwd and readlink work also when run with an unreadable parent dir
62636         on systems with openat support.
62637         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
62638         provided getcwd function, even when we have openat support.
62639         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
62640
62641 2007-02-02  Bruno Haible  <bruno@clisp.org>
62642
62643         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62644         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
62645         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
62646         portability problems if one of these functions is only used on specific
62647         platforms.
62648         Reported by Paul Eggert.
62649
62650 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
62651
62652         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
62653         is causing more trouble than it's curing.
62654         * lib/regex_internal.h (__mempcpy): Remove.
62655         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
62656         (and make the code a tad smaller to boot).
62657         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
62658
62659 2007-02-02  Jim Meyering  <jim@meyering.net>
62660
62661         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
62662         section, not in the Makefile.am: one.
62663
62664 2007-02-02  Eric Blake  <ebb9@byu.net>
62665
62666         * lib/strchrnul.c: Always include config.h first.
62667
62668         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
62669         gnulib strstr is not necessary here.
62670
62671 2007-02-02  Simon Josefsson  <simon@josefsson.org>
62672
62673         * m4/socklen.m4: Fix typo.
62674
62675 2007-02-02  Eric Blake  <ebb9@byu.net>
62676
62677         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
62678         * modules/netinet_in (Makefile.am): Likewise.
62679
62680 2007-02-01  Bruno Haible  <bruno@clisp.org>
62681
62682         * lib/string_.h (GL_LINK_WARNING): New macro.
62683         (strcasecmp, strstr, strcasestr): If provided by the system,
62684         conditionally define as a macro that leads to a warning instead of to
62685         an error.
62686         (strncasecmp): Conditionally define as a macro that leads to a warning.
62687
62688 2007-02-01  Karl Berry  <karl@gnu.org>
62689
62690         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
62691
62692 2007-02-01  Bruno Haible  <bruno@clisp.org>
62693
62694         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
62695         renamings.
62696
62697 2007-02-01  Eric Blake  <ebb9@byu.net>
62698
62699         * modules/regex (Depends-on): Revert dependence on mempcpy.
62700         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
62701         module's definition of mempcpy.
62702         Reported by Paul Eggert.
62703
62704 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62705
62706         * lib/string_.h: If the gnulib module XYZ is not present, undefine
62707         the symbol XYZ before redefining it.  This fixes a problem with
62708         programs that don't use XYZ, when compiled on systems that define
62709         XYZ to something else.
62710
62711 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
62712
62713         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
62714         occurs when "mkdir -m foo" creates a setgid directory that is (1)
62715         writeable to group or other and (2) is intended to have a special
62716         mode bit that is set or cleared.  In such a case, the directory
62717         should be neither group- nor other-writeable until the special
62718         mode bits are right.
62719
62720 2007-01-31  Eric Blake  <ebb9@byu.net>
62721
62722         * modules/mountlist (Depends-on): Add strstr.
62723
62724         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
62725         bug.
62726         * modules/string (Makefile.am): Remove redundant replacement.
62727         * modules/regex (Depends-on): Add mempcpy.
62728
62729 2007-01-31  Bruno Haible  <bruno@clisp.org>
62730
62731         New module description field 'Link'.
62732         * gnulib-tool (func_usage): Document --extract-link-directive.
62733         (sed_extract_prog): Recognize 'Link' directive.
62734         (func_get_link_directive): New function.
62735         (func_import): Show summary of link directives.
62736         Handle --extract-link-directive option.
62737         * modules/acl (Link): New section.
62738         * modules/clock-time (Link): New section.
62739         * modules/euidaccess (Link): New section.
62740         * modules/gettext (Link): New section.
62741         * modules/iconv (Link): New section.
62742         * modules/lock (Link): New section.
62743         * modules/nanosleep (Link): New section.
62744         * modules/readline (Link): New section.
62745
62746 2007-01-27  Bruno Haible  <bruno@clisp.org>
62747
62748         Enforce the use of gnulib modules for unportable <string.h> functions.
62749         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
62750         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
62751         (gl_HEADER_STRING_H_BODY): Require it.
62752         * lib/string_.h: If the gnulib module XYZ is not present, redefine
62753         the symbol XYZ to one that gives a link error.
62754         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
62755         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
62756         * modules/mempcpy (configure.ac): Likewise.
62757         * modules/memrchr (configure.ac): Likewise.
62758         * modules/stpcpy (configure.ac): Likewise.
62759         * modules/stpncpy (configure.ac): Likewise.
62760         * modules/strcase (configure.ac): Likewise.
62761         * modules/strcasestr (configure.ac): Likewise.
62762         * modules/strchrnul (configure.ac): Likewise.
62763         * modules/strdup (configure.ac): Likewise.
62764         * modules/strndup (configure.ac): Likewise.
62765         * modules/strnlen (configure.ac): Likewise.
62766         * modules/strpbrk (configure.ac): Likewise.
62767         * modules/strsep (configure.ac): Likewise.
62768         * modules/strstr (configure.ac): Likewise.
62769         * modules/strtok_r (configure.ac): Likewise.
62770
62771 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
62772
62773         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
62774
62775 2007-01-30  Jim Meyering  <jim@meyering.net>
62776
62777         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
62778
62779 2007-01-29  Bruno Haible  <bruno@clisp.org>
62780
62781         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
62782         * lib/execute.c: Likewise.
62783         * lib/pipe.c: Likewise.
62784         * lib/printf-args.h: Likewise.
62785         * lib/printf-args.c: Likewise.
62786         * lib/printf-parse.c: Likewise.
62787         * lib/vasnprintf.c: Likewise.
62788
62789 2007-01-29  Eric Blake  <ebb9@byu.net>
62790
62791         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
62792         declaration.
62793
62794 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
62795
62796         * lib/strptime.h (strptime): Use 'restrict' for args where
62797         POSIX requires this.
62798         * lib/strptime.c (strptime): Likewise.
62799         Change license notice from LGPL to GPL, since gnulib-tool will
62800         change this as needed.
62801         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
62802         defined.
62803         Include "strptime.h" first, to check interface.
62804         Do not #undef _LIBC and _NL_CURRENT.
62805         Do not include <stdlib.h>; no longer needed.
62806         Include "time_r.h" and declare ptime_locale_status
62807         only if _LIBC is not defined.
62808         (__P): Remove unused macro.
62809         (match_string): Bring back glibc version, but use it only if _LIBC
62810         is defined.
62811         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
62812         Remove unnecessary assertion and abort() call.
62813         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
62814         * m4/strptime.m4: Fix serial number comment.
62815         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
62816         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
62817         (Depends-on): Add time_r.
62818
62819 2007-01-29  Bruno Haible  <bruno@clisp.org>
62820
62821         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62822         strptime.
62823         * modules/strptime (Depends-on): Add stdbool.
62824         * lib/strptime.h: Include <time.h> always. Add comments.
62825
62826 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62827
62828         * modules/strptime: New file.
62829         * lib/strptime.h: New file.
62830         * lib/strptime.c: New file.
62831         * m4/strptime.m4: New file.
62832
62833 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62834
62835         * MODULES.html.sh: New module mpsort.
62836         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
62837
62838         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
62839         a circularity problem with HP-UX ia64 reported by Bob Proulx in
62840         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
62841         All uses changed.
62842         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
62843         All uses changed.
62844         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
62845         to _Restrict_.
62846         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
62847         the parameter matches the prototype.
62848
62849 2007-01-28  Jim Meyering  <jim@meyering.net>
62850
62851         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
62852         sys/time.h here, reverting that part of the previous patch:
62853         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
62854
62855 2007-01-28  Bruno Haible  <bruno@clisp.org>
62856
62857         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
62858         value of $(SYS_TIME_H).
62859         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
62860         remove it conditionally, too. [added by Jim Meyering]
62861         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
62862         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62863         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
62864         GETTIMEOFDAY_REPLACEMENT to 1.
62865
62866 2007-01-28  Bruno Haible  <bruno@clisp.org>
62867
62868         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
62869         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
62870         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
62871         Set UNISTD_H instead of UNISTD_H2.
62872         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
62873
62874 2007-01-28  Bruno Haible  <bruno@clisp.org>
62875
62876         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
62877         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
62878
62879 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62880
62881         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
62882         (func_create_testdir): Ensure C locale for `grep' and `tr'
62883         character ranges.
62884         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
62885         ACLOCAL_AMFLAGS parsing state machine.
62886
62887 2007-01-27  Bruno Haible  <bruno@clisp.org>
62888
62889         * modules/unistr/base: Update.
62890
62891 2007-01-27  Bruno Haible  <bruno@clisp.org>
62892
62893         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
62894         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
62895         * modules/unistr/u32-mbtouc-unsafe: Renamed from
62896         modules/unistr/u32-mbtouc.
62897         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
62898         * lib/unistr.h: Update.
62899         * lib/linebreak.c: Update.
62900         * modules/unistr/u32-mbtouc: Renamed from
62901         modules/unistr/u32-mbtouc-safe.
62902         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
62903         * lib/unistr.h: Update.
62904         * lib/unistr/u32-to-u8.c: Update.
62905         * lib/unistr/u32-to-u16.c: Update.
62906
62907 2007-01-27  Bruno Haible  <bruno@clisp.org>
62908
62909         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
62910         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
62911         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
62912         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
62913         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
62914         * modules/unistr/u16-mbtouc-unsafe: Renamed from
62915         modules/unistr/u16-mbtouc.
62916         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
62917         * lib/unistr.h: Update.
62918         * lib/linebreak.c: Update.
62919         * modules/linebreak: Update.
62920         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
62921         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
62922         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
62923         * modules/unistr/u16-mbtouc: Renamed from
62924         modules/unistr/u16-mbtouc-safe.
62925         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
62926         * lib/unistr.h: Update.
62927         * lib/unistr/u16-to-u8.c: Update.
62928         * modules/unistr/u16-to-u8: Update.
62929         * lib/unistr/u16-to-u32.c: Update.
62930         * modules/unistr/u16-to-u32: Update.
62931
62932 2007-01-27  Bruno Haible  <bruno@clisp.org>
62933
62934         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
62935         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
62936         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
62937         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
62938         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
62939         * modules/unistr/u8-mbtouc-unsafe: Renamed from
62940         modules/unistr/u8-mbtouc.
62941         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
62942         * lib/unistr.h: Update.
62943         * lib/striconveh.c: Update.
62944         * modules/striconveh: Update.
62945         * lib/linebreak.c: Update.
62946         * modules/linebreak: Update.
62947         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
62948         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
62949         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
62950         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
62951         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
62952         * lib/unistr.h: Update.
62953         * lib/striconveh.c: Update.
62954         * modules/striconveh: Update.
62955         * lib/unistr/u8-to-u16.c: Update.
62956         * modules/unistr/u8-to-u16: Update.
62957         * lib/unistr/u8-to-u32.c: Update.
62958         * modules/unistr/u8-to-u32: Update.
62959
62960 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62961
62962         Sync from Libtool.
62963         * lib/argz.c: Do not include strings.h nor memory.h, include
62964         string.h unconditionally.  Patch by Simon Josefsson.
62965
62966 2007-01-27  Bruno Haible  <bruno@clisp.org>
62967
62968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
62969         from gl_HEADER_STRING_H_BODY.
62970         (gl_HEADER_STRING_H_BODY): Require it.
62971         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
62972         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62973         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62974         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62975         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62976         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
62977         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62978         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62979         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
62980         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62981         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62982         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
62983         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62984         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62985         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62986
62987 2007-01-27  Bruno Haible  <bruno@clisp.org>
62988
62989         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
62990         check_PROGRAMS into noinst_PROGRAMS.
62991         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
62992         check_PROGRAMS in this case.
62993         (func_import): Set for_test to false.
62994         (func_create_testdir): Set for_test to true.
62995
62996 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62997             Bruno Haible  <bruno@clisp.org>
62998
62999         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63000         (Depends-on): Add string.
63001         (Includes): Use <string.h> instead of strcasestr.h.
63002         * modules/string (Makefile.am): Also substitute the value of
63003         REPLACE_STRCASESTR.
63004         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63005         assume strcasestr is declared in <string.h> not <strings.h>. Also
63006         set REPLACE_STRCASESTR.
63007         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63008         REPLACE_STRCASESTR.
63009         * lib/strcasestr.h: Remove file.
63010         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63011         * lib/string_.h (strcasestr): New declaration.
63012
63013 2007-01-27  Bruno Haible  <bruno@clisp.org>
63014
63015         * lib/string_.h: Use 'extern'.
63016
63017 2007-01-27  Jim Meyering  <jim@meyering.net>
63018
63019         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63020         of set-but-not-used local, "q".
63021
63022         * lib/mempcpy.c: Include <config.h> before <string.h>.
63023         This fixes a compilation error on HP-UX, due to the system's
63024         "restrict"-using mempcpy prototype.
63025
63026 2007-01-26  Bruno Haible  <bruno@clisp.org>
63027
63028         Small optimization.
63029         * lib/javacomp.c: Include c-strstr.h.
63030          (is_envjavac_gcj): Use c_strstr instead of strstr.
63031         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63032
63033 2007-01-26  Bruno Haible  <bruno@clisp.org>
63034
63035         * MODULES.html.sh (Unicode string functions): Add the new modules.
63036
63037         * modules/uniconv/u32-strconv-to-locale: New file.
63038         * lib/uniconv/u32-strconv-to-locale.c: New file.
63039
63040         * modules/uniconv/u16-strconv-to-locale: New file.
63041         * lib/uniconv/u16-strconv-to-locale.c: New file.
63042
63043         * modules/uniconv/u8-strconv-to-locale: New file.
63044         * lib/uniconv/u8-strconv-to-locale.c: New file.
63045
63046         * modules/uniconv/u32-strconv-from-locale: New file.
63047         * lib/uniconv/u32-strconv-from-locale.c: New file.
63048
63049         * modules/uniconv/u16-strconv-from-locale: New file.
63050         * lib/uniconv/u16-strconv-from-locale.c: New file.
63051
63052         * modules/uniconv/u8-strconv-from-locale: New file.
63053         * lib/uniconv/u8-strconv-from-locale.c: New file.
63054
63055         * modules/uniconv/u32-strconv-to-enc: New file.
63056         * lib/uniconv/u32-strconv-to-enc.c: New file.
63057         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63058         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63059
63060         * modules/uniconv/u16-strconv-to-enc: New file.
63061         * lib/uniconv/u16-strconv-to-enc.c: New file.
63062         * lib/uniconv/u-strconv-to-enc.h: New file.
63063         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63064         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63065
63066         * modules/uniconv/u8-strconv-to-enc: New file.
63067         * lib/uniconv/u8-strconv-to-enc.c: New file.
63068         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63069         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63070
63071         * modules/uniconv/u32-strconv-from-enc: New file.
63072         * lib/uniconv/u32-strconv-from-enc.c: New file.
63073         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63074         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63075
63076         * modules/uniconv/u16-strconv-from-enc: New file.
63077         * lib/uniconv/u16-strconv-from-enc.c: New file.
63078         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63079         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63080
63081         * modules/uniconv/u8-strconv-from-enc: New file.
63082         * lib/uniconv/u8-strconv-from-enc.c: New file.
63083         * lib/uniconv/u-strconv-from-enc.h: New file.
63084         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63085         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63086
63087         * modules/uniconv/u32-conv-from-enc: New file.
63088         * lib/uniconv/u32-conv-from-enc.c: New file.
63089         * modules/uniconv/u32-conv-from-enc-tests: New file.
63090         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63091
63092         * modules/uniconv/u16-conv-from-enc: New file.
63093         * lib/uniconv/u16-conv-from-enc.c: New file.
63094         * lib/uniconv/u-conv-from-enc.h: New file.
63095         * modules/uniconv/u16-conv-from-enc-tests: New file.
63096         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63097
63098         * modules/uniconv/u8-conv-from-enc: New file.
63099         * lib/uniconv/u8-conv-from-enc.c: New file.
63100         * modules/uniconv/u8-conv-from-enc-tests: New file.
63101         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63102
63103         * modules/uniconv/base: New file.
63104         * lib/uniconv.h: New file.
63105
63106 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63107
63108         * doc/gnulib-tool.texi (Initial import): Update to match current
63109         behavior with strdup module.
63110         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63111         * lib/memmem.h: Remove; all uses removed.  This is now done
63112         by <string.h>.
63113         * lib/mempcpy.h: Likewise.
63114         * lib/memrchr.h: Likewise.
63115         * lib/stpcpy.h: Likewise.
63116         * lib/stpncpy.h: Likewise.
63117         * lib/strcase.h: Likewise.
63118         * lib/strchrnul.h: Likewise.
63119         * lib/strdup.h: Likewise.
63120         * lib/strndup.h: Likewise.
63121         * lib/strnlen.h: Likewise.
63122         * lib/strpbrk.h: Likewise.
63123         * lib/strsep.h: Likewise.
63124         * lib/strstr.h: Likewise.
63125         * lib/strtok_r.h: Likewise.
63126         * lib/string_.h: New file.
63127         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
63128         Rely on <string.h> instead.
63129         * lib/canon-host.c: Likewise.
63130         * lib/chdir-long.c: Likewise.
63131         * lib/concatpath.c: Likewise.
63132         * lib/exclude.c: Likewise.
63133         * lib/fchdir.c: Likewise.
63134         * lib/getaddrinfo.c: Likewise.
63135         * lib/getcwd.c: Likewise.
63136         * lib/getsubopt.c: Likewise.
63137         * lib/glob.c: Likewise.
63138         * lib/hard-locale.c: Likewise.
63139         * lib/iconvme.c: Likewise.
63140         * lib/javacomp.c: Likewise.
63141         * lib/mempcpy.c: Likewise.
63142         * lib/memrchr.c: Likewise.
63143         * lib/regex_internal.h: Likewise.
63144         * lib/stpncpy.c: Likewise.
63145         * lib/strcasecmp.c: Likewise.
63146         * lib/strchrnul.c: Likewise.
63147         * lib/strdup.c: Likewise.
63148         * lib/striconv.c: Likewise.
63149         * lib/striconveh.c: Likewise.
63150         * lib/striconveha.c: Likewise.
63151         * lib/strncasecmp.c: Likewise.
63152         * lib/strndup.c: Likewise.
63153         * lib/strnlen.c: Likewise.
63154         * lib/strsep.c: Likewise.
63155         * lib/strstr.c: Likewise.
63156         * lib/strtok_r.c: Likewise.
63157         * lib/userspec.c: Likewise.
63158         * lib/w32spawn.h: Likewise.
63159         * lib/xstrndup.c: Likewise.
63160         * lib/mountlist.c (strstr): Remove decl.
63161         * m4/string_h.m4: New file.
63162         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
63163         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
63164         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
63165         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
63166         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
63167         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
63168         Set REPLACE_STRCASECMP if necessary.
63169         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
63170         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
63171         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
63172         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
63173         HAVE_DECL_STRDUP if necessary.
63174         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
63175         since gl_FUNC_STRNDUP does that now.
63176         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63177         Check for decl here...
63178         (gl_PREREQ_STRNLEN): ... not here.
63179         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63180         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63181         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63182         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63183         necessary.
63184         * modules/string: New file.
63185         * modules/memmem (Files): Remove special-purpose include file.
63186         (Depends-on): Add string.
63187         (Include): Include <string.h>, not the removed file.
63188         * modules/mempcpy: Likewise.
63189         * modules/memrchr: Likewise.
63190         * modules/stpcpy: Likewise.
63191         * modules/stpncpy: Likewise.
63192         * modules/strcase: Likewise.
63193         * modules/strchrnul: Likewise.
63194         * modules/strdup: Likewise.
63195         * modules/strndup: Likewise.
63196         * modules/strnlen: Likewise.
63197         * modules/strpbrk: Likewise.
63198         * modules/strsep: Likewise.
63199         * modules/strstr: Likewise.
63200         * modules/strtok_r: Likewise.
63201         * tests/test-dirname.c: Don't include "strdup.h", since
63202         <string.h> now suffices.
63203         * tests/test-memmem.c: Don't include "memmem.h", since
63204         <string.h> now suffices.
63205
63206 2007-01-25  Bruno Haible  <bruno@clisp.org>
63207
63208         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
63209         *resultp is 0.
63210
63211         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
63212         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
63213         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
63214         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
63215
63216         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
63217         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
63218         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
63219         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
63220         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
63221         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
63222
63223 2007-01-24  Bruno Haible  <bruno@clisp.org>
63224
63225         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
63226         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
63227         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
63228         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
63229         gl_FUNC_FTS_CORE.
63230         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
63231         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
63232         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63233         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
63234         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
63235         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
63236         gl_FUNC_FCHOWNAT.
63237         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
63238         gl_FUNC_STRFTIME.
63239         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
63240         Reported by Ralf Wildenhues.
63241
63242 2007-01-24  Bruno Haible  <bruno@clisp.org>
63243
63244         Drop AC_REQUIRE calls that are redundant with the module dependencies.
63245         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
63246         gl_GETADDRINFO.
63247         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
63248         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
63249         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
63250
63251 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
63252
63253         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
63254         Don't use 'exit'; just return from 'main'.
63255         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
63256
63257         * lib/fnmatch_.h: Readjust white space and comments to match
63258         glibc, to avoid spurious diffs.
63259
63260 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63261
63262         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
63263         2004-12-01 change by Jakub Jelinek, since this code won't compile
63264         if !LIBC.  Problem reported by Bob Proulx.
63265
63266 2007-01-23  Bruno Haible  <bruno@clisp.org>
63267
63268         * lib/striconveh.c: Include c-strcaseeq.h.
63269         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
63270         * modules/striconveh (Depends-on): Add c-strcaseeq.
63271
63272 2007-01-23  Bruno Haible  <bruno@clisp.org>
63273
63274         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
63275
63276         * modules/c-strcaseeq: New file.
63277         * lib/c-strcaseeq.h: New file.
63278
63279         * modules/streq: New file.
63280         * lib/streq.h: New file.
63281
63282 2007-01-23  Bruno Haible  <bruno@clisp.org>
63283
63284         * modules/striconveha-tests: New file.
63285         * tests/test-striconveha.c: New file.
63286
63287         * lib/striconveha.h: Include <stdbool.h>.
63288         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
63289         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
63290         (mem_iconveha_notranslit): Renamed from mem_iconveha.
63291         (mem_iconveha): New function.
63292         (str_iconveha_notranslit): Renamed from str_iconveha.
63293         (str_iconveha): New function.
63294         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
63295         c-strcase.
63296
63297 2007-01-23  Bruno Haible  <bruno@clisp.org>
63298
63299         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
63300         encodings without forgiving before trying any encoding with handler.
63301         (str_iconveha): Try all encodings without forgiving before trying any
63302         encoding with handler.
63303
63304 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63305
63306         Import the following changes from libc.
63307
63308         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63309
63310         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
63311
63312         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63313
63314         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
63315         normal_bracket label.
63316
63317         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
63318
63319         [BZ #361]
63320         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
63321         to normal_bracket after fetching the next character.
63322
63323 2007-01-22  Bruno Haible  <bruno@clisp.org>
63324
63325         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
63326         argument.
63327         * lib/striconveh.c (iconv_carefully_1): New function.
63328         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
63329         argument.
63330         (str_cd_iconveh): Update.
63331         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
63332         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
63333         * tests/test-striconveh.c (MAGIC): New macro.
63334         (new_offsets): New function.
63335         (main): Test call with and without offsets.
63336
63337 2007-01-22  Bruno Haible  <bruno@clisp.org>
63338
63339         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
63340         * modules/sys_select (Makefile.am): Likewise.
63341         * modules/sys_socket (Makefile.am): Likewise.
63342         * modules/sys_time (Makefile.am): Likewise.
63343
63344 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63345
63346         * modules/gettimeofday (License): Change from GPL to LGPL, since
63347         gettimeofday is a library function.
63348
63349 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63350
63351         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
63352
63353 2007-01-21  Bruno Haible  <bruno@clisp.org>
63354
63355         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
63356
63357 2007-01-21  Bruno Haible  <bruno@clisp.org>
63358
63359         * modules/striconveha: New file.
63360         * lib/striconveha.h: New file.
63361         * lib/striconveha.c: New file.
63362         * MODULES.html.sh (Internationalization functions): Add striconveha.
63363         * lib/striconv.c (str_iconv): Optimize the case of an empty input
63364         string.
63365         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
63366
63367 2007-01-21  Bruno Haible  <bruno@clisp.org>
63368
63369         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
63370         * lib/striconveh.c (str_iconveh): Likewise.
63371
63372 2007-01-21  Bruno Haible  <bruno@clisp.org>
63373
63374         * lib/striconveh.h (mem_iconveh): New declaration.
63375         * lib/striconveh.c (mem_iconveh): New function.
63376         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
63377
63378 2007-01-21  Bruno Haible  <bruno@clisp.org>
63379
63380         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
63381
63382         * lib/striconveh.h (mem_cd_iconveh): Change specification.
63383         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
63384         original result buffer.
63385         (str_cd_iconveh): Update.
63386         * tests/test-striconveh.c (main): Update.
63387
63388         * lib/striconv.h (mem_cd_iconv): Change specification.
63389         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
63390         result buffer.
63391         (str_cd_iconv): Update.
63392         * tests/test-striconv.c (main): Update.
63393
63394 2007-01-21  Bruno Haible  <bruno@clisp.org>
63395
63396         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
63397
63398 2007-01-20  Jim Meyering  <jim@meyering.net>
63399
63400         * lib/userspec.c (parse_with_separator): If a user or group string
63401         starts with "+", skip the corresponding name-to-ID look-up, since
63402         such a look-up must fail: user and group names may not include "+".
63403
63404 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63405
63406         * lib/poll.c: Include sys/time.h and time.h unconditionally,
63407         since we now assume the sys_time module.
63408         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
63409         check for sys/time.h; no longer needed.
63410         * modules/poll (Depends-on): Depend on sys_time.
63411
63412 2007-01-18  Bruno Haible  <bruno@clisp.org>
63413
63414         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
63415         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63416
63417         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
63418         gettimeofday.
63419
63420         * tests/test-gettimeofday.c: Include <time.h>.
63421         (dummy): Remove variable.
63422
63423         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
63424         gl_HEADER_SYS_TIME_H.
63425         (gl_HEADER_SYS_TIME_H): New macro.
63426
63427         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
63428         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63429         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
63430         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
63431         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63432         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
63433         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
63434         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63435         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
63436         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
63437         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63438
63439         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
63440         last change; it caused a compilation error when cross-compiling to
63441         Cygwin.
63442
63443 2007-01-18  Jim Meyering  <jim@meyering.net>
63444
63445         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
63446         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
63447         than the race-prone "test -d sys || mkdir sys".
63448         (configure.ac): Use AC_PROG_MKDIR_P.
63449         * modules/sys_select: Likewise.
63450         * modules/sys_socket: Likewise.
63451         * modules/sys_time: Likewise.
63452
63453 2007-01-18  Eric Blake  <ebb9@byu.net>
63454
63455         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
63456         replace gettimeofday.
63457         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
63458         name, to avoid infinite recursion.
63459
63460 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
63461
63462         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
63463         module sys_time.
63464         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
63465         assume timespec.h defines struct timeval.
63466         * lib/settime.c: Likewise.
63467         * lib/utimens.c: Likewise.
63468         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
63469         since we now assume the gettimeofday module.
63470         * lib/tempname.c (__gen_tempname): Likewise.
63471         * lib/gettimeofday.h: Remove.
63472         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
63473         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
63474         Include <time.h>, for 'time()'.
63475         (localtime_buffer_addr): Also use this workaround if
63476         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
63477         to simplify the uses.  All uses changed.
63478         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
63479         that #undef is inside {}, and 'const' follows type name consistently.
63480         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
63481         (gettimeofday): Do not use the maximum possible value for
63482         tv->tv_usec, since that might break usages other than ls.c.
63483         Instead, we'll leave ls.c alone.  This undoes today's patch
63484         by Bruno.  Add a compile-time warning for 1s-clock resolution;
63485         we've never observed the problem but might as well keep the
63486         canary.
63487         * lib/nanosleep.c: Include timespec.h first, for interface check.
63488         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
63489         now assume the sys_time module.
63490         * lib/tempname.c: Likewise.
63491         * lib/timespec.h: Likewise.
63492         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
63493         needed.
63494         * lib/strftime.c: Likewise.
63495         * lib/timespec.h: Likewise.
63496         * lib/posixtm.c: Include posixtm.h first, for interface check.
63497         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
63498         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
63499         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
63500         * lib/sys_time_.h: New file.
63501         * lib/timespec.h (struct timespec): Use long int, not long.
63502         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63503         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
63504         Remove obsolescent call to AC_HEADER_TIME.
63505         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63506         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63507         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63508         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
63509         Likewise.
63510         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
63511         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
63512         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
63513         into the sys_time module.  Check for gettimeofday just once.
63514         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
63515         for gettimeofday signature to just check the signature.  Merely
63516         compile it, since linking doesn't test signature.  Improve test for
63517         whether gettimeofday.o is actually needed.
63518         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
63519         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
63520         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
63521         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63522         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
63523         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
63524         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
63525         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
63526         than worrying about sys/time.h.
63527         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63528         Don't bother worrying about TIME_WITH_SYS_TIME.
63529         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63530         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
63531         * m4/sys_time_h.m4: New file.
63532         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
63533         Don't include sys/time.h.  Return from main rather than exiting.
63534         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
63535         all uses changed.
63536         * modules/gethrxtime (Depends-on): Add sys_time.
63537         * modules/gettime (Depends-on): Likewise.
63538         * modules/gettimeofday (Depends-on): Likewise.
63539         * modules/nanosleep (Depends-on): Likewise.
63540         * modules/settime (Depends-on): Likewise.
63541         * modules/tempname (Depends-on): Likewise.
63542         * modules/utimens (Depends-on): Likewise.
63543         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
63544         (Include): Change back to <sys/time.h>.
63545         (Maintainer): Add self.
63546         * modules/sys_time: New file.
63547         * modules/tempname (Depends-on): Add gettimeofday.
63548         * tests/test-gettimeofday.c: Include <sys/time.h>
63549         rather than gettimeofday.h.
63550
63551 2007-01-17  Bruno Haible  <bruno@clisp.org>
63552
63553         * gnulib-tool (func_get_license): Revert last patch. Instead, let
63554         the license default to GPL.
63555         (func_create_testdir): Don't complain if a module is LGPL and its
63556         tests module depends on GPLed modules.
63557
63558 2007-01-17  Bruno Haible  <bruno@clisp.org>
63559
63560         * lib/gettimeofday.c (gettimeofday): Add code for the case
63561         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
63562         maximum possible value for tv->tv_usec, rather than the minimum one.
63563
63564 2005-10-08  Martin Lambers  <marlam@marlam.de>
63565 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63566 2007-01-16  Bruno Haible  <bruno@clisp.org>
63567
63568         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
63569         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
63570         gl_FUNC_GETTIMEOFDAY.
63571         (Include): Add gettimeofday.h.
63572         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
63573         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
63574         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
63575         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
63576         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
63577         * lib/gettimeofday.h: New file.
63578         * lib/gettimeofday.c: Include <sys/timeb.h>.
63579         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
63580         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63581         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
63582         fall back on time().
63583
63584         * tests/test-gettimeofday.c: New file.
63585         * modules/gettimeofday-tests: New file.
63586
63587 2007-01-16  Eric Blake  <ebb9@byu.net>
63588
63589         * modules/fnmatch (Depends-on): Depend on wchar.
63590         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
63591         * m4/fnmatch.m4: Likewise.
63592         * modules/mbchar (Makefile.am): Assume <wchar.h>.
63593         * m4/mbchar.m4: Likewise.
63594         * modules/mbswidth (Depends-on): Depend on wchar.
63595         * lib/mbswidth.c: Assume <wchar.h>.
63596         * m4/mbswidth.m4: Likewise.
63597         * modules/quotearg (Depends-on): Depend on wchar.
63598         * lib/quotearg.c: Assume <wchar.h>.
63599         * m4/quotearg.m4: Likewise.
63600         * modules/regex (Depends-on): Depend on wchar.
63601         * lib/regex_internal.h: Assume <wchar.h>.
63602         * m4/regex.m4: Likewise.
63603         * modules/stdint (Depends-on): Depend on wchar.
63604         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
63605         * m4/stdint.m4: Likewise.
63606         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
63607         * modules/strftime (Depends-on): Depend on wchar.
63608         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
63609         * modules/strtol (Depends-on): Depend on wchar.
63610         * lib/strtol.c: Assume <wchar.h>.
63611         * modules/wcwidth (Depends-on): Depend on wchar.
63612         * lib/wcwidth.h: Assume <wchar.h>.
63613         * m4/wcwidth.m4: Likewise.
63614
63615 2007-01-16  Bruno Haible  <bruno@clisp.org>
63616
63617         * modules/csharpexec-script: New, created from...
63618         * modules/csharpexec: ... this.
63619
63620 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63621
63622         * modules/javaexec-script: New, created from...
63623         * modules/javaexec: ... this.
63624
63625 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63626
63627         * modules/poll (Dependencies): Add sys_select.
63628
63629 2007-01-15  Jim Meyering  <jim@meyering.net>
63630
63631         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
63632         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
63633         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
63634         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
63635
63636 2007-01-15  Bruno Haible  <bruno@clisp.org>
63637
63638         * modules/striconveh: New file.
63639         * lib/striconveh.h: New file.
63640         * lib/striconveh.c: New file.
63641         * MODULES.html.sh (Internationalization functions): Add striconveh.
63642
63643         * modules/striconveh-tests: New file.
63644         * tests/test-striconveh.c: New file.
63645
63646 2007-01-15  Bruno Haible  <bruno@clisp.org>
63647
63648         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
63649         not from GNU libiconv or GNU libc.
63650
63651 2007-01-15  Bruno Haible  <bruno@clisp.org>
63652
63653         * doc/gnulib-intro.texi (Copyright): Explain the different license
63654         terms for module descriptions, autoconf macros, tests, documentation.
63655
63656 2007-01-14  Bruno Haible  <bruno@clisp.org>
63657
63658         * modules/striconv-tests: New file.
63659         * tests/test-striconv.c: New file.
63660
63661 2007-01-14  Bruno Haible  <bruno@clisp.org>
63662
63663         * modules/iconv-tests: New file.
63664         * tests/test-iconv.c: New file.
63665
63666 2007-01-14  Bruno Haible  <bruno@clisp.org>
63667
63668         * gnulib-tool (func_get_license): For test modules, use the license of
63669         the main module.
63670
63671 2007-01-14  Bruno Haible  <bruno@clisp.org>
63672
63673         * modules/iconv (Include): Clarify that <iconv.h> can only be included
63674         if iconv is found to exist.
63675
63676 2007-01-14  Bruno Haible  <bruno@clisp.org>
63677
63678         * modules/c-ctype-tests: New file.
63679         * tests/test-c-ctype.c: New file.
63680
63681 2007-01-14  Bruno Haible  <bruno@clisp.org>
63682
63683         * modules/binary-io-tests: New file.
63684         * tests/test-binary-io.sh: New file.
63685         * tests/test-binary-io.c: New file.
63686
63687 2007-01-14  Bruno Haible  <bruno@clisp.org>
63688
63689         * modules/array-oset-tests: New file.
63690         * tests/test-array_oset.c: New file.
63691
63692 2007-01-14  Bruno Haible  <bruno@clisp.org>
63693
63694         * modules/array-list-tests: New file.
63695         * tests/test-array_list.c: New file.
63696
63697 2007-01-14  Bruno Haible  <bruno@clisp.org>
63698
63699         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
63700         and make.
63701         Reported by Simon Josefsson in
63702         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
63703
63704 2007-01-14  Bruno Haible  <bruno@clisp.org>
63705
63706         * modules/allocsa-tests: New file.
63707         * tests/test-allocsa.c: New file.
63708
63709 2007-01-14  Bruno Haible  <bruno@clisp.org>
63710
63711         * modules/fchdir (Depends-on): Add absolute-header.
63712         * modules/unistd (Depends-on): Likewise.
63713
63714 2006-12-30  Bruno Haible  <bruno@clisp.org>
63715
63716         * modules/fchdir: New file.
63717         * modules/unistd (Files): Add lib/unistd_.h.
63718         (Makefile.am): Generate unistd.h from unistd_.h.
63719         * lib/fchdir.c: New file.
63720         * lib/dirent_.h: New file.
63721         * lib/unistd_.h: New file.
63722         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
63723         * m4/fchdir.m4: New file.
63724         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
63725         (gl_HEADER_UNISTD): Invoke it.
63726         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
63727         function.
63728         * lib/backupfile.c (opendir, closedir): Undefine.
63729         * lib/chown.c (open, close): Undefine.
63730         * lib/clean-temp.c (open, close): Undefine.
63731         * lib/copy-file.c (open, close): Undefine.
63732         * lib/execute.c (open, close): Undefine.
63733         * lib/fsusage.c (open, close): Undefine.
63734         * lib/gc-gnulib.c (open, close): Undefine.
63735         * lib/getcwd.c (opendir, closedir): Undefine.
63736         * lib/glob.c (opendir, closedir): Undefine.
63737         * lib/javacomp.c (open, close): Undefine.
63738         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
63739         * lib/openat-proc.c (open, close): Undefine.
63740         * lib/pagealign_alloc.c (open, close): Undefine.
63741         * lib/pipe.c (open, close): Undefine.
63742         * lib/progreloc.c (open, close): Undefine.
63743         * lib/savedir.c (opendir, closedir): Undefine.
63744         * lib/utime.c (open, close): Undefine.
63745         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
63746
63747 2007-01-10  Bruno Haible  <bruno@clisp.org>
63748
63749         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
63750
63751 2007-01-12  Eric Blake  <ebb9@byu.net>
63752
63753         Provide a robust <wchar.h>.  Further simplifications are now
63754         possible in other modules, but not included here.
63755         * modules/wchar: New module.
63756         * m4/wchar.m4: New file.
63757         * lib/wchar_.h: Likewise.
63758         * modules/mbchar (Depends-on): Depend on wchar, as the first use
63759         of the new module.
63760         * MODULES.html.sh (Extended multibyte and wide character utilities):
63761         New section.
63762
63763 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
63764
63765         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
63766         to a reasonable default for memory allocation.
63767         (xreadlink): Don't allocate a huge buffer, to work around a buggy
63768         file system that reports garbage st_size values for symlinks.
63769         Problem reported by Liyang Hu.
63770
63771 2007-01-11  Simon Josefsson  <simon@josefsson.org>
63772
63773         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
63774         Emacs .#* auto-save files).
63775
63776 2007-01-11  Bruno Haible  <bruno@clisp.org>
63777
63778         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
63779         directory.
63780
63781 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63782
63783         Use @...@ consistently in lib/wctype_.h.
63784         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
63785         on it being set to 1 or 0.
63786         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
63787         go back to AC_SUBSTing it.
63788         * modules/wctype (Makefile.am): Undo previous change.
63789
63790 2007-01-10  Eric Blake  <ebb9@byu.net>
63791
63792         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
63793         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
63794         * modules/wctype (Makefile.am): Likewise.
63795         Reported by Chris McGuire.
63796
63797 2007-01-10  Jim Meyering  <jim@meyering.net>
63798
63799         fts.c: a small readability/maintainability improvement
63800         * lib/fts.c (fts_read): Make this code slightly more readable and
63801         maintainable by hoisting the "sp->fts_cur = p" assignments to
63802         immediately follow the statements that set P.  Derived from
63803         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
63804
63805 2007-01-10  Eric Blake  <ebb9@byu.net>
63806
63807         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
63808         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
63809         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63810         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
63811         Reported by Chris McGuire.
63812
63813 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63814
63815         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
63816         in sed script.
63817
63818 2007-01-09  Bruno Haible  <bruno@clisp.org>
63819
63820         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
63821         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
63822         variables.
63823         (func_module): Use them.
63824
63825 2007-01-09  Bruno Haible  <bruno@clisp.org>
63826
63827         * modules/unistr/base: New file.
63828         * lib/unistr.h: New file.
63829
63830         * modules/unistr/u8-to-u16: New file.
63831         * lib/unistr/u8-to-u16.c: New file.
63832
63833         * modules/unistr/u8-to-u32: New file.
63834         * lib/unistr/u8-to-u32.c: New file.
63835
63836         * modules/unistr/u16-to-u8: New file.
63837         * lib/unistr/u16-to-u8.c: New file.
63838
63839         * modules/unistr/u16-to-u32: New file.
63840         * lib/unistr/u16-to-u32.c: New file.
63841
63842         * modules/unistr/u32-to-u8: New file.
63843         * lib/unistr/u32-to-u8.c: New file.
63844
63845         * modules/unistr/u32-to-u16: New file.
63846         * lib/unistr/u32-to-u16.c: New file.
63847
63848         * modules/unistr/u8-check: New file.
63849         * modules/unistr/u16-check: New file.
63850         * modules/unistr/u32-check: New file.
63851         * lib/unistr/u8-check.c: New file.
63852         * lib/unistr/u16-check.c: New file.
63853         * lib/unistr/u32-check.c: New file.
63854
63855         * modules/unistr/u8-chr: New file.
63856         * modules/unistr/u16-chr: New file.
63857         * modules/unistr/u32-chr: New file.
63858         * lib/unistr/u8-chr.c: New file.
63859         * lib/unistr/u16-chr.c: New file.
63860         * lib/unistr/u32-chr.c: New file.
63861
63862         * modules/unistr/u8-cmp: New file.
63863         * modules/unistr/u16-cmp: New file.
63864         * modules/unistr/u32-cmp: New file.
63865         * lib/unistr/u8-cmp.c: New file.
63866         * lib/unistr/u16-cmp.c: New file.
63867         * lib/unistr/u32-cmp.c: New file.
63868
63869         * modules/unistr/u8-cpy: New file.
63870         * modules/unistr/u16-cpy: New file.
63871         * modules/unistr/u32-cpy: New file.
63872         * lib/unistr/u8-cpy.c: New file.
63873         * lib/unistr/u16-cpy.c: New file.
63874         * lib/unistr/u32-cpy.c: New file.
63875         * lib/unistr/u-cpy.h: New file.
63876
63877         * modules/unistr/u8-cpy-alloc: New file.
63878         * modules/unistr/u16-cpy-alloc: New file.
63879         * modules/unistr/u32-cpy-alloc: New file.
63880         * lib/unistr/u8-cpy-alloc.c: New file.
63881         * lib/unistr/u16-cpy-alloc.c: New file.
63882         * lib/unistr/u32-cpy-alloc.c: New file.
63883         * lib/unistr/u-cpy-alloc.h: New file.
63884
63885         * modules/unistr/u8-endswith: New file.
63886         * modules/unistr/u16-endswith: New file.
63887         * modules/unistr/u32-endswith: New file.
63888         * lib/unistr/u8-endswith.c: New file.
63889         * lib/unistr/u16-endswith.c: New file.
63890         * lib/unistr/u32-endswith.c: New file.
63891         * lib/unistr/u-endswith.h: New file.
63892
63893         * modules/unistr/u8-mblen: New file.
63894         * modules/unistr/u16-mblen: New file.
63895         * modules/unistr/u32-mblen: New file.
63896         * lib/unistr/u8-mblen.c: New file.
63897         * lib/unistr/u16-mblen.c: New file.
63898         * lib/unistr/u32-mblen.c: New file.
63899
63900         * modules/unistr/u8-mbtouc: New file.
63901         * modules/unistr/u16-mbtouc: New file.
63902         * modules/unistr/u32-mbtouc: New file.
63903         * lib/unistr/u8-mbtouc.c: New file.
63904         * lib/unistr/u16-mbtouc.c: New file.
63905         * lib/unistr/u32-mbtouc.c: New file.
63906
63907         * modules/unistr/u8-mbtouc-safe: New file.
63908         * modules/unistr/u16-mbtouc-safe: New file.
63909         * modules/unistr/u32-mbtouc-safe: New file.
63910         * lib/unistr/u8-mbtouc-safe.c: New file.
63911         * lib/unistr/u16-mbtouc-safe.c: New file.
63912         * lib/unistr/u32-mbtouc-safe.c: New file.
63913
63914         * modules/unistr/u8-move: New file.
63915         * modules/unistr/u16-move: New file.
63916         * modules/unistr/u32-move: New file.
63917         * lib/unistr/u8-move.c: New file.
63918         * lib/unistr/u16-move.c: New file.
63919         * lib/unistr/u32-move.c: New file.
63920         * lib/unistr/u-move.h: New file.
63921
63922         * modules/unistr/u8-next: New file.
63923         * modules/unistr/u16-next: New file.
63924         * modules/unistr/u32-next: New file.
63925         * lib/unistr/u8-next.c: New file.
63926         * lib/unistr/u16-next.c: New file.
63927         * lib/unistr/u32-next.c: New file.
63928
63929         * modules/unistr/u8-prev: New file.
63930         * modules/unistr/u16-prev: New file.
63931         * modules/unistr/u32-prev: New file.
63932         * lib/unistr/u8-prev.c: New file.
63933         * lib/unistr/u16-prev.c: New file.
63934         * lib/unistr/u32-prev.c: New file.
63935
63936         * modules/unistr/u8-set: New file.
63937         * modules/unistr/u16-set: New file.
63938         * modules/unistr/u32-set: New file.
63939         * lib/unistr/u8-set.c: New file.
63940         * lib/unistr/u16-set.c: New file.
63941         * lib/unistr/u32-set.c: New file.
63942         * lib/unistr/u-set.h: New file.
63943
63944         * modules/unistr/u8-startswith: New file.
63945         * modules/unistr/u16-startswith: New file.
63946         * modules/unistr/u32-startswith: New file.
63947         * lib/unistr/u8-startswith.c: New file.
63948         * lib/unistr/u16-startswith.c: New file.
63949         * lib/unistr/u32-startswith.c: New file.
63950         * lib/unistr/u-startswith.h: New file.
63951
63952         * modules/unistr/u8-stpcpy: New file.
63953         * modules/unistr/u16-stpcpy: New file.
63954         * modules/unistr/u32-stpcpy: New file.
63955         * lib/unistr/u8-stpcpy.c: New file.
63956         * lib/unistr/u16-stpcpy.c: New file.
63957         * lib/unistr/u32-stpcpy.c: New file.
63958         * lib/unistr/u-stpcpy.h: New file.
63959
63960         * modules/unistr/u8-stpncpy: New file.
63961         * modules/unistr/u16-stpncpy: New file.
63962         * modules/unistr/u32-stpncpy: New file.
63963         * lib/unistr/u8-stpncpy.c: New file.
63964         * lib/unistr/u16-stpncpy.c: New file.
63965         * lib/unistr/u32-stpncpy.c: New file.
63966         * lib/unistr/u-stpncpy.h: New file.
63967
63968         * modules/unistr/u8-strcat: New file.
63969         * modules/unistr/u16-strcat: New file.
63970         * modules/unistr/u32-strcat: New file.
63971         * lib/unistr/u8-strcat.c: New file.
63972         * lib/unistr/u16-strcat.c: New file.
63973         * lib/unistr/u32-strcat.c: New file.
63974         * lib/unistr/u-strcat.h: New file.
63975
63976         * modules/unistr/u8-strchr: New file.
63977         * modules/unistr/u16-strchr: New file.
63978         * modules/unistr/u32-strchr: New file.
63979         * lib/unistr/u8-strchr.c: New file.
63980         * lib/unistr/u16-strchr.c: New file.
63981         * lib/unistr/u32-strchr.c: New file.
63982
63983         * modules/unistr/u8-strcmp: New file.
63984         * modules/unistr/u16-strcmp: New file.
63985         * modules/unistr/u32-strcmp: New file.
63986         * lib/unistr/u8-strcmp.c: New file.
63987         * lib/unistr/u16-strcmp.c: New file.
63988         * lib/unistr/u32-strcmp.c: New file.
63989
63990         * modules/unistr/u8-strcpy: New file.
63991         * modules/unistr/u16-strcpy: New file.
63992         * modules/unistr/u32-strcpy: New file.
63993         * lib/unistr/u8-strcpy.c: New file.
63994         * lib/unistr/u16-strcpy.c: New file.
63995         * lib/unistr/u32-strcpy.c: New file.
63996         * lib/unistr/u-strcpy.h: New file.
63997
63998         * modules/unistr/u8-strcspn: New file.
63999         * modules/unistr/u16-strcspn: New file.
64000         * modules/unistr/u32-strcspn: New file.
64001         * lib/unistr/u8-strcspn.c: New file.
64002         * lib/unistr/u16-strcspn.c: New file.
64003         * lib/unistr/u32-strcspn.c: New file.
64004         * lib/unistr/u-strcspn.h: New file.
64005
64006         * modules/unistr/u8-strdup: New file.
64007         * modules/unistr/u16-strdup: New file.
64008         * modules/unistr/u32-strdup: New file.
64009         * lib/unistr/u8-strdup.c: New file.
64010         * lib/unistr/u16-strdup.c: New file.
64011         * lib/unistr/u32-strdup.c: New file.
64012         * lib/unistr/u-strdup.h: New file.
64013
64014         * modules/unistr/u8-strlen: New file.
64015         * modules/unistr/u16-strlen: New file.
64016         * modules/unistr/u32-strlen: New file.
64017         * lib/unistr/u8-strlen.c: New file.
64018         * lib/unistr/u16-strlen.c: New file.
64019         * lib/unistr/u32-strlen.c: New file.
64020         * lib/unistr/u-strlen.h: New file.
64021
64022         * modules/unistr/u8-strmblen: New file.
64023         * modules/unistr/u16-strmblen: New file.
64024         * modules/unistr/u32-strmblen: New file.
64025         * lib/unistr/u8-strmblen.c: New file.
64026         * lib/unistr/u16-strmblen.c: New file.
64027         * lib/unistr/u32-strmblen.c: New file.
64028
64029         * modules/unistr/u8-strmbtouc: New file.
64030         * modules/unistr/u16-strmbtouc: New file.
64031         * modules/unistr/u32-strmbtouc: New file.
64032         * lib/unistr/u8-strmbtouc.c: New file.
64033         * lib/unistr/u16-strmbtouc.c: New file.
64034         * lib/unistr/u32-strmbtouc.c: New file.
64035
64036         * modules/unistr/u8-strncat: New file.
64037         * modules/unistr/u16-strncat: New file.
64038         * modules/unistr/u32-strncat: New file.
64039         * lib/unistr/u8-strncat.c: New file.
64040         * lib/unistr/u16-strncat.c: New file.
64041         * lib/unistr/u32-strncat.c: New file.
64042         * lib/unistr/u-strncat.h: New file.
64043
64044         * modules/unistr/u8-strncmp: New file.
64045         * modules/unistr/u16-strncmp: New file.
64046         * modules/unistr/u32-strncmp: New file.
64047         * lib/unistr/u8-strncmp.c: New file.
64048         * lib/unistr/u16-strncmp.c: New file.
64049         * lib/unistr/u32-strncmp.c: New file.
64050
64051         * modules/unistr/u8-strncpy: New file.
64052         * modules/unistr/u16-strncpy: New file.
64053         * modules/unistr/u32-strncpy: New file.
64054         * lib/unistr/u8-strncpy.c: New file.
64055         * lib/unistr/u16-strncpy.c: New file.
64056         * lib/unistr/u32-strncpy.c: New file.
64057         * lib/unistr/u-strncpy.h: New file.
64058
64059         * modules/unistr/u8-strnlen: New file.
64060         * modules/unistr/u16-strnlen: New file.
64061         * modules/unistr/u32-strnlen: New file.
64062         * lib/unistr/u8-strnlen.c: New file.
64063         * lib/unistr/u16-strnlen.c: New file.
64064         * lib/unistr/u32-strnlen.c: New file.
64065         * lib/unistr/u-strnlen.h: New file.
64066
64067         * modules/unistr/u8-strpbrk: New file.
64068         * modules/unistr/u16-strpbrk: New file.
64069         * modules/unistr/u32-strpbrk: New file.
64070         * lib/unistr/u8-strpbrk.c: New file.
64071         * lib/unistr/u16-strpbrk.c: New file.
64072         * lib/unistr/u32-strpbrk.c: New file.
64073         * lib/unistr/u-strpbrk.h: New file.
64074
64075         * modules/unistr/u8-strrchr: New file.
64076         * modules/unistr/u16-strrchr: New file.
64077         * modules/unistr/u32-strrchr: New file.
64078         * lib/unistr/u8-strrchr.c: New file.
64079         * lib/unistr/u16-strrchr.c: New file.
64080         * lib/unistr/u32-strrchr.c: New file.
64081
64082         * modules/unistr/u8-strspn: New file.
64083         * modules/unistr/u16-strspn: New file.
64084         * modules/unistr/u32-strspn: New file.
64085         * lib/unistr/u8-strspn.c: New file.
64086         * lib/unistr/u16-strspn.c: New file.
64087         * lib/unistr/u32-strspn.c: New file.
64088         * lib/unistr/u-strspn.h: New file.
64089
64090         * modules/unistr/u8-strstr: New file.
64091         * modules/unistr/u16-strstr: New file.
64092         * modules/unistr/u32-strstr: New file.
64093         * lib/unistr/u8-strstr.c: New file.
64094         * lib/unistr/u16-strstr.c: New file.
64095         * lib/unistr/u32-strstr.c: New file.
64096         * lib/unistr/u-strstr.h: New file.
64097
64098         * modules/unistr/u8-strtok: New file.
64099         * modules/unistr/u16-strtok: New file.
64100         * modules/unistr/u32-strtok: New file.
64101         * lib/unistr/u8-strtok.c: New file.
64102         * lib/unistr/u16-strtok.c: New file.
64103         * lib/unistr/u32-strtok.c: New file.
64104         * lib/unistr/u-strtok.h: New file.
64105
64106         * modules/unistr/u8-uctomb: New file.
64107         * modules/unistr/u16-uctomb: New file.
64108         * modules/unistr/u32-uctomb: New file.
64109         * lib/unistr/u8-uctomb.c: New file.
64110         * lib/unistr/u16-uctomb.c: New file.
64111         * lib/unistr/u32-uctomb.c: New file.
64112
64113         * MODULES.html.sh (Unicode string functions): Add the new modules.
64114
64115 2007-01-08  Bruno Haible  <bruno@clisp.org>
64116
64117         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64118         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64119         subdirectories.
64120
64121 2007-01-08  Karl Berry  <karl@gnu.org>
64122
64123         * doc/error.texi: mention that main() fns must set program_name
64124         when progname is used.
64125
64126 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
64127
64128         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
64129         WCTYPE_H is empty, for the benefit of builds from non-distclean
64130         directories.  Problem reported by Eric Blake in
64131         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
64132
64133 2007-01-08  Bruno Haible  <bruno@clisp.org>
64134
64135         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
64136         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
64137         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
64138         PROVIDE_CANONICALIZE_FILENAME_MODE.
64139         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
64140
64141 2007-01-08  Bruno Haible  <bruno@clisp.org>
64142
64143         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
64144         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
64145         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
64146         * lib/fts.c: Likewise.
64147         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
64148
64149 2006-12-25  Bruno Haible  <bruno@clisp.org>
64150
64151         * modules/utf8-ucs4-safe: New file.
64152         * lib/utf8-ucs4-safe.h: New file.
64153         * lib/unistr/utf8-ucs4-safe.c: New file.
64154
64155         * modules/utf16-ucs4-safe: New file.
64156         * lib/utf16-ucs4-safe.h: New file.
64157         * lib/unistr/utf16-ucs4-safe.c: New file.
64158
64159         * MODULES.html.sh (Unicode string functions): Add the new modules.
64160
64161 2007-01-08  Bruno Haible  <bruno@clisp.org>
64162
64163         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
64164         (Depends-on): Add unitypes.
64165         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64166         (u8_mbtouc_aux): Move out to separate file.
64167         (u8_mbtouc): Use ucs4_t, uint8_t types.
64168         * lib/unistr/utf8-ucs4.c: New file.
64169
64170         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
64171         (Depends-on): Add unitypes.
64172         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64173         (u16_mbtouc_aux): Move out to separate file.
64174         (u16_mbtouc): Use ucs4_t, uint16_t types.
64175         * lib/unistr/utf16-ucs4.c: New file.
64176
64177         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64178         (Depends-on): Add unitypes.
64179         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64180         (u8_uctomb_aux): Move out to separate file.
64181         (u8_uctomb): Use ucs4_t, uint8_t types.
64182         * lib/unistr/ucs4-utf8.c: New file.
64183
64184         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64185         (Depends-on): Add unitypes.
64186         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64187         (u16_uctomb_aux): Move out to separate file.
64188         (u16_uctomb): Use ucs4_t, uint16_t types.
64189         * lib/unistr/ucs4-utf16.c: New file.
64190
64191 2006-12-25  Bruno Haible  <bruno@clisp.org>
64192
64193         * modules/unitypes: New file.
64194         * lib/unitypes.h: New file.
64195         * MODULES.html.sh (func_all_modules): New section "Unicode string
64196         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64197         this section. Add unitypes.
64198
64199 2007-01-08  Bruno Haible  <bruno@clisp.org>
64200
64201         Avoid variable names that conflict with those from libtool.
64202         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64203         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64204         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64205         library_names_spec to acl_library_names_spec, hardcode_* to
64206         acl_hardcode_*.
64207         Reported by Ralf Wildenhues.
64208
64209 2007-01-08  Bruno Haible  <bruno@clisp.org>
64210
64211         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
64212         definition.
64213         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
64214         definition.
64215         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
64216         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
64217         definition.
64218         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
64219         definition.
64220         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
64221         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64222         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
64223         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
64224         definition.
64225         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
64226         definition.
64227         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
64228         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
64229         GC_USE_<algorithm>.
64230         * lib/gc-libgcrypt.c: Likewise.
64231         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
64232         * modules/gc-arctwo (configure.ac): Likewise.
64233         * modules/gc-des (configure.ac): Likewise.
64234         * modules/gc-hmac-md5 (configure.ac): Likewise.
64235         * modules/gc-hmac-sha1 (configure.ac): Likewise.
64236         * modules/gc-md2 (configure.ac): Likewise.
64237         * modules/gc-md4 (configure.ac): Likewise.
64238         * modules/gc-md5 (configure.ac): Likewise.
64239         * modules/gc-random (configure.ac): Likewise.
64240         * modules/gc-rijndael (configure.ac): Likewise.
64241         * modules/gc-sha1 (configure.ac): Likewise.
64242
64243 2007-01-08  Bruno Haible  <bruno@clisp.org>
64244
64245         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
64246         macro definition.
64247         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
64248         definition.
64249         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
64250         definition.
64251         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
64252         * modules/fcntl-safer (configure.ac): Likewise.
64253         * modules/fopen-safer (configure.ac): Likewise.
64254         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
64255         GNULIB_FWRITEERROR macro definition.
64256
64257 2007-01-08  Bruno Haible  <bruno@clisp.org>
64258
64259         * m4/gnulib-common.m4: New file.
64260         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
64261         (func_get_filelist): Add m4/gnulib-common.m4.
64262
64263 2007-01-08  Bruno Haible  <bruno@clisp.org>
64264
64265         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
64266         command.
64267
64268 2007-01-08  Jim Meyering  <jim@meyering.net>
64269
64270         Use a more robust test for a "can't happen" condition.
64271         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
64272         narrowed the st_size value.  Presuming the "can't happen" condition
64273         is true, that narrowing could conceivably convert an invalid st_size
64274         value into a valid one.  Instead, use a change based on Matthew
64275         Woehlke's original patch.
64276
64277         Slight readability improvement: use an assert-like macro
64278         in place of literal "abort ()" uses.
64279         * lib/fts.c (fts_assert): Define.
64280         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
64281         Use this macro instead of a bare 'abort'.
64282
64283 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
64284
64285         Don't worry about using IRIX 5.3's wctype.h broken definitions;
64286         simply work around them.
64287         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
64288         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
64289         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
64290         declaring.
64291         Don't bother to define as macros, since the standard doesn't require it.
64292         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
64293         longer worry about IRIX 5.3.
64294         (HAVE_WCTYPE_CTMP_BUG): Remove.
64295
64296 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64297
64298         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
64299         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
64300         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64301         Problems reported by Georg Schwarz for IRIX 5.3.
64302
64303         * gnulib-tool (autoconf_minversion): Take the maximum version number
64304         found, not the minimum.  Problem reported by James Youngman.
64305
64306 2007-01-03  Karl Berry  <karl@gnu.org>
64307
64308         * doc/error.texi: new file, explaining interaction with progname.
64309         * doc/gnulib.texi: include it.  Update copyright.
64310
64311 2007-01-03  Simon Josefsson  <simon@josefsson.org>
64312
64313         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
64314         AC_CANONICAL_HOST, to improve autobuild outputs.
64315
64316 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
64317             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64318
64319         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
64320         sockets, server sockets, and other file descriptors.  Count errors
64321         to compute the return value.  Reorder the code a bit to be easier
64322         to follow.  Don't set event bits that were not requested (except
64323         POLLERR and POLLHUP).
64324
64325 2007-01-01  Bruno Haible  <bruno@clisp.org>
64326
64327         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
64328
64329 2007-01-03  Jim Meyering  <jim@meyering.net>
64330
64331         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
64332
64333 2007-01-02  Bruno Haible  <bruno@clisp.org>
64334
64335         * modules/settime (Include): Require timespec.h.
64336         * modules/nanosleep (Include): Likewise.
64337
64338 2007-01-01  Bruno Haible  <bruno@clisp.org>
64339
64340         * gnulib-tool (func_emit_copyright_notice): Bump year.
64341         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
64342
64343 2007-01-01  Bruno Haible  <bruno@clisp.org>
64344
64345         Improve support for OpenBSD.
64346         * build-aux/config.rpath (libname_spec): Export.
64347         (library_names_spec): New variable. Export.
64348         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
64349         library_names_spec from the config.rpath output. Locate shared library
64350         through the name pattern in library_names_spec.
64351
64352 2007-01-01  Eric Blake  <ebb9@byu.net>
64353
64354         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
64355
64356 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
64357
64358         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
64359         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
64360         assume the C locale, and avoid an "eval" that could cause trouble.
64361         Problem with SORT reported by Bob Proulx.
64362
64363         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
64364         Define.  Trivial patch from Henning Nielsen Lund, originally
64365         sent to bug-grep@gnu.org today.
64366
64367 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64368
64369         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
64370         struct stat.  Problem reported by Henning Nielsen Lund.
64371         * lib/acl.c: Include acl.h first, to check interface.  Don't
64372         bother to include sys/types.h and sys/stat.h again.
64373
64374 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64375
64376         Import the following change from libc; problem reported by
64377         Sven Verdoolaege.
64378
64379         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
64380
64381         [BZ #1373]
64382         * lib/argp.h: Remove __NTH for __argp_usage inline function.
64383
64384 2006-12-28  Jim Meyering  <jim@meyering.net>
64385
64386         * build-aux/announce-gen: Do not assume that the package
64387         builds any of tar.gz, tar.bz2, and .xdelta files.
64388         Suggestion from Simon Josefsson.
64389
64390 2006-12-28  Simon Josefsson  <simon@josefsson.org>
64391
64392         * modules/announce-gen: New file.
64393
64394 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
64395
64396         * lib/mbchar.h: Just include <wctype.h>; the wctype module
64397         handles its gotchas now.
64398         * lib/mbswidth.c: Likewise.
64399         * lib/wcwidth.h: Likewise.
64400         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
64401         and iswcntrl; the wctype module does this stuff now.
64402         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64403         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64404         * modules/mbchar (Depends-on): Add wctype.
64405         * modules/mbswidth (Depends-on): Likewise.
64406         * modules/wcwidth (Depends-on): Likewise.
64407
64408 2006-12-27  Eric Blake  <ebb9@byu.net>
64409
64410         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
64411         module uses more than what <wctype.h> is required to provide.
64412
64413 2006-12-26  Eric Blake  <ebb9@byu.net>
64414
64415         * gnulib-tool (sed_extract_prog): Avoid space-tab.
64416
64417 2006-12-26  Eric Blake  <ebb9@byu.net>
64418
64419         * modules/absolute-header: New module.
64420         * modules/fcntl (Depends-on): Depend on it.
64421         * modules/inttypes (Depends-on): Likewise.
64422         * modules/stdint (Depends-on): Likewise.
64423         * modules/sys_stat (Depends-on): Likewise.
64424         * modules/wctype (Depends-on): Likewise.
64425         * MODULES.html.sh (Support for building libraries and
64426         executables): Document it.
64427
64428 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64429
64430         * gnulib-tool (SED): Remove, undoing previous change.
64431         The problem was that it broke coreutils on Solaris, because
64432         "sed --posix" leaked into a makefile.
64433         (sed): New alias, if 'alias' and GNU sed.
64434
64435 2006-12-24  Jim Meyering  <jim@meyering.net>
64436
64437         Work around an fchownat bug in glibc-2.4:
64438         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
64439         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
64440         in spite of the -P option.
64441         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
64442         New macros.
64443         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
64444         * modules/openat (Files): Add lib/fchownat.c.
64445         * lib/openat.c (fchownat): Don't define here.  Move to...
64446         * lib/fchownat.c: ...this new file.
64447
64448 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64449
64450         Fix bug reported by Bruno Haible in
64451         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
64452         where quotearg.c didn't compile on Mac OS X 10.2 because it
64453         lacks <wchar.h> and wint_t.
64454         * lib/wctype_.h (__wctype_wint_t): New type.
64455         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
64456         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
64457         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
64458         Arg is now of type __wctype_wint_t, not wint_t.
64459         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
64460         substitute HAVE_WINT_T.
64461         * modules/wctype (Files): Add m4/wint_t.m4.
64462         (wctype.h): Substitute HAVE_WINT_T.
64463
64464 2006-12-23  Bruno Haible  <bruno@clisp.org>
64465
64466         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
64467
64468 2006-12-23  Bruno Haible  <bruno@clisp.org>
64469
64470         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
64471         S_ISLNK.
64472         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
64473         mingw.
64474
64475 2006-12-22  Bruno Haible  <bruno@clisp.org>
64476
64477         * lib/copy-file.c: Include acl.h.
64478         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
64479         Close the file descriptors only after being done with copy_acl.
64480         * modules/copy-file (Depends-on): Add acl.
64481
64482 2006-12-22  Bruno Haible  <bruno@clisp.org>
64483
64484         * gnulib-tool (SED): New variable.
64485         Use $SED instead of sed everywhere.
64486
64487 2006-12-22  Bruno Haible  <bruno@clisp.org>
64488
64489         * modules/no-c++: New file.
64490         * m4/no-c++.m4: New file.
64491         * MODULES.html.sh (Support for building libraries and executables):
64492         Add no-c++.
64493
64494 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
64495
64496         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64497         Include <limits.h>, and use its INT_MAX to rewrite the
64498         j loop so that it does not overflow 'int'.  Problem reported by
64499         Ralf Wildenhues in
64500         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
64501         Play it safe by shifting left by 1 rather than multiplying by 2,
64502         as GCC is less likely to optimize this away when the value
64503         is signed (when it assumes overflow leads to undefined behavior).
64504         Also, don't assume time_t uses two's complement.
64505
64506 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
64507
64508         * MODULES.html.sh: New module wctype.
64509         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
64510         * lib/fnmatch.c: Don't bother to include <wchar.h> before
64511         <wctype.h>, since the new wctype module should fix this.
64512         * lib/quotearg.c: Include <wctype.h> unconditionally, since
64513         the wctype module should arrange for it.
64514         * lib/regex_internal.h: Likewise.
64515         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
64516         since the wctype module should handle this now.
64517         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
64518         * modules/fnmatch (Depends-on): Add wctype.
64519         * modules/quotearg (Depends-on): Likewise.
64520         * modules/regex (Depends-on): Likewise.
64521
64522 2006-12-19  Bruno Haible  <bruno@clisp.org>
64523
64524         * lib/strdup.h [C++]: Wrap definitions in extern "C".
64525         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
64526
64527 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64528
64529         * modules/savewd (Depends-on): Fix dependency on fcntl.
64530
64531 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64532
64533         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
64534         conforms to C99, rather than relying on the user's environment
64535         setting of STDINT_H.
64536
64537 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64538         and Eric Blake  <ebb9@byu.net>
64539
64540         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
64541         This is more consistent with the other defines here.
64542         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
64543         Port to z/OS.  Problem reported by Paul Gilmartin.
64544         Change local vars to use gl_ prefix rather than ac_.
64545         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
64546         with other defines.
64547         * modules/double-slash-root: New module.
64548         * modules/dirname (Files): Remove m4/double-slash-root.m4.
64549         (Depends-on): Add double-slash-root.
64550         * MODULES.html.sh (File system functions): Mention new module.
64551
64552 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
64553
64554         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
64555         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
64556         This is for the benefit of gzip, which doesn't do i18n.
64557
64558 2006-12-12  Jim Meyering  <jim@meyering.net>
64559
64560         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
64561         Reported by Andreas Schwab <schwab@suse.de>.
64562
64563 2006-12-12  Bruno Haible  <bruno@clisp.org>
64564
64565         Merge these changes.
64566         2006-09-05  Bruno Haible  <bruno@clisp.org>
64567         * lib/iconvme.c (iconv_string): No need to save and restore errno when
64568         iconv_alloc succeeded.
64569         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
64570         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
64571         test for " && dest " at the end - dest is always != NULL there. Call
64572         iconv with 4xNULL arguments initially, to reset the state. Call iconv
64573         with 2xNULL arguments, also to flush the state storage. Handle the
64574         IRIX iconv behaviour. Realloc the final result, to throw away unused
64575         memory.
64576
64577 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
64578
64579         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
64580         and fchmodat unconditionally, since glibc 2.4 has them.
64581         Problem reported by Arkadiusz Miskiewicz.
64582
64583 2006-12-10  Bruno Haible  <bruno@clisp.org>
64584
64585         * gnulib-tool (func_import): Show the include files only for those
64586         modules that are copied and specified.
64587         Reported by Karl Berry.
64588
64589 2006-12-08  Jim Meyering  <jim@meyering.net>
64590
64591         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
64592         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
64593
64594         * build-aux/announce-gen: Add two new options, both optional:
64595         --bootstrap-tools=TOOL_LIST
64596               a comma-separated list of tools, e.g.,
64597               autoconf,automake,bison,gnulib
64598         --gnulib-snapshot-date=DATE
64599               if gnulib is in the bootstrap tool list,
64600               then report this as the snapshot date.
64601               If not specified, use the current date/time.
64602               If you specify a date here, be sure it's UTC.
64603
64604 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64605
64606         * tests/test-argp-2.sh: Fix test to match actual output.
64607         (func_compare): Fix sed script to be portable.
64608
64609 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
64610
64611         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
64612         workaround for this case.  It is not autoconfigured now; offhand
64613         it's hard to see how to autoconfigure it.
64614
64615 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64616
64617         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
64618         a directory that is about to be chowned.  Such a directory's
64619         initial file permissions should permit the owner only and this
64620         should not be changed until after the chown, since the group and
64621         other bits would be incorrect if they granted permission before
64622         the chown.
64623
64624         Fix porting problem for iswctype reported by Georg Schwarz in:
64625         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
64626         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
64627         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
64628         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
64629         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64630
64631 2006-12-03  Jim Meyering  <jim@meyering.net>
64632
64633         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
64634         p->fts_statp may not yet be defined.
64635         (fts_read): Instead, set it in the caller, once p->fts_statp is
64636         sure to be defined, and corresponds to a top-level directory.
64637         This bug made du -x fail.  Here's the coreutils test case:
64638         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
64639         Reported by Mike Frysinger.
64640
64641 2006-12-01  Jim Meyering  <jim@meyering.net>
64642
64643         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
64644         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
64645         Reported by Simon Josefsson.
64646
64647 2006-11-30  Jim Meyering  <jim@meyering.net>
64648
64649         * m4/warning.m4: Use the all-permissive copyright notice
64650         recommended by RMS (rather than LGPL).
64651         * m4/vararrays.m4: Likewise.
64652         * m4/flexmember.m4: Likewise.
64653
64654 2006-11-29  Bruno Haible  <bruno@clisp.org>
64655
64656         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64657         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
64658         using +=.
64659         Reported by Simon Josefsson <simon@josefsson.org>.
64660
64661 2006-11-28  James Youngman <jay@gnu.org>
64662
64663         * README: Advise users that they might find the bug-gnulib@gnu.org
64664         and autotools-announce@gnu.org mailing lists useful.
64665
64666 2006-11-28  Bruno Haible  <bruno@clisp.org>
64667
64668         * m4/ptrdiff_max.m4: Remove file.
64669
64670 2006-11-21  Bruno Haible  <bruno@clisp.org>
64671
64672         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
64673         _AC_COMPUTE_INT.
64674         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64675         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
64676         _AC_COMPUTE_INT.
64677         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64678         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
64679         _AC_COMPUTE_INT.
64680         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64681
64682 2006-11-28  Jim Meyering  <jim@meyering.net>
64683
64684         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
64685         warning from "gcc -Wshadow" about shadowing the builtin.
64686
64687 2006-11-27  Bruno Haible  <bruno@clisp.org>
64688
64689         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
64690         _AC_COMPUTE_INT.
64691         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64692
64693 2006-11-27  Bruno Haible  <bruno@clisp.org>
64694             Paul Eggert  <eggert@cs.ucla.edu>
64695
64696         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
64697
64698 2006-11-26  Bruno Haible  <bruno@clisp.org>
64699
64700         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64701         noinst_LTLIBRARIES.
64702
64703 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64704             Bruno Haible  <bruno@clisp.org>
64705
64706         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
64707         if compiling with "gcc -ansi".
64708
64709 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64710
64711         Fix some incompatibilities with gcc -ansi -pedantic.
64712         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
64713         if compiling pedantically with GCC, unless it's C99 or later.
64714         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
64715         it mishandles gcc -ansi -pedantic as well.
64716         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
64717         if gcc -pedantic.
64718         * lib/regexec.c (check_node_accept_bytes): Don't use auto
64719         initializers for struct if -pedantic, unless it's C99 or later.
64720
64721 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
64722
64723         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
64724         Don't close an fd more than once. Identical atimes indicate
64725         success, not failure.
64726
64727 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
64728
64729         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
64730
64731 2006-11-23  Jim Meyering  <jim@meyering.net>
64732
64733         * build-aux/announce-gen: New file.  From coreutils.
64734
64735 2006-11-22  Jim Meyering  <jim@meyering.net>
64736
64737         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
64738         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
64739         (fts_read): Use a temporary to narrow the overused st_size member
64740         before using it in a switch statement.  Reported by Matthew Woehlke.
64741
64742         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
64743         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
64744
64745 2006-11-20  Bruno Haible  <bruno@clisp.org>
64746
64747         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
64748         changequote instead of pairs of brackets.
64749         Reported by Andreas Schwab <schwab@suse.de>.
64750
64751 2006-11-21  Jim Meyering  <jim@meyering.net>
64752
64753         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
64754         so as to remain compatible with older compilers.
64755         Patch from Michael Deutschmann.
64756
64757 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64758
64759         * MODULES.html.sh (File system functions): Add openat.
64760
64761         * lib/openat.h (rpl_fstatat): New macro, if
64762         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
64763         (fstatat): Define to rpl_fstatat under the same conditions,
64764         unless COMPILING_FSTATAT.
64765         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
64766         seems to have the bug.
64767         * lib/fstatat.c: New file.
64768         * modules/openat (Files): Add it.
64769
64770 2006-11-20  Bruno Haible  <bruno@clisp.org>
64771
64772         * Makefile: New file.
64773
64774 2006-11-20  Jim Meyering  <jim@meyering.net>
64775
64776         The beginnings of syntax-related checks for gnulib.
64777         * lib/Makefile: New file.
64778         * lib/t-idcache: New script.  Ensure that the two halves of
64779         idcache.c stay in sync.
64780
64781         * lib/idcache.c: Adjust comments in user- and group- portions to
64782         be more accurate, and to be consistent with one another.
64783
64784 2006-11-20  Jim Meyering  <jim@meyering.net>
64785
64786         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
64787         continue using the flexible array member (thus, this module performs
64788         half as many malloc calls), with the addition that...
64789         (getgroup, getuser): Consistently record a non-match via an empty
64790         "name" string, and map an empty string match to a NULL return value.
64791         * modules/idcache (Depends-on): Re-add flexmember.
64792
64793         * lib/idcache.c (getuser): Remove all uses of the register keyword.
64794         (getuidbyname, getgroup, getgidbyname): Likewise.
64795
64796         Use cleaner syntax: NULL rather than 0.
64797         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
64798
64799 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64800
64801         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
64802         It mishandled the case where the group was missing.
64803         Problem reported by Greg Schafer.
64804         * modules/idcache: Likewise.
64805
64806 2006-11-18  Jim Meyering  <jim@meyering.net>
64807
64808         * check-module (%exempt_header): Add exception for some
64809         conditionally-included headers.
64810
64811         * modules/i-ring (Depends-on): Add verify.
64812         (License): Change to LGPL.
64813
64814 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64815
64816         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
64817         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
64818         and inttostr.h.  Use snprintf rather than uinttostr, so that
64819         LGPLed code doesn't depend on GPLed.
64820
64821 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64822
64823         * modules/inline (License): Change from GPL to LGPL.
64824
64825 2006-11-17  Jim Meyering  <jim@meyering.net>
64826
64827         * modules/d-type (License): Switch to LGPL.
64828
64829 2006-11-15  Bruno Haible  <bruno@clisp.org>
64830
64831         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
64832
64833 2006-11-15  Eric Blake  <ebb9@byu.net>
64834
64835         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
64836         the module dependency.
64837
64838 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64839             Bruno Haible  <bruno@clisp.org>
64840
64841         * gnulib-tool (func_create_testdir): Add license consistency check.
64842
64843 2006-11-15  Eric Blake  <ebb9@byu.net>
64844
64845         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
64846         random "(cached)" in configure output.
64847
64848 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64849
64850         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
64851         test for conforming inttypes.h is both announced and cached.
64852
64853         * MODULES.html.sh (seen_modules, seen_files): New variables.
64854         (func_module): Rewrite to use a few less gnulib-tool and sed
64855         invocations.  Avoid a couple of quadratic algorithms for ...
64856         (missed_modules, missed_files): ... these, with ...
64857         (func_append, func_tmpdir): ... these new functions, from
64858         gnulib-tool.  Analogously, install traps for cleanup.
64859
64860         * tests/test-gc.c (main): Remove unused variables.
64861         * tests/test-read-file.c: Include stdlib.h, for 'free'.
64862
64863 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
64864
64865         * modules/inttostr (License): Change to LGPL.
64866
64867 2006-11-14  Eric Blake  <ebb9@byu.net>
64868
64869         * modules/tempname (License): Change to LGPL.
64870
64871 2006-11-14  Eric Blake  <ebb9@byu.net>
64872
64873         * doc/functions.texi (Function Portability): *printf functions on
64874         Cygwin now understand all POSIX size specifiers.
64875
64876 2006-11-14  Bruno Haible  <bruno@clisp.org>
64877
64878         * modules/c-ctype (License): Change to LGPL.
64879
64880 2006-11-12  Bruno Haible  <bruno@clisp.org>
64881
64882         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64883         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
64884         for GNOME libraries, for which the include files are installed in
64885         subdirectories of $prefix/include.
64886
64887 2006-11-12  Bruno Haible  <bruno@clisp.org>
64888
64889         * m4/lib-link.m4: Require at least autoconf-2.54.
64890         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
64891         name to underscores for the --with option.
64892
64893 2006-11-13  Bruno Haible  <bruno@clisp.org>
64894
64895         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
64896         the tests directory.
64897         Reported by Ralf Wildenhues.
64898
64899 2006-11-13  Bruno Haible  <bruno@clisp.org>
64900
64901         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
64902         (func_emit_initmacro_end): Undo the override here.
64903         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
64904         Works around the famous automake error in coreutils.
64905
64906 2006-11-13  Eric Blake  <ebb9@byu.net>
64907
64908         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
64909         element, not its node.
64910
64911 2006-11-12  Bruno Haible  <bruno@clisp.org>
64912
64913         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
64914         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
64915
64916 2006-11-12  Bruno Haible  <bruno@clisp.org>
64917
64918         * gnulib-tool: New option --local-symlink.
64919         (func_usage): Document it.
64920         (lsymbolic): New variable.
64921         (func_import, func_create_testdir): If --symlink was not specified,
64922         test whether --local-symlink was specified and the file comes from
64923         the local_gnulib_dir.
64924
64925 2006-11-12  Bruno Haible  <bruno@clisp.org>
64926
64927         * gnulib-tool (func_ln): New function.
64928         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
64929
64930 2006-11-12  Bruno Haible  <bruno@clisp.org>
64931
64932         Finish support for source files in subdirectories.
64933         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
64934         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
64935         AUTOMAKE_OPTIONS.
64936         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
64937
64938 2006-11-12  Bruno Haible  <bruno@clisp.org>
64939
64940         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64941         EXTRA_lib_SOURCES augmentation.
64942         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
64943
64944 2006-11-12  Jim Meyering  <jim@meyering.net>
64945
64946         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
64947         file descriptors.  This also averts a failure on systems with
64948         native openat support when a traversed directory lacks "x" access.
64949         * lib/fts_.h: Include "i-ring.h"
64950         (struct FTS) [fts_fd_ring]: New member.
64951         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
64952         (FCHDIR): Add parentheses.
64953         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
64954         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
64955         When descending, rather than simply closing the previous
64956         fts_cwd_fd value, push that file descriptor onto the ring.
64957         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
64958         (fts_open): Initialize the new fd_ring member.
64959         (fts_close): Clear the ring.
64960         (fts_safe_changedir): When possible, use our new fd_ring to skip
64961         the diropen and fstat and dev/ino comparison that would normally
64962         accompany a virtual `chdir ("..")'.
64963
64964         * modules/fts (Depends-on): Add i-ring.
64965         * modules/i-ring: New module.
64966         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
64967         * m4/i-ring.m4: New file.
64968
64969 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64970
64971         * gnulib-tool (func_create_testdir): Fix replacement of
64972         `build-aux' in configure.ac.  Run autotools in gltests
64973         subdirectory.
64974         (func_create_testdir, func_create_megatestdir, test): There is
64975         no need for '--force' in most autotool invocations in a new
64976         tree.  Actually fail the whole test if any of the tools, or the
64977         configure or make stages fail.
64978
64979         Sync from Automake.
64980         * build-aux/gnupload: Revert last change.  Add pointer to upload
64981         instructions of the GNU Maintenance Instructions.
64982         Suggestion by Karl Berry.
64983
64984 2006-11-10  Jim Meyering  <jim@meyering.net>
64985
64986         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
64987
64988 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64989
64990         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
64991         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
64992         (bind_textdomain_codeset) [! ENABLE_NLS]:
64993         Evaluate all the arguments.  That way, callers get compatible behavior
64994         if the arguments have side effects.  Also, it avoids some GCC
64995         diagnostics in some cases; Joel E. Denny reported problems when Bison
64996         was configured with --enable-gcc-warnigs.
64997
64998 2006-11-10  Jim Meyering  <jim@meyering.net>
64999
65000         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65001         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65002         account.
65003
65004 2006-11-10  Jim Meyering  <jim@meyering.net>
65005
65006         * modules/inline: New file/module.
65007         * modules/xalloc (Files): Remove m4/inline.m4.
65008         (Depends-on): Add inline, instead.
65009         * modules/oset: Likewise.
65010         * modules/list: Likewise.
65011
65012 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65013
65014         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65015         Problem reported by Matthew Woehlke.
65016
65017 2006-11-09  Bruno Haible  <bruno@clisp.org>
65018
65019         * lib/tempname.c (gen_tempname): Remove variant that invokes
65020         __gen_tempname.
65021         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65022         __gen_tempname.
65023
65024 2006-11-08  Bruno Haible  <bruno@clisp.org>
65025
65026         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65027         to 'yes' instead of 'cross-compiling'.
65028
65029 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65030
65031         * lib/quotearg.h (quotearg_free): New decl.
65032         * lib/quotearg.c (quotearg_free): New function.
65033         (slot0, nslots, slotvec0, slotvec):
65034         Now file-scope so that quotearg_free can get at them.
65035
65036 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65037
65038         Sync from Automake.
65039         * build-aux/gnupload: Add missing 'gnu' to example URL.
65040         Report by Karl Berry.
65041
65042 2006-11-08  Bruno Haible  <bruno@clisp.org>
65043
65044         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65045         Suggested by Paul Eggert.
65046
65047 2006-11-08  Jim Meyering  <jim@meyering.net>
65048
65049         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65050         It's already included if !_LIBC.
65051         (fts_safe_changedir): Add a comment.
65052
65053 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65054
65055         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65056         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65057         Matthew Woehlke.
65058
65059         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65060         definitions up, to avoid colliding with change below.
65061         (static_inline) [HAVE_INLINE]: New macro.
65062         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65063         Provide extern decls when !HAVE_INLINE.  Do not define unless
65064         static_inline is defined, either by us or by xmalloc.c.  Use
65065         static_inline rather than static inline.
65066         (XCALLOC): Optimize sizeof(T) = 1 case.
65067         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65068
65069 2006-11-07  Bruno Haible  <bruno@clisp.org>
65070
65071         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65072         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65073         AC_C_INLINE.
65074         * modules/xalloc (Files): Add m4/inline.m4.
65075
65076 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65077
65078         * README: Fix typo.
65079         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65080         (Miscellanous Notes): ...from this.
65081
65082 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65083
65084         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65085         Mention that offsetof should be used instead of sizeof.
65086         From Bruno Haible.
65087
65088 2006-11-07  Bruno Haible  <bruno@clisp.org>
65089
65090         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65091
65092 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65093
65094         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65095         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65096         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65097         (gl_tree_add_before, gl_tree_add_after):
65098         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65099         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65100         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65101         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65102         (gl_linked_add_after, gl_linked_add_at): Likewise.
65103         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
65104         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65105         (gl_tree_add_before, gl_tree_add_after): Likewise.
65106         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65107         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65108         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65109
65110 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65111
65112         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65113
65114 2006-11-06  Bruno Haible  <bruno@clisp.org>
65115
65116         * m4/inline.m4: New file.
65117         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65118         * modules/list (Files): Add m4/inline.m4.
65119         * modules/oset (Files): Likewise.
65120
65121 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65122
65123         * lib/idcache.c: Include <stddef.h>, for offsetof.
65124         (struct userid.name): Change from char * to a flexible array member.
65125         All uses changed.
65126         * modules/idcache (Depends-on): Add flexmember.
65127
65128         * MODULES.html.sh (Core language properties): New module flexmember.
65129         * modules/flexmember, m4/flexmember.m4: New files.
65130
65131         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
65132         inline functions that are identical with the old xnmalloc_inline,
65133         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
65134         that we can avoid some unnecessary integer multiplications and
65135         divisions in the common case where the element size is known at
65136         compile time.
65137         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
65138         needed.
65139         (xnboundedmalloc): Remove.
65140         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
65141         arguments, for consistency with rest of this header.
65142         (xcharalloc): Rewrite using XNMALLOC.
65143         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
65144         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
65145         versions have been moved to lib/xalloc.h and renamed to be the
65146         non-*_inline versions.
65147         (xmalloc, xrealloc): Implement without reference to the xnmalloc
65148         and xnrealloc functions, since those functions are now inline and
65149         now call us.
65150         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
65151         renaming described above.
65152         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
65153         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
65154         captures the dependency in AC_C_INLINE.
65155
65156         New module canonicalize-lgpl, proposed by Charles Wilson in
65157         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
65158         with a few small changes afterwards.
65159         * MODULES.html.sh (File system functions): New module
65160         canonicalize-lgpl.
65161         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
65162         and canonicalize_file_name.
65163         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
65164         * modules/canonicalize-lgpl: New files.
65165
65166 2006-11-05  Bruno Haible  <bruno@clisp.org>
65167
65168         * gnulib-tool (func_import, func_create_testdir): Create directories
65169         also for files in subdirectories of lib/.
65170
65171 2006-11-05  Bruno Haible  <bruno@clisp.org>
65172
65173         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
65174         ANSI C compliant.
65175
65176 2006-11-03  Bruno Haible  <bruno@clisp.org>
65177
65178         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65179         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65180         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65181         (xnboundedmalloc): New inline function.
65182         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65183         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65184         xmalloc.
65185         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65186         xmalloc.
65187         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65188         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65189         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65190         xmalloc.
65191         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65192         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65193         xmalloc.
65194         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65195         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65196         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65197         xmalloc.
65198         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65199         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65200         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65201         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65202         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65203         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65204         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65205
65206 2006-11-03  Bruno Haible  <bruno@clisp.org>
65207
65208         * lib/c-ctype.h [C++]: Define functions without name mangling.
65209         * lib/fwriteerror.h [C++]: Likewise.
65210         * lib/gcd.h [C++]: Likewise.
65211         * lib/linebreak.h [C++]: Likewise.
65212
65213 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65214
65215         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
65216         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
65217         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
65218         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65219         Check for functions and headers just once.
65220         Check for declaration of canonicalize_file_name.
65221         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
65222
65223 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65224
65225         * gnulib-tool (func_import): Fix typo in actioncmd.
65226
65227 2006-11-02  Bruno Haible  <bruno@clisp.org>
65228
65229         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
65230         newline sequence in the Makefile.am snippet as a space, like "make"
65231         does.
65232         Reported by Roger Persson <perrog@gmail.com>.
65233
65234 2006-11-01  Bruno Haible  <bruno@clisp.org>
65235
65236         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
65237         already declared in <string.h>.
65238         * lib/strcase.h (strncasecmp): Don't declare it if yes.
65239
65240 2006-11-01  Bruno Haible  <bruno@clisp.org>
65241
65242         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
65243         * lib/strcase.h: Include <string.h>.
65244         (strcasecmp): Define to rpl_strcasecmp here.
65245
65246 2006-11-01  Bruno Haible  <bruno@clisp.org>
65247
65248         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
65249
65250 2006-11-01  Eric Blake  <ebb9@byu.net>
65251
65252         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
65253
65254         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
65255
65256 2006-10-29  Bruno Haible  <bruno@clisp.org>
65257
65258         Make it compile in C++ mode.
65259         * lib/full-write.c (full_rw): Add a cast.
65260
65261 2006-11-01  Bruno Haible  <bruno@clisp.org>
65262
65263         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
65264         be POSIX compliant.
65265         Reported by Roger Persson <perrog@gmail.com>.
65266
65267 2006-11-01  Eric Blake  <ebb9@byu.net>
65268
65269         * lib/getopt_.h: Fix comments.
65270
65271 2006-10-31  Eric Blake  <ebb9@byu.net>
65272
65273         * modules/tmpdir (Depends-on): Add sys_stat.
65274         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
65275         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
65276         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
65277         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
65278         tempname.
65279
65280 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
65281
65282         Avoid some C++ diagnostics reported by Bruno Haible.
65283         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
65284         xmalloc.
65285         (quotearg_alloc): Use xcharalloc rather than xmalloc.
65286         (struct slotvec): Move to top level.
65287         (quotearg_n_options): Rewrite to avoid xmalloc.
65288         * lib/xalloc.h (xcharalloc): New function.
65289         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
65290         [defined __cplusplus]: Add function template that provides result
65291         type propagation.  This part of the change is from Bruno Haible.
65292
65293 2006-10-29  Bruno Haible  <bruno@clisp.org>
65294
65295         Make it compile in C++ mode.
65296         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
65297         * lib/strnlen1.c (strnlen1): Cast memchr result.
65298         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
65299         * lib/clean-temp.c (string_equals, string_hash): Add casts.
65300         (create_temp_dir): Rename local variable 'template'.
65301         (compile_csharp_using_sscli): Add cast.
65302         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
65303         * lib/findprog.c (find_in_path): Likewise.
65304         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
65305         * lib/wait-process.c (register_slave_subprocess): Likewise.
65306
65307 2006-10-22  Bruno Haible  <bruno@clisp.org>
65308
65309         * modules/tsearch: New file.
65310         * lib/tsearch.h: New file.
65311         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
65312         * m4/tsearch.m4: New file.
65313         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
65314
65315 2006-10-29  Eric Blake  <ebb9@byu.net>
65316
65317         * lib/arcfour.c: Assume config.h.
65318         * lib/arctwo.c: Likewise.
65319         * lib/base64.c: Likewise.
65320         * lib/check-version.c: Likewise.
65321         * lib/crc.c: Likewise.
65322         * lib/des.c: Likewise.
65323         * lib/gc-gnulib.c: Likewise.
65324         * lib/gc-libgcrypt.c: Likewise.
65325         * lib/gc-pbkdf2-sha1.c: Likewise.
65326         * lib/getaddrinfo.c: Likewise.
65327         * lib/getdelim.c: Likewise.
65328         * lib/getline.c: Likewise.
65329         * lib/hmac-md5.c: Likewise.
65330         * lib/hmac-sha1.c: Likewise.
65331         * lib/iconvme.c: Likewise.
65332         * lib/md2.c: Likewise.
65333         * lib/md4.c: Likewise.
65334         * lib/memxor.c: Likewise.
65335         * lib/read-file.c: Likewise.
65336         * lib/readline.c: Likewise.
65337         * lib/rijndael-alg-fst.c: Likewise.
65338         * lib/rijndael-api-fst.c: Likewise.
65339         * lib/xgetdomainname.c: Likewise.
65340
65341 2006-10-28  Eric Blake  <ebb9@byu.net>
65342
65343         * lib/xstrndup.c: Assume config.h.
65344
65345 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65346
65347         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
65348         stat-macros.h is now for our own macros, whereas stat_h is for
65349         macros in the <sys/stat.h> name space.
65350         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
65351         (STAT_MACROS_H): Remove.
65352         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
65353         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
65354         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
65355         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
65356         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
65357         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
65358         Move these macros to ...
65359         * lib/stat_.h: here.  Don't include stat-macros.h.
65360         * lib/canonicalize.c: Don't include stat-macros.h.
65361         * lib/chown.c: Likewise.
65362         * lib/euidaccess.c: Likewise.
65363         * lib/file-type.c: Likewise.
65364         * lib/filemode.c: Likewise.
65365         * lib/glob.c: Likewise.
65366         * lib/isapipe.c: Likewise.
65367         * lib/lchown.c: Likewise.
65368         * lib/lstat.c: Likewise.
65369         * lib/mkdir-p.c: Likewise.
65370         * lib/rmdir.c: Likewise.
65371         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
65372         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
65373         unless mkdir isn't declared, to speed up 'configure'.
65374         Always create sys/stat.h, since it's unlikely any real sys/stat.h
65375         would define all the S_* symbols.
65376         * modules/canonicalize (Depends-on):
65377         Depend on sys_stat, not stat-macros.
65378         * modules/chown: Likewise.
65379         * modules/euidaccess: Likewise.
65380         * modules/filemode: Likewise.
65381         * modules/file-type: Likewise.
65382         * modules/glob: Likewise.
65383         * modules/isapipe: Likewise.
65384         * modules/lchown: Likewise.
65385         * modules/lstat: Likewise.
65386         * modules/mkancesdirs: Likewise.
65387         * modules/rmdir: Likewise.
65388         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
65389         * modules/modechange: Likewise.
65390         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
65391         (configure.ac): Remove gl_STAT_MACROS.
65392         * modules/sys_stat (Depends-on): Remove stat-macros.
65393
65394 2006-10-27  Bruno Haible  <bruno@clisp.org>
65395
65396         * m4/signed.m4: Remove file.
65397         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
65398         invocation.
65399         * modules/vasnprintf (Files): Remove m4/signed.m4.
65400
65401 2006-10-27  Bruno Haible  <bruno@clisp.org>
65402
65403         Update to GNU gettext 0.16.
65404         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
65405         m4/inttypes-h.m4, m4/signed.m4.
65406         * m4/gettext.m4: Update to GNU gettext 0.16.
65407         * m4/intl.m4: New file, from GNU gettext.
65408         * m4/intldir.m4: New file, from GNU gettext.
65409         * config/srclist.txt: Update
65410
65411 2006-10-27  Eric Blake  <ebb9@byu.net>
65412
65413         * MODULES.html.sh: Document tempname.
65414         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
65415         dependencies.
65416         (Files): Move lib/tempname.c...
65417         * modules/tempname: ...to this new module.
65418         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
65419         (gl_PREREQ_TEMPNAME): Move...
65420         * m4/tempname.m4: ...to this new file.
65421         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
65422         * modules/sys_stat (Depends-on): Add stat-macros.
65423         * lib/stat_.h (includes): Pick up stat macros.
65424         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
65425         if stat macros are broken.
65426         * lib/tempname.c (includes): No need to include "stat-macros.h".
65427         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
65428         (direxists, __path_search) [!_LIBC]: Don't compile these in
65429         gnulib; the tmpdir module covers that.
65430         * lib/tempname.h: New file.
65431
65432 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
65433
65434         * COPYING: Explain how gnulib-tool converts licence headers.
65435         Almost all wording by Eric Blake.
65436
65437 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
65438
65439         * lib/mbchar.h (is_basic_table): Make read-only.
65440         * lib/mbchar.c (is_basic_table): Likewise.
65441         Reported by John Darrington.
65442
65443 2006-10-25  Bruno Haible  <bruno@clisp.org>
65444
65445         * lib/progname.h (set_program_name): Undefine before defining.
65446
65447 2006-10-25  Bruno Haible  <bruno@clisp.org>
65448
65449         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
65450         false for non-gcc C++ compilers.
65451         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
65452
65453 2006-10-24  Bruno Haible  <bruno@clisp.org>
65454
65455         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
65456         iconv implementations like Irix iconv.
65457
65458 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65459
65460         * modules/vararrays: New file.
65461         * m4/vararrays.m4: New file, taken from diffutils.
65462         * MODULES.html.sh: New module vararrays.
65463
65464 2006-10-24  Karl Berry  <karl@gnu.org>
65465
65466         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
65467         Don't call GNU Unix.
65468
65469 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65470
65471         * users.txt: Add Libtool.
65472
65473         Sync from Libtool:
65474
65475         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65476
65477         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
65478         to gnulib's policy of including config.h unconditionally.
65479
65480 2006-10-24  Bruno Haible  <bruno@clisp.org>
65481
65482         * modules/wcwidth (Files): Add m4/wint_t.m4.
65483         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
65484         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
65485
65486 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65487
65488         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
65489         to pacify GCC with some -W flags enabled.  Problem reported by
65490         Bruno Haible.
65491
65492 2006-10-24  Jim Meyering  <jim@meyering.net>
65493
65494         * MODULES.html.sh: Remove uinttostr.  It's not a module.
65495         Reported by Karl Berry.
65496
65497 2006-10-23  Bruno Haible  <bruno@clisp.org>
65498
65499         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
65500
65501 2006-10-24  Bruno Haible  <bruno@clisp.org>
65502
65503         * lib/gl_list.h: Use C comment style, not C++ comment style.
65504
65505 2006-10-23  Eric Blake  <ebb9@byu.net>
65506
65507         * lib/getaddrinfo.c (includes): Add missing include.
65508
65509 2006-10-23  Bruno Haible  <bruno@clisp.org>
65510             Paul Eggert  <eggert@cs.ucla.edu>
65511
65512         Ability to rename obstack_free.
65513         * lib/obstack.h (__obstack_free): New macro. Declare instead of
65514         obstack_free.
65515         (obstack_free): Invoke the __obstack_free macro.
65516         * lib/obstack.c (obstack_free): Use __obstack_free macro.
65517
65518 2006-10-23  Bruno Haible  <bruno@clisp.org>
65519             Paul Eggert  <eggert@cs.ucla.edu>
65520
65521         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
65522         __argc, __argv from the declaration. (They are defined as macros on
65523         mingw.)
65524
65525 2006-10-22  Bruno Haible  <bruno@clisp.org>
65526
65527         * doc/gnulib-intro.texi: New file.
65528         * doc/gnulib.texi: Include it.
65529
65530 2006-10-21  Bruno Haible  <bruno@clisp.org>
65531
65532         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
65533         "Introduction", "Miscellanous Notes", "Particular Modules".
65534
65535 2006-10-21  Bruno Haible  <bruno@clisp.org>
65536
65537         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65538         Change mostlyclean-local rule to avoid sh syntax error from bash
65539         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
65540
65541 2006-10-23  Jim Meyering  <jim@meyering.net>
65542
65543         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
65544         in place of snprintf.
65545
65546         * modules/inttostr (Files): Add lib/uinttostr.c.
65547         * lib/uinttostr.c (inttostr): New file/function.
65548         * lib/inttostr.h (uinttostr): Declare.
65549         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
65550         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65551         Add uinttostr.
65552         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
65553
65554 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65555
65556         * lib/canonicalize.c (ELOOP): Define if not already defined.
65557         Problem reported by Bruno Haible in
65558         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
65559
65560 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65561
65562         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
65563         Problem reported by Perry Smith and Ville Laurikari.
65564
65565         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
65566         uses.
65567
65568 2006-10-19  Bruno Haible  <bruno@clisp.org>
65569
65570         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
65571         for mingw.
65572
65573 2006-10-19  Bruno Haible  <bruno@clisp.org>
65574
65575         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
65576         Needed for mingw.
65577
65578 2006-10-19  Bruno Haible  <bruno@clisp.org>
65579
65580         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
65581
65582 2006-10-19  Bruno Haible  <bruno@clisp.org>
65583
65584         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
65585         it.
65586
65587 2006-10-19  Bruno Haible  <bruno@clisp.org>
65588
65589         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
65590         invocation.
65591
65592 2006-10-19  Bruno Haible  <bruno@clisp.org>
65593
65594         * gnulib-tool (func_create_testdir): Don't include ftruncate and
65595         mountlist by default.
65596
65597 2006-10-16  Bruno Haible  <bruno@clisp.org>
65598
65599         * lib/c-strstr.c: Include c-strstr.h.
65600
65601 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65602
65603         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
65604         in a slash.
65605
65606 2006-10-18  Bruno Haible  <bruno@clisp.org>
65607
65608         * lib/lock.h [C++]: Wrap definitions in extern "C".
65609
65610 2006-10-18  Bruno Haible  <bruno@clisp.org>
65611
65612         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
65613         gl_LIBOBJS list.
65614
65615 2006-10-18  Bruno Haible  <bruno@clisp.org>
65616
65617         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
65618
65619 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
65620
65621         * lib/xstrtol.h: Include gettext.h.
65622         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
65623         Problem reported by Eric Blake.
65624         * modules/xstrtol (Depends-on): Add gettext-h.
65625
65626 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
65627
65628         * lib/strftime.c (advance): New macro.
65629         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
65630         incomplete type, so you can't add 0 to it.  Problem and patch
65631         reported by Eelco Dolstra for dietlibc.
65632
65633 2006-10-18  Jim Meyering  <jim@meyering.net>
65634
65635         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
65636         type for a local, and rename it: s/up/user_proc/.
65637
65638 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
65639
65640         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
65641         READ_UTMP_USER_PROCESS.
65642         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
65643
65644 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65645
65646         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
65647         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
65648
65649 2006-10-17  Eric Blake  <ebb9@byu.net>
65650
65651         * lib/sigprocmask.c (sigprocmask): Fix typo.
65652
65653         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
65654
65655         * modules/clean-temp (Makefile.am): Don't add to make output...
65656         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
65657         config.h.
65658
65659 2006-10-17  Bruno Haible  <bruno@clisp.org>
65660
65661         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
65662         differently if DEFAULT_TEXT_DOMAIN is set.
65663
65664 2006-10-16  Bruno Haible  <bruno@clisp.org>
65665
65666         * lib/clean-temp.c: Include fwriteerror.h.
65667
65668 2006-10-16  Bruno Haible  <bruno@clisp.org>
65669
65670         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
65671
65672 2006-10-16  Bruno Haible  <bruno@clisp.org>
65673
65674         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
65675         * lib/sigprocmask.h: Include <sys/types.h>.
65676         (sigset_t): Use the system's definition if present.
65677
65678 2006-10-17  Eric Blake  <ebb9@byu.net>
65679
65680         * lib/xvasprintf.c (includes): Assume config.h.
65681         * lib/xasprintf.c (includes): Likewise.
65682
65683 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65684
65685         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
65686         at least as wide as intmax_t.
65687
65688 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
65689
65690         (Imported from Automake.)
65691         * build-aux/gnupload: Update to version 1.1 of directive file.
65692
65693 2006-10-16  Eric Blake  <ebb9@byu.net>
65694
65695         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
65696         match Automake 1.10a.
65697
65698 2006-10-14  Bruno Haible  <bruno@clisp.org>
65699
65700         * modules/sigprocmask: New file.
65701         * lib/sigprocmask.h: New file.
65702         * lib/sigprocmask.c: New file.
65703         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
65704         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
65705         request sigprocmask.o.
65706         (gl_PREREQ_SIGPROCMASK): New macro.
65707         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
65708         (Depends-on): Add sigprocmask.
65709         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
65710         gt_SIGNALBLOCKING. Test for 'raise' only once.
65711         * lib/fatal-signal.c: Include sigprocmask.h.
65712         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
65713         unblock_fatal_signals): Define always.
65714         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65715         sigprocmask.
65716
65717 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65718
65719         Sync from Automake.
65720         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
65721         which incorrectly sets the mode of an existing destination
65722         directory.  In some cases the unpatched install-sh could do the
65723         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
65724         system.  We hope this is rare in practice, but it's clearly worth
65725         fixing.  Problem reported by Alex Unleashed in
65726         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
65727         Also, don't bother to check for -m bugs unless we're using -m;
65728         suggested by Stepan Kasal.
65729
65730 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65731
65732         Sync from Automake.
65733         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
65734         `-c' flag, so they appear at the same position as in %FASTDEP%
65735         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
65736         which ignores unknown options only after the first non-option.
65737         Bug report against M4 by Nelson H. F. Beebe.
65738
65739 2006-10-13  Jim Meyering  <jim@meyering.net>
65740
65741         Fix a bug in yesterday's change.
65742         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
65743         p->fts_statp->st_dev would be used uninitialized.
65744         Ensures that we always call fts_stat on the very first entry.
65745         Miklos Szeredi reported that find -xdev stopped working.
65746
65747 2006-10-12  Bruno Haible  <bruno@clisp.org>
65748
65749         * gnulib-tool (func_get_automake_snippet): Append an automatically
65750         computed EXTRA_DIST augmentation.
65751         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
65752         * modules/alloca-opt (Makefile.am): Likewise.
65753         * modules/allocsa (Makefile.am): Likewise.
65754         * modules/arcfour (Makefile.am): Likewise.
65755         * modules/arctwo (Makefile.am): Likewise.
65756         * modules/argmatch (Makefile.am): Likewise.
65757         * modules/argz (Makefile.am): Likewise.
65758         * modules/atexit (Makefile.am): Likewise.
65759         * modules/backupfile (Makefile.am): Likewise.
65760         * modules/byteswap (Makefile.am): Likewise.
65761         * modules/c-strtod (Makefile.am): Likewise.
65762         * modules/c-strtold (Makefile.am): Likewise.
65763         * modules/calloc (Makefile.am): Likewise.
65764         * modules/canon-host (Makefile.am): Likewise.
65765         * modules/canonicalize (Makefile.am): Likewise.
65766         * modules/chdir-long (Makefile.am): Likewise.
65767         * modules/chdir-safer (Makefile.am): Likewise.
65768         * modules/check-version (Makefile.am): Likewise.
65769         * modules/chown (Makefile.am): Likewise.
65770         * modules/cloexec (Makefile.am): Likewise.
65771         * modules/close-stream (Makefile.am): Likewise.
65772         * modules/closeout (Makefile.am): Likewise.
65773         * modules/crc (Makefile.am): Likewise.
65774         * modules/csharpexec (Makefile.am): Likewise.
65775         * modules/cycle-check (Makefile.am): Likewise.
65776         * modules/des (Makefile.am): Likewise.
65777         * modules/dev-ino (Makefile.am): Likewise.
65778         * modules/dirfd (Makefile.am): Likewise.
65779         * modules/dirname (Makefile.am): Likewise.
65780         * modules/dup2 (Makefile.am): Likewise.
65781         * modules/eealloc (Makefile.am): Likewise.
65782         * modules/error (Makefile.am): Likewise.
65783         * modules/euidaccess (Makefile.am): Likewise.
65784         * modules/exclude (Makefile.am): Likewise.
65785         * modules/exitfail (Makefile.am): Likewise.
65786         * modules/fcntl-safer (Makefile.am): Likewise.
65787         * modules/fcntl (Makefile.am): Likewise.
65788         * modules/file-type (Makefile.am): Likewise.
65789         * modules/fileblocks (Makefile.am): Likewise.
65790         * modules/filemode (Makefile.am): Likewise.
65791         * modules/filenamecat (Makefile.am): Likewise.
65792         * modules/fnmatch (Makefile.am): Likewise.
65793         * modules/fopen-safer (Makefile.am): Likewise.
65794         * modules/fpending (Makefile.am): Likewise.
65795         * modules/fprintftime (Makefile.am): Likewise.
65796         * modules/free (Makefile.am): Likewise.
65797         * modules/fsusage (Makefile.am): Likewise.
65798         * modules/ftruncate (Makefile.am): Likewise.
65799         * modules/fts (Makefile.am): Likewise.
65800         * modules/gc-arcfour (Makefile.am): Likewise.
65801         * modules/gc-des (Makefile.am): Likewise.
65802         * modules/gc-hmac-md5 (Makefile.am): Likewise.
65803         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
65804         * modules/gc-md4 (Makefile.am): Likewise.
65805         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65806         * modules/gc-sha1 (Makefile.am): Likewise.
65807         * modules/gc (Makefile.am): Likewise.
65808         * modules/getaddrinfo (Makefile.am): Likewise.
65809         * modules/getcwd (Makefile.am): Likewise.
65810         * modules/getdelim (Makefile.am): Likewise.
65811         * modules/getdomainname (Makefile.am): Likewise.
65812         * modules/getgroups (Makefile.am): Likewise.
65813         * modules/gethostname (Makefile.am): Likewise.
65814         * modules/gethrxtime (Makefile.am): Likewise.
65815         * modules/getline (Makefile.am): Likewise.
65816         * modules/getloadavg (Makefile.am): Likewise.
65817         * modules/getlogin_r (Makefile.am): Likewise.
65818         * modules/getndelim2 (Makefile.am): Likewise.
65819         * modules/getopt (Makefile.am): Likewise.
65820         * modules/getpagesize (Makefile.am): Likewise.
65821         * modules/getpass-gnu (Makefile.am): Likewise.
65822         * modules/getpass (Makefile.am): Likewise.
65823         * modules/getsubopt (Makefile.am): Likewise.
65824         * modules/gettime (Makefile.am): Likewise.
65825         * modules/gettimeofday (Makefile.am): Likewise.
65826         * modules/getugroups (Makefile.am): Likewise.
65827         * modules/getusershell (Makefile.am): Likewise.
65828         * modules/glob (Makefile.am): Likewise.
65829         * modules/group-member (Makefile.am): Likewise.
65830         * modules/hard-locale (Makefile.am): Likewise.
65831         * modules/hash (Makefile.am): Likewise.
65832         * modules/hmac-md5 (Makefile.am): Likewise.
65833         * modules/hmac-sha1 (Makefile.am): Likewise.
65834         * modules/human (Makefile.am): Likewise.
65835         * modules/idcache (Makefile.am): Likewise.
65836         * modules/imaxabs (Makefile.am): Likewise.
65837         * modules/imaxdiv (Makefile.am): Likewise.
65838         * modules/inet_ntop (Makefile.am): Likewise.
65839         * modules/inet_pton (Makefile.am): Likewise.
65840         * modules/intprops (Makefile.am): Likewise.
65841         * modules/inttostr (Makefile.am): Likewise.
65842         * modules/inttypes (Makefile.am): Likewise.
65843         * modules/isapipe (Makefile.am): Likewise.
65844         * modules/javaversion (Makefile.am): Likewise.
65845         * modules/lchmod (Makefile.am): Likewise.
65846         * modules/lchown (Makefile.am): Likewise.
65847         * modules/localcharset (Makefile.am): Likewise.
65848         * modules/long-options (Makefile.am): Likewise.
65849         * modules/lstat (Makefile.am): Likewise.
65850         * modules/malloc (Makefile.am): Likewise.
65851         * modules/mathl (Makefile.am): Likewise.
65852         * modules/mbchar (Makefile.am): Likewise.
65853         * modules/md2 (Makefile.am): Likewise.
65854         * modules/md4 (Makefile.am): Likewise.
65855         * modules/md5 (Makefile.am): Likewise.
65856         * modules/memcasecmp (Makefile.am): Likewise.
65857         * modules/memchr (Makefile.am): Likewise.
65858         * modules/memcmp (Makefile.am): Likewise.
65859         * modules/memcoll (Makefile.am): Likewise.
65860         * modules/memcpy (Makefile.am): Likewise.
65861         * modules/memmem (Makefile.am): Likewise.
65862         * modules/memmove (Makefile.am): Likewise.
65863         * modules/mempcpy (Makefile.am): Likewise.
65864         * modules/memrchr (Makefile.am): Likewise.
65865         * modules/memset (Makefile.am): Likewise.
65866         * modules/memxor (Makefile.am): Likewise.
65867         * modules/mkancesdirs (Makefile.am): Likewise.
65868         * modules/mkdir-p (Makefile.am): Likewise.
65869         * modules/mkdir (Makefile.am): Likewise.
65870         * modules/mkdtemp (Makefile.am): Likewise.
65871         * modules/mkstemp (Makefile.am): Likewise.
65872         * modules/mktime (Makefile.am): Likewise.
65873         * modules/modechange (Makefile.am): Likewise.
65874         * modules/mountlist (Makefile.am): Likewise.
65875         * modules/nanosleep (Makefile.am): Likewise.
65876         * modules/obstack (Makefile.am): Likewise.
65877         * modules/openat (Makefile.am): Likewise.
65878         * modules/pagealign_alloc (Makefile.am): Likewise.
65879         * modules/pathmax (Makefile.am): Likewise.
65880         * modules/physmem (Makefile.am): Likewise.
65881         * modules/poll (Makefile.am): Likewise.
65882         * modules/posixtm (Makefile.am): Likewise.
65883         * modules/posixver (Makefile.am): Likewise.
65884         * modules/putenv (Makefile.am): Likewise.
65885         * modules/quote (Makefile.am): Likewise.
65886         * modules/quotearg (Makefile.am): Likewise.
65887         * modules/raise (Makefile.am): Likewise.
65888         * modules/read-file (Makefile.am): Likewise.
65889         * modules/readline (Makefile.am): Likewise.
65890         * modules/readlink (Makefile.am): Likewise.
65891         * modules/readtokens (Makefile.am): Likewise.
65892         * modules/readutmp (Makefile.am): Likewise.
65893         * modules/realloc (Makefile.am): Likewise.
65894         * modules/regex (Makefile.am): Likewise.
65895         * modules/rename-dest-slash (Makefile.am): Likewise.
65896         * modules/rename (Makefile.am): Likewise.
65897         * modules/rijndael (Makefile.am): Likewise.
65898         * modules/rmdir (Makefile.am): Likewise.
65899         * modules/rpmatch (Makefile.am): Likewise.
65900         * modules/safe-read (Makefile.am): Likewise.
65901         * modules/safe-write (Makefile.am): Likewise.
65902         * modules/same-inode (Makefile.am): Likewise.
65903         * modules/same (Makefile.am): Likewise.
65904         * modules/save-cwd (Makefile.am): Likewise.
65905         * modules/savedir (Makefile.am): Likewise.
65906         * modules/setenv (Makefile.am): Likewise.
65907         * modules/settime (Makefile.am): Likewise.
65908         * modules/sha1 (Makefile.am): Likewise.
65909         * modules/sig2str (Makefile.am): Likewise.
65910         * modules/snprintf (Makefile.am): Likewise.
65911         * modules/stat-macros (Makefile.am): Likewise.
65912         * modules/stat-time (Makefile.am): Likewise.
65913         * modules/stdbool (Makefile.am): Likewise.
65914         * modules/stdint (Makefile.am): Likewise.
65915         * modules/stdlib-safer (Makefile.am): Likewise.
65916         * modules/stpcpy (Makefile.am): Likewise.
65917         * modules/stpncpy (Makefile.am): Likewise.
65918         * modules/strcase (Makefile.am): Likewise.
65919         * modules/strcasestr (Makefile.am): Likewise.
65920         * modules/strchrnul (Makefile.am): Likewise.
65921         * modules/strcspn (Makefile.am): Likewise.
65922         * modules/strdup (Makefile.am): Likewise.
65923         * modules/strerror (Makefile.am): Likewise.
65924         * modules/strftime (Makefile.am): Likewise.
65925         * modules/strndup (Makefile.am): Likewise.
65926         * modules/strnlen (Makefile.am): Likewise.
65927         * modules/strpbrk (Makefile.am): Likewise.
65928         * modules/strsep (Makefile.am): Likewise.
65929         * modules/strstr (Makefile.am): Likewise.
65930         * modules/strtod (Makefile.am): Likewise.
65931         * modules/strtoimax (Makefile.am): Likewise.
65932         * modules/strtok_r (Makefile.am): Likewise.
65933         * modules/strtol (Makefile.am): Likewise.
65934         * modules/strtoll (Makefile.am): Likewise.
65935         * modules/strtoul (Makefile.am): Likewise.
65936         * modules/strtoull (Makefile.am): Likewise.
65937         * modules/strtoumax (Makefile.am): Likewise.
65938         * modules/strverscmp (Makefile.am): Likewise.
65939         * modules/sys_socket (Makefile.am): Likewise.
65940         * modules/sys_stat (Makefile.am): Likewise.
65941         * modules/sysexits (Makefile.am): Likewise.
65942         * modules/time_r (Makefile.am): Likewise.
65943         * modules/timegm (Makefile.am): Likewise.
65944         * modules/timespec (Makefile.am): Likewise.
65945         * modules/tmpfile-safer (Makefile.am): Likewise.
65946         * modules/trim (Makefile.am): Likewise.
65947         * modules/unistd-safer (Makefile.am): Likewise.
65948         * modules/unlinkdir (Makefile.am): Likewise.
65949         * modules/unlocked-io (Makefile.am): Likewise.
65950         * modules/userspec (Makefile.am): Likewise.
65951         * modules/utime (Makefile.am): Likewise.
65952         * modules/utimecmp (Makefile.am): Likewise.
65953         * modules/utimens (Makefile.am): Likewise.
65954         * modules/vasnprintf (Makefile.am): Likewise.
65955         * modules/vasprintf (Makefile.am): Likewise.
65956         * modules/vsnprintf (Makefile.am): Likewise.
65957         * modules/xalloc (Makefile.am): Likewise.
65958         * modules/xgetcwd (Makefile.am): Likewise.
65959         * modules/xnanosleep (Makefile.am): Likewise.
65960         * modules/xreadlink (Makefile.am): Likewise.
65961         * modules/xstrtod (Makefile.am): Likewise.
65962         * modules/xstrtol (Makefile.am): Likewise.
65963         * modules/xstrtold (Makefile.am): Likewise.
65964         * modules/yesno (Makefile.am): Likewise.
65965         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
65966
65967 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65968
65969         * modules/error (Makefile.am): Distribute files through
65970         EXTRA_DIST, not lib_SOURCES.
65971
65972 2006-10-12  Eric Blake  <ebb9@byu.net>
65973
65974         * modules/error (Makefile.am): Distribute files in /lib.
65975         * modules/obstack (Makefile.am): Likewise.
65976
65977 2006-10-12  Bruno Haible  <bruno@clisp.org>
65978
65979         * modules/acl (Makefile.am): Distribute all files in lib/ through
65980         EXTRA_DIST.
65981         * modules/arcfour (Makefile.am): Likewise.
65982         * modules/arctwo (Makefile.am): Likewise.
65983         * modules/argmatch (Makefile.am): Likewise.
65984         * modules/argz (Makefile.am): Likewise.
65985         * modules/atexit (Makefile.am): Likewise.
65986         * modules/backupfile (Makefile.am): Likewise.
65987         * modules/c-strtod (Makefile.am): Likewise.
65988         * modules/c-strtold (Makefile.am): Likewise.
65989         * modules/calloc (Makefile.am): Likewise.
65990         * modules/canon-host (Makefile.am): Likewise.
65991         * modules/canonicalize (Makefile.am): Likewise.
65992         * modules/chdir-long (Makefile.am): Likewise.
65993         * modules/chdir-safer (Makefile.am): Likewise.
65994         * modules/check-version (Makefile.am): Likewise.
65995         * modules/chown (Makefile.am): Likewise.
65996         * modules/cloexec (Makefile.am): Likewise.
65997         * modules/close-stream (Makefile.am): Likewise.
65998         * modules/closeout (Makefile.am): Likewise.
65999         * modules/crc (Makefile.am): Likewise.
66000         * modules/cycle-check (Makefile.am): Likewise.
66001         * modules/des (Makefile.am): Likewise.
66002         * modules/dirfd (Makefile.am): Likewise.
66003         * modules/dirname (Makefile.am): Likewise.
66004         * modules/dup2 (Makefile.am): Likewise.
66005         * modules/euidaccess (Makefile.am): Likewise.
66006         * modules/exclude (Makefile.am): Likewise.
66007         * modules/exitfail (Makefile.am): Likewise.
66008         * modules/fcntl-safer (Makefile.am): Likewise.
66009         * modules/file-type (Makefile.am): Likewise.
66010         * modules/fileblocks (Makefile.am): Likewise.
66011         * modules/filemode (Makefile.am): Likewise.
66012         * modules/filenamecat (Makefile.am): Likewise.
66013         * modules/fnmatch (Makefile.am): Likewise.
66014         * modules/fopen-safer (Makefile.am): Likewise.
66015         * modules/fpending (Makefile.am): Likewise.
66016         * modules/fprintftime (Makefile.am): Likewise.
66017         * modules/free (Makefile.am): Likewise.
66018         * modules/fsusage (Makefile.am): Likewise.
66019         * modules/ftruncate (Makefile.am): Likewise.
66020         * modules/fts (Makefile.am): Likewise.
66021         * modules/gc (Makefile.am): Likewise.
66022         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66023         * modules/getaddrinfo (Makefile.am): Likewise.
66024         * modules/getcwd (Makefile.am): Likewise.
66025         * modules/getdelim (Makefile.am): Likewise.
66026         * modules/getdomainname (Makefile.am): Likewise.
66027         * modules/getgroups (Makefile.am): Likewise.
66028         * modules/gethostname (Makefile.am): Likewise.
66029         * modules/gethrxtime (Makefile.am): Likewise.
66030         * modules/getline (Makefile.am): Likewise.
66031         * modules/getloadavg (Makefile.am): Likewise.
66032         * modules/getlogin_r (Makefile.am): Likewise.
66033         * modules/getopt (Makefile.am): Likewise.
66034         * modules/getpass (Makefile.am): Likewise.
66035         * modules/getpass-gnu (Makefile.am): Likewise.
66036         * modules/getsubopt (Makefile.am): Likewise.
66037         * modules/gettime (Makefile.am): Likewise.
66038         * modules/gettimeofday (Makefile.am): Likewise.
66039         * modules/getugroups (Makefile.am): Likewise.
66040         * modules/getusershell (Makefile.am): Likewise.
66041         * modules/glob (Makefile.am): Likewise.
66042         * modules/group-member (Makefile.am): Likewise.
66043         * modules/hard-locale (Makefile.am): Likewise.
66044         * modules/hash (Makefile.am): Likewise.
66045         * modules/hmac-md5 (Makefile.am): Likewise.
66046         * modules/hmac-sha1 (Makefile.am): Likewise.
66047         * modules/human (Makefile.am): Likewise.
66048         * modules/idcache (Makefile.am): Likewise.
66049         * modules/imaxabs (Makefile.am): Likewise.
66050         * modules/imaxdiv (Makefile.am): Likewise.
66051         * modules/inet_ntop (Makefile.am): Likewise.
66052         * modules/inet_pton (Makefile.am): Likewise.
66053         * modules/inttostr (Makefile.am): Likewise.
66054         * modules/isapipe (Makefile.am): Likewise.
66055         * modules/lchown (Makefile.am): Likewise.
66056         * modules/long-options (Makefile.am): Likewise.
66057         * modules/lstat (Makefile.am): Likewise.
66058         * modules/malloc (Makefile.am): Likewise.
66059         * modules/mathl (Makefile.am): Likewise.
66060         * modules/mbchar (Makefile.am): Likewise.
66061         * modules/md2 (Makefile.am): Likewise.
66062         * modules/md4 (Makefile.am): Likewise.
66063         * modules/md5 (Makefile.am): Likewise.
66064         * modules/memcasecmp (Makefile.am): Likewise.
66065         * modules/memchr (Makefile.am): Likewise.
66066         * modules/memcmp (Makefile.am): Likewise.
66067         * modules/memcoll (Makefile.am): Likewise.
66068         * modules/memcpy (Makefile.am): Likewise.
66069         * modules/memmem (Makefile.am): Likewise.
66070         * modules/memmove (Makefile.am): Likewise.
66071         * modules/mempcpy (Makefile.am): Likewise.
66072         * modules/memrchr (Makefile.am): Likewise.
66073         * modules/memset (Makefile.am): Likewise.
66074         * modules/memxor (Makefile.am): Likewise.
66075         * modules/mkancesdirs (Makefile.am): Likewise.
66076         * modules/mkdir (Makefile.am): Likewise.
66077         * modules/mkdir-p (Makefile.am): Likewise.
66078         * modules/mkdtemp (Makefile.am): Likewise.
66079         * modules/mkstemp (Makefile.am): Likewise.
66080         * modules/mktime (Makefile.am): Likewise.
66081         * modules/modechange (Makefile.am): Likewise.
66082         * modules/mountlist (Makefile.am): Likewise.
66083         * modules/nanosleep (Makefile.am): Likewise.
66084         * modules/openat (Makefile.am): Likewise.
66085         * modules/pagealign_alloc (Makefile.am): Likewise.
66086         * modules/physmem (Makefile.am): Likewise.
66087         * modules/poll (Makefile.am): Likewise.
66088         * modules/posixtm (Makefile.am): Likewise.
66089         * modules/posixver (Makefile.am): Likewise.
66090         * modules/putenv (Makefile.am): Likewise.
66091         * modules/quote (Makefile.am): Likewise.
66092         * modules/quotearg (Makefile.am): Likewise.
66093         * modules/raise (Makefile.am): Likewise.
66094         * modules/read-file (Makefile.am): Likewise.
66095         * modules/readline (Makefile.am): Likewise.
66096         * modules/readlink (Makefile.am): Likewise.
66097         * modules/readtokens (Makefile.am): Likewise.
66098         * modules/readutmp (Makefile.am): Likewise.
66099         * modules/realloc (Makefile.am): Likewise.
66100         * modules/regex (Makefile.am): Likewise.
66101         * modules/rename (Makefile.am): Likewise.
66102         * modules/rename-dest-slash (Makefile.am): Likewise.
66103         * modules/rijndael (Makefile.am): Likewise.
66104         * modules/rmdir (Makefile.am): Likewise.
66105         * modules/rpmatch (Makefile.am): Likewise.
66106         * modules/safe-read (Makefile.am): Likewise.
66107         * modules/safe-write (Makefile.am): Likewise.
66108         * modules/same (Makefile.am): Likewise.
66109         * modules/save-cwd (Makefile.am): Likewise.
66110         * modules/savedir (Makefile.am): Likewise.
66111         * modules/setenv (Makefile.am): Likewise.
66112         * modules/settime (Makefile.am): Likewise.
66113         * modules/sha1 (Makefile.am): Likewise.
66114         * modules/sig2str (Makefile.am): Likewise.
66115         * modules/snprintf (Makefile.am): Likewise.
66116         * modules/stdlib-safer (Makefile.am): Likewise.
66117         * modules/stpcpy (Makefile.am): Likewise.
66118         * modules/stpncpy (Makefile.am): Likewise.
66119         * modules/strcase (Makefile.am): Likewise.
66120         * modules/strcasestr (Makefile.am): Likewise.
66121         * modules/strchrnul (Makefile.am): Likewise.
66122         * modules/strcspn (Makefile.am): Likewise.
66123         * modules/strdup (Makefile.am): Likewise.
66124         * modules/strerror (Makefile.am): Likewise.
66125         * modules/strftime (Makefile.am): Likewise.
66126         * modules/strndup (Makefile.am): Likewise.
66127         * modules/strnlen (Makefile.am): Likewise.
66128         * modules/strpbrk (Makefile.am): Likewise.
66129         * modules/strsep (Makefile.am): Likewise.
66130         * modules/strstr (Makefile.am): Likewise.
66131         * modules/strtod (Makefile.am): Likewise.
66132         * modules/strtoimax (Makefile.am): Likewise.
66133         * modules/strtok_r (Makefile.am): Likewise.
66134         * modules/strtol (Makefile.am): Likewise.
66135         * modules/strtoll (Makefile.am): Likewise.
66136         * modules/strtoul (Makefile.am): Likewise.
66137         * modules/strtoull (Makefile.am): Likewise.
66138         * modules/strtoumax (Makefile.am): Likewise.
66139         * modules/strverscmp (Makefile.am): Likewise.
66140         * modules/time_r (Makefile.am): Likewise.
66141         * modules/timegm (Makefile.am): Likewise.
66142         * modules/tmpfile-safer (Makefile.am): Likewise.
66143         * modules/unistd-safer (Makefile.am): Likewise.
66144         * modules/unlinkdir (Makefile.am): Likewise.
66145         * modules/userspec (Makefile.am): Likewise.
66146         * modules/utime (Makefile.am): Likewise.
66147         * modules/utimecmp (Makefile.am): Likewise.
66148         * modules/utimens (Makefile.am): Likewise.
66149         * modules/vasnprintf (Makefile.am): Likewise.
66150         * modules/vasprintf (Makefile.am): Likewise.
66151         * modules/vsnprintf (Makefile.am): Likewise.
66152         * modules/xalloc (Makefile.am): Likewise.
66153         * modules/xgetcwd (Makefile.am): Likewise.
66154         * modules/xnanosleep (Makefile.am): Likewise.
66155         * modules/xreadlink (Makefile.am): Likewise.
66156         * modules/xstrtod (Makefile.am): Likewise.
66157         * modules/xstrtol (Makefile.am): Likewise.
66158         * modules/xstrtold (Makefile.am): Likewise.
66159         * modules/yesno (Makefile.am): Likewise.
66160
66161 2006-10-12  Jim Meyering  <jim@meyering.net>
66162
66163         * m4/getloadavg.m4: Revert the change below.
66164
66165         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
66166         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
66167         fail with a symlink, which is what coreutils' ./bootstrap now
66168         creates by default.
66169
66170 2006-10-12  Bruno Haible  <bruno@clisp.org>
66171
66172         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
66173         mingw.
66174         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
66175         MSVC and mingw explicitly.
66176
66177 2006-10-11  Simon Josefsson  <jas@extundo.com>
66178             Bruno Haible  <bruno@clisp.org>
66179
66180         Add support for multiple gnulib-tool invocations in the scope of a
66181         single configure.ac file.
66182         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66183         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66184         with the same contents as the _LIBADD variable.
66185         (func_emit_initmacro_start, func_emit_initmacro_end,
66186         func_emit_initmacro_done): New functions.
66187         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66188         gl_LIBOBJS and gl_LTLIBOBJS.
66189
66190 2006-10-11  Bruno Haible  <bruno@clisp.org>
66191
66192         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66193         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66194         autoreconf. Instead, invoke autopoint explicitly but move back the
66195         *.m4 files from gnulib.
66196
66197 2006-10-11  Bruno Haible  <bruno@clisp.org>
66198
66199         * gnulib-tool (func_usage): Make module names after --create-testdir
66200         optional.
66201         (func_create_testdir): If no module was specified, use nearly all
66202         modules.
66203
66204 2006-10-12  Jim Meyering  <jim@meyering.net>
66205
66206         Big performance improvement for fts-based tools that use FTS_NOSTAT.
66207         Avoid spurious inode-mismatch problems on non-POSIX file systems.
66208         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
66209         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
66210         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
66211         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
66212         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
66213         (fts_set_stat_required): New function.
66214         (fts_open): Defer the calls to fts_stat, if possible or requested.
66215         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
66216         into fts_stat itself.
66217         (fts_read): Perform any required (deferred) fts_stat call.
66218         (fts_build): Likewise, for the directory we're about to open and read.
66219         In the readdir loop, carefully decide whether each entry will require
66220         an eventual call to fts_stat, using dirent.d_type info if available.
66221         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
66222         a command line argument into this function.  Update all callers.
66223         Map a return value of FTS_DOT to FTS_D for a command line argument.
66224         * modules/fts (Depends-on): Add d-type.  Alphabetize.
66225         Thanks to Miklos Szeredi for his tenacity and for the initial
66226         bug report about "find" failing on a FUSE-based file system.
66227
66228         * lib/fts.c (fts_open): Use consistent indentation.
66229
66230 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66231
66232         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
66233         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
66234         reported by Jim Meyering.  All uses of cache variables renamed
66235         to match Autoconf's.
66236         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
66237         the other one.
66238
66239         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
66240         Fix misspelling in diagnostic.
66241
66242 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66243
66244         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
66245         defined.  Problem reported by Matthew Woehlke.
66246
66247         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
66248         Add support for Tandem NonStop R series.
66249         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
66250         Use new macro.
66251
66252         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
66253         (has_trailing_slash): Omit size arg; all callers changed.
66254         Omit 'inline', since it doesn't help performance and we'd
66255         need to configure it.
66256         Don't count //, ///, etc. as having a trailing slash.
66257         As a side effect, this removes a C99ism reported by Matthew Woehlke.
66258         (rpl_rename_dest_slash): On failure, use rename's errno rather
66259         than (in some cases) an incorrect or junk errno.
66260         Simplify code by removing need to compute length; this does
66261         cause it to make two passes instead of one over the file name,
66262         but it's worth it.
66263
66264         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
66265         change, since Autoconf's version may no longer be appropriate now
66266         that we are using CVS Autoconf's version.  Add support for Tandem.
66267
66268 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66269             Bruno Haible  <bruno@clisp.org>
66270
66271         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
66272         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
66273         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
66274         gl_AC_TYPE_LONG_LONG.
66275
66276         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
66277         instead of HAVE_LONG_LONG.
66278         * lib/printf-args.c (printf_fetchargs): Likewise.
66279         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
66280         * lib/vasnprintf.c (VASNPRINTF): Likewise.
66281         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
66282         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
66283         gl_AC_TYPE_LONG_LONG.
66284
66285 2006-10-11  Bruno Haible  <bruno@clisp.org>
66286
66287         * m4/longlong.m4: Add comments.
66288         * m4/ulonglong.m4: Likewise.
66289
66290 2006-10-10  Bruno Haible  <bruno@clisp.org>
66291
66292         Make it possible to #define stpcpy, strdup to aliases.
66293         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
66294         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
66295
66296 2006-10-10  Bruno Haible  <bruno@clisp.org>
66297
66298         Make it possible to #define gcd to an alias.
66299         * lib/gcd.c: Include config.h.
66300
66301 2006-10-10  Bruno Haible  <bruno@clisp.org>
66302
66303         Make it possible to #define c_isascii to an alias.
66304         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
66305         defined. Undefine the macros before defining them, to avoid gcc
66306         warnings.
66307         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
66308         define NO_C_CTYPE_MACROS early.
66309
66310 2006-10-10  Bruno Haible  <bruno@clisp.org>
66311
66312         Make it possible to #define set_program_name to an alias.
66313         * lib/progname.c: Don't undefine set_program_name; instead, undefine
66314         ENABLE_RELOCATABLE early.
66315
66316 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66317
66318         Port to Tandem NSK OSS, which has 64-bit signed int but at most
66319         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
66320         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
66321         More generally, don't assume that 64-bit signed int is available
66322         if unsigned int is, and vice versa.
66323         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
66324         unsigned symbols, not on their signed counterparts.
66325         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
66326         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
66327         (UINT64_C, UINTMAX_C):
66328         Likewise.
66329         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
66330         unsigned counterparts.
66331         (Have_long_long, Unsigned): New macros.
66332         (Int): Renamed from INT.
66333         (strtoimax): Use the new macros.
66334         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
66335         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
66336         * modules/inttypes (inttypes.h): Substitute
66337         HAVE_UNSIGNED_LONG_LONG_INT.
66338         * modules/stdint (stdint.h): Likewise.
66339         (Files): Add m4/ulonglong.m4.
66340
66341 2006-10-10  Bruno Haible  <bruno@clisp.org>
66342
66343         Fix a gcc -Wshadow warning.
66344         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
66345         to 'bucket'.
66346         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
66347         gl_linked_indexof_from_to): Likewise.
66348         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
66349         Likewise.
66350         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
66351         Likewise.
66352         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
66353         Reported by Eric Blake.
66354
66355 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
66356
66357         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
66358         for NetBSD.  Problem reported by Bruno Haible.
66359
66360 2006-10-09  Jim Meyering  <jim@meyering.net>
66361
66362         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
66363         Patch from Bruno Haible.
66364
66365 2006-10-09  Jim Meyering  <jim@meyering.net>
66366
66367         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
66368         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
66369         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
66370
66371 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66372
66373         Don't include <config.h> twice; this doesn't work in some cases,
66374         e.g., when config.h has "#define intmax_t long long int" and
66375         we include <config.h>, <inttypes.h>, <config.h> in that order.
66376         Problem reported by Matthew Woehlke in:
66377         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
66378         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
66379         * lib/fts-cycle.c: Don't include config.h.
66380         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
66381         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
66382         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
66383         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
66384         inttypes.h.
66385         * lib/xstrtoumax.c: Likewise.
66386         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
66387         __strtol and the like, so that this module is more like its siblings.
66388         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
66389         Remove; no longer needed now that we assume gnulib inttypes.h.
66390
66391 2006-10-08  Bruno Haible  <bruno@clisp.org>
66392
66393         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
66394         option.
66395
66396 2006-10-07  Jim Meyering  <jim@meyering.net>
66397
66398         * modules/inttypes (inttypes.h): Revert what seems to have been
66399         an inadvertent part of today's change: use "|", not "/" in the
66400         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
66401
66402 2006-10-07  Bruno Haible  <bruno@clisp.org>
66403
66404         * modules/sublist: New file.
66405
66406 2006-10-07  Bruno Haible  <bruno@clisp.org>
66407
66408         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
66409         * modules/argz (argz.h): Likewise.
66410         * modules/arpa_inet (arpa/inet.h): Likewise.
66411         * modules/byteswap (byteswap.h): Likewise.
66412         * modules/configmake (configmake.h): Likewise.
66413         * modules/fcntl (fcntl.h): Likewise.
66414         * modules/fnmatch (fnmatch.h): Likewise.
66415         * modules/getopt (getopt.h): Likewise.
66416         * modules/glob (glob.h): Likewise.
66417         * modules/inttypes (inttypes.h): Likewise.
66418         * modules/netinet_in (netinet/in.h): Likewise.
66419         * modules/poll (poll.h): Likewise.
66420         * modules/stdbool (stdbool.h): Likewise.
66421         * modules/stdint (stdint.h): Likewise.
66422         * modules/sys_select (sys/select.h): Likewise.
66423         * modules/sys_socket (sys/socket.h): Likewise.
66424         * modules/sys_stat (sys/stat.h): Likewise.
66425         * modules/sysexits (sysexits.h): Likewise.
66426         * modules/unistd (unistd.h): Likewise.
66427         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66428         Add a "DO NOT EDIT" comment to the generated file.
66429         (func_import): Likewise for gnulib-comp.m4.
66430
66431 2006-10-07  Bruno Haible  <bruno@clisp.org>
66432
66433         * lib/gl_sublist.h: New file.
66434         * lib/gl_sublist.c: New file.
66435
66436 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66437
66438         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
66439         name (relative to the original working directory) and the file
66440         name component (relative to the temporary working directory).  All
66441         callers changed.
66442         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
66443         * lib/mkdir-p.c (make_dir_parents): Likewise.
66444         * lib/mkdir-p.h (make_dir_parents): Likewise.
66445
66446 2006-10-06  Eric Blake  <ebb9@byu.net>
66447
66448         Define several macros for use by the clean-temp module.
66449         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
66450         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
66451         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
66452
66453         * lib/clean-temp.h (close_stream_temp): New declaration.
66454         * lib/clean-temp.c (includes): Pull in headers according to what
66455         other modules are in use.
66456         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
66457
66458 2006-10-06  Bruno Haible  <bruno@clisp.org>
66459
66460         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
66461         instead of fopen, fwriteerror.
66462
66463 2006-10-06  Bruno Haible  <bruno@clisp.org>
66464
66465         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
66466         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
66467         int.
66468         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
66469         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
66470         Return an error indicator.
66471         Suggested by Eric Blake.
66472
66473 2006-10-06  Bruno Haible  <bruno@clisp.org>
66474
66475         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
66476         Reported by Eric Blake.
66477
66478 2006-10-06  Bruno Haible  <bruno@clisp.org>
66479
66480         * modules/closeout (Description): Mention stderr too.
66481
66482 2006-10-06  Bruno Haible  <bruno@clisp.org>
66483         and Paul Eggert  <eggert@cs.ucla.edu>
66484
66485         * lib/closeout.c (close_stdout): Also close stderr.
66486         * lib/closeout.h: Update comment.
66487
66488 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66489
66490         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
66491         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
66492         * lib/dirchownmod.c: Include lchown.h.
66493         * lib/lchown.c: Don't include files that lchown.h now includes.
66494         Don't declare chown, since lchown.h now does that.
66495         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
66496         (lchown): Define to rpl_chown if lchown is declared but
66497         does not exist.  Declare using a prototype if lchown is not
66498         declared.  Add a copyright notice.
66499         * lib/mkstemp.h: Include <unistd.h>.
66500         * lib/openat.c: Include lchown.h.
66501
66502         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
66503         we now test for that separately.
66504         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
66505         rather than O_NOFOLLOW, when testing whether it's possible to
66506         avoid a race condition reliably.
66507         * lib/savewd.c (savewd_chdir): Likewise.
66508
66509         Remove macros that are no longer needed now that stdint.h is
66510         reliable.
66511         * lib/fsusage.c (UINTMAX_MAX): Remove.
66512         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
66513         * lib/utimecmp.c (SIZE_MAX): Remove.
66514
66515         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
66516
66517         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
66518         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
66519         O_NOATIME works.
66520
66521 2006-10-05  Bruno Haible  <bruno@clisp.org>
66522
66523         * lib/gl_list.h (gl_sortedlist_search_from_to,
66524         gl_sortedlist_indexof_from_to): New declarations.
66525         (gl_list_implementation): New fields sortedlist_search_from_to,
66526         sortedlist_indexof_from_to.
66527         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
66528         inline functions.
66529         * lib/gl_list.c (gl_sortedlist_search_from_to,
66530         gl_sortedlist_indexof_from_to): New functions.
66531         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
66532         function.
66533         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
66534         (gl_array_sortedlist_search_from_to): New function.
66535         (gl_array_list_implementation): Update.
66536         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
66537         function.
66538         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
66539         (gl_carray_sortedlist_search_from_to): New function.
66540         (gl_carray_list_implementation): Update.
66541         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
66542         gl_linked_sortedlist_indexof_from_to): New functions.
66543         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66544         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66545         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
66546         gl_tree_sortedlist_indexof_from_to): New functions.
66547         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66548         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66549         Update.
66550         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66551         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
66552         Update.
66553
66554 2006-10-05  Bruno Haible  <bruno@clisp.org>
66555
66556         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
66557         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
66558         (struct gl_list_implementation): Add fields search_from_to,
66559         indexof_from_to. Remove fields search, indexof.
66560         (gl_list_search): Use the search_from_to method.
66561         (gl_list_search_from, gl_list_search_from_to): New functions.
66562         (gl_list_indexof): Use the indexof_from_to method.
66563         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66564         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
66565         (gl_list_search_from, gl_list_search_from_to): New functions.
66566         (gl_list_indexof): Use the indexof_from_to method.
66567         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66568         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
66569         gl_array_indexof. Add start_index, end_index arguments.
66570         (gl_array_search_from_to): Renamed from gl_array_search. Add
66571         start_index, end_index arguments.
66572         (gl_array_remove, gl_array_list_implementation): Update.
66573         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
66574         gl_carray_indexof. Add start_index, end_index arguments.
66575         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
66576         start_index, end_index arguments.
66577         (gl_carray_remove, gl_carray_list_implementation): Update.
66578         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
66579         gl_linked_search. Add start_index, end_index arguments.
66580         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
66581         start_index, end_index arguments.
66582         (gl_linked_remove): Update.
66583         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66584         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66585         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
66586         field to 'size_t'.
66587         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
66588         gl_tree_search. Add start_index, end_index arguments.
66589         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66590         start_index, end_index arguments.
66591         (gl_tree_remove): Update.
66592         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66593         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66594         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
66595         function.
66596         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
66597         gl_tree_search. Add start_index, end_index arguments.
66598         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66599         start_index, end_index arguments.
66600         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66601         Update.
66602         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
66603
66604 2006-10-05  Bruno Haible  <bruno@clisp.org>
66605
66606         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
66607
66608         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
66609         fwriteerror_temp): New declarations.
66610         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
66611         (descriptors): New variable.
66612         (cleanup): First, close the descriptors.
66613         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
66614         fclose_temp, fwriteerror_temp): New functions.
66615
66616 2006-10-04  Jim Meyering  <jim@meyering.net>
66617
66618         * lib/fts.c (fts_open): Tiny comment change.
66619
66620 2006-10-04  Bruno Haible  <bruno@clisp.org>
66621
66622         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
66623         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
66624         gl_LOCK_BODY.
66625         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
66626         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
66627         gl_LOCK_EARLY_BODY.
66628         (gl_LOCK): Require gl_LOCK_BODY.
66629
66630 2006-10-04  Bruno Haible  <bruno@clisp.org>
66631
66632         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
66633         (gl_oset_search_atleast): New declaration.
66634         (struct gl_oset_implementation): Add field 'search_atleast'.
66635         (gl_oset_search_atleast): New inline function.
66636         * lib/gl_oset.c (gl_oset_search_atleast): New function.
66637         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
66638         (gl_array_oset_implementation): Update.
66639         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
66640         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
66641         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
66642
66643 2006-10-04  Bruno Haible  <bruno@clisp.org>
66644
66645         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
66646
66647 2006-10-03  Bruno Haible  <bruno@clisp.org>
66648
66649         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
66650         from gl_avltreehash_list_implementation.
66651
66652 2006-10-03  Bruno Haible  <bruno@clisp.org>
66653
66654         * lib/gl_oset.c (gl_oset_add): Fix return type.
66655
66656 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
66657
66658         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
66659
66660 2006-10-02  Eric Blake  <ebb9@byu.net>
66661
66662         * modules/strnlen (Depends-on): Add extensions.
66663
66664 2006-10-02  Eric Blake  <ebb9@byu.net>
66665
66666         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
66667         definition in 2.60+.
66668
66669 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
66670
66671         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
66672         checks.
66673
66674 2006-10-02  Bruno Haible  <bruno@clisp.org>
66675
66676         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
66677         to the AUTOMAKE_OPTIONS.
66678         Reported by Jim Meyering.
66679
66680 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66681
66682         Work around bug in Solaris 10 /proc file system:
66683         /proc/self/fd/NNN/.. isn't the parent directory of
66684         the directory whose file descriptor is NNN.  This needs to
66685         be worked around at run time, not compile time, since a
66686         program might be built on Solaris 8, where things work, and
66687         run on Solaris 10.
66688         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
66689         to use the following interface instead:
66690         (OPENAT_BUFFER_SIZE): New macro.
66691         (openat_proc_name): New function.
66692         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
66693         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
66694         Likewise.
66695         * lib/openat-proc.c: New file.
66696         * modules/openat (Files): Add lib/openat-proc.c.
66697         (Depends-on): Add same-inode, stdbool.
66698         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
66699
66700 2006-09-29  Bruno Haible  <bruno@clisp.org>
66701
66702         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
66703         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
66704         argument. Set stdout_closed before testing for ferror, not after.
66705         (fwriteerror, fwriteerror_no_ebadf): New functions.
66706
66707 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66708
66709         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
66710
66711 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
66712
66713         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
66714         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
66715
66716 2006-09-28  Jim Meyering  <jim@meyering.net>
66717
66718         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
66719         Include <unistd.h>.
66720
66721 2006-09-28  Bruno Haible  <bruno@clisp.org>
66722
66723         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
66724         * modules/linkedhash-list (Depends-on): Likewise.
66725         * modules/rbtreehash-list (Depends-on): Likewise.
66726
66727 2006-09-28  Bruno Haible  <bruno@clisp.org>
66728
66729         * lib/strndup.h: Simplify the redefinition of strndup.
66730         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
66731         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
66732
66733 2006-09-28  Bruno Haible  <bruno@clisp.org>
66734
66735         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
66736         * lib/gl_linkedhash_list.c: Likewise.
66737         * lib/gl_rbtreehash_list.c: Likewise.
66738
66739 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66740
66741         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
66742         getaddrinfo.
66743
66744         * lib/__fpending.h: Don't include <stdio_ext.h> unless
66745         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
66746         it causes <stdio_ext.h> to cause a compile-time error.
66747         Problem reported by Nelson H. F. Beebe.
66748         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
66749         of HAVE_DECL___PENDING.
66750
66751         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
66752         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
66753         declaration.
66754
66755 2006-09-27  Jim Meyering  <jim@meyering.net>
66756
66757         This file could end up with a definition for a function
66758         named __strndup, rather than rpl_strndup on a system with
66759         incomplete weak_alias support.
66760         * lib/strndup.c (strndup): Rename from __strndup.
66761         Remove #defines that used to map __strndup to strndup.
66762         Don't use K&R prototypes.
66763         Remove LIBC-related code, since this file is not sync'd with glibc.
66764         * lib/strndup.h: Revamp, accordingly.
66765         * m4/strndup.m4: Modernize.
66766
66767 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66768
66769         * modules/savewd (Depends-on): Add 'raise'.
66770         * lib/savewd.c: Include <signal.h>, for 'raise'.
66771
66772 2006-09-26  Jim Meyering  <jim@meyering.net>
66773
66774         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
66775         when we detect Darwin 8.7.0's acl_get_file bug.
66776         Rearrange to perform the new (below) run-test while $LIBS
66777         contains any acl-related library.  Set USE_ACL at the end.
66778         (gl_ACL_GET_FILE): New function.
66779
66780 2006-09-26  Eric Blake  <ebb9@byu.net>
66781
66782         * lib/verror.c: Include <config.h> unconditionally.
66783
66784 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
66785
66786         * modules/clock-time (Maintainer): Add self.
66787         * modules/getlogin_r (Depends-on): Add extensions.
66788
66789 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66790
66791         * modules/clock-time: New module.
66792         * modules/nanosleep (Depends-on): Add clock-time.
66793         * modules/gethrxtime (Depends-on): Likewise.
66794         * modules/gettime (Depends-on): Likewise.
66795         * modules/settime (Depends-on): Likewise.
66796
66797         * modules/fts-lgpl: Depend on openat.
66798         * modules/mkancesdirs: Depend on savewd.
66799         * modules/mkdir-p: Likewise.
66800
66801 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66802
66803         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
66804
66805         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
66806         `gl_have_arbitrary_file_name_length_limit' to
66807         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
66808         actually works between configure runs.
66809
66810 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66811             Bruno Haible  <bruno@clisp.org>
66812
66813         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
66814
66815 2006-09-25  Jim Meyering  <jim@meyering.net>
66816
66817         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
66818         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
66819
66820 2006-09-25  Eric Blake  <ebb9@byu.net>
66821
66822         * gnulib-tool (func_import, func_create_testdir): Fix typos in
66823         exec's in 2006-09-18 patch when shuffling fds.
66824
66825 2006-09-25  Bruno Haible  <bruno@clisp.org>
66826
66827         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
66828         Reported by Jim Meyering.
66829
66830 2006-09-24  Jim Meyering  <jim@meyering.net>
66831
66832         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
66833         compare a pointer against a literal "0".  That caused failures with
66834         at least HP-UX's hpcc.
66835
66836 2006-09-22  Simon Josefsson  <jas@extundo.com>
66837
66838         * modules/gc-sha1:
66839         * modules/gc-md4:
66840         * modules/gc-hmac-sha1:
66841         * modules/gc-hmac-md5:
66842         * modules/gc-des:
66843         * modules/gc-arcfour: Distribute more files.
66844
66845 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66846
66847         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
66848         (gl_linked_iterator_from_to): Initialize struct completely.
66849         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
66850         (gl_tree_iterator_from_to): Likewise
66851         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
66852         * lib/gl_array_list.c [lint] (gl_array_iterator)
66853         (gl_array_iterator_from_to): Likewise.
66854         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
66855         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
66856         (gl_carray_iterator_from_to): Likewise.
66857
66858         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
66859         * lib/md4.c (md4_process_block): Remove unused variable.
66860         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
66861         parentheses for clarity.
66862
66863 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66864
66865         * modules/bison-i18n (Depends-on): Add gettext.
66866
66867 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66868
66869         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
66870         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
66871         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
66872         also add missing comma that caused broken test.
66873         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
66874         stdlib.h, for `abort'.
66875         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
66876         variables.
66877         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
66878         include unistd.h if present, for `rmdir'.
66879         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
66880         variables.
66881         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
66882         in the process include standard headers for prototypes.
66883         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
66884         gets declared on GNU/Linux.
66885         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
66886         unistd.h, for `rmdir'.
66887         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
66888
66889         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
66890         always true.
66891         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
66892
66893         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
66894
66895 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66896
66897         * gnulib-tool (func_version): Create output all at once.  This
66898         may help avoid triggering unnecessary SIGPIPEs, and at any
66899         rate it doesn't hurt.
66900
66901 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66902             Bruno Haible  <bruno@clisp.org>
66903
66904         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
66905         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66906         * m4/signed.m4 (bh_C_SIGNED): Likewise.
66907
66908         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
66909         (gl_FUNC_VASPRINTF): Invoke it.
66910
66911 2006-09-22  Bruno Haible  <bruno@clisp.org>
66912
66913         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
66914         getloadavg.c as first argument.
66915
66916 2006-09-22  Bruno Haible  <bruno@clisp.org>
66917
66918         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
66919         at the beginning of the gl_INIT macro.
66920         * modules/getloadavg (configure.ac): Pass $gl_source_base to
66921         gl_GETLOADAVG.
66922
66923 2006-09-22  Bruno Haible  <bruno@clisp.org>
66924
66925         * gnulib-tool (func_create_megatestdir): Don't include the config-h
66926         module.
66927         Suggested by Ralf Wildenhues.
66928
66929 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66930
66931         Import this patch from libc:
66932
66933         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
66934
66935         * lib/regex_internal.c (re_string_reconstruct): Handle
66936         offset < pstr->valid_raw_len && pstr->offsets_needed case.
66937         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
66938         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
66939         re_string_context_at.
66940
66941         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
66942         now requires it.
66943         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
66944         gl_REGEX now does it for us.
66945         (gl_REGEX): Add test taken from
66946         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
66947
66948         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
66949         Check that large offsets work.  Modernize Autoconf usages.
66950         Prefer "yes" to mean a good thing rather than a bad.
66951         Don't put "#define mkstemp" in config.h, as this might interfere
66952         with standard system headers that "#define mkstemp mkstemp64".
66953
66954         * modules/mkstemp (Depends-on): Add extensions, so that
66955         mkstemp is visible on some platforms.
66956         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
66957         (Include): Change to "mkstemp.h" from <stdlib.h>.
66958         (Files): Add mkstemp.h.
66959
66960         * lib/mkstemp.h: New file, since some standard headers
66961         #define mkstemp.
66962         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
66963         Include "mkstemp.h".
66964         Make the _LIBC code resemble glibc original more,
66965         e.g., use K&R style.
66966         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
66967         (mkstemp): Remove, since mkstemp.h does this for us.
66968         * lib/stdlib--.h: Include mkstemp.h.
66969
66970         Import this patch from libc:
66971
66972         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66973
66974         * lib/tempname.c (__gen_tempname): Change attempts_min
66975         into a macro.  Use preprocessor to decide how to initialize
66976         attempts [Coverity CID 67].
66977
66978 2006-09-20  Bruno Haible  <bruno@clisp.org>
66979
66980         * lib/mkdtemp.c: Import from libc.
66981         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66982                 * sysdeps/posix/tempname.c (__gen_tempname): Change
66983                 attempts_min into a macro.  Use preprocessor to decide how to
66984                 initialize attempts [Coverity CID 67].
66985         2001-11-27  Paul Eggert  <eggert@twinsun.com>
66986                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
66987                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
66988
66989 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66990
66991         * gnulib-tool (func_exit): New function, to allow to pass the
66992         exit status portably through the trap.  Use everywhere.
66993         (--help, --version): Signal a write error.
66994         (trap): catch SIGPIPE, for write errors.
66995         Exit at the end of the trap, with the correct exit status.
66996
66997 2006-09-19  Karl Berry  <karl@gnu.org>
66998
66999         * doc/gnulib.texi: note about the license texinfo files.
67000
67001 2006-09-19  Eric Blake  <ebb9@byu.net>
67002
67003         * gnulib-tool: Avoid space-tab.
67004
67005 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67006
67007         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67008         that prevented coreutils 6.1 from building.  Problem reported
67009         by Petter Reinholdtsen.
67010
67011 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67012
67013         * gnulib-tool (avoidlist): Fix typo that broke options like
67014         --avoid=lock that are used by coreutils bootstrap.
67015
67016 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67017
67018         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67019         more systematically.
67020
67021 2006-09-18  Jim Meyering  <jim@meyering.net>
67022
67023         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67024
67025 2006-09-18  Bruno Haible  <bruno@clisp.org>
67026
67027         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67028
67029 2006-09-18  Bruno Haible  <bruno@clisp.org>
67030
67031         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67032         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67033         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67034         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67035         * m4/gettext.m4: Require autoconf >= 2.52.
67036         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67037         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67038         of gl_cv_header_inttypes_h.
67039
67040 2006-09-18  Bruno Haible  <bruno@clisp.org>
67041
67042         * lib/javaversion.c: Include configmake.h.
67043
67044 2006-09-18  Bruno Haible  <bruno@clisp.org>
67045
67046         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67047         avoid that the while loops be executed in a subshell.
67048
67049 2006-09-18  Bruno Haible  <bruno@clisp.org>
67050
67051         * MODULES.html.sh (func_module): Break long lines.
67052         Suggested by Bruce Korb <bkorb@gnu.org>.
67053
67054 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67055
67056         Speed up by a factor of 1.12.
67057         * gnulib-tool (nl): New variable.
67058         (func_import): Rewrite include directive extraction to only read each
67059         directive once.
67060
67061 2006-09-17  Bruno Haible  <bruno@clisp.org>
67062
67063         * modules/javaversion (Makefile.am): Remove DEFS setting.
67064         (Depends-on): Add configmake, for PKGDATADIR definition.
67065
67066 2006-09-17  Bruno Haible  <bruno@clisp.org>
67067
67068         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67069
67070 2006-09-17  Bruno Haible  <bruno@clisp.org>
67071
67072         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67073         (func_modules_transitive_closure, func_modules_add_dummy,
67074         func_modules_to_filelist, func_import, func_create_testdir,
67075         func_create_megatestdir, ...): Use it wherever possible.
67076         Suggested by Ralf Wildenhues.
67077
67078 2006-09-16  Karl Berry  <karl@gnu.org>
67079
67080         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67081         to avoid sectioning errors.
67082         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67083         [ifinfo]: blank line after @center-ed titles.
67084         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67085         Spell FSF address consistently with others.
67086         (These changes approved by rms.)
67087
67088 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67089
67090         Speed up by a factor of 1.61.
67091         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67092         already checked module names again.
67093
67094 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67095
67096         Speed up by a factor of 1.13.
67097         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67098         for new_files, and the input to func_add_or_update.
67099
67100 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67101
67102         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67103         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67104
67105 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67106
67107         * modules/mkancesdirs (Depends-on): Add fcntl.
67108         * modules/savewd: New file.
67109         * MODULES.html.sh (File system functions): Add savewd.
67110
67111         * modules/configmake (Makefile.am): Add support for the
67112         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67113
67114 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67115
67116         * m4/savewd.m4: New file.
67117
67118 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67119
67120         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67121         (dirchownmod): New arg FD.  All callers changed.
67122         Use FD rather than opening the directory ourself, as opening is
67123         now the caller's responsibility.
67124         * lib/dirchownmod.h: Likewise.
67125         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
67126         hosts that require <sys/types.h> before <sys/stat.h>.  Include
67127         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
67128         (test_dir): Remove.
67129         (mkancesdirs): Return length of prefix of FILE that has already
67130         been made, or -2 if there is a child doing the work.  Redo
67131         algorithm so that it is O(N) rather than O(N**2).  Optimize away
67132         ".", and treat ".." specially since it might stray back into
67133         already-created areas.  Use a subprocess if necessary.  New arg
67134         WD; all users changed.  MAKE_DIR function should now return 1
67135         if it creates a directory that is not readable.  Return -2 if
67136         a child process is spun off.
67137         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
67138         Adjust signature to match code.
67139         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
67140         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
67141         all users changed.
67142         * lib/savewd.c, lib/savewd.h: New files.
67143
67144 2006-09-15  Jim Meyering  <jim@meyering.net>
67145
67146         * modules/rename-dest-slash: New module.
67147         * MODULES.html.sh (posix_compat): Add it here.
67148
67149         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
67150
67151 2006-09-15  Jim Meyering  <jim@meyering.net>
67152
67153         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
67154         file.
67155
67156         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
67157
67158 2006-09-15  Jim Meyering  <jim@meyering.net>
67159
67160         * lib/rename-dest-slash.c (has_trailing_slash): Use
67161         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
67162         (rpl_rename_dest_slash): Perform the cheaper trailing slash
67163         test before testing whether SRC is a directory.
67164         Suggestions from Bruno Haible.
67165
67166         Avoid a warning about an unused variable.
67167         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
67168         into the #ifdef block where it's used.
67169
67170         * lib/rename-dest-slash.c: New file.
67171
67172 2006-09-14  Bruno Haible  <bruno@clisp.org>
67173
67174         * lib/allocsa.c: Include <config.h> unconditionally.
67175         * lib/asnprintf.c: Likewise.
67176         * lib/asprintf.c: Likewise.
67177         * lib/c-strcasecmp.c: Likewise.
67178         * lib/c-strcasestr.c: Likewise.
67179         * lib/c-strncasecmp.c: Likewise.
67180         * lib/c-strstr.c: Likewise.
67181         * lib/classpath.c: Likewise.
67182         * lib/clean-temp.c: Likewise.
67183         * lib/concatpath.c: Likewise.
67184         * lib/copy-file.c: Likewise.
67185         * lib/csharpcomp.c: Likewise.
67186         * lib/csharpexec.c: Likewise.
67187         * lib/execute.c: Likewise.
67188         * lib/fatal-signal.c: Likewise.
67189         * lib/findprog.c: Likewise.
67190         * lib/fwriteerror.c: Likewise.
67191         * lib/gl_array_list.c: Likewise.
67192         * lib/gl_array_oset.c: Likewise.
67193         * lib/gl_avltree_list.c: Likewise.
67194         * lib/gl_avltree_oset.c: Likewise.
67195         * lib/gl_avltreehash_list.c: Likewise.
67196         * lib/gl_carray_list.c: Likewise.
67197         * lib/gl_linked_list.c: Likewise.
67198         * lib/gl_linkedhash_list.c: Likewise.
67199         * lib/gl_list.c: Likewise.
67200         * lib/gl_oset.c: Likewise.
67201         * lib/gl_rbtree_list.c: Likewise.
67202         * lib/gl_rbtree_oset.c: Likewise.
67203         * lib/gl_rbtreehash_list.c: Likewise.
67204         * lib/imaxabs.c: Likewise.
67205         * lib/imaxdiv.c: Likewise.
67206         * lib/javacomp.c: Likewise.
67207         * lib/javaexec.c: Likewise.
67208         * lib/javaversion.c: Likewise.
67209         * lib/linebreak.c: Likewise.
67210         * lib/localcharset.c: Likewise.
67211         * lib/lock.c: Likewise.
67212         * lib/mbchar.c: Likewise.
67213         * lib/mbswidth.c: Likewise.
67214         * lib/mkdtemp.c: Likewise.
67215         * lib/pipe.c: Likewise.
67216         * lib/printf-args.c: Likewise.
67217         * lib/printf-parse.c: Likewise.
67218         * lib/progname.c: Likewise.
67219         * lib/progreloc.c: Likewise.
67220         * lib/readlink.c: Likewise.
67221         * lib/sh-quote.c: Likewise.
67222         * lib/stpcpy.c: Likewise.
67223         * lib/stpncpy.c: Likewise.
67224         * lib/strcasecmp.c: Likewise.
67225         * lib/strcasestr.c: Likewise.
67226         * lib/strcspn.c: Likewise.
67227         * lib/striconv.c: Likewise.
67228         * lib/strncasecmp.c: Likewise.
67229         * lib/strnlen1.c: Likewise.
67230         * lib/strstr.c: Likewise.
67231         * lib/strtok_r.c: Likewise.
67232         * lib/tls.c: Likewise.
67233         * lib/tmpdir.c: Likewise.
67234         * lib/unicodeio.c: Likewise.
67235         * lib/unsetenv.c: Likewise.
67236         * lib/vasnprintf.c: Likewise.
67237         * lib/vasprintf.c: Likewise.
67238         * lib/wait-process.c: Likewise.
67239         * lib/xallocsa.c: Likewise.
67240         * lib/xsetenv.c: Likewise.
67241         * lib/xstriconv.c: Likewise.
67242
67243 2006-09-13  Simon Josefsson  <jas@extundo.com>
67244
67245         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
67246         that internally, suggested by Ralf Wildenhues
67247         <Ralf.Wildenhues@gmx.de>.
67248
67249 2006-09-13  Simon Josefsson  <jas@extundo.com>
67250
67251         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
67252         @LIBOBJS@.
67253         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67254
67255 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67256
67257         * lib/_fpending.c: Include <config.h> unconditionally, since we no
67258         longer worry about uses that don't define HAVE_CONFIG_H.
67259         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
67260         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
67261         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
67262         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
67263         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
67264         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
67265         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
67266         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
67267         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
67268         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
67269         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
67270         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
67271         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
67272         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
67273         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
67274         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
67275         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
67276         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
67277         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
67278         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
67279         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
67280         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
67281         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
67282         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
67283         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
67284         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
67285         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
67286         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
67287         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
67288         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
67289         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
67290         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
67291         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
67292         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
67293         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
67294         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
67295         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
67296         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
67297         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
67298         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
67299         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
67300         Likewise.
67301
67302 2006-09-13  Eric Blake  <ebb9@byu.net>
67303
67304         * lib/getopt.c: Fix typo in last commit.
67305
67306 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67307
67308         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
67309         dgettext.
67310
67311 2006-09-12  Jim Meyering  <jim@meyering.net>
67312
67313         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
67314         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
67315         Reported by Nelson H. F. Beebe.
67316
67317 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67318
67319         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
67320         program_invocation_name and program_invocation_short_name are
67321         initialized.
67322         * lib/argp-namefrob.h: Move declarations of program_invocation_name
67323         and program_invocation_short_name to argp.h, so they are visible
67324         to user programs.
67325         * lib/argp.h: Likewise
67326
67327 2006-09-10  Bruno Haible  <bruno@clisp.org>
67328
67329         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67330         m4/inttypes_h.m4, m4/uintmax_t.m4.
67331
67332 2006-09-10  Bruno Haible  <bruno@clisp.org>
67333
67334         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
67335         gl_AC_TYPE_UINTMAX_T.
67336
67337 2006-09-10  Bruno Haible  <bruno@clisp.org>
67338
67339         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
67340
67341 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67342
67343         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
67344         convention.  Text proposed by Bruno Haible.
67345         (struct argp_option): Document the use of N_() wrappers.
67346
67347         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
67348         '\v', and translate the two parts separately, instead of feeding
67349         the whole string to gettext.  This allows to exclude
67350         '\v' from the strings visible to the translator by writing doc
67351         strings as N_("..") "\v" N_("..").
67352
67353 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
67354
67355         * config/srclist.txt: Undo latest change; the bug was fixed.
67356
67357 2006-09-09  Bruno Haible  <bruno@clisp.org>
67358
67359         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
67360         assignments if building a library without libtool.
67361         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
67362         in func_emit_lib_Makefile_am.
67363         (func_import): When building a static library libfoo.a, arrange to
67364         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
67365         (func_create_testdir): Likewise.
67366         * modules/gc (configure.ac, Makefile.am): If building statically,
67367         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
67368         * modules/iconvme (configure.ac, Makefile.am): Likewise.
67369         * modules/striconv (configure.ac, Makefile.am): Likewise.
67370         Based on a suggestion by Ralf Wildenhues.
67371
67372 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67373
67374         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67375         Check for unistd.h too, since Autoconf doesn't assume POSIX.
67376         Also:
67377
67378         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67379         Add year_2050_test to catch glibc bug 2821
67380         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67381
67382         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67383         Prefer #ifdef to #if.
67384
67385         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
67386         Return from 'main' instead of calling 'exit'.
67387
67388 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67389
67390         * lib/mktime.c (guess_time_tm): Fix bug where mktime
67391         returned the maximum time_t value rather than (time_t) -1.
67392         Problem originally reported by William Bardwell
67393         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67394
67395         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67396         Moved to here ...
67397         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67398         ... from here.
67399
67400 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67401
67402         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
67403         2821 is fixed.
67404
67405 2006-09-08  Jim Meyering  <jim@meyering.net>
67406
67407         Don't make generated files read-only.  That would bother too many
67408         people.  However, do retain the ability to work when targets are
67409         read-only: remove the destination and temporary files before writing
67410         them (when generated via sed or echo), or by using the -f option for
67411         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
67412         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67413         * modules/byteswap, modules/configmake, modules/fcntl:
67414         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67415         * modules/localcharset, modules/netinet_in, modules/poll:
67416         * modules/stdbool, modules/stdint, modules/sys_select:
67417         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67418
67419 2006-09-08  Jim Meyering  <jim@meyering.net>
67420
67421         Avoid new build failure on FreeBSD 6.0.
67422         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
67423         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
67424         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
67425
67426 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67427
67428         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
67429
67430 2006-09-07  Jim Meyering  <jim@meyering.net>
67431
67432         Fix global typo in last change: use chmod u-w, not chmod u-x.
67433         Spotted by Paul Eggert and Bruce Korb.
67434         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67435         * modules/byteswap, modules/configmake, modules/fcntl:
67436         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67437         * modules/localcharset, modules/netinet_in, modules/poll:
67438         * modules/stdbool, modules/stdint, modules/sys_select:
67439         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67440
67441 2006-09-06  Jim Meyering  <jim@meyering.net>
67442
67443         Make generated files be read-only.
67444         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
67445         Ensure that each generated file is now read-only.
67446         * modules/argz: Likewise.
67447         * modules/arpa_inet: Likewise.
67448         * modules/byteswap: Likewise.
67449         * modules/configmake: Likewise.
67450         * modules/fcntl: Likewise.
67451         * modules/fnmatch: Likewise.
67452         * modules/getopt: Likewise.
67453         * modules/glob: Likewise.
67454         * modules/inttypes: Likewise.
67455         * modules/netinet_in: Likewise.
67456         * modules/poll: Likewise.
67457         * modules/stdbool: Likewise.
67458         * modules/stdint: Likewise.
67459         * modules/sys_select: Likewise.
67460         * modules/sys_socket: Likewise.
67461         * modules/sys_stat: Likewise.
67462         * modules/sysexits: Likewise.
67463         * modules/localcharset: Same as above, but continue using temporary
67464         file named "t-$@" (why different?) rather than the "$@-t" used
67465         everywhere else.
67466
67467         * modules/sysexits (Makefile.am): Replace literal occurrences
67468         of "sysexit.h" more readable, and more consistent, "$@".
67469
67470 2006-09-06  Bruno Haible  <bruno@clisp.org>
67471
67472         * modules/striconv: New file.
67473         * modules/xstriconv: New file.
67474         * MODULES.html.sh (Internationalization functions): Add striconv,
67475         xstriconv.
67476
67477 2006-09-06  Bruno Haible  <bruno@clisp.org>
67478
67479         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
67480         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
67481         not using libtool correctly.
67482
67483 2006-09-06  Bruno Haible  <bruno@clisp.org>
67484
67485         * lib/striconv.h: New file.
67486         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
67487         iconvstring.c.
67488         * lib/xstriconv.h: New file.
67489         * lib/xstriconv.c: New file.
67490
67491 2006-09-06  Bruno Haible  <bruno@clisp.org>
67492
67493         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67494         lib_..._LDFLAGS.
67495
67496 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67497
67498         * lib/argz_.h: Sync from Libtool.
67499
67500         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
67501                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67502
67503         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
67504
67505 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67506
67507         * modules/trim: New file.
67508
67509 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67510
67511         * lib/trim.h: New file.
67512         * lib/trim.c: New file.
67513
67514 2006-09-05  Bruno Haible  <bruno@clisp.org>
67515
67516         * MODULES.html.sh (String handling): Add trim.
67517
67518 2006-09-04  Karl Berry  <karl@gnu.org>
67519
67520         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
67521         until next release.
67522
67523 2006-09-03  Bruno Haible  <bruno@clisp.org>
67524
67525         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
67526         correctly.
67527
67528 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67529
67530         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
67531         not gl_GETLOADAVG.  Omit unneeded semicolons.
67532         Problems reported by Ralf Wildenhues in
67533         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67534         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
67535         at the end, which is the usual gnulib style.
67536
67537         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
67538         of doing all the work ourselves.
67539         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
67540         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
67541
67542 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67543
67544         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
67545         Problem reported by Ralf Wildenhues in
67546         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67547
67548         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
67549         HAVE_STRUCT_STATFS_F_FSTYPENAME.
67550
67551 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67552
67553         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
67554         yesterday's patch by changing test -n to test -z.
67555
67556 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67557
67558         * modules/getloadavg (Files): Add m4/getloadavg.m4.
67559         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
67560         the former is now obsolescent.
67561
67562         * modules/chdir-long (Depends-on): Add fcntl.
67563
67564 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67565
67566         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
67567         obsolescent, and programs should use gnulib instead.
67568         * m4/getloadavg.m4: New file, with contents taken from Autoconf
67569         but with prefixes changed.
67570
67571 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67572
67573         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
67574         or stdbool.h, because they might not exist while configuring.
67575
67576         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
67577         Don't include unistd.h or limits.h; not needed, since chdir-long.h
67578         does that for us.
67579         (O_DIRECTORY): Remove.
67580
67581 2006-08-31  Eric Blake  <ebb9@byu.net>
67582
67583         * gnulib-tool: Don't let emacs change spaces to TAB.
67584
67585 2006-08-31  Bruno Haible  <bruno@clisp.org>
67586
67587         * gnulib-tool: When calling func_import more than once, do it in a
67588         subshell.
67589         Reported by Eric Blake <ebb9@byu.net>.
67590
67591 2006-08-31  Bruno Haible  <bruno@clisp.org>
67592
67593         * gnulib-tool (nl): Remove variable.
67594         (sed_transform_lib_file): Use more robust test for config-h module.
67595         (func_import): Fix typo in 2006-08-25 patch.
67596
67597 2006-08-31  Bruno Haible  <bruno@clisp.org>
67598
67599         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
67600         specified, augment Makefile.am variables instead of assigning them.
67601
67602 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67603
67604         Work around a bug in both the Linux and SunOS 64-bit kernels:
67605         nanosleep mishandles sleeps for longer than 2**31 seconds.
67606         Problem reported by Frank v Waveren in
67607         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67608         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
67609         Check for nanosleep bug.
67610         (LIB_NANOSLEEP): Append clock_gettime library if needed.
67611
67612 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67613
67614         Work around a bug in both the Linux and SunOS 64-bit kernels:
67615         nanosleep mishandles sleeps for longer than 2**31 seconds.
67616         Problem reported by Frank v Waveren in
67617         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67618         * lib/nanosleep.c (BILLION): New constant.
67619         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
67620         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
67621         implementation.
67622
67623 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67624
67625         * modules/nanosleep (Depends-on): Add gettime.
67626
67627 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67628         and Simon Josefsson  <jas@extundo.com>
67629         and Oskar Liljeblad  <oskar@osk.mine.nu>
67630
67631         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
67632         * gnulib-tool (func_import): New license type 'unmodifiable license
67633         text'.
67634         * modules/fdl: Use it.  Longer description.
67635         * module/gpl, module/lgpl: New files.
67636
67637 2006-08-30  Jim Meyering  <jim@meyering.net>
67638
67639         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
67640         shadowing the parameter.
67641
67642 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67643
67644         Sync from Libtool:
67645
67646         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67647
67648         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
67649         sharing with gnulib.  Report by Eric Blake.
67650
67651 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67652
67653         * modules/isapipe: New file.
67654         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
67655
67656 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67657
67658         * modules/configmake (Makefile.am): Add a comment, and omit
67659         the CONFIGMAKE_ prefix from generated macro names.  Suggested
67660         by Bruno Haible.
67661
67662 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67663
67664         * m4/isapipe.m4: New file.
67665
67666 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67667
67668         * lib/isapipe.c, lib/isapipe.h: New files.
67669
67670 2006-08-29  Jim Meyering  <jim@meyering.net>
67671
67672         * modules/configmake (Makefile.am): Make configmake.h depend on
67673         Makefile.  Otherwise, a stale configmake.h could hang around.
67674
67675 2006-08-29  Eric Blake  <ebb9@byu.net>
67676
67677         * lib/error.c (error_at_line, print_errno_message): Match libc, after
67678         resolution of upstream bug 3044.
67679
67680 2006-08-29  Bruno Haible  <bruno@clisp.org>
67681
67682         * modules/localcharset (Depends-on): Add configmake.
67683         (Makefile.am): Remove setting of LIBDIR through DEFS.
67684
67685 2006-08-29  Bruno Haible  <bruno@clisp.org>
67686
67687         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
67688         defined.
67689
67690 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67691
67692         * modules/fcntl: New file.
67693         * modules/chdir-safer (Depends-on): Add fcntl.
67694         * modules/fts: Likewise.
67695         * modules/mkdir-p: Likewise.
67696
67697         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
67698         This undoes the most recent change, since we're now addressing the
67699         problem in a different way.
67700
67701         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
67702         into output, since the output might be called Makefile.am even
67703         if $makefile_name is something different.
67704         (func_import): Use $makefile_am rather than
67705         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
67706         empty.
67707
67708         * modules/inttypes (Files): Add m4/inttypes-h.m4.
67709
67710 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67711
67712         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
67713         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
67714         recent change to stdint.m4, since we're now addressing the problem in a
67715         different way.
67716
67717 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67718
67719         * m4/fcntl_h.m4: New file.
67720
67721 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67722
67723         * lib/fcntl_.h: New file.
67724         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
67725         the fcntl module.
67726         * lib/dirchownmod.c: Likewise.
67727         * lib/fts.c: Likewise.
67728
67729         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
67730         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
67731         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
67732         just before including <inttypes.h>, to avoid circular inclusion.
67733
67734 2006-08-28  Jim Meyering  <jim@meyering.net>
67735
67736         * doc/visibility.texi: Actually read and correct the grammar of the
67737         sentence affected by yesterday's change.
67738
67739 2006-08-28  Eric Blake  <ebb9@byu.net>
67740
67741         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
67742         needs wrapper.
67743
67744 2006-08-28  Eric Blake  <ebb9@byu.net>
67745
67746         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
67747
67748 2006-08-28  Eric Blake  <ebb9@byu.net>
67749
67750         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
67751
67752 2006-08-28  Bruno Haible  <bruno@clisp.org>
67753
67754         * modules/c-strstr: New file, from GNU gettext.
67755         * MODULES.html.sh (String handling): Add c-strstr.
67756
67757 2006-08-28  Bruno Haible  <bruno@clisp.org>
67758
67759         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
67760         macros.
67761         Reported by Eric Blake.
67762
67763 2006-08-28  Bruno Haible  <bruno@clisp.org>
67764
67765         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
67766         (VASNPRINTF): Return a string of length > INT_MAX without failing.
67767         * lib/vasprintf.c: Include errno.h, limits.h.
67768         (EOVERFLOW): New fallback definition.
67769         (vasprintf): Test here whether the string length is > INT_MAX.
67770         * lib/vsnprintf.c: Include errno.h, limits.h.
67771         (EOVERFLOW): New fallback definition.
67772         (vsnprintf): Fix bug when generated string was too long for the buffer.
67773         Test here whether the string length is > INT_MAX.
67774
67775 2006-08-28  Bruno Haible  <bruno@clisp.org>
67776
67777         * lib/inttypes_.h (SCNX*): Remove definitions.
67778         Reported by Eric Blake.
67779
67780 2006-08-28  Bruno Haible  <bruno@clisp.org>
67781
67782         * lib/c-strstr.h: New file, from GNU gettext.
67783         * lib/c-strstr.c: New file, from GNU gettext.
67784
67785 2006-08-28  Bruno Haible  <bruno@clisp.org>
67786
67787         * gnulib-tool: Reorder some statements.
67788
67789 2006-08-28  Bruno Haible  <bruno@clisp.org>
67790
67791         * gnulib-tool: New option --makefile-name.
67792         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
67793         $makefile_name.
67794         (func_import): Write $makefile_name to the cache file, and read it from
67795         there unless explicitly specified. Use $makefile_name as file name
67796         instead of Makefile.am. Adjust the recommendations accordingly.
67797
67798 2006-08-28  Bruno Haible  <bruno@clisp.org>
67799
67800         * gnulib-tool (func_verify_module): Check against misapplying patch.
67801
67802 2006-08-28  Bruno Haible  <bruno@clisp.org>
67803
67804         * gnulib-tool (func_relativize, func_relconcat): New functions.
67805         Give an error if --local-dir is given with --update.
67806         Remove trailing slashes from $local_gnulib_dir.
67807         (func_import): Store the relativized $local_gnulib_dir in
67808         gnulib-cache.m4, and read it from there if not specified explicitly.
67809
67810 2006-08-28  Bruno Haible  <bruno@clisp.org>
67811
67812         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
67813         is the current directory. Respect also $local_gnulib_dir.
67814
67815 2006-08-28  Bruno Haible  <bruno@clisp.org>
67816             Simon Josefsson  <jas@extundo.com>
67817
67818         BeOS portability.
67819         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
67820
67821 2006-08-27  Jim Meyering  <jim@meyering.net>
67822
67823         * doc/visibility.texi: Remove duplicate word: "pointer".
67824
67825 2006-08-26  Bruno Haible  <bruno@clisp.org>
67826
67827         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
67828         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
67829         (Makefile.am): Create inttypes.h from inttypes_.h.
67830         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
67831
67832         * modules/imaxabs: New file.
67833
67834         * modules/imaxdiv: New file.
67835
67836 2006-08-26  Bruno Haible  <bruno@clisp.org>
67837
67838         * m4/inttypes.m4: New file.
67839         * m4/_inttypes_h.m4: Remove file.
67840         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
67841         PRI_MACROS_BROKEN.
67842         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
67843
67844         * m4/imaxabs.m4: New file.
67845
67846         * m4/imaxdiv.m4: New file.
67847
67848 2006-08-26  Bruno Haible  <bruno@clisp.org>
67849
67850         * lib/inttypes_.h: New file.
67851         * lib/inttypes.h: Remove file.
67852         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
67853
67854         * lib/imaxabs.c: New file.
67855
67856         * lib/imaxdiv.c: New file.
67857
67858 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67859
67860         New config-h module, so that "make" output needn't be cluttered
67861         by -DHAVE_CONFIG_H.
67862         * MODULES.html.sh (Support for building libraries and executables):
67863         Add config-h.
67864         * modules/config-h: New file.
67865         * gnulib-tool (nl, sed_transform_lib_file): New vars.
67866         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
67867         the config-h module is used.
67868
67869         New configmake module, so that "make" output needn't be cluttered
67870         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
67871         * MODULES.html.sh (Support for building libraries and executables):
67872         Add configmake.
67873         * modules/configmake: New file.
67874
67875 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67876
67877         * m4/config-h.m4: New file.
67878
67879 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67880
67881         * config/srclist.txt: Add elisp-comp.
67882
67883 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67884
67885         * MODULES.html.sh (Support for building libraries and executables):
67886         Add elisp-comp.
67887         * build-aux/elisp-comp: New file.
67888         * modules/elisp-comp: New file.
67889
67890 2006-08-24  Bruno Haible  <bruno@clisp.org>
67891
67892         * gnulib-tool (func_create_testdir): Use non-default values of
67893         sourcebase and m4base.
67894
67895 2006-08-24  Bruno Haible  <bruno@clisp.org>
67896
67897         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
67898         HTML structure.
67899
67900 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67901
67902         * modules/openat (Depends-on): Add lchown.
67903
67904 2006-08-23  Bruno Haible  <bruno@clisp.org>
67905
67906         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
67907         of gl_LOCK_EARLY instead of gl_LOCK.
67908
67909 2006-08-23  Bruno Haible  <bruno@clisp.org>
67910
67911         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
67912         on OSF/1 to no.
67913         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
67914
67915 2006-08-23  Bruno Haible  <bruno@clisp.org>
67916
67917         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
67918         as unusable.
67919
67920         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
67921         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
67922         (gl_LOCK): New macro.
67923
67924 2006-08-22  Simon Josefsson  <jas@extundo.com>
67925
67926         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
67927         to md5 module.
67928
67929 2006-08-22  Simon Josefsson  <jas@extundo.com>
67930
67931         * MODULES.html.sh: Add "Support for maintaining and release
67932         projects".
67933
67934         * build-aux/gnupload: New file, from coreutils.
67935
67936 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67937
67938         Avoid the need for AC_LIBSOURCES in m4 macros.
67939         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
67940         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
67941         * modules/check-version (EXTRA_DIST): Add check-version.h.
67942         * modules/crc (EXTRA_DIST): Add crc.h.
67943         * modules/des (EXTRA_DIST): Add des.h.
67944         * modules/gc (EXTRA_DIST): Add gc.h.
67945         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
67946         * modules/getline (EXTRA_DIST): Add getline.h.
67947         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
67948         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
67949         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
67950         * modules/md2 (EXTRA_DIST): Add md2.h.
67951         * modules/md4 (EXTRA_DIST): Add md4.h.
67952         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
67953         * modules/read-file (EXTRA_DIST): Add read-file.h.
67954         * modules/readline (EXTRA_DIST): Add readline.h.
67955         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
67956         rijndael-api-fst.h.
67957
67958 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67959
67960         * m4/rijndael.m4 (gl_ARCFOUR):
67961         * m4/arctwo.m4 (gl_ARCTWO):
67962         * m4/check-version.m4 (gl_CHECK_VERSION):
67963         * m4/crc.m4 (gl_CRC):
67964         * m4/des.m4 (gl_DES):
67965         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
67966         * m4/gc.m4 (gl_GC):
67967         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
67968         * m4/getline.m4 (gl_FUNC_GETLINE):
67969         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
67970         * m4/hmac-md5.m4 (gl_HMAC_MD5):
67971         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
67972         * m4/md2.m4 (gl_MD2):
67973         * m4/md4.m4 (gl_MD4):
67974         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
67975         * m4/read-file.m4 (gl_FUNC_READ_FILE):
67976         * m4/readline.m4 (gl_FUNC_READLINE):
67977         * m4/rijndael.m4 (gl_RIJNDAEL):
67978         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67979         to get the necessary .h files and whatnot.
67980
67981 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67982
67983         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
67984         gnulib rather than the other way around.
67985         * config/srclistvars.sh (COREUTILS): Remove.
67986
67987 2006-08-22  Jim Meyering  <jim@meyering.net>
67988
67989         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
67990
67991         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
67992
67993 2006-08-22  Eric Blake  <ebb9@byu.net>
67994
67995         * modules/regexprops-generic: New file.
67996         * MODULES.html.sh (Support for building documentation): List it.
67997
67998 2006-08-22  Eric Blake  <ebb9@byu.net>
67999
68000         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68001         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68002         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68003         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68004
68005 2006-08-22  Bruno Haible  <bruno@clisp.org>
68006
68007         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68008         and lib_LTLIBRARIES like the other lib_* variables.
68009
68010 2006-08-22  Bruno Haible  <bruno@clisp.org>
68011
68012         * build-aux/x-to-1.in: New file, from GNU gettext.
68013
68014 2006-08-22  Bruno Haible  <bruno@clisp.org>
68015
68016         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68017         <utmpx.h> exists.
68018
68019 2006-08-22  Bruno Haible  <bruno@clisp.org>
68020
68021         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68022         <utmpx.h> exists.
68023
68024 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68025
68026         BeOS portability.
68027         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68028         exist.
68029         Problem reported by Bruno Haible.
68030
68031 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68032
68033         Avoid the need for AC_LIBSOURCES in m4 macros.
68034         * modules/acl (EXTRA_DIST): Add acl.h.
68035         * modules/argmatch (Files): Add m4/argmatch.m4.
68036         (configure.ac): Add gl_ARGMATCH.
68037         (EXTRA_DIST): Renamed from lib_SOURCES, for
68038         consistency with the other modules.  Remove argmatch.c.
68039         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68040         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68041         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68042         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68043         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68044         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68045         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68046         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68047         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68048         * modules/closeout (EXTRA_DIST): Add closeout.h.
68049         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68050         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68051         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68052         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68053         dirname.h; remove basename.c and stripslash.c.
68054         * modules/exclude (EXTRA_DIST): Add exclude.h.
68055         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68056         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68057         * modules/file-type (EXTRA_DIST): Add file-type.h.
68058         * modules/filemode (EXTRA_DIST): Add filemode.h.
68059         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68060         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68061         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68062         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68063         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68064         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68065         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68066         * modules/getdate (EXTRA_DIST): Add getdate.c.
68067         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68068         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68069         * modules/getpass (EXTRA_DIST): Add getpass.h.
68070         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68071         * modules/group-member (EXTRA_DIST): Add group-member.h.
68072         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68073         * modules/hash (EXTRA_DIST): Add hash.h.
68074         * modules/human (EXTRA_DIST): Add human.h.
68075         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68076         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68077         * modules/lchown (EXTRA_DIST): Add lchown.h.
68078         * modules/long-options (EXTRA_DIST): Add long-options.h.
68079         * modules/lstat (EXTRA_DIST): Add lstat.h.
68080         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68081         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68082         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68083         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68084         * modules/memxor (EXTRA_DIST): Add memxor.h.
68085         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68086         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68087         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68088         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68089         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68090         * modules/physmem (EXTRA_DIST): Add physmem.h.
68091         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68092         * modules/posixver (EXTRA_DIST): Add posixver.h.
68093         * modules/quote (EXTRA_DIST): Add quote.h.
68094         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68095         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68096         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68097         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68098         regex_internal.h regexec.c.
68099         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68100         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68101         * modules/same (EXTRA_DIST): Add same.h.
68102         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68103         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68104         * modules/savedir (EXTRA_DIST): Add savedir.h.
68105         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68106         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68107         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68108         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68109         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68110         * modules/strdup (EXTRA_DIST): Add strdup.h.
68111         * modules/strftime (EXTRA_DIST): Add strftime.h.
68112         * modules/strndup (EXTRA_DIST): Add strndup.h.
68113         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68114         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68115         * modules/time_r (EXTRA_DIST): Add time_r.h.
68116         * modules/timespec (EXTRA_DIST): Add timespec.h.
68117         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68118         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68119         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68120         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68121         * modules/userspec (EXTRA_DIST): Add userspec.h.
68122         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68123         * modules/utimens (EXTRA_DIST): Add utimens.h.
68124         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
68125         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
68126         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
68127         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
68128         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
68129         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
68130         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
68131         * modules/yesno (EXTRA_DIST): Add yesno.h.
68132
68133 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68134
68135         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
68136
68137         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
68138         * m4/dev-ino.m4, same-inode.m4: Remove.
68139
68140         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
68141         * m4/acl.m4 (AC_FUNC_ACL):
68142         * m4/backupfile.m4 (gl_BACKUPFILE):
68143         * m4/c-strtod.m4 (gl_C99_STRTOLD):
68144         * m4/canon-host.m4 (gl_CANON_HOST):
68145         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68146         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
68147         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
68148         * m4/cloexec.m4 (gl_CLOEXEC):
68149         * m4/close-stream.m4 (gl_CLOSE_STREAM):
68150         * m4/closeout.m4 (gl_CLOSEOUT):
68151         * m4/dirfd.m4 (gl_FUNC_DIRFD):
68152         * m4/dirname.m4 (gl_DIRNAME):
68153         * m4/exclude.m4 (gl_EXCLUDE):
68154         * m4/exitfail.m4 (gl_EXITFAIL):
68155         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
68156         * m4/file-type.m4 (gl_FILE_TYPE):
68157         * m4/filemode.m4 (gl_FILEMODE):
68158         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
68159         * m4/fpending.m4 (gl_FUNC_FPENDING):
68160         * m4/fprintftime.m4 (gl_FPRINTFTIME):
68161         * m4/fts.m4 (gl_FUNC_FTS):
68162         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
68163         * m4/getdate.m4 (gl_GETDATE):
68164         * m4/gethrxtime.m4 (gl_GETHRXTIME):
68165         * m4/getpagesize.m4 (gl_GETPAGESIZE):
68166         * m4/getpass.m4 (gl_FUNC_GETPASS):
68167         * m4/gettime.m4 (gl_GETTIME):
68168         * m4/getugroups.m4 (gl_GETUGROUPS):
68169         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
68170         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
68171         * m4/hard-locale.m4 (gl_HARD_LOCALE):
68172         * m4/hash.m4 (gl_HASH):
68173         * m4/idcache.m4 (gl_IDCACHE):
68174         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
68175         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68176         * m4/long-options.m4 (gl_LONG_OPTIONS):
68177         * m4/lstat.m4 (gl_FUNC_LSTAT):
68178         * m4/md5.m4 (gl_MD5):
68179         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68180         * m4/memcoll.m4 (gl_MEMCOLL):
68181         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68182         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68183         * m4/memxor.m4 (gl_MEMXOR):
68184         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68185         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68186         * m4/modechange.m4 (gl_MODECHANGE):
68187         * m4/mountlist.m4 (gl_MOUNTLIST):
68188         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68189         * m4/openat.m4 (gl_FUNC_OPENAT):
68190         * m4/pathmax.m4 (gl_PATHMAX):
68191         * m4/physmem.m4 (gl_PHYSMEM):
68192         * m4/posixtm.m4 (gl_POSIXTM):
68193         * m4/posixver.m4 (gl_POSIXVER):
68194         * m4/quote.m4 (gl_QUOTE):
68195         * m4/quotearg.m4 (gl_QUOTEARG):
68196         * m4/readtokens.m4 (gl_READTOKENS):
68197         * m4/readutmp.m4 (gl_READUTMP):
68198         * m4/regex.m4 (gl_REGEX):
68199         * m4/safe-read.m4 (gl_SAFE_READ):
68200         * m4/safe-write.m4 (gl_SAFE_WRITE):
68201         * m4/same.m4 (gl_SAME):
68202         * m4/save-cwd.m4 (gl_SAVE_CWD):
68203         * m4/savedir.m4 (gl_SAVEDIR):
68204         * m4/settime.m4 (gl_SETTIME):
68205         * m4/sha1.m4 (gl_SHA1):
68206         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
68207         * m4/stat-macros.m4 (gl_STAT_MACROS):
68208         * m4/stat-time.m4 (gl_STAT_TIME):
68209         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
68210         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
68211         * m4/strdup.m4 (gl_FUNC_STRDUP):
68212         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
68213         * m4/strndup.m4 (gl_FUNC_STRNDUP):
68214         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
68215         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
68216         * m4/time_r.m4 (gl_TIME_R):
68217         * m4/timespec.m4 (gl_TIMESPEC):
68218         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
68219         * m4/unlinkdir.m4 (gl_UNLINKDIR):
68220         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
68221         * m4/userspec.m4 (gl_USERSPEC):
68222         * m4/utimecmp.m4 (gl_UTIMECMP):
68223         * m4/utimens.m4 (gl_UTIMENS):
68224         * m4/xalloc.m4 (gl_XALLOC):
68225         * m4/xgetcwd.m4 (gl_XGETCWD):
68226         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
68227         * m4/xreadlink.m4 (gl_XREADLINK):
68228         * m4/xstrtod.m4 (gl_XSTRTOD):
68229         * m4/yesno.m4 (gl_YESNO):
68230         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68231         to get the necessary .h files and whatnot.
68232
68233 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
68234             Bruno Haible  <bruno@clisp.org>
68235
68236         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
68237         /bin/sh understanding of '!' conditional negation.
68238
68239 2006-08-21  Jim Meyering  <jim@meyering.net>
68240
68241         * modules/openat (Depends-on): Really alphabetize.
68242
68243         * modules/acl (Depends-on): Add error and quote.
68244
68245         * check-module (find_included_lib_files): Add at-func.c to the
68246         ok-to-include-more-than-once white list.
68247
68248         * modules/openat (Depends-on): Add lstat.  Alphabetize.
68249
68250 2006-08-21  Bruno Haible  <bruno@clisp.org>
68251
68252         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68253         Emit a pkgdata_DATA variable only if some snippets add contents to it.
68254         Reported by Martin Lambers <marlam@marlam.de>.
68255
68256 2006-08-21  Bruno Haible  <bruno@clisp.org>
68257
68258         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
68259         specify an installation location, don't emit a noinst_LIBRARIES or
68260         noinst_LTLIBRARIES assignment.
68261
68262 2006-08-21  Bruno Haible  <bruno@clisp.org>
68263
68264         BeOS portability.
68265         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
68266         BeOS has mbrtowc() but no <wctype.h>.
68267
68268 2006-08-21  Bruno Haible  <bruno@clisp.org>
68269
68270         BeOS portability.
68271         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
68272         exist.
68273
68274 2006-08-21  Bruno Haible  <bruno@clisp.org>
68275
68276         BeOS portability.
68277         * lib/mbchar.h: Include <wctype.h> only if it exists.
68278
68279 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68280
68281         Remove files that are no longer needed by their respective modules.
68282         * m4/obstack.m4: Remove.
68283         * m4/strerror_r.m4: Remove.
68284         * m4/uint32_t.m4: Remove.
68285         * m4/uintptr_t.m4: Remove.
68286         * m4/ullong_max.m4: Remove.
68287         * m4/xstrtoimax.m4: Remove.
68288         * m4/xstrtoumax.m4: Remove.
68289
68290         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
68291         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
68292         dependencies now capture this.
68293
68294         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
68295         Do not use AC_LIBSOURCES, since gnulib modules now do this.
68296         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
68297         * m4/human.m4 (gl_HUMAN): Likewise.
68298         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
68299         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
68300
68301         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
68302
68303         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
68304         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
68305         stdint.
68306         * m4/human.m4 (gl_HUMAN): Likewise.
68307         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
68308         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
68309         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68310         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68311         * m4/xstrtol (gl_XSTRTOL): Likewise.
68312
68313         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
68314         AC_TYPE_LONG_LONG_INT.
68315         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68316         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
68317         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
68318         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68319
68320         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
68321         on stdbool.
68322
68323         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
68324         (gl_PREREQ_XSTRTOUL): Remove.
68325
68326         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
68327
68328         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
68329         mode.
68330
68331 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68332
68333         Add and change modules to make it easier for coreutils to use
68334         gnulib-tool.
68335         * modules/backupfile (Files): Remove m4/d-ino.m4.
68336         (Depends-on): Add d-ino.
68337         * modules/cycle-check (Depends-on): Add stdint.
68338         (lib_SOURCES): Add cycle-check.h.
68339         * modules/d-ino: New module.
68340         * modules/d-type: New module.
68341         * modules/error (Files): Remove m4/strerror_r.m4.
68342         * modules/filemode (Files): Add m4/st_dm_mode.m4.
68343         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68344         m4/inttypes_h.m4, m4/uintmax_t.m4.
68345         (Depends-on): Add stdint.
68346         (lib_SOURCES): Add fsusage.h.
68347         * modules/getcwd (Files): Remove d-ino.m4.
68348         (Depends-on): Add d-ino.
68349         * modules/getndelim2 (Depends-on): Add stdint.
68350         * modules/glob (Files): Remove m4/d-type.m4.
68351         (Depends-on): Add d-type.
68352         * modules/host-os: New module.
68353         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
68354         m4/inttypes_h.m4, m4/uintmax_t.m4.
68355         * Depends-on: Add stdint.
68356         (lib_SOURCES): Add human.h.
68357         * modules/inttostr (Files): Remove m4/intmax_t.m4,
68358         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
68359         m4/uintmax_t.m4, m4/ulonglong.m4.
68360         (Depends-on): Add stdint.
68361         (EXTRA_DIST): Add inttostr.h.
68362         * modules/lchmod: New module.
68363         * modules/link-follow: New module.
68364         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
68365         (Depends-on): Add lchmod.
68366         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
68367         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
68368         (Depends-on): Add stdint.
68369         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
68370         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
68371         (Depends-on): Add stdint.
68372         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
68373         * modules/perl: New module.
68374         * modules/regex (Depends-on): Add stdint.
68375         * modules/rmdir-errno: New module.
68376         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68377         m4/intmax_t.m4.
68378         (Depends-on): Add stdint.
68379         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68380         m4/uintmax_t.m4.
68381         (Depends-on): Add stdint.
68382         * modules/unlink-busy: New module.
68383         * modules/utimecmp (Depends-on): Add stdint.
68384         * modules/uptime: New module.
68385         * modules/winsz-ioctl: New module.
68386         * modules/winsz-termios: New module.
68387         * modules/xnanosleep (Depends-on): Add nanosleep.
68388         * modules/ullong_max: Remove.
68389         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
68390         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
68391         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
68392         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
68393         (Depends-on): Add inttypes.
68394         (lib_SOURCES): Add xstrtol.h.
68395         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
68396         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
68397         * MODULES.html.sh: Move 'assert' into the assert section.
68398         Move 'dummy' into the linking section.
68399         Remove ullong_max.
68400         Add section for compatibility checks for POSIX:2001 functions,
68401         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
68402         winsz-ioctl, and winsz-termios into it.
68403         Add lchmod.
68404         Add top-level Misc section and put host-os, perl, and uptime
68405         into it.
68406
68407 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68408
68409         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
68410         now assume the stdint module.  Do not include inttypes.h.
68411         * lib/fsusage.h: Likewise.
68412         * lib/getndelim2.c: Likewise.
68413         * lib/human.h: Likewise.
68414         * lib/inttostr.h: Likewise.
68415         * lib/obstack.c: Likewise.
68416         * lib/regex_internal.h: Likewise.
68417         * lib/tempname.c: Likewise.
68418         * lib/utimecmp.c: Likewise.
68419         * lib/xstrtol.h: Likewise.
68420
68421         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
68422
68423         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
68424         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
68425         * lib/xtime.h: Likewise.
68426
68427 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68428
68429         * modules/openat (Files): Add lib/fchmodat.c.
68430         Fixes problem reported by Jay Youngman.
68431
68432 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68433
68434         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
68435         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
68436
68437 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
68438             Bruno Haible  <bruno@clisp.org>
68439
68440         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
68441         and is a script that invokes bison. Tighten the code. Add comments.
68442
68443 2006-08-18  Jim Meyering  <jim@meyering.net>
68444
68445         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
68446         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
68447         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
68448         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
68449
68450 2006-08-18  Bruno Haible  <bruno@clisp.org>
68451
68452         * modules/bison-i18n: New file.
68453         * MODULES.html.sh (Internationalization functions): Add it.
68454
68455 2006-08-18  Bruno Haible  <bruno@clisp.org>
68456
68457         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
68458         sys/statvfs.h. When getmntinfo was found, check its declaration and
68459         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
68460
68461 2006-08-18  Bruno Haible  <bruno@clisp.org>
68462
68463         * m4/bison-i18n.m4: New file, from bison.
68464
68465 2006-08-18  Bruno Haible  <bruno@clisp.org>
68466
68467         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
68468         (ME_DUMMY): Treat "kernfs" as a dummy.
68469         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
68470
68471 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68472
68473         Update from coreutils.
68474
68475         2006-08-15  Jim Meyering  <jim@meyering.net>
68476
68477         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
68478
68479         2006-01-17  Jim Meyering  <jim@meyering.net>
68480
68481         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
68482
68483         2006-01-11  Jim Meyering  <jim@meyering.net>
68484
68485         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
68486         Check for the lchmod function.
68487
68488 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68489
68490         Update from coreutils.
68491
68492         * lib/__fpending.h: Add copyright notice.
68493         * lib/fprintftime.h: Likewise.
68494         * lib/savedir.c: Use (C) in copyright notice.
68495         * lib/savedir.h: Likewise.
68496
68497         2006-08-15  Jim Meyering  <jim@meyering.net>
68498
68499         * lib/at-func.c: New file, with the logic of all emulated at-functions.
68500         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
68501         in support of the EXPECTED_ERRNO macro.
68502         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
68503         definitions.  Instead, define the appropriate symbols and include
68504         "at-func.c".
68505         * lib/mkdirat.c (mkdirat): Likewise.
68506         * lib/fchmodat.c (fchmodat): Likewise.
68507         (ENOSYS): Remove definition.
68508         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
68509         it.  Don't include "unistd--.h" -- it wasn't ever used.
68510
68511         2006-01-17  Jim Meyering  <jim@meyering.net>
68512
68513         Rewrite fts.c not to change the current working directory,
68514         by using openat, fstatat, fdopendir, etc..
68515
68516         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
68517         (HAVE_OPENAT_SUPPORT): Define.
68518         [_LIBC] (fchdir): Don't undef or define; no longer used.
68519         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
68520         Now, this `function' always succeeds, and consumes its file descriptor
68521         parameter -- so callers must not close such FDs.  Update callers.
68522         (diropen_fd, opendirat, cwd_advance_fd): New functions.
68523         (diropen): Add parameter, SP.  Adjust all callers.
68524         Implement using diropen_fd, rather than open.
68525         (fts_open): Initialize new member, fts_cwd_fd.
68526         Remove fts_rft-setting code.
68527         (fts_close): Close fts_cwd_fd, if necessary.
68528         (__opendir2): Define in terms of opendir or opendirat,
68529         depending on whether the FST_NOCHDIR flag is set.
68530         (fts_build): Since fts_safe_changedir consumes its FD, and since
68531         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
68532         and close the dup'd file descriptor upon failure.
68533         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
68534         (fts_safe_changedir): Tweak semantics to reflect that this function
68535         now calls cwd_advance_fd and hence consumes its FD argument.
68536         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
68537         [struct FTS] (fts_rft): Remove now-unused member.
68538         [struct FTS] (fts_cycle.state): Improve comment.
68539
68540         * lib/openat.c (openat_needs_fchdir): New function.
68541         * lib/openat.h (openat_needs_fchdir): Declare it.
68542
68543 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68544
68545         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
68546         Problem and fix reported by Pádraig Brady in
68547         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
68548
68549 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68550
68551         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
68552
68553 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68554
68555         * lib/memcoll.c (memcoll): Optimize for the common case where the
68556         arguments are bytewise equal.
68557
68558 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68559
68560         * doc/regexprops-generic.texi: Add a copyright notice.
68561
68562 2006-08-15  Bruno Haible  <bruno@clisp.org>
68563
68564         * modules/tmpdir (License): Change to LGPL.
68565
68566 2006-08-15  Bruno Haible  <bruno@clisp.org>
68567
68568         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
68569         module.
68570
68571 2006-08-14  Simon Josefsson  <jas@extundo.com>
68572
68573         * config/srclist.txt: Add gnupload.
68574
68575 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68576
68577         Change copyright notice from LGPL 2 to GPL 2, since that's the
68578         standard form used in the gnulib repository.
68579         * tests/test-lock.c: Likewise.
68580         * tests/test-stdint.c: Likewise.
68581         * tests/test-tls.c: Likewise.
68582
68583         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
68584         prelude-manager.  User shorter URLs for GNU projects, without '?'.
68585         Add copyright notice.
68586
68587         * check-module: Add copyright notice.  Output a copyright
68588         notice if "--version" is specified.
68589         * modules/COPYING: New file.
68590         * tests/test-getaddrinfo.c: Add copyright notice.
68591         * tests/test-verify.c: Likewise.
68592
68593 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68594
68595         Change copyright notice from LGPL 2 to GPL 2, since that's the
68596         standard form used in the gnulib repository.
68597         * lib/lock.c: LGPL -> GPL.
68598         * lib/lock.h: Likewise.
68599         * lib/strnlen1.c: Likewise.
68600         * lib/strnlen1.h: Likewise.
68601         * lib/tls.c: Likewise.
68602         * lib/tls.h: Likewise.
68603         * lib/tmpdir.c: Likewise.
68604
68605         * lib/TODO: Remove; this belongs only in coreutils.
68606
68607 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68608
68609         Add copyright notices to long-enough files that lack them, since
68610         otherwise the files aren't clearly free.  Use the same notice that
68611         getdate.texi already uses.
68612         * doc/alloca-opt.texi: Add copyright notice.
68613         * doc/alloca.texi: Likewise.
68614         * doc/ctime.texi: Likewise.
68615         * doc/functions.texi: Likewise.
68616         * doc/gcd.texi: Likewise.
68617         * doc/gnulib-tool.texi: Likewise.
68618         * doc/inet_ntoa.texi: Likewise.
68619         * doc/visibility.texi: Likewise.
68620
68621         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
68622         * doc/quote.texi: Add copyright notice.
68623
68624         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
68625         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
68626         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
68627         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
68628         is now obsolete, and give a pointer to the Sun list.
68629         Add copyright notice.
68630
68631 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68632
68633         * config/srclistvars.sh: Add copyright notice.
68634
68635 2006-08-14  Eric Blake  <ebb9@byu.net>
68636
68637         Import the following change from libc:
68638
68639         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
68640
68641         Upstream bug 2997.
68642         * lib/misc/error.c: Add space between program name and message if file
68643         name is missing.
68644
68645 2006-08-12  Karl Berry  <karl@gnu.org>
68646
68647         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
68648         remove, these originate in gnulib now.
68649
68650 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68651
68652         * doc/Makefile (standards.info standards.html standards.dvi):
68653         Also depend on make-stds.texi.
68654
68655 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68656
68657         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
68658         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
68659
68660         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
68661         in wchar_t.  Problem reported by Eric Blake.
68662
68663         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
68664         LEN is smaller than SIZE.  Suggested by Bruno Haible.
68665         Also, help the compiler to keep LEN in a register.
68666
68667 2006-08-11  Eric Blake  <ebb9@byu.net>
68668
68669         * users.txt: Sort.  Add tar.
68670
68671 2006-08-11  Bruno Haible  <bruno@clisp.org>
68672
68673         * users.txt: New file.
68674
68675 2006-08-11  Bruno Haible  <bruno@clisp.org>
68676
68677         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
68678         before <wchar.h>. Needed for OSF/1 and BSD/OS.
68679
68680 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68681
68682         * modules/snprintf (Depends-on): Remove minmax.
68683         (Maintainer): Add self and Bruno.
68684
68685 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68686
68687         * lib/.cppi-disable: Add snprintf.h, socket_.h.
68688         * lib/snprintf.c: Include <errno.h> and <limits.h>.
68689         (EOVERFLOW): Define if the system does not.
68690         Do not include "minmax.h"; it wasn't used.
68691         (snprintf): Don't assume size_t promotes to an unsigned type.
68692         Fix bug when generated string was too long for the buffer: the
68693         buffer's contents are supposed to be the initial prefix of the
68694         output.  Don't assume vasnprintf returns EOVERFLOW if the size
68695         exceeds INT_MAX; do the check ourselves.
68696
68697         Import the following changes from libc:
68698
68699         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
68700
68701         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
68702         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
68703         set wc to the byte which couldn't be converted.
68704         (re_string_reconstruct): Don't clear valid_raw_len before calling
68705         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
68706         tip_context using re_string_context_at.
68707
68708         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
68709
68710         * lib/posix/regex.h: g++ still cannot handled [restrict].
68711
68712         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
68713
68714         * lib/posix/regex.h: Remove special handling for VMS.
68715
68716 2006-08-10  Jim Meyering  <jim@meyering.net>
68717
68718         * modules/same-inode: New module.
68719         * modules/dev-ino: New module.
68720         * modules/cycle-check: Depend on these modules, rather than simply
68721         including their .h files.
68722         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
68723         required via m4/cycle-check.m4.
68724         * modules/same: Depend on new same-inode module, rather than
68725         including same-inode.h.
68726         * modules/chdir-safer: New file.
68727
68728         * modules/chown (Depends-on): Add stat-macros.
68729
68730 2006-08-10  Jim Meyering  <jim@meyering.net>
68731
68732         * m4/cycle-check.m4: New file.
68733         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
68734         * m4/dev-ino.m4, m4/same-inode.m4: New files.
68735
68736 2006-08-10  Eric Blake  <ebb9@byu.net>
68737
68738         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
68739         in from original proposal.
68740
68741 2006-08-10  Eric Blake  <ebb9@byu.net>
68742         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68743
68744         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
68745         namespace.
68746
68747 2006-08-10  Bruno Haible  <bruno@clisp.org>
68748
68749         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
68750         as well.
68751
68752 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68753
68754         Sync from coreutils.
68755
68756         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
68757
68758         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
68759         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
68760
68761 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68762
68763         * modules/restrict: Remove; no longer needed now that we assume
68764         Autoconf 2.59 or later.
68765         * MODULES.html.sh: Remove 'restrict'.
68766         * modules/argp (Depends-on): Remove 'restrict'.
68767         * modules/base64 (Depends-on): Likewise.
68768         * modules/gc (Depends-on): Likewise.
68769         * modules/getaddrinfo (Depends-on): Likewise.
68770         * modules/glob (Depends-on): Likewise.
68771         * modules/inet_ntop (Depends-on): Likewise.
68772         * modules/inet_pton (Depends-on): Likewise.
68773         * modules/memxor (Depends-on): Likewise.
68774         * modules/regex (Depends-on): Likewise.
68775         * modules/strtok_r (Depends-on): Likewise.
68776         * modules/time_r (Depends-on): Likewise.
68777
68778 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68779
68780         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
68781         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
68782         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68783         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
68784         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
68785         * m4/memxor.m4 (gl_MEMXOR): Likewise.
68786         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
68787         gl_C_RESTRICT replaced by AC_C_RESTRICT.
68788
68789         Merge from coreutils.
68790         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
68791         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
68792         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68793         * m4/time_r.m4 (gl_TIME_R): Likewise.
68794
68795 2006-08-09  Karl Berry  <karl@gnu.org>
68796
68797         * config/srclist.txt: no more gettext-tools, per Bruno.
68798
68799 2006-08-08  Eric Blake  <ebb9@byu.net>
68800
68801         * modules/verror: New module.
68802         * MODULES.html.sh: Document it.
68803
68804 2006-08-08  Eric Blake  <ebb9@byu.net>
68805
68806         * lib/verror.h, lib/verror.c: New files.
68807
68808 2006-08-08  Eric Blake  <ebb9@byu.net>
68809
68810         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
68811         verror_at_line output complies with GNU Coding Standards even when
68812         file is NULL.
68813
68814 2006-08-07  Bruno Haible  <bruno@clisp.org>
68815
68816         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
68817         versions of AIX.
68818         Reported by Ralf Wildenhues.
68819
68820 2006-08-07  Bruno Haible  <bruno@clisp.org>
68821
68822         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
68823         in an AC_DEFUN. Needed so that the autoconf snippets can use
68824         AC_REQUIRE.
68825
68826 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68827
68828         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68829         Initialize pkgdata_DATA.
68830         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
68831         overriding it.
68832
68833 2006-08-06  Eric Blake  <ebb9@byu.net>
68834
68835         * lib/error.h: Fold in some upstream changes from glibc.
68836         * lib/error.c: Likewise.
68837
68838 2006-08-04  Bruno Haible  <bruno@clisp.org>
68839
68840         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68841         Make the mostlyclean-local rule depend on mostlyclean-generic.
68842         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
68843
68844 2006-07-31  Bruno Haible  <bruno@clisp.org>
68845
68846         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
68847         <stdlib.h>, <string.h>.
68848
68849 2006-07-30  Bruno Haible  <bruno@clisp.org>
68850
68851         * modules/readlink (License): Change to LGPL.
68852
68853 2006-07-30  Bruno Haible  <bruno@clisp.org>
68854
68855         * modules/javaversion (Makefile.am): Distribute javaversion.java and
68856         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
68857         set PKGDATADIR to point to it.
68858
68859 2006-07-30  Bruno Haible  <bruno@clisp.org>
68860
68861         * modules/csharpexec (configure.ac): Comment out macro invocation.
68862         * modules/javaexec (configure.ac): Likewise.
68863         * modules/javacomp-script (configure.ac): Likewise.
68864
68865         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
68866
68867 2006-07-30  Bruno Haible  <bruno@clisp.org>
68868
68869         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
68870         linked-list.
68871
68872 2006-07-30  Bruno Haible  <bruno@clisp.org>
68873
68874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
68875
68876 2006-07-30  Bruno Haible  <bruno@clisp.org>
68877
68878         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68879         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
68880         get removed.
68881
68882 2006-07-29  Bruno Haible  <bruno@clisp.org>
68883
68884         Make it possible for gnulib-tool to work with locally modified or
68885         augmented gnulib repositories.
68886         * gnulib-tool (func_usage): Document --local-dir option.
68887         (local_gnulib_dir): New variable.
68888         Handle --local-dir option.
68889         (func_lookup_file): New function.
68890         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
68891         (func_get_description, func_get_filelist, func_get_description,
68892         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
68893         func_get_automake_snippet, func_get_include_directive,
68894         func_get_license, func_get_maintainer): Use func_lookup_file.
68895         (func_import, func_create_testdir): Use func_lookup_file.
68896
68897 2006-07-29  Bruno Haible  <bruno@clisp.org>
68898
68899         * modules/setenv (Depends-on): Add unistd.
68900
68901 2006-07-29  Bruno Haible  <bruno@clisp.org>
68902
68903         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
68904
68905 2006-07-29  Bruno Haible  <bruno@clisp.org>
68906
68907         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
68908
68909 2006-07-29  Bruno Haible  <bruno@clisp.org>
68910
68911         * gnulib-tool (import, update): If there is no Makefile.am, look at
68912         aclocal.m4, instead of bailing out.
68913
68914 2006-07-29  Bruno Haible  <bruno@clisp.org>
68915
68916         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
68917         Categorize the options by when they are useful.
68918
68919 2006-07-29  Bruno Haible  <bruno@clisp.org>
68920
68921         * gnulib-tool (func_usage): Document option --no-libtool.
68922         Handle option --no-libtool.
68923         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
68924         for changed semantics of $libtool variable.
68925         (func_import): Likewise. If libtool is not used, show this through
68926         an option --no-libtool.
68927         (func_create_testdir): Update.
68928
68929 2006-07-29  Bruno Haible  <bruno@clisp.org>
68930
68931         * gnulib-tool (func_import): Extend error message about missing
68932         --doc-base.
68933
68934 2006-07-29  Bruno Haible  <bruno@clisp.org>
68935
68936         * gnulib-tool (func_import): Don't create the $docbase directory if
68937         there is no file to store there.
68938
68939 2006-07-29  Bruno Haible  <bruno@clisp.org>
68940
68941         * gnulib-tool (autoconf_minversion): If a --dir option is given and
68942         relevant, look for configure.ac there, not in the current directory.
68943         Also use a simple search for AC_PREREQ, not "autoconf --trace".
68944
68945 2006-07-29  Bruno Haible  <bruno@clisp.org>
68946
68947         * gnulib-tool (SORT): New variable.
68948         (func_usage): Undocument --assume-autoconf option.
68949         Remove --assume-autoconf option handling.
68950         (autoconf_minversion): Determine from the contents of configure.ac.
68951         (func_import): Remove autoconf_minversion handling.
68952         Suggested by Eric Blake.
68953
68954 2006-07-29  Bruno Haible  <bruno@clisp.org>
68955
68956         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
68957
68958 2006-07-29  Bruno Haible  <bruno@clisp.org>
68959
68960         * config/srclist.txt (*setenv.[ch]): Remove rules.
68961
68962 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68963
68964         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
68965
68966 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68967
68968         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
68969         arpa/inet.h.
68970
68971 2006-07-28  Simon Josefsson  <jas@extundo.com>
68972
68973         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
68974         * modules/inet_pton (Depends-on): Likewise.
68975
68976 2006-07-28  Simon Josefsson  <jas@extundo.com>
68977
68978         * m4/netinet_in_h.m4: New file.
68979
68980 2006-07-28  Simon Josefsson  <jas@extundo.com>
68981
68982         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
68983         #include's.
68984
68985 2006-07-28  Simon Josefsson  <jas@extundo.com>
68986
68987         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
68988         #include's.
68989
68990 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
68991
68992         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
68993         setgid on directories only if they set these bits.
68994         * lib/modechange.h: Remove obsolete comment about masks.
68995
68996 2006-07-28  Eric Blake  <ebb9@byu.net>
68997
68998         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
68999         macro expansion.
69000
69001 2006-07-28  Bruno Haible  <bruno@clisp.org>
69002
69003         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69004
69005 2006-07-28  Bruno Haible  <bruno@clisp.org>
69006
69007         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69008
69009 2006-07-28  Bruno Haible  <bruno@clisp.org>
69010
69011         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69012         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69013         Define fallbacks.
69014         Avoids link error on FreeBSD 4.x.
69015         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69016
69017         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69018         encoding.
69019         * lib/mbswidth.c (iswcntrl): Likewise.
69020
69021 2006-07-27  Bruno Haible  <bruno@clisp.org>
69022
69023         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69024         test.
69025
69026 2006-07-27  Bruno Haible  <bruno@clisp.org>
69027
69028         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69029         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69030         defined.
69031
69032 2006-07-26  Eric Blake  <ebb9@byu.net>
69033
69034         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69035
69036 2006-07-26  Eric Blake  <ebb9@byu.net>
69037
69038         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69039         like mingw that lack mkstemp.
69040         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69041         avoid compilation warning on mingw.
69042
69043 2006-07-26  Bruno Haible  <bruno@clisp.org>
69044
69045         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69046         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69047         INT_FAST*_MIN, INTPTR_MIN.
69048
69049 2006-07-25  Bruno Haible  <bruno@clisp.org>
69050
69051         * modules/version-etc (Depends-on): Add stdarg.
69052
69053 2006-07-25  Bruno Haible  <bruno@clisp.org>
69054
69055         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69056         complex commands.
69057
69058 2006-07-25  Bruno Haible  <bruno@clisp.org>
69059
69060         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69061         defined in <stdarg.h> or config.h.
69062
69063 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69064
69065         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69066         (gl_STDIO_SAFER): Remove.
69067
69068 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69069
69070         * MODULES.html.sh (File stream based Input/Output):
69071         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69072         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69073         * modules/fopen-safer, modules/tmpfile-safer: New files.
69074         * modules/stdio-safer: Remove.
69075
69076 2006-07-24  Bruno Haible  <bruno@clisp.org>
69077
69078         * modules/tmpdir: New file.
69079         * MODULES.html.sh (File system functions): Add it.
69080
69081 2006-07-24  Bruno Haible  <bruno@clisp.org>
69082
69083         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69084         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69085
69086 2006-07-24  Bruno Haible  <bruno@clisp.org>
69087
69088         * modules/clean-temp: New file.
69089
69090 2006-07-24  Bruno Haible  <bruno@clisp.org>
69091
69092         * m4/tmpdir.m4: New file, from GNU gettext.
69093
69094 2006-07-24  Bruno Haible  <bruno@clisp.org>
69095
69096         * lib/tmpdir.h: New file, from GNU gettext.
69097         * lib/tmpdir.c: New file, from GNU gettext.
69098
69099 2006-07-24  Bruno Haible  <bruno@clisp.org>
69100
69101         * lib/clean-temp.h: New file, from GNU gettext.
69102         * lib/clean-temp.c: New file, from GNU gettext.
69103
69104 2006-07-23  Eric Blake  <ebb9@byu.net>
69105
69106         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69107         (Depends-on): Add binary-io.
69108
69109 2006-07-23  Eric Blake  <ebb9@byu.net>
69110
69111         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69112
69113 2006-07-23  Eric Blake  <ebb9@byu.net>
69114
69115         * lib/tmpfile-safer.c: New file.
69116         * lib/stdio-safer.h (fopen_safer): Add prototype.
69117         * lib/stdio--.h (tmpfile): Make safer.
69118
69119 2006-07-23  Bruno Haible  <bruno@clisp.org>
69120
69121         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69122         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69123         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69124         gl_linked_remove_at): Use it.
69125
69126 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69127         and Simon Josefsson <jas@extundo.com>
69128
69129         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
69130
69131         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
69132
69133 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69134
69135         * modules/close-stream: New file.
69136         * modules/closeout (Description): Make it clear that it exits
69137         with a diagnostic on error.
69138         (Depends-on): Add close-stream.  Remove fpending, stdbool.
69139         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
69140
69141 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69142
69143         * m4/close-stream.m4: New file.
69144
69145 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69146
69147         * lib/close-stream.c, lib/close-stream.h: New files.
69148
69149 2006-07-22  Bruno Haible  <bruno@clisp.org>
69150
69151         Merge from GNU gettext 0.15.
69152
69153         2006-05-01  Bruno Haible  <bruno@clisp.org>
69154
69155                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
69156
69157         2006-07-22  Bruno Haible  <bruno@clisp.org>
69158
69159                 * modules/javaversion: New file.
69160                 * MODULES.html.sh (Java): Add javaversion.
69161
69162         2006-03-12  Bruno Haible  <bruno@clisp.org>
69163
69164                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
69165
69166         2005-12-04  Bruno Haible  <bruno@clisp.org>
69167
69168                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
69169                 (untested).
69170
69171         2006-06-21  Bruno Haible  <bruno@clisp.org>
69172
69173                 Avoid warnings from recent versions of mcs.
69174                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
69175                 -o, -L, -r any more. Use options documented since mcs-1.0
69176                 instead. Similarly for -g.
69177
69178         2005-12-04  Bruno Haible  <bruno@clisp.org>
69179
69180                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69181                 .resources, not .resource.
69182
69183         2005-07-09  Bruno Haible  <bruno@clisp.org>
69184
69185                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69186                 add a .dll suffix.
69187                 Reported by Mark Junker <mjscod@gmx.de>.
69188
69189         2006-07-22  Bruno Haible  <bruno@clisp.org>
69190
69191                 * modules/gettext: Upgrade to gettext-0.15.
69192                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69193                 m4/visibility.m4.
69194                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69195
69196 2006-07-22  Bruno Haible  <bruno@clisp.org>
69197
69198         Merge from GNU gettext 0.15.
69199
69200         2006-03-25  Bruno Haible  <bruno@clisp.org>
69201
69202                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69203
69204         2006-07-21  Bruno Haible  <bruno@clisp.org>
69205
69206                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
69207                 "1.1".
69208
69209         2006-05-09  Bruno Haible  <bruno@clisp.org>
69210
69211                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
69212                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
69213                 for the conftestver execution.
69214
69215         2006-05-01  Bruno Haible  <bruno@clisp.org>
69216
69217                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
69218                 optional target-version argument. Verify that the compiler
69219                 groks source of the specified source-version, or add -source
69220                 option as necessary. Verify that the compiler produces
69221                 bytecode in the specified target-version, or add -target and
69222                 -source options as necessary. Make the result of the test
69223                 available as variable CONF_JAVAC. Also log error output in
69224                 config.log.
69225
69226         2006-03-11  Bruno Haible  <bruno@clisp.org>
69227
69228                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
69229
69230         2006-05-09  Bruno Haible  <bruno@clisp.org>
69231
69232                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
69233                 CLASSPATH_SEPARATOR to a semicolon.
69234
69235         2006-03-12  Bruno Haible  <bruno@clisp.org>
69236
69237                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
69238                 available as variable CONF_JAVA, for subsequent autoconf
69239                 tests. Also log error output in config.log.
69240
69241         2006-07-19  Bruno Haible  <bruno@clisp.org>
69242
69243                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
69244                 that getline works on glibc2 systems. Needed to avoid trouble
69245                 in relocatable.c.
69246                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
69247
69248         2005-12-04  Bruno Haible  <bruno@clisp.org>
69249
69250                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
69251                 launcher (untested).
69252
69253         2005-12-04  Bruno Haible  <bruno@clisp.org>
69254
69255                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
69256
69257         2006-07-22  Bruno Haible  <bruno@clisp.org>
69258
69259                 * gettext.m4: Update from GNU gettext-0.15.
69260                 * nls.m4: Likewise.
69261                 * po.m4: Likewise.
69262                 * inttypes-pri.m4: Likewise.
69263                 * inttypes-h.m4: Renamed from inttypes.m4.
69264                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
69265
69266 2006-07-22  Bruno Haible  <bruno@clisp.org>
69267
69268         Merge from GNU gettext 0.15.
69269
69270         2005-07-05  Bruno Haible  <bruno@clisp.org>
69271
69272                 * printf-args.c (printf_fetchargs): Work around broken
69273                 definition of wint_t on mingw.
69274
69275         2005-02-12  Bruno Haible  <bruno@clisp.org>
69276
69277                 * xallocsa.h: Add extern "C" for C++.
69278
69279         2006-05-17  Bruno Haible  <bruno@clisp.org>
69280
69281                 Cygwin portability.
69282                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
69283
69284         2006-04-30  Bruno Haible  <bruno@clisp.org>
69285
69286                 * progreloc.c: Include <mach-o/dyld.h> if available.
69287                 (find_executable): Use _NSGetExecutablePath when possible.
69288
69289         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69290
69291                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
69292                 function.
69293
69294         2005-12-29  Bruno Haible  <bruno@clisp.org>
69295
69296                 * progreloc.c (set_program_name_and_installdir): Fix
69297                 compilation error.
69298
69299         2005-12-04  Bruno Haible  <bruno@clisp.org>
69300
69301                 Cygwin portability.
69302                 * progreloc.c: Include <windows.h> also on Cygwin.
69303                 (find_executable): Add support for Cygwin.
69304                 (set_program_name_and_installdir): Handle also platforms with
69305                 nonempty EXEEXT.
69306
69307         2006-07-11  Bruno Haible  <bruno@clisp.org>
69308
69309                 * javacomp.c: Fix a comment.
69310                 Reported by Jim Meyering.
69311
69312         2006-04-30  Bruno Haible  <bruno@clisp.org>
69313
69314                 * javacomp.h (compile_java_class): Add source_version,
69315                 target_version arguments.
69316                 * javacomp.c: Rewritten to choose only a compiler that
69317                 respects the specified source_version and target_version.
69318
69319         2006-06-27  Bruno Haible  <bruno@clisp.org>
69320
69321                 Assume correct S_ISDIR macro.
69322                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
69323
69324         2006-07-22  Bruno Haible  <bruno@clisp.org>
69325
69326                 * javaversion.h: New file, from GNU gettext.
69327                 * javaversion.c: New file, from GNU gettext.
69328                 * javaversion.java: New file, from GNU gettext.
69329                 * javaversion.class: New file, from GNU gettext.
69330
69331         2006-05-17  Bruno Haible  <bruno@clisp.org>
69332
69333                 Cygwin portability.
69334                 * javaexec.c (execute_java_class): Test for jview program
69335                 also on Cygwin.
69336
69337         2006-04-09  Bruno Haible  <bruno@clisp.org>
69338
69339                 * fatal-signal.c: Don't include string.h.
69340                 (at_fatal_signal): Use a copying loop instead of memcpy.
69341
69342         2005-12-04  Bruno Haible  <bruno@clisp.org>
69343
69344                 * csharpexec.c: Add support for 'clix' launcher (untested).
69345                 (execute_csharp_using_sscli): New function.
69346                 (execute_csharp_program): Call it.
69347
69348         2006-06-21  Bruno Haible  <bruno@clisp.org>
69349
69350                 Avoid warnings from recent versions of mcs.
69351                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
69352                 -o, -L, -r any more. Use options documented since mcs-1.0
69353                 instead. Similarly for -g.
69354
69355         2005-07-09  Bruno Haible  <bruno@clisp.org>
69356
69357                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
69358                 add a .dll suffix.
69359                 Reported by Mark Junker <mjscod@gmx.de>.
69360
69361         2006-06-17  Bruno Haible  <bruno@clisp.org>
69362
69363                 * config.charset: Update for NetBSD 3.0.
69364
69365         2006-05-17  Bruno Haible  <bruno@clisp.org>
69366
69367                 Cygwin portability.
69368                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
69369
69370         2006-05-16  Bruno Haible  <bruno@clisp.org>
69371
69372                 * localcharset.c [CYGWIN]: Include <windows.h>.
69373                 (get_charset_aliases): For Cygwin, return the same CPxxx
69374                 aliases list as under WIN32.
69375                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
69376                 the environment variables. Fall back to GetACP().
69377
69378         2006-04-05  Bruno Haible  <bruno@clisp.org>
69379
69380                 * config.charset: Update Juan Manuel Guerrero's address.
69381
69382         2005-02-12  Bruno Haible  <bruno@clisp.org>
69383
69384                 * allocsa.h: Add extern "C" for C++.
69385
69386         2005-02-10  Bruno Haible  <bruno@clisp.org>
69387
69388                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
69389                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
69390
69391         2006-07-22  Bruno Haible  <bruno@clisp.org>
69392
69393                 * gettext.h: Update to GNU gettext-0.15.
69394
69395 2006-07-22  Bruno Haible  <bruno@clisp.org>
69396
69397         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
69398         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
69399         lib-prefix.m4, longdouble.m4, ssize_t.m4.
69400
69401 2006-07-21  Eric Blake  <ebb9@byu.net>
69402
69403         * modules/stdlib-safer: New file.
69404         * MODULES.html.sh (File stream based Input/Output): Add
69405         stdlib-safer.
69406
69407 2006-07-21  Eric Blake  <ebb9@byu.net>
69408
69409         * lib/stdlib-safer.h: New file from coreutils, required by
69410         stdlib--.h.
69411
69412 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
69413
69414         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
69415
69416 2006-07-20  Bruno Haible  <bruno@clisp.org>
69417
69418         * gnulib-tool: Recognize new option --assume-autoconf.
69419         (autoconf_minversion): New variable.
69420         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
69421
69422 2006-07-20  Bruno Haible  <bruno@clisp.org>
69423
69424         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
69425
69426 2006-07-19  Derek R. Price  <derek@ximbiot.com>
69427
69428         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
69429         Reindent and repaginate.
69430
69431 2006-07-19  Derek Price  <derek@ximbiot.com>
69432
69433         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
69434         Correct grammar.
69435
69436 2006-07-17  Bruno Haible  <bruno@clisp.org>
69437
69438         * modules/list: New file.
69439         * modules/array-list: New file.
69440         * modules/carray-list, modules/carray-list-tests: New files.
69441         * modules/linked-list, modules/linked-list-tests: New files.
69442         * modules/avltree-list, modules/avltree-list-tests: New files.
69443         * modules/rbtree-list, modules/rbtree-list-tests: New files.
69444         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
69445         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
69446         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
69447         * modules/oset: New file.
69448         * modules/array-oset: New file.
69449         * modules/avltree-oset, modules/avltree-oset-tests: New files.
69450         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
69451         * tests/test-carray_list.c: New file.
69452         * tests/test-linked_list.c: New file.
69453         * tests/test-avltree_list.c: New file.
69454         * tests/test-rbtree_list.c: New file.
69455         * tests/test-linkedhash_list.c: New file.
69456         * tests/test-avltreehash_list.c: New file.
69457         * tests/test-rbtreehash_list.c: New file.
69458         * tests/test-avltree_oset.c: New file.
69459         * tests/test-rbtree_oset.c: New file.
69460         * MODULES.html.sh (Container data structures): New section.
69461
69462 2006-07-17  Bruno Haible  <bruno@clisp.org>
69463
69464         * m4/gl_list.m4: New file.
69465
69466 2006-07-17  Bruno Haible  <bruno@clisp.org>
69467
69468         * lib/gl_list.h: New file.
69469         * lib/gl_list.c: New file.
69470         * lib/gl_array_list.h: New file.
69471         * lib/gl_array_list.c: New file.
69472         * lib/gl_carray_list.h: New file.
69473         * lib/gl_carray_list.c: New file.
69474         * lib/gl_linked_list.h: New file.
69475         * lib/gl_linked_list.c: New file.
69476         * lib/gl_anylinked_list1.h: New file.
69477         * lib/gl_anylinked_list2.h: New file.
69478         * lib/gl_avltree_list.h: New file.
69479         * lib/gl_avltree_list.c: New file.
69480         * lib/gl_anyavltree_list1.h: New file.
69481         * lib/gl_anyavltree_list2.h: New file.
69482         * lib/gl_rbtree_list.h: New file.
69483         * lib/gl_rbtree_list.c: New file.
69484         * lib/gl_anyrbtree_list1.h: New file.
69485         * lib/gl_anyrbtree_list2.h: New file.
69486         * lib/gl_anytree_list1.h: New file.
69487         * lib/gl_anytree_list2.h: New file.
69488         * lib/gl_linkedhash_list.h: New file.
69489         * lib/gl_linkedhash_list.c: New file.
69490         * lib/gl_anyhash_list1.h: New file.
69491         * lib/gl_anyhash_list2.h: New file.
69492         * lib/gl_avltreehash_list.h: New file.
69493         * lib/gl_avltreehash_list.c: New file.
69494         * lib/gl_rbtreehash_list.h: New file.
69495         * lib/gl_rbtreehash_list.c: New file.
69496         * lib/gl_anytreehash_list1.h: New file.
69497         * lib/gl_anytreehash_list2.h: New file.
69498
69499         * lib/gl_oset.h: New file.
69500         * lib/gl_oset.c: New file.
69501         * lib/gl_array_oset.h: New file.
69502         * lib/gl_array_oset.c: New file.
69503         * lib/gl_avltree_oset.h: New file.
69504         * lib/gl_avltree_oset.c: New file.
69505         * lib/gl_rbtree_oset.h: New file.
69506         * lib/gl_rbtree_oset.c: New file.
69507         * lib/gl_anytree_oset.h: New file.
69508
69509 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69510
69511         * m4/mkancesdirs.m4: New file.
69512         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
69513         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
69514         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
69515         it.
69516
69517 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69518
69519         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
69520         * lib/mkancesdirs.h: New files.
69521         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
69522         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
69523         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
69524         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
69525         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
69526         callers changed.  Revamp internals significantly, by not
69527         attempting to create directories that are temporarily more
69528         permissive than the final results.  Do not attempt to use
69529         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
69530         This removes some race conditions, fixes some bugs, and simplifies
69531         things.  Use new dirchownmod function to do owner and mode changes.
69532         * lib/mkdir-p.h: Likewise.
69533         * lib/modechange.c (octal_to_mode): New function.
69534         (struct mode_change): New member mentioned.
69535         (make_node_op_equals): New arg mentioned.  All callers changed.
69536         (mode_compile): Keep track of which mode bits the user has explicitly
69537         mentioned.
69538         (mode_adjust): New arg DIR, so that we implement the X op correctly.
69539         New arg PMODE_BITS, to keep track of which mode bits the user
69540         mentioned; it treats S_ISUID and S_ISGID speciall.
69541         All callers changed.
69542         * lib/modechange.h: Likewise.
69543
69544 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69545
69546         * MODULES.html.sh: Add mkancestors.
69547         * modules/mkancesdirs: New module.
69548         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
69549         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
69550         The chdir-safer and afs files are now orphans; I'll remove them
69551         unless someone speaks up.
69552         Add lib/dirchownmod.c, lib/dirchownmod.h.
69553         (Depends-on): Remove alloca, chown, save-cwd, dirname.
69554         Add lchown, mkancesdirs.
69555         (Maintainer): Add self.
69556
69557 2006-07-15  Karl Berry  <karl@gnu.org>
69558
69559         * gnulib-tool: help message wording/arrangement.
69560
69561 2006-07-14  Simon Josefsson  <jas@extundo.com>
69562
69563         * doc/gnulib.texi (Libtool and Windows): New section.
69564
69565 2006-07-12  Simon Josefsson  <jas@extundo.com>
69566
69567         * modules/gendocs (License): Fix license, approved by Karl.
69568
69569 2006-07-12  Eric Blake  <ebb9@byu.net>
69570
69571         * MODULES.html.sh: Add gendocs.
69572
69573 2006-07-11  Eric Blake  <ebb9@byu.net>
69574
69575         * modules/fdl: New module, to install doc/fdl.texi.
69576         * MODULES.html.sh: Add new section for documentation modules.
69577         * gnulib-tool: Avoid space-tab.
69578         (--doc-base): New option, to manage files from doc.
69579
69580 2006-07-11  Eric Blake  <ebb9@byu.net>
69581
69582         * m4/absolute-header.m4: Fix comments to match recent change.
69583
69584 2006-07-11  Eric Blake  <ebb9@byu.net>
69585
69586         * gnulib-tool: List --doc-base before --tests-base.
69587
69588 2006-07-11  Derek R. Price  <derek@ximbiot.com>
69589
69590         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
69591
69592 2006-07-11  Bruno Haible  <bruno@clisp.org>
69593
69594         * README: Mention where to put documentation.
69595
69596 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69597
69598         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
69599
69600 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69601
69602         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
69603         to stdint.m4.
69604
69605 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
69608         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
69609         "no/such/file/stdint.h" when there is no such file, so that
69610         the resulting C code can be parsed by dodgy compilers.
69611         Problems reported by Bob Proulx.
69612
69613 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69614
69615         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
69616         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69617         macros into the GNU _D_EXACT_NAMLEN.
69618         * lib/savedir.c:  Likewise.
69619         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
69620
69621 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69622         and Paul Eggert  <eggert@cs.ucla.edu>
69623
69624         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
69625         * m4/savedir.m4:
69626         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69627         macros into the GNU _D_EXACT_NAMLEN.
69628
69629 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69630
69631         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
69632         around the absolute name, to work around a problem with the HP-UX
69633         11.23 native C compiler, reported by Bob Proulx.
69634
69635 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69636
69637         * doc/maintain.texi, make-stds.texi: Sync from
69638         <http://savannah.gnu.org/projects/gnustandards>.
69639
69640 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69641
69642         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
69643
69644 2006-07-09  Jim Meyering  <jim@meyering.net>
69645
69646         * m4/glob.m4: Remove a doubled word in a comment.
69647
69648 2006-07-09  Jim Meyering  <jim@meyering.net>
69649
69650         * lib/argp-pv.c: Remove a doubled word in a comment.
69651         * lib/check-version.c (check_version): Likewise.
69652         * lib/javacomp.c (compile_java_class): Likewise.
69653
69654 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69655
69656         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
69657         for the benefit of people using Autoconf 2.60.  If you want to
69658         support older Autoconf versions you can copy m4/onceonly_2_57.m4
69659         (or m4/onceonly.m4, if pre-2.57) manually.
69660
69661 2006-07-08  Jim Meyering  <jim@meyering.net>
69662
69663         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
69664         comment.
69665         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
69666         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
69667         comment.
69668
69669 2006-07-08  Jim Meyering  <jim@meyering.net>
69670
69671         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
69672
69673 2006-07-07  Simon Josefsson  <jas@extundo.com>
69674
69675         * tests/test-crc.c: Change expected crc value, the test vector
69676         were probably computed using the old broken crc.c?
69677
69678 2006-07-06  Simon Josefsson  <jas@extundo.com>
69679
69680         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
69681         now the canonical place for the M4 file).
69682
69683         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
69684         from the sys_socket dependency now.
69685
69686         * modules/inet_pton (Files): Ditto.
69687
69688         * modules/inet_ntop (Files): Ditto.
69689
69690 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69691
69692         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
69693         not gl_PREREQ_GETUSERSHELL.
69694
69695 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69696
69697         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
69698         with only one argument, for Autoconf 2.60.
69699         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
69700         expand to nothing, so add a shell command to avoid syntax error.
69701         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69702
69703 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69704
69705         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
69706
69707 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69708
69709         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
69710         no longer needed.  Check for isblank decl.
69711         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
69712         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
69713         of existence.
69714
69715 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69716
69717         * lib/getloadavg.c: Use __VMS, not VMS.
69718         * lib/getopt.c: Likewise.
69719         * lib/getpagesize.h: Likewise.
69720         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
69721         and probably does not work.
69722
69723 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69724
69725         * lib/.cppi-disable: Add wcwidth.
69726         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
69727         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
69728         (ISGRAPH): Remove.  All uses changed to isgraph.
69729         (FOLD) [!defined _LIBC]: Remove special case.
69730         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
69731         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
69732         HAVE_ISBLANK.
69733         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
69734         case.
69735
69736 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69737
69738         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
69739         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
69740         brackets.  Other minor changes to suppress some compiler
69741         warnings.
69742
69743 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69744         and Paul Eggert  <eggert@cs.ucla.edu>
69745
69746         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
69747         of invoking obsolescent AC_HEADER_DIRENT macro.
69748         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
69749         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
69750         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
69751         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
69752         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
69753         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69754         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
69755         * m4/readdir.m4: Remove; no longer needed.
69756
69757 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69758         and Paul Eggert  <eggert@cs.ucla.edu>
69759
69760         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
69761         Don't worry about this obsolete case any more.
69762         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
69763         directories.
69764         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
69765         worry about this obsolete case any more.
69766         * lib/fts.c: Likewise.
69767         * lib/getcwd.c: Likewise.
69768         * lib/glob.h: Likewise.
69769         * lib/savedir.c: Likewise.
69770
69771 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69772
69773         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
69774         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
69775         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
69776         needed.
69777         All uses removed.
69778         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69779         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69780         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
69781         needed.
69782         * m4/getdate.m4 (gl_GETDATE): Likewise.
69783         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69784         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69785         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69786         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69787         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69788         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69789         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
69790         needed.
69791
69792 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69793
69794         * lib/memcasecmp.c: Include <limits.h>.
69795         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
69796         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
69797         Don't assume isdigit succeeds only on '0' through '9'.
69798
69799 2006-07-05  Eric Blake  <ebb9@byu.net>
69800
69801         * modules/getaddrinfo (Depends-on): Add snprintf.
69802
69803 2006-07-05  Eric Blake  <ebb9@byu.net>
69804
69805         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
69806         to avoid 'header present but could not be compiled' on cygwin.
69807
69808 2006-07-05  Eric Blake  <ebb9@byu.net>
69809
69810         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
69811         missing from netdb.h.
69812         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
69813
69814 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69815
69816         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
69817         no longer needed.
69818         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
69819         * m4/getdate.m4 (gl_GETDATE): Likewise.
69820         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69821         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69822         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69823         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69824         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69825
69826 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69827
69828         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
69829         All uses of is_space replaced by isspace.
69830         * lib/exit.h: Don't talk about STDC_HEADERS.
69831         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
69832         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
69833         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
69834         replaced by isprint etc.
69835         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
69836         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69837         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
69838         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
69839         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
69840         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69841
69842 2006-07-05  Bruno Haible  <bruno@clisp.org>
69843
69844         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
69845         the function exists, before testing against AIX.
69846         Reported by Martin Lambers <marlam@marlam.de>.
69847
69848 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69849
69850         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
69851         From Mark D. Baushke.
69852
69853 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69854
69855         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
69856         to the absolute name, not just one, to bypass Sun C 5.8's
69857         "warning: #include of /usr/include/... may be non-portable".
69858
69859 2006-07-04  Eric Blake  <ebb9@byu.net>
69860
69861         * modules/dirname-tests: New test module.
69862         * tests/test-dirname.c: New file, replacing dirname.c
69863         TEST_DIRNAME section that was recently deleted.
69864
69865 2006-07-04  Bruno Haible  <bruno@clisp.org>
69866
69867         Assume ANSI C header files and <ctype.h> functions.
69868         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
69869         (mbsnwidth): Use isprint, iscntrl instead.
69870
69871 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69872
69873         Merge from coreutils.
69874         * MODULES.html.sh: Add xstrtold.
69875         * modules/xstrtold: New file.
69876         * modules/cycle-check (Files): Add lib/same-inode.h.
69877         * modules/dirname (Files): Add m4/double-slash-root.m4.
69878         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
69879         * modules/mkdir-p (Files): Add lib/same-inode.h.
69880         * modules/same (Files): Add lib/same-inode.h.
69881
69882 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69883
69884         * m4/absolute-header.m4: Renamed from full-header-path.m4.
69885         This is to keep the terminology clean; POSIX talks about
69886         "absolute pathnames", not "full pathnames", but the GNU
69887         Coding Standards say to use "path" for something else;
69888         so use "absolute" to keep both sides happy.
69889         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
69890         Set gl_absolute_header, not gl_full_header_path.
69891         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
69892         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
69893         All uses changed.
69894
69895         Merge from coreutils.
69896
69897         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69898
69899         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
69900         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
69901         want to require the building of c-strtod.o.
69902         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
69903         needs -lm directly.
69904         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
69905
69906         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69907
69908         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
69909         --as-needed option if available.  Problem reported by Albert Chin in
69910         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
69911         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
69912         cc merely issues a bunch of annoying warnings for --as-needed
69913         (this problem was reported by Bob Proulx).  Also, try linking with
69914         -lm to detect a bug in binutils 2.16 (this problem was reported
69915         by Ralf Wildenhues).
69916
69917         2006-06-18  Jim Meyering  <jim@meyering.net>
69918
69919         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
69920         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
69921         macro.
69922         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
69923         also check for glibc-2.4's abort-inducing bug.
69924
69925         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
69926         Low-probability clean-up should be to use rmdir to get rid of
69927         the just-created directory, not unlink.
69928
69929         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
69930         configure fail, and request a bug report to inform us about it.
69931         Add a comment that, barring reports to the contrary, in 2007 we'll
69932         assume ftruncate is universally available.
69933
69934         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69935
69936         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
69937
69938         2006-03-12  Jim Meyering  <jim@meyering.net>
69939
69940         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
69941         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
69942         * m4/same.m4 (gl_SAME): Likewise.
69943         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
69944
69945         2006-03-11  Eric Blake  <ebb9@byu.net>
69946
69947         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
69948         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
69949         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
69950         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
69951
69952 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69953
69954         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
69955         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
69956         reported by Mark D. Baushke, one in
69957         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
69958
69959         Merge from coreutils.
69960
69961         * lib/.cppi-disable: Add stdint_.h.
69962         * lib/.cvsignore: Add stdint.h.
69963
69964         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69965
69966         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
69967         both double and long double versions.
69968         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
69969         * lib/xstrtold.c: New file.
69970         * lib/xstrtod.h (xstrtold): New decl.
69971
69972         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69973
69974         * lib/filemode.c (setst): Remove.
69975         (strmode): Rewrite to avoid setst.  This makes the code shorter,
69976         (arguably) clearer, and the generated code is a bit smaller on my
69977         Debian GNU/Linux stable x86 host.
69978
69979         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69980
69981         * lib/filemode.c: Include "filemode.h" first, to test the interface.
69982         Assume that filemode.h includes sys/types.h and sys/stat.h.
69983         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
69984         (ftypelet): Reorder to put common cases first, for efficiency.
69985         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
69986         to do 'M'.
69987         (strmode): Renamed from mode_string, and now stores 12 bytes instead
69988         of 10, for compatibility with FreeBSD.  All callers changed.
69989         (filemodestring): Now stores 12 bytes instead of 10, and sets file
69990         types that can't be deduced solely from st_mode.  First arg is now a
69991         const pointer.
69992         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
69993         (strmode): Renamed from mode_string.
69994         (filemodestring): New decl.
69995         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
69996         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
69997         needed.
69998         (S_ISPORT, S_ISWHT): New macros, if not already defined.
69999
70000         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70001
70002         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70003         fsusage.h now does that.  Include fsusage.h first, to test interface.
70004         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70005         at most one method (the old code could have generated decls that
70006         didn't conform to C89, not that this was ever exercised).
70007         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70008
70009         2006-03-19  Jim Meyering  <jim@meyering.net>
70010
70011         Work even in a chroot where d_ino values for entries in "/"
70012         don't match the stat.st_ino values for the same names.
70013         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70014         number, iterate through all entries again, using lstat instead.
70015         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70016         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70017
70018         * lib/getcwd.c (__getcwd): Clarify a comment.
70019         Use memcpy in place of a call to strcpy.
70020
70021         2006-03-12  Jim Meyering  <jim@meyering.net>
70022
70023         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70024         matches that of the current directory (which we're about to chdir ".."
70025         out of), then save the dev-ino of the parent, instead.
70026
70027         * lib/same-inode.h (SAME_INODE): New file/macro.
70028         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70029         Include "same-inode.h", instead.
70030         * lib/same.c: Likewise.
70031         * lib/cycle-check.h: Include "same-inode.h".
70032         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70033         * lib/cycle-check.c (SAME_INODE): Remove definition.
70034         * lib/root-dev-ino.h: Include "same-inode.h".
70035
70036         2006-03-11  Eric Blake  <ebb9@byu.net>
70037
70038         * lib/same.c (same_name): s/base_name/last_component/
70039         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70040         * lib/filenamecat.c (file_name_concat): Likewise.
70041
70042         2006-03-11  Eric Blake  <ebb9@byu.net>,
70043                     Paul Eggert  <eggert@cs.ucla.edu>
70044
70045         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70046         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70047         drive prefix.
70048         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70049         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70050         (last_component): New method.
70051         * lib/dirname.c (dir_len): Determine when drive letters need a
70052         subsequent slash.  Preserve // when it is special.
70053         (dir_name): Don't append dot when drive letter is absolute.
70054         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70055         * lib/basename.c (base_name): New semantics - malloc the result.
70056         Preserve // when it is special.  Preserve relative files that look
70057         like drive letters.
70058         (base_len): Preserve // when it is special.
70059         (last_component): New method, similar to old base_name semantics.
70060         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70061         base_name.  Strip redundant slashes from ///.
70062
70063 2006-07-03  Jim Meyering  <jim@meyering.net>
70064
70065         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70066         macro is used before the first cycle_check call.
70067
70068 2006-07-03  Eric Blake  <ebb9@byu.net>
70069
70070         * modules/dirname (Depends-on): Add xstrndup.
70071
70072 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70073
70074         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70075         test cases, so that config.log is a bit easier to follow.
70076
70077 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70078
70079         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70080         both are 64 bits, since this seems to be the tradition, and this
70081         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70082         we ever run into a host that prefers long long to long in this
70083         case, we'll need another configure-time test.  Problem reported by
70084         Jim Meyering.
70085
70086 2006-07-02  Eric Blake  <ebb9@byu.net>
70087
70088         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70089
70090 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70091
70092         * modules/inttypes (Depends-on): No longer depends on stdint.
70093         * modules/stdint (Description): Say more about assumptions.
70094         Say that the fast types might differ.  Say macros are used.
70095         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70096         (Makefile.am): Revise list of substituted symbols to match
70097         new stdint.m4.
70098         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70099         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70100         * tests/test-stdint.c (verify_same_types)
70101         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70102         the code conforms to C99/C89.
70103         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70104         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70105
70106 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70107
70108         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70109         but fix a bug, by requiring at least 64 bits.
70110         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70111         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70112         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70113         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70114
70115         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70116         changes.  Make 2.59 a prerequisite.  Check and substitute for
70117         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70118         inttypes.h.  Do not use special include files; just use the
70119         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70120         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70121         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70122         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70123         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70124         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
70125         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
70126         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
70127         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
70128         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
70129         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
70130         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
70131         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
70132         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
70133         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
70134         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
70135         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
70136         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
70137         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
70138         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
70139         WINT_MAX.  Check for C99 conformance more strictly, by detecting
70140         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
70141         not check for things that C99 does not require, e.g., int8_t.  If
70142         a test isn't needed unless <stdint.h> isn't working, and is
70143         unlikely to be needed for any other reason, then don't do it
70144         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
70145         size_t, since we assume C89 freestanding at least.  Do not check
70146         for sig_atomic_t, wchar_t, or wint_t, since the code now does
70147         the right thing even if the types are not defined.  Instead use:
70148         (gl_STDINT_TYPE_PROPERTIES): New macro.
70149         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
70150         testing whether <sys/types.h> clashes, as Autoconf does this for
70151         us now.  All uses removed.
70152         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
70153         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
70154         (gl_CHECK_TYPE_SAME):
70155         Remove; no longer needed.
70156         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
70157         exists, since we'll return 0 anyway in that case.
70158         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
70159
70160 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70161
70162         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
70163         possible collision with system files.
70164         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
70165         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
70166         WCHAR_MIN and WCHAR_MAX in this case.
70167         (<stddef.h>): Do not include; no longer needed.
70168         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
70169         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
70170         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
70171         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
70172         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
70173         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
70174         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
70175         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70176         !defined(__c99))]: Include in this case too, since it's harmless
70177         now.
70178         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70179         dangerous to do so.
70180         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70181         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70182         (_STDINT_MIN, _STDINT_MAX): New macros.
70183         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70184         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70185         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70186         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70187         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70188         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70189         macros, not typedefs; this simplifies things quite a bit.
70190         Use long int for all types narrower than int64_t.
70191         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70192         Define in terms of long long int or int64_t or long int,
70193         not int64_t or int32_t.  This saves some compile-time testing.
70194         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70195         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70196         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70197         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70198         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70199         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70200         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70201         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70202         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70203         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70204         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70205         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70206         undef any previous version and define our own version, for
70207         simplicity and consistency with the new macros for types.
70208         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70209         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70210         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
70211         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
70212         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
70213         @WINT_T_SUFFIX@ to keep things simple here.
70214         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
70215         Simplify by assuming typical 8/16/32/64 host, since we're
70216         already doing that elsewhere anyway.
70217         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
70218         and assume long long int is 64 bits if available.  This
70219         speeds up 'configure'.
70220
70221 2006-07-01  Eric Blake  <ebb9@byu.net>
70222
70223         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
70224         Reported by Andreas Buening.
70225
70226 2006-07-01  Eric Blake  <ebb9@byu.net>
70227
70228         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
70229
70230 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70231
70232         * lib/getaddrinfo.c: fixed typo
70233
70234 2006-06-29  Jim Meyering  <jim@meyering.net>
70235
70236         * modules/strftime (Maintainer): Add my name, since with the
70237         FPRINTFTIME changes strftime.c has forked from glibc.
70238
70239 2006-06-29  Eric Blake  <ebb9@byu.net>
70240
70241         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
70242
70243 2006-06-29  Eric Blake  <ebb9@byu.net>
70244
70245         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
70246
70247 2006-06-29  Eric Blake  <ebb9@byu.net>
70248
70249         * lib/stat_.h: New file.
70250
70251 2006-06-29  Eric Blake  <ebb9@byu.net>
70252
70253         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
70254         unused static function.
70255
70256 2006-06-29  Eric Blake  <ebb9@byu.net>
70257
70258         * doc/functions.texi (Function Portability): Document missing lstat
70259         on mingw.
70260
70261 2006-06-29  Eric Blake  <ebb9@byu.net>
70262
70263         * MODULES.html.sh: Add sys_stat.
70264         * modules/sys_stat: New module.
70265         * modules/mkstemp (Depends-on): Add sys_stat.
70266
70267 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70268
70269         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
70270
70271 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70272
70273         * m4/c-bs-a.m4: Removed.
70274
70275 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70276
70277         * lib/strftime.c: Assume strftime() exists.
70278
70279 2006-06-29  Derek Price  <derek@ximbiot.com>
70280
70281         * modules/c-bs-a: Removed - \a is C89.
70282         * MODULES.html.sh: Remove c-bs-a.
70283
70284 2006-06-29  Bruno Haible  <bruno@clisp.org>
70285
70286         * modules/wcwidth (License): Change to LGPL.
70287
70288 2006-06-28  Simon Josefsson  <jas@extundo.com>
70289
70290         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
70291         on _WIN32.
70292
70293         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
70294         getnameinfo.
70295
70296 2006-06-28  Simon Josefsson  <jas@extundo.com>
70297
70298         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
70299
70300 2006-06-28  Simon Josefsson  <jas@extundo.com>
70301
70302         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
70303         functions there.  It will succeed on Windows XP, but on Windows
70304         2000 and (presumably) earlier, it will fail, and use the internal
70305         re-implementation.
70306         (use_win32_p): New function.
70307         (getaddrinfo): Use strtoul on servname, to support numeric ports.
70308         Support AI_NUMERICSERV to disable getservbyname.
70309         (getnameinfo): New function, only supports
70310         NI_NUMERICHOST|NI_NUMERICSERV for now.
70311
70312         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
70313         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
70314         getnameinfo.
70315
70316 2006-06-28  Eric Blake  <ebb9@byu.net>
70317
70318         * modules/wcwidth: New file.
70319         * modules/mbchar (Depends-on): Add wcwidth.
70320         * modules/mbswidth (Depends-on): Add wcwidth.
70321         * MODULES.html.sh: Add wcwidth.
70322
70323 2006-06-28  Eric Blake  <ebb9@byu.net>
70324
70325         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
70326         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
70327
70328 2006-06-28  Eric Blake  <ebb9@byu.net>
70329
70330         * lib/xvasprintf.h: Fix comments.
70331
70332 2006-06-28  Eric Blake  <ebb9@byu.net>
70333
70334         * lib/mbchar.h (wcwidth): Include wcwidth.h.
70335         * lib/mbswidth.c (wcwidth): Move from here...
70336         * lib/wcwidth.h: ...to this new file.
70337
70338 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70339
70340         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
70341
70342         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
70343         it's obsolete.
70344         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
70345
70346 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70347
70348         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
70349         Autoconf 2.60 says this stuff was obsolete.
70350
70351 2006-06-28  Bruno Haible  <bruno@clisp.org>
70352
70353         * modules/wcwidth (Files): Add m4/wchar_t.m4.
70354
70355 2006-06-28  Bruno Haible  <bruno@clisp.org>
70356
70357         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
70358         gt_TYPE_WCHAR_T.
70359
70360 2006-06-28  Bruno Haible  <bruno@clisp.org>
70361
70362         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
70363         declaration for wcwidth.
70364         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
70365
70366 2006-06-28  Bruno Haible  <bruno@clisp.org>
70367
70368         * lib/mkdtemp.c [MINGW]: Include <io.h>.
70369         (mkdir): Define using _mkdir.
70370
70371 2006-06-28  Bruno Haible  <bruno@clisp.org>
70372
70373         * lib/getaddrinfo.h: Fix POSIX URL.
70374         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
70375         _WIN32.
70376         (use_win32_p): Make static.
70377         (getaddrinfo): Reject service name if it is empty or does not consist
70378         solely of decimal digits, or if its value is > 65535.
70379         (getnameinfo): Remove useless casts.
70380
70381 2006-06-27  Simon Josefsson  <jas@extundo.com>
70382
70383         * modules/sys_select: New file, suggested by Bruno Haible, Paul
70384         Eggert and Martin Lambers.
70385
70386 2006-06-27  Simon Josefsson  <jas@extundo.com>
70387
70388         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
70389         Eggert and Martin Lambers.
70390
70391 2006-06-27  Bruno Haible  <bruno@clisp.org>
70392
70393         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
70394         result to 0, not to empty.
70395         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
70396
70397 2006-06-27  Bruno Haible  <bruno@clisp.org>
70398
70399         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
70400
70401 2006-06-26  Simon Josefsson  <jas@extundo.com>
70402
70403         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
70404         present.
70405
70406 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
70407
70408         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
70409         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
70410         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
70411
70412 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
70413
70414         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
70415
70416 2006-06-26  Bruno Haible  <bruno@clisp.org>
70417
70418         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
70419
70420 2006-06-26  Bruno Haible  <bruno@clisp.org>
70421
70422         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
70423
70424 2006-06-26  Bruno Haible  <bruno@clisp.org>
70425
70426         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
70427         SGI C compiler in pre-C99 mode.
70428         Suggested by Mark D. Baushke and Larry Jones.
70429
70430 2006-06-26  Bruno Haible  <bruno@clisp.org>
70431
70432         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
70433         WCHAR_MAX.
70434         Reported by Mark D. Baushke and Larry Jones.
70435
70436 2006-06-26  Bruno Haible  <bruno@clisp.org>
70437
70438         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
70439         in pre-C99 mode.
70440         Suggested by Mark D. Baushke and Larry Jones.
70441
70442 2006-06-23  Simon Josefsson  <jas@extundo.com>
70443             Bruno Haible  <bruno@clisp.org>
70444
70445         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
70446         Emit mostlyclean-local rule.
70447         (func_emit_tests_Makefile_am): Likewise.
70448         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
70449
70450 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
70451
70452         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
70453
70454 2006-06-23  Bruno Haible  <bruno@clisp.org>
70455
70456         * tests/test-stdint.c: Update to match ISO C 99 Technical
70457         Corrigendum 1.
70458
70459 2006-06-23  Bruno Haible  <bruno@clisp.org>
70460
70461         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
70462
70463 2006-06-23  Bruno Haible  <bruno@clisp.org>
70464
70465         * lib/stdint_.h: Treat IRIX like OpenBSD.
70466
70467 2006-06-23  Bruno Haible  <bruno@clisp.org>
70468
70469         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
70470         ISO C 99 Technical Corrigendum 1.
70471
70472 2006-06-22  Simon Josefsson  <jas@extundo.com>
70473
70474         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
70475         MinGW.
70476
70477 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70478
70479         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
70480         needed.  Some compiler complained about some of them.  Problem reported
70481         by Larry Jones in
70482         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
70483
70484 2006-06-21  Simon Josefsson  <jas@extundo.com>
70485
70486         * tests/test-getaddrinfo.c: New file.
70487
70488         * modules/getaddrinfo-tests: New file.
70489
70490         * MODULES.html.sh: Add inet_pton.
70491
70492         * modules/inet_pton: New file.
70493
70494 2006-06-21  Simon Josefsson  <jas@extundo.com>
70495
70496         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
70497         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
70498         of using the (limited) gnulib implementation on Windows XP.
70499
70500         * m4/inet_pton.m4: New file.
70501
70502 2006-06-21  Simon Josefsson  <jas@extundo.com>
70503
70504         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
70505         variable.
70506
70507         * lib/socket_.h: Don't define WINVER.
70508
70509         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
70510         slightly modified to work in gnulib.
70511
70512 2006-06-21  Simon Josefsson  <jas@extundo.com>
70513
70514         * doc/gnulib.texi (Windows sockets): Add.
70515
70516 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
70517
70518         * lib/read-file.c (fread_file): Start with buffer allocation of
70519         0 bytes rather than 1 byte; this simplifies the code.
70520         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
70521         code to free buffer and save/restore errno.
70522         (internal_read_file): Remove unused local.
70523
70524 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
70525
70526         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
70527         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
70528         Problem reported by Denis Excoffier in
70529         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
70530
70531 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70532
70533         * modules/sys_socket, modules/socklen: Include sys/types since
70534         FreeBSD 4.x's sys/socket.h needs it.
70535
70536 2006-06-19  Simon Josefsson  <jas@extundo.com>
70537
70538         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
70539
70540 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70541
70542         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
70543
70544 2006-06-19  Bruno Haible  <bruno@clisp.org>
70545
70546         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
70547         and FULL_PATH_INTTYPES_H in angle brackets.
70548         Reported by Mark D. Baushke <mdb@gnu.org>.
70549
70550 2006-06-17  Eric Blake  <ebb9@byu.net>
70551
70552         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
70553         errno.
70554
70555 2006-06-17  Bruno Haible  <bruno@clisp.org>
70556
70557         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
70558         <sys/inttypes.h>.
70559
70560 2006-06-17  Bruno Haible  <bruno@clisp.org>
70561
70562         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
70563         whether errno is declared. Assume <errno.h> declares errno.
70564
70565 2006-06-17  Bruno Haible  <bruno@clisp.org>
70566
70567         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
70568
70569 2006-06-17  Bruno Haible  <bruno@clisp.org>
70570
70571         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
70572         problem on Solaris 2.5.1.
70573
70574 2006-06-16  Eric Blake  <ebb9@byu.net>
70575
70576         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
70577         * lib/unicodeio.c [!defined errno]: Likewise.
70578         * lib/strtol.c [!defined errno]: Likewise.
70579         * lib/strtod.c [!defined errno]: Likewise.
70580
70581 2006-06-15  Eric Blake  <ebb9@byu.net>
70582
70583         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
70584
70585 2006-06-15  Eric Blake  <ebb9@byu.net>
70586
70587         * config/srclist.txt (ssize_t.m4): Lose sync.
70588
70589 2006-06-15  Bruno Haible  <bruno@clisp.org>
70590
70591         * modules/stdint (Files): Include m4/full-header-path.m4,
70592         m4/size_max.m4, m4/wchar_t.m4.
70593         (Makefile.am): Many more substitutions.
70594         * modules/stdint-tests: New file.
70595         * tests/test-stdint.c: New file.
70596
70597 2006-06-15  Bruno Haible  <bruno@clisp.org>
70598
70599         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
70600         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
70601         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
70602         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
70603         gl_CHECK_TYPE_SAME): New macros.
70604
70605 2006-06-15  Bruno Haible  <bruno@clisp.org>
70606
70607         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
70608
70609 2006-06-15  Bruno Haible  <bruno@clisp.org>
70610
70611         * lib/stdint_.h: Rewritten to be fully auto-configured.
70612         Fixes bug on HP-UX/IA64.
70613
70614 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
70615
70616         * lib/getdate.y (__attribute__): Don't define if already defined.
70617         Problem reported by Larry Jones.
70618         * lib/utimens.c (__attribute__): Likewise.
70619
70620 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
70621
70622         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
70623         reported by Andreas Schwab.
70624
70625 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70626             Bruno Haible  <bruno@clisp.org>
70627
70628         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
70629         check for the declaration of strnlen and a run test that exposes the
70630         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
70631         rpl_strndup.
70632
70633 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70634             Bruno Haible  <bruno@clisp.org>
70635
70636         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
70637
70638 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70639
70640         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
70641         compile test, for Tru64 4.0D.
70642
70643 2006-05-28  Karl Berry  <karl@gnu.org>
70644
70645         * config/srclist.txt (printf-args.c): lose sync.
70646
70647 2006-05-26  Martin Lambers  <marlam@marlam.de>
70648
70649         * lib/getpass.c: Updates the test for the native W32 API, and adds
70650         missing includes, thus fixing compilation warnings.
70651
70652 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70653
70654         * lib/exclude.c (exclude_fnmatch): New function.
70655         (excluded_file_name): Call exclude_fnmatch.
70656         * lib/exclude.h (excluded_file_name): New prototype
70657
70658 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
70659
70660         * lib/tempname.c (small_open, large_open): New macros.
70661         (__open, __open64) [!_LIBC]: Remove.
70662         (__gen_tempname): Use small_open and large_open instead of __open
70663         and __open64.  This fixes a portability bug on HP-UX 11.11i
70664         reported by Simon Wing-Tang in
70665         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
70666
70667 2006-05-24  Bruno Haible  <bruno@clisp.org>
70668
70669         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
70670         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
70671         Reported by Thorsten Maerz <torte@netztorte.de> via
70672         Aaron Stone <aaron@serendipity.cx>.
70673
70674 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70675
70676         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
70677         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
70678         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
70679         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
70680         not really conditional on the cache.
70681         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
70682
70683 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70684
70685         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
70686         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
70687         (my_usleep): Don't mishandle maximum value.
70688
70689 2006-05-19  Jim Meyering  <jim@meyering.net>
70690
70691         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
70692
70693 2006-05-17  Bruno Haible  <bruno@clisp.org>
70694
70695         Cygwin portability.
70696         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
70697
70698 2006-05-17  Bruno Haible  <bruno@clisp.org>
70699
70700         * lib/stdint_.h: Fix recognition of Cygwin.
70701
70702 2006-05-15  Bruno Haible  <bruno@clisp.org>
70703
70704         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
70705         on libtool patch by Ralf Wildenhues.
70706
70707 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70708
70709         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
70710         test for C99 conformance; (bool) 0.5 is an integer constant
70711         expression, but (bool) -0.5 is not.  Problem reported by Fedor
70712         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
70713
70714 2006-05-11  Simon Josefsson  <jas@extundo.com>
70715
70716         * m4/xvasprintf.m4: Fix obvious typo.
70717
70718 2006-05-11  Jim Meyering  <jim@meyering.net>
70719
70720         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
70721         James Lemley.
70722
70723 2006-05-10  Simon Josefsson  <jas@extundo.com>
70724
70725         * lib/md4.c: Typo fix, update copyright years.
70726         (K1, K2): Don't use L because it turn computations into 64-bit on
70727         64-bit platforms.
70728
70729 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
70730
70731         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
70732         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
70733         unwanted sign propagation, e.g., on hosts with 64-bit int.
70734         There still are some problems with reeelly weird theoretical hosts
70735         (e.g., 33-bit int) but it's not worth worrying about now.
70736         * lib/sha1.c (rol): Likewise.
70737         (K1, K2, K3, K4): Remove unnecessary L suffix.
70738
70739 2006-05-10  Bruno Haible  <bruno@clisp.org>
70740
70741         * lib/des.c: Cast to avoid warnings.
70742
70743 2006-05-09  Bruno Haible  <bruno@clisp.org>
70744
70745         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
70746         (Depends-on): Depend also on xsize, stdarg.
70747         (configure.ac): Add gl_XVASPRINTF.
70748
70749 2006-05-09  Bruno Haible  <bruno@clisp.org>
70750
70751         * m4/xvasprintf.m4: New file.
70752
70753 2006-05-09  Bruno Haible  <bruno@clisp.org>
70754
70755         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
70756         (EOVERFLOW): Define fallback value.
70757         (xstrcat): New function.
70758         (xvasprintf): Recognize the special case of a string concatenation.
70759
70760 2006-05-08  Eric Blake  <ebb9@byu.net>
70761
70762         * gnulib-tool (func_version): Base copyright year on CVS date.
70763         (func_emit_copyright_notice): New function.
70764         (func_emit_lib_Makefile_am): Use it.
70765         (func_emit_tests_Makefile_am): Likewise.
70766         (func_import): Likewise.
70767
70768 2006-05-08  Bruno Haible  <bruno@clisp.org>
70769
70770         * modules/stdarg: New file.
70771         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
70772
70773 2006-05-08  Bruno Haible  <bruno@clisp.org>
70774
70775         * m4/stdarg.m4: New file, from GNU gettext.
70776
70777 2006-05-08  Bruno Haible  <bruno@clisp.org>
70778
70779         * config/srclist.txt (build-aux/config.rpath): different from latest
70780         release.
70781
70782 2006-05-08  Bruno Haible  <bruno@clisp.org>
70783
70784         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
70785
70786 2006-05-05  Jim Meyering  <jim@meyering.net>
70787
70788         * m4/warning.m4: New file, derived from bison's file by the same name.
70789
70790 2006-05-03  Bruno Haible  <bruno@clisp.org>
70791
70792         * lib/stdint_.h: Shorter URL.
70793         * lib/inttypes.h: Likewise.
70794
70795 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70796
70797         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
70798
70799 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70800
70801         * lib/verify.h: Document the internals better.  Most of this change
70802         was written by Bruno Haible.
70803
70804 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70805
70806         * doc/verify.texi: New file, partly based on a proposal by
70807         Bruno Haible.
70808
70809 2006-05-02  Bruno Haible  <bruno@clisp.org>
70810
70811         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
70812         test from here...
70813         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
70814
70815 2006-04-29  Bruno Haible  <bruno@clisp.org>
70816
70817         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
70818         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
70819
70820 2006-04-29  Bruno Haible  <bruno@clisp.org>
70821
70822         * gnulib-tool: Make --update option actually work.
70823
70824 2006-04-29  Bruno Haible  <bruno@clisp.org>
70825
70826         * doc/gcd.texi: New file.
70827         * doc/gnulib.texi: Include it.
70828
70829 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
70830
70831         * lib/getdate.y (get_date): When adding relative date, start with the
70832         initial time, not with the result of the first mktime call.
70833
70834 2006-04-25  Bruno Haible  <bruno@clisp.org>
70835
70836         * gnulib-tool (func_import): Output the include directives in three
70837         blocks, sorted separately.
70838         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70839
70840 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70841
70842         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
70843         to define main with arguments, for C++.  Reported by Eric Blake.
70844         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
70845         Prefer 'int main ()' to 'int main (void)', for C++.
70846         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
70847         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
70848         for 'main', for C99 and C++.
70849
70850 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70851
70852         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
70853         Don't assume that exit status -1 is valid.
70854         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70855         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
70856         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
70857         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
70858         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
70859         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
70860         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
70861         functions can be used without declaring them, or that you can
70862         exit with status -1.
70863         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
70864
70865 2006-04-24  Karl Berry  <karl@gnu.org>
70866
70867         * config/srclist.txt (longdouble.m4): sync lost.
70868
70869 2006-04-24  Eric Blake  <ebb9@byu.net>
70870
70871         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
70872
70873 2006-04-24  Bruno Haible  <bruno@clisp.org>
70874
70875         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
70876         poll() implementation in AIX.
70877         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70878
70879 2006-04-24  Bruno Haible  <bruno@clisp.org>
70880
70881         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
70882         assigned exactly once.
70883
70884 2006-04-23  Claudio Fontana  <claudio@gnu.org>
70885             Bruno Haible  <bruno@clisp.org>
70886
70887         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
70888         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
70889         for AM_CPPFLAGS.
70890
70891 2006-04-23  Bruno Haible  <bruno@clisp.org>
70892
70893         * modules/copy-file: Depend on unistd.
70894         * modules/execute: Likewise.
70895         * modules/fatal-signal: Likewise.
70896         * modules/findprog: Likewise.
70897         * modules/mkdtemp : Likewise.
70898         * modules/pipe: Likewise.
70899         * modules/wait-process: Likewise.
70900
70901 2006-04-23  Bruno Haible  <bruno@clisp.org>
70902
70903         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
70904         condition was already detected.
70905         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70906
70907 2006-04-23  Bruno Haible  <bruno@clisp.org>
70908
70909         * lib/copy-file.c: Include <unistd.h> unconditionally.
70910         * lib/execute.c: Likewise.
70911         * lib/fatal-signal.c: Likewise.
70912         * lib/findprog.c: Likewise.
70913         * lib/mkdtemp.c: Likewise.
70914         * lib/pipe.h: Likewise.
70915         * lib/pipe.c: Likewise.
70916         * lib/wait-process.h: Likewise.
70917
70918 2006-04-23  Bruno Haible  <bruno@clisp.org>
70919
70920         * gnulib-tool (func_usage): Fix --import description. Document
70921         --update.
70922         (func_import): Create temporary file in a temporary directory, if
70923         --dry-run is specified. Silence errors from 'grep' when there are no
70924         m4 files in $m4dir.
70925         (func_create_testdir): Silence errors from 'grep' when there are no
70926         m4 files in $m4dir.
70927         Reported by Karl Berry <karl@freefriends.org>.
70928
70929 2006-04-20  Bruno Haible  <bruno@clisp.org>
70930
70931         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
70932         one argument, so that the code will be portable to Autoconf 2.60.
70933         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
70934         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70935         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
70936
70937 2006-04-19  Derek Price  <derek@ximbiot.com>
70938             Eric Blake  <ebb9@byu.net>
70939
70940         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
70941         rather than "/full/path.h".  Update comment to match.  Shorten &
70942         generalize m4_translit call via AS_TR_CPP.
70943
70944 2006-04-19  Derek Price  <derek@ximbiot.com>
70945             Eric Blake  <ebb9@byu.net>
70946
70947         * lib/inttypes.h: Correct grammar in comment.
70948
70949 2006-04-18  Derek Price  <derek@ximbiot.com>
70950             Paul Eggert  <eggert@cs.ucla.edu>
70951
70952         * modules/inttypes: New file.
70953         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
70954
70955 2006-04-18  Derek Price  <derek@ximbiot.com>
70956             Paul Eggert  <eggert@cs.ucla.edu>
70957
70958         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
70959         New files.
70960
70961 2006-04-18  Derek Price  <derek@ximbiot.com>
70962             Paul Eggert  <eggert@cs.ucla.edu>
70963
70964         * lib/inttypes.h: New file.
70965         * lib/strtoimax.c: Assume <inttypes.h>.
70966
70967 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
70968
70969         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
70970         isn't mounted.  Problem reported by Kir Kolyshkin.
70971
70972 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70973
70974         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
70975         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
70976         Derek R. Price.
70977         * lib/regex.h (RE_DUP_MAX): Update comment to match current
70978         implementation.
70979
70980 2006-04-12  Eric Blake  <ebb9@byu.net>
70981
70982         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
70983         is now done automatically by the corresponding Autoconf macro.
70984
70985 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
70986
70987         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
70988         time_r.h.
70989
70990 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70991
70992         Merge regex changes from libc, removing some of our
70993         POSIX-conformance changes that were rejected and redoing them in a
70994         less-intrusive way.
70995
70996         * lib/regcomp.c (re_compile_internal, init_dfa):
70997         Length arg is now size_t, not Idx.  All uses changed.
70998         (peek_token): Forward decl now says internal_function.
70999         (__re_error_msgid, __re_error_msgid_idx):
71000         Now static rather than extern with attribute_hidden.
71001         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71002         For some reason libc prefers K&R style defns for external functions.
71003         (regerror) [!defined _LIBC]: Likewise.
71004         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71005         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71006         (build_range_exp, build_collating_symbol):
71007         Use K&R-style defn.
71008         (re_compile_fastmap): Use '\0' to memset, not 0.
71009         (utf8_sb_map): Make the calculations more obvious.
71010         (init_dfa, parse_bracket_exp, build_charclass_op):
71011         Call calloc and cast result, as glibc does.
71012         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71013         (build_range_exp, build_collating_symbol):
71014         Now internal functions.
71015
71016         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71017
71018         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71019         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71020         Don't depend on VMS; depend on __VMS instead, for POSIX
71021         namespace cleanness.
71022         (regoff_t): Define to ssize_t, not long int.
71023
71024         Remove the REG_ macros named below.  Instead, make the old names
71025         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71026         __USE_GNU_REGEX.
71027         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71028         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71029         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71030         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71031         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71032         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71033         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71034         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71035         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71036         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71037         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71038         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71039         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71040         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71041         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71042         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71043         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71044         (REG_NREGS):
71045         Remove.  All uses replaced by the old RE_* names.
71046         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71047         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71048         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71049         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71050         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71051         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71052         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71053         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71054         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71055         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71056         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71057         Don't bother having these macros be independent of each others'
71058         values, since they no longer exist in the POSIX name space.
71059
71060         Rename the following member names back to their old names,
71061         unless !__USE_GNU_REGEX.  All uses changed back.
71062         (buffer): Renamed from re_buffer.
71063         (allocated): Renamed from re_allocated.
71064         (used): Renamed from re_used.
71065         (syntax): Renamed from re_syntax.
71066         (fastmap): Renamed from re_fastmap.
71067         (translate): Renamed from re_translate.
71068         (can_be_null): Renamed from re_can_be_null.
71069         (regs_allocated): Renamed from re_regs_allocated.
71070         (fastmap_accurate): Renamed from re_fastmap_accurate.
71071         (no_sub): Renamed from re_no_sub.
71072         (not_bol): Renamed from re_not_bol.
71073         (not_eol): Renamed from re_not_eol.
71074         (newline_anchor): Renamed from re_newline_anchor.
71075         (num_regs): Renamed from rm_num_regs.
71076         (start): Renamed from rm_start.
71077         (end): Renamed from rm_end.
71078
71079         (free_state): Move up a bit.
71080
71081         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71082         #define to be empty.
71083         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71084         when that is what is intended.
71085         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71086         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71087         (MAX): New macro.
71088         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71089         All uses changed back to re_malloc, etc.  It's now the caller's
71090         responsibility to check for overflow; all callers changed.
71091         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71092         (re_x2nrealloc): Remove.
71093         (free_state): Remove decl.
71094
71095         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71096         (re_set_registers, re_exec):
71097         Use K&R-style defn.
71098
71099         2006-01-31  Roland McGrath  <roland@redhat.com>
71100
71101         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71102         Reported by Mike Frysinger <vapier@gentoo.org>.
71103
71104         2006-01-15  Andreas Jaeger  <aj@suse.de>
71105
71106         [BZ #1950]
71107         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71108         build_wcs_upper_buffer change.
71109         (build_wcs_upper_buffer): Change return type.
71110
71111         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71112
71113         * lib/regex_internal.h: Include <stdint.h> if available.
71114
71115         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71116
71117         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71118
71119         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71120
71121         * lib/regcomp.c: Adjust for changed secondary hash function.
71122
71123         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71124
71125         * lib/regex.h: Pretty printing.
71126         Clean up namespace a bit.
71127
71128         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
71129
71130         * lib/regexec.c (update_cur_sifted_state, check_arrival,
71131         check_arrival_add_next_nodes): Avoid using uninitialized variable.
71132
71133         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71134                     Ulrich Drepper  <drepper@redhat.com>
71135
71136         [BZ #1302]
71137         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
71138         changed.
71139         (bitset_word_t): Renamed from bitset_word.  All uses changed.
71140
71141         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
71142
71143         [BZ #281]
71144         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
71145         * lib/regcomp.c: Remove unnecessary uses of
71146         unsigned RE_TRANSLATE_TYPE.
71147         * lib/regex_internal.h: Likewise.
71148         * lib/regex_internal.c: Likewise.
71149         * lib/regexec.c: Likewise.
71150         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
71151
71152         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
71153
71154         * lib/regexec.c (find_recover_state): Remove unnecessary
71155         initialization.
71156         (transit_state_bkref): Make DFA a const pointer.
71157         (get_subexp): Likewise.
71158         (check_arrival): Likewise.
71159         (update_cur_sifted_state): Likewise.
71160         (re_search_internal): Likewise.
71161         (prune_impossible_nodes): Likewise.
71162         (acquire_init_state_context): Likewise.
71163         (proceed_next_node): Likewise.
71164         (set_regs): Likewise.
71165         (free_fail_stack_return): Likewise.
71166         (check_arrival_expand_ecl): Mark DFA parameter as const.
71167         (check_arrival_expand_ecl_sub): Likewise.
71168         (check_subexp_limits): Likewise.
71169         (sub_epsilon_src_nodes):  Likewise.
71170         (add_epsilon_src_nodes):  Likewise.
71171         (merge_state_array): Likewise.
71172         (update_regs): Likewise.
71173         (build_trtable): Likewise.
71174         (sift_states_backward): Mark MCTX parameter as const.
71175         (build_sifted_states): Likewise.
71176         (update_cur_sifted_state): Likewise.
71177         (sift_states_mkref): Likewise.
71178         (check_arrival_expand_ecl): Mark eclosure as const.
71179         (check_dst_limits_calc_pos_1): Likewise.
71180         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71181         pointer.
71182
71183         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71184
71185         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71186         (transit_state_sb): Likewise.
71187         (transit_state_mb): Likewise.
71188         (sift_states_iter_mb): Likewise.
71189         (check_arrival_add_next_nodes): Likewise.
71190         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71191         [_LIBC] (re_search_2_stub): Use mempcpy.
71192
71193         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71194         mbrtowc for very simple UTF-8 case.
71195
71196         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71197         a pointer-to-const.
71198         (re_acquire_state_context): Likewise.
71199         * lib/regex_internal.h: Adjust prototypes.
71200
71201         * lib/regex.c: Prevent using C++ compilers.
71202
71203         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71204         (re_acquire_state_context): Likewise.
71205
71206 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71207
71208         * modules/regex (Depends-on): Add ssize_t.
71209
71210 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71211
71212         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
71213         translation table.
71214
71215 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71216
71217         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
71218
71219 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
71220             Bruno Haible  <bruno@clisp.org>
71221
71222         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
71223         <sys/types.h> and <inttypes.h>.
71224
71225 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71226
71227         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
71228         `__error_t_defined', so argp.h will not typedef the former.
71229
71230 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
71231
71232         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
71233         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
71234         glibc names.  Even if glibc is changed to conform to POSIX, the
71235         traditional names will be available anyway, since regex depends on
71236         the extensions module.  Also, fix a longstanding typo in the
71237         implementation of Spencer ERE test #75 from grep 2.3.  Problems
71238         reported by Emanuele Giaquinta.  Also, change sense of cached
71239         variable, so that the message makes sense.
71240
71241 2006-03-24  Simon Josefsson  <jas@extundo.com>
71242
71243         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
71244         including some doc fixes.
71245         (base64_encode_alloc): Fix +1 bug on allocation failures.
71246
71247 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71248
71249         * lib/base64.c (base64_encode): Do not read past end of array with
71250         unsanitized input on systems with CHAR_BIT > 8.
71251
71252 2006-03-24  Eric Blake  <ebb9@byu.net>
71253
71254         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
71255
71256 2006-03-22  Karl Berry  <karl@gnu.org>
71257
71258         * config/srclist.txt (*setenv.[ch]): get from coreutils.
71259         * config/srclistvars.sh (COREUTILS): new var.
71260
71261 2006-03-17  Jim Meyering  <jim@meyering.net>
71262
71263         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
71264         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
71265
71266 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71267
71268         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
71269         no longer needs it.  Instead, check that regoff_t is as least
71270         as wide as ptrdiff_t.
71271
71272         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
71273         so that our regex.h stays compatible with the installed regex.
71274         This is helpful for installers who configure --without-included-regex.
71275         Problem reported by Emanuele Giaquinta.
71276
71277 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71278
71279         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
71280         Typedef to long int, not to off_, as POSIX will likely change
71281         in that direction.
71282
71283 2006-03-15  Eric Blake  <ebb9@byu.net>
71284
71285         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
71286
71287 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71288
71289         * lib/argp-help.c (validate_uparams): Fix typo
71290         * lib/argp-parse.c (argp_default_options): Consistently begin help
71291         messages with a lowercase letter.
71292
71293 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
71294
71295         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
71296         overrun buffers and shouldn't be used (much as gets shouldn't be
71297         used).
71298         * lib/time_r.c (asctime_r, ctime_r): Likewise.
71299
71300 2006-03-08  Simon Josefsson  <jas@extundo.com>
71301
71302         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
71303         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71304
71305 2006-03-08  Simon Josefsson  <jas@extundo.com>
71306
71307         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
71308         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71309
71310 2006-03-08  Simon Josefsson  <jas@extundo.com>
71311
71312         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
71313         signal that configure disabled the device.
71314
71315 2006-03-08  Simon Josefsson  <jas@extundo.com>
71316
71317         * build-aux/maint.mk: Fix refresh-po, to handle no translated
71318         languages.
71319
71320 2006-03-07  Simon Josefsson  <jas@extundo.com>
71321
71322         * modules/getopt (Depends-on): Add unistd.
71323
71324         * modules/unistd: New file.
71325
71326 2006-03-07  Simon Josefsson  <jas@extundo.com>
71327
71328         * modules/gc-random: New file.
71329
71330 2006-03-07  Simon Josefsson  <jas@extundo.com>
71331
71332         * m4/unistd_h.m4: New file.
71333
71334 2006-03-07  Simon Josefsson  <jas@extundo.com>
71335
71336         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
71337         test to be side-effect free by storing the result in the cache
71338         variable gl_cv_lib_readline, and moving the assignment of
71339         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
71340         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71341
71342 2006-03-07  Simon Josefsson  <jas@extundo.com>
71343
71344         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
71345         error on missing devices (the functions will return an error).
71346
71347         * m4/gc.m4: Move random stuff to gc-random.m4
71348
71349 2006-03-07  Simon Josefsson  <jas@extundo.com>
71350
71351         * lib/unistd_.h: New file.
71352
71353 2006-03-07  Simon Josefsson  <jas@extundo.com>
71354
71355         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
71356
71357 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71358
71359         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
71360         Problem reported by Juan Manuel Guerrero.
71361
71362 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71363
71364         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
71365         the unistd module.
71366         * lib/getlogin_r.c: Likewise.
71367         * lib/getlogin_r.h: Likewise.
71368         * lib/glob.c: Likewise.
71369         * lib/pagealign_alloc.c: Likewise.
71370         * lib/unistd_.h: Remove; no longer needed.
71371
71372 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71373
71374         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71375         Add unistd.
71376         * modules/c-stack (Depends-on): Add unistd.
71377         * modules/getlogin_r: Likewise.
71378         * modules/glob: Likewise.
71379         * modules/pagealign_alloc: Likewise.
71380         * modules/unistd (Files): Remove lib/unistd_.h.
71381         (EXTRA_DIST): Remove.
71382         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
71383         need unistd_.h.
71384         (MOSTLYCLEANFILES): Remove unistd.h-t.
71385
71386 2006-03-03  Simon Josefsson  <jas@extundo.com>
71387
71388         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
71389
71390 2006-03-03  Simon Josefsson  <jas@extundo.com>
71391
71392         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
71393         libidn and bison.
71394
71395 2006-03-03  Simon Josefsson  <jas@extundo.com>
71396
71397         * build-aux/maint.mk: Add indent target.
71398
71399 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
71400
71401         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
71402         our replacement poll.h in any case, to avoid a differing
71403         declaration from a system header.  Seen on AIX.
71404
71405 2006-03-01  Simon Josefsson  <jas@extundo.com>
71406
71407         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
71408         <kasal@ucw.cz>.
71409
71410 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71411
71412         * modules/gettime (Depends-on): Add extensions module.
71413         * modules/nanosleep (Depends-on): Likewise.
71414         * modules/settime (Depends-on): Likewise.
71415
71416 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71417
71418         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
71419         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
71420         pedantically.
71421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71422         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
71423
71424         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
71425         not "==".  Reported by Ralf Wildenhues.
71426
71427 2006-03-01  Karl Berry  <karl@gnu.org>
71428
71429         * doc/Copyright/request-*: new files, synced from gnuorg.
71430
71431 2006-03-01  Karl Berry  <karl@gnu.org>
71432
71433         * config/srclist.txt (Copyright/*): new entries.
71434
71435 2006-02-28  Simon Josefsson  <jas@extundo.com>
71436
71437         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
71438
71439 2006-02-27  Simon Josefsson  <jas@extundo.com>
71440
71441         * lib/base64.h: Indent #define's.  From Jim Meyering
71442         <jim@meyering.net>.
71443
71444 2006-02-27  Jim Meyering  <jim@meyering.net>
71445
71446         Revert the change of 2006-02-24, so these files can continue
71447         to be sync'd from gettext.
71448         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
71449         of `config.h'.
71450
71451 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71452
71453         * modules/intprops: New file.
71454         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71455         Add intprops.
71456         * modules/getloadavg (Files): Remove lib/intprops.h.
71457         (Depends-on): Add intprops.
71458         * modules/human: Likewise.
71459         * modules/inttostr: Likewise.
71460         * modules/openat: Likewise.
71461         * modules/sig2str: Likewise.
71462         * modules/userspec: Likewise.
71463         * modules/utimecmp: Likewise.
71464         * modules/xnanosleep: Likewise.
71465         * modules/xstrtol: Likewise.
71466
71467 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
71468
71469         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
71470         * modules/lock-tests (TESTS): Use $(EXEEXT).
71471         * modules/tls-tests: Likewise.
71472         * modules/argp-tests: Likewise.
71473         (check_PROGRAMS): New var, replacing...
71474         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
71475
71476 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71477
71478         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
71479         `config.h'.
71480
71481 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71482
71483         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
71484
71485 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71486
71487         Sync from coreutils.
71488         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
71489         gl_CHDIR_SAFER.
71490
71491 2006-02-22  Jim Meyering  <jim@meyering.net>
71492
71493         Sync from coreutils.
71494         * m4/chdir-safer.m4: New file.
71495
71496 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71497
71498         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
71499         AT_FDCWD exceeds INT_MAX.
71500         * lib/openat.h (AT_FDCWD): Likewise.
71501
71502 2006-02-17  Eric Blake  <address@hidden>
71503
71504         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
71505
71506 2006-02-16  Simon Josefsson  <jas@extundo.com>
71507
71508         * modules/getaddrinfo (Depends-on): Add sys_socket.
71509
71510 2006-02-15  Simon Josefsson  <jas@extundo.com>
71511
71512         * build-aux/maint.mk: Add dsyntax-check rule.
71513
71514 2006-02-15  Eric Blake  <ebb9@byu.net>
71515
71516         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
71517         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
71518         'present but cannot compile' warnings on cygwin.
71519         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
71520         use ws2tcpip.h if sys/socket.h works.
71521         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
71522         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
71523
71524 2006-02-14  Simon Josefsson  <jas@extundo.com>
71525
71526         * modules/maintainer-makefile (Files): Rename.
71527
71528         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
71529         and (the local) Makefile.cfg to maint-cfg.mk.
71530
71531         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
71532         to the latter.
71533
71534         * modules/maintainer-makefile: New module.
71535
71536         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
71537         severaly stripped to make it possible to build it up from scratch
71538         with reliable tests.
71539
71540         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
71541         fixes to permit overriding the default actions when configure and
71542         makefile are not available.
71543
71544 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71545
71546         Sync from coreutils.
71547         * modules/lstat (Depends-on): Don't depend on xalloc.
71548         (License): Change from GPL to LGPL, since this is now simply a
71549         replacement for a libc function.
71550
71551 2006-02-14  Jim Meyering  <jim@meyering.net>
71552
71553         Sync from coreutils.
71554
71555         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
71556         failure on deficient systems, and simplify gnulib lgpl dependencies.
71557         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
71558         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
71559
71560         * lib/xalloc-die.c: Remove unused definition of N_.
71561
71562 2006-02-14  Jim Meyering  <jim@meyering.net>
71563
71564         Sync from coreutils.
71565         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
71566         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
71567         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
71568         double-quote uses of that variable, to accommodate the rare case in
71569         which getmntent is available in none of the libraries checked.  This
71570         happens at least on FreeBSD 5.0.
71571
71572 2006-02-13  Simon Josefsson  <jas@extundo.com>
71573
71574         * gnulib-tool (Usage): Fix --import, from
71575         karl@freefriends.org (Karl Berry).
71576
71577 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71578
71579         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
71580
71581 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
71582
71583         * lib/argp-namefrob.h: Restore changes accidentally lost during the
71584         "autoupdate" on 2005-12-12.
71585
71586 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71587
71588         * modules/closeout (Depends-on): Remove atexit.
71589
71590 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71591
71592         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
71593         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
71594
71595 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71596
71597         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
71598         __EXTENSIONS__ if this causes compilation to fail.  Problem
71599         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
71600         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
71601
71602 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
71603
71604         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
71605         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
71606         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
71607         All uses changed.
71608
71609 2006-01-26  Simon Josefsson  <jas@extundo.com>
71610
71611         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
71612         prototype is visible on mingw32.
71613
71614         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
71615         for mingw32.
71616
71617         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
71618         mingw32).
71619
71620 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71621
71622         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
71623         attempt to open for write; this always fails, at least on POSIX
71624         hosts.  This reinstates the 2006-01-09 change, which was
71625         inadvertently removed.
71626
71627 2006-01-26  Bruno Haible  <bruno@clisp.org>
71628
71629         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
71630         Reported by Paul Eggert.
71631
71632 2006-01-26  Bruno Haible  <bruno@clisp.org>
71633             Paul Eggert  <eggert@cs.ucla.edu>
71634
71635         * lib/stdbool_.h (_Bool)
71636         [(! (defined __cplusplus || defined __BEOS__)
71637           && !defined __GNUC__
71638           && !(defined __HP_cc || defined __xlc__
71639                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
71640                || defined __sgi))]:
71641         #define to signed char in these cases too; this simplifies
71642         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
71643         etc., separately) and makes it more conservative.
71644
71645 2006-01-25  Simon Josefsson  <jas@extundo.com>
71646
71647         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
71648         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
71649         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
71650
71651 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71652
71653         * lib/argp-namefrob.h: Bugfix. Remove stray #
71654
71655 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
71656
71657         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
71658         so that we test the test.
71659         Check for yet another HP-UX cc bug involving *bool |= bool.
71660
71661 2006-01-25  Karl Berry  <karl@gnu.org>
71662
71663         * config/srclist.txt (vasnprintf.c): sync lost.
71664
71665 2006-01-25  Jim Meyering  <jim@meyering.net>
71666
71667         Sync from the stable (b5) branch of coreutils:
71668
71669         * lib/fts.c (fts_children): Don't let close() clobber errno from
71670         failed fchdir().
71671
71672         * lib/fts.c (fts_stat): When following a symlink-to-directory,
71673         don't necessarily interpret stat-fails+lstat-succeeds as indicating
71674         a dangling symlink.  That can also happen at least for ELOOP.
71675         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
71676         FYI, this bug predates the inclusion of fts.c in coreutils.
71677
71678         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
71679         in their own block, so pre-c99 compilers don't object.
71680
71681         Avoid the double-free (first in fts_read, second in fts_close) that
71682         would occur when an `active' directory is made inaccessible (e.g.,
71683         via chmod a-x) during a traversal.
71684         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71685         before returning.  Reproduce this failure by
71686         mkdir -p a/b; cd a; chmod a-x . b
71687         Reported by Stavros Passas.
71688
71689 2006-01-25  Jim Meyering  <jim@meyering.net>
71690
71691         * lib/fileblocks.c: Remove more useless parentheses.
71692         * lib/readutmp.h: Likewise.
71693
71694 2006-01-25  Bruno Haible  <bruno@clisp.org>
71695
71696         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
71697         warnings.
71698         Reported by Paul Eggert.
71699
71700 2006-01-25  Bruno Haible  <bruno@clisp.org>
71701
71702         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
71703         rid of a trap command. For Solaris sh.
71704         Reported by Mark D. Baushke <mdb@gnu.org>.
71705
71706 2006-01-24  Simon Josefsson  <jas@extundo.com>
71707
71708         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
71709         Bruno.
71710
71711 2006-01-24  Karl Berry  <karl@gnu.org>
71712
71713         * config/srclist.txt (argp-namefrob.h): sync lost.
71714
71715 2006-01-24  Jim Meyering  <jim@meyering.net>
71716
71717         * modules/openat (Files): Add lib/intprops.h.
71718         From Mark D. Baushke.
71719
71720 2006-01-24  Jim Meyering  <jim@meyering.net>
71721
71722         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
71723         Reported by Mark D. Baushke.
71724
71725 2006-01-24  Jim Meyering  <jim@meyering.net>
71726
71727         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
71728
71729 2006-01-24  Bruno Haible  <bruno@clisp.org>
71730
71731         * modules/strnlen (Maintainer): Change from glibc to all.
71732
71733 2006-01-24  Bruno Haible  <bruno@clisp.org>
71734
71735         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
71736         Patch by Paul Eggert.
71737
71738 2006-01-24  Bruno Haible  <bruno@clisp.org>
71739
71740         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
71741         already has it.
71742         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
71743         2005-11-26.
71744
71745         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
71746         'signed char' to avoid problems with the built-in _Bool type.
71747         Reported by Paul Eggert on 2005-11-26.
71748
71749 2006-01-24  Bruno Haible  <bruno@clisp.org>
71750
71751         * gnulib-tool (func_import): Avoid constructing complicated sed
71752         expressions inside backquote.
71753         Report and solution by Mark D. Baushke <mdb@gnu.org>.
71754
71755 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
71756
71757         These changes imported from libc.
71758         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
71759         test and two separate function calls.
71760         * lib/strndup.c (__strndup): Add libc_hidden_def.
71761
71762 2006-01-23  Simon Josefsson  <jas@extundo.com>
71763
71764         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
71765         Remove the test_*_SOURCES variable: automake infers it by default.
71766         * modules/tls-tests: Likewise.
71767
71768 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71769
71770         Work around porting bugs reported by Dieter in
71771         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
71772         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
71773         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
71774         Include "getopt.h" first, to check interface.
71775         (getenv): Declare only if defined HAVE_DECL_GETENV &&
71776         !HAVE_DECL_GETENV.
71777         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
71778         (__strndup): Revert to K&R-style function dfns, the glibc style.
71779         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
71780         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
71781         Include strnlen.h first, to get prototype properly.
71782         (strnlen): Renamed from __strnlen.
71783         Remove weak alias.
71784
71785 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71786
71787         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
71788
71789 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71790
71791         * config/srclist.txt: Adjust to reflect glibc reorganization.
71792         This affects only comments.
71793
71794 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71795
71796          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
71797          Reported by Bruce Korb <bkorb@gnu.org>.
71798
71799 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71800
71801         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
71802         to pacify gcc -Wswitch-default.
71803
71804 2006-01-22  Bruno Haible  <bruno@clisp.org>
71805
71806         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
71807         temporary buffer for sprintf, take into account the precision also
71808         for 'd', 'i', 'u', 'o', 'x', 'X'.
71809
71810 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71811
71812         * modules/argp-tests: New module
71813         * tests/test-argp.c: New file
71814         * tests/test-argp-2.sh: New file
71815
71816 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71817
71818         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
71819         (__argp_base_name): Removed
71820         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
71821         typo.
71822         (__argp_base_name): Provide macro definition or extern declaration
71823         depending on the configuration
71824
71825 2006-01-20  Simon Josefsson  <jas@extundo.com>
71826
71827         * modules/inet_ntop (Depends-on): Depend on sys_socket.
71828
71829 2006-01-20  Simon Josefsson  <jas@extundo.com>
71830
71831         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
71832
71833 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71834
71835         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
71836         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
71837         Suggested by Bruno Haible.
71838
71839 2006-01-20  Karl Berry  <karl@gnu.org>
71840
71841         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
71842         until changes propagate, I guess.
71843
71844 2006-01-19  Simon Josefsson  <jas@extundo.com>
71845
71846         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
71847
71848 2006-01-19  Simon Josefsson  <jas@extundo.com>
71849
71850         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
71851
71852 2006-01-19  Simon Josefsson  <jas@extundo.com>
71853
71854         * gnulib-tool: Set check_PROGRAMS.
71855
71856         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71857         modules/des-tests, modules/gc-arcfour-tests,
71858         modules/gc-arctwo-tests, modules/gc-des-tests,
71859         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71860         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71861         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71862         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71863         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71864         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
71865         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
71866         test_*_SOURCES.
71867
71868 2006-01-18  Simon Josefsson  <jas@extundo.com>
71869
71870         * modules/socklen (Depends-on): Depend on sys_socket.
71871
71872 2006-01-18  Simon Josefsson  <jas@extundo.com>
71873
71874         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71875         modules/des-tests, modules/gc-arcfour-tests,
71876         modules/gc-arctwo-tests, modules/gc-des-tests,
71877         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71878         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71879         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71880         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71881         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71882         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
71883         $(EXEEXT) to automake TESTS variable, for mingw32.
71884
71885 2006-01-17  Simon Josefsson  <jas@extundo.com>
71886
71887         * modules/socklen (Include): Need sys/socket.h.
71888
71889 2006-01-17  Bruno Haible  <bruno@clisp.org>
71890
71891         * modules/ssize_t (Include): Add <sys/types.h>.
71892
71893 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
71894
71895         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
71896         it's not portable and it doesn't work with cross-compiles.
71897         Problem reported by Bruno Haible.  Fix missing-$ typo in
71898         'test "gl_cv_ignore_unused_libraries" ...' that prevented
71899         -zignore from being used with Sun's C compiler.
71900
71901 2006-01-12  Simon Josefsson  <jas@extundo.com>
71902
71903         * lib/base64.c: Fix warning, reported by Bruno Haible
71904         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
71905
71906 2006-01-12  Bruno Haible  <bruno@clisp.org>
71907
71908         * modules/ldd: New file.
71909         * build-aux/ldd.sh.in: New file.
71910         * MODULES.html.sh (Support for building libraries and executables): Add
71911         ldd.
71912
71913 2006-01-12  Bruno Haible  <bruno@clisp.org>
71914
71915         * m4/ldd.m4: New file.
71916
71917 2006-01-12  Bruno Haible  <bruno@clisp.org>
71918
71919         * gnulib-tool (func_import, func_create_testdir): Don't go into an
71920         endless loop while replacing $auxdir with build-aux.
71921
71922 2006-01-11  Simon Josefsson  <jas@extundo.com>
71923
71924         * lib/stdint_.h (SIZE_MAX): Add missing (.
71925
71926 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
71927
71928         Sync from coreutils.
71929         * lib/md5.c: Fix commentary typos.
71930         (alignof, UNALIGNED_P): No need for a GCC-specific version.
71931         * lib/md5.h (__attribute__): Remove; unused.
71932         * lib/sha1.c: Fix commentary to match md5 better.
71933         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
71934         so that we don't need to worry about alignment.  All uses changed.
71935         This merges the 2005-10-28 md5 change into sha1.
71936
71937 2006-01-11  Jim Meyering  <jim@meyering.net>
71938
71939         Sync from coreutils.
71940         * lib/md5.c (OP): Fix spacing.
71941
71942 2006-01-11  Bruno Haible  <bruno@clisp.org>
71943
71944         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71945         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
71946         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
71947
71948 2006-01-11  Bruno Haible  <bruno@clisp.org>
71949
71950         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71951         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
71952         the "early" section as well.
71953
71954 2006-01-11  Bruno Haible  <bruno@clisp.org>
71955
71956         Avoid "ar: no archive members specified" error on MacOS X.
71957         * gnulib-tool (func_modules_add_dummy): New function.
71958         (func_import, func_create_testdir): Invoke it.
71959
71960 2006-01-11  Bruno Haible  <bruno@clisp.org>
71961
71962         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
71963         with $auxdir in AC_CONFIG_FILES statements.
71964
71965 2006-01-11  Bruno Haible  <bruno@clisp.org>
71966
71967         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71968         Initialize also noinst_HEADERS to empty.
71969
71970 2006-01-11  Bruno Haible  <bruno@clisp.org>
71971
71972         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
71973         variables.
71974         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
71975         autoreconf.
71976
71977 2006-01-11  Bruno Haible  <bruno@clisp.org>
71978
71979         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
71980         overridable by the user.
71981         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71982
71983 2006-01-10  Simon Josefsson  <jas@extundo.com>
71984
71985         * modules/sys_socket: New file.
71986
71987 2006-01-10  Simon Josefsson  <jas@extundo.com>
71988
71989         * m4/sys_socket_h.m4: New file.
71990
71991 2006-01-10  Simon Josefsson  <jas@extundo.com>
71992
71993         * lib/socket_.h: New file.
71994
71995 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71996
71997         * modules/readutmp (Maintainer): Add myself.
71998
71999 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72000
72001         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72002         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72003         People who are still concerned with buggy memcmp implementations
72004         can invoke gl_FUNC_MEMCMP themselves.
72005
72006 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72007
72008         * lib/regex_internal.h (BITSET_WORD_BITS):
72009         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72010         preprocessor mishandles large unsigned values as if they were signed.
72011         Problem reported by Claudio Fontana in
72012         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72013
72014 2006-01-10  Jim Meyering  <jim@meyering.net>
72015
72016         Avoid the double-free (first in fts_read, second in fts_close) that
72017         would occur when an `active' directory is made inaccessible (e.g.,
72018         via chmod a-x) during a traversal.
72019         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72020         before returning.  Reproduce this failure by
72021         mkdir -p a/b; cd a; chmod a-x . b
72022         Reported by Stavros Passas.
72023
72024         Sync from coreutils.
72025         * lib/sha1.c: Tweak grammar in a comment.
72026
72027 2006-01-10  Jim Meyering  <jim@meyering.net>
72028
72029         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72030         Patch by Joerg Sonnenberger.
72031
72032 2006-01-10  Bruno Haible  <bruno@clisp.org>
72033
72034         * modules/readutmp: Depend on module free.
72035         * modules/strtok_r: Depend on module restrict.
72036
72037 2006-01-10  Bruno Haible  <bruno@clisp.org>
72038
72039         * modules/gettext (configure.ac): Add an invocation of
72040         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72041
72042 2006-01-10  Bruno Haible  <bruno@clisp.org>
72043
72044         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72045         Reported by Werner Lemberg <wl@gnu.org>.
72046
72047 2006-01-10  Bruno Haible  <bruno@clisp.org>
72048
72049         * lib/localcharset.c: Update from GNU gettext.
72050
72051 2006-01-10  Bruno Haible  <bruno@clisp.org>
72052
72053         * lib/argp.h (__const): Remove macro. Use const instead.
72054         * lib/argp-fmtstream.h (__const): Likewise.
72055         * lib/glob_.h (__const): Remove macro.
72056         * lib/glob-libc.h: Use const instead of __const.
72057
72058 2006-01-10  Bruno Haible  <bruno@clisp.org>
72059
72060         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72061         variable.
72062         Needed to avoid an automake error regarding the 'gettext' module.
72063
72064 2006-01-09  Simon Josefsson  <jas@extundo.com>
72065
72066         * modules/inet_ntop (Depends-on): Add restrict.
72067
72068 2006-01-09  Simon Josefsson  <jas@extundo.com>
72069
72070         * modules/gc-rijndael-tests (License): Put under LGPL.
72071
72072         * modules/gc-des-tests (License): Likewise.
72073
72074         * modules/gc-arcfour-tests (License): Likewise.
72075
72076         * modules/gc-arctwo-tests (License): Likewise.
72077
72078         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72079
72080         * modules/gc-hmac-sha1-tests (Files): Likewise.
72081
72082         * modules/gc-hmac-md5-tests (License): Likewise.
72083
72084         * modules/gc-sha1-tests (License): Likewise.
72085
72086         * modules/gc-md5-tests (License): Likewise.
72087
72088         * modules/gc-md4-tests (License): Likewise.
72089
72090         * modules/gc-md2-tests (License): Likewise.
72091
72092         * modules/gc-tests (License): Likewise.
72093
72094         * modules/des-tests (License): Likewise.
72095
72096         * modules/md4-tests (License): Likewise.
72097
72098         * modules/md2-tests (License): Likewise.
72099
72100 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72101
72102         Sync from coreutils:
72103
72104         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72105         * modules/lib-ignore: New file.
72106         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72107         chdir-safer.m4, lchmod.m4.
72108         * modules/openat: Add mkdirat.c, openat-priv.h.
72109
72110 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72111
72112         Sync from coreutils.
72113         * m4/lib-ignore.m4: New file.
72114         * m4/lchmod.m4: New file.
72115
72116 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72117
72118         Sync from coreutils.
72119         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72120         for write access: POSIX says that must fail.
72121         * lib/fts.c (diropen): Likewise.
72122         * lib/save-cwd.c (save_cwd): Likewise.
72123         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72124         well, for minor improvements on hosts that lack O_DIRECTORY.
72125         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
72126         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
72127         Fall back on chown if open failed with EACCES.
72128
72129         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
72130         Report an error at compile-time if only a 1-second nominal clock
72131         resolution is found.
72132
72133         * lib/lchmod.h: New file.
72134         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
72135         (make_dir_parents): Use lchown rather than chown, and
72136         lchmod rather than chmod.
72137
72138         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
72139         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
72140         "proc" reported by n0dalus.
72141
72142         * lib/mountlist.c: Include <limits.h>.
72143         (dev_from_mount_options)
72144         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
72145         New function.  It no longer assumes "dev=" has the System V meaning
72146         on Linux (since it doesn't).  It also parses "dev=" more carefully.
72147         (read_file_system_list)
72148         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
72149         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
72150         dev= in that case.
72151
72152         * lib/posixtm.h (PDS_PRE_2000): New macro.
72153         * lib/posixtm.c (year): Arg is now syntax_bits rather than
72154         allow_century.  All usages changed.  Reject dates outside the range
72155         1969-1999 if PDS_PRE_2000 is used.
72156
72157 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72158
72159         Sync from coreutils.
72160         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
72161         (Time of day items): Mention the possibility of leap seconds.
72162         Problem reported by Dr. David Alan Gilbert.
72163
72164 2006-01-09  Jim Meyering  <jim@meyering.net>
72165
72166         Sync from coreutils.
72167
72168         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
72169
72170         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
72171
72172         * lib/modechange.c (mode_compile): Reject an invalid mode string
72173         that starts with an octal digit.  From Andreas Gruenbacher.
72174
72175         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72176         and dup to open_safer and dup_safer, respectively.
72177         (openat_permissive): Fix typo in comment.
72178
72179         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72180         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72181         (_): Remove; no longer needed.
72182         (openat): Renamed from rpl_openat; no need for rpl_openat
72183         since openat.h renames openat for us.
72184         Replace most of the body with a call to openat_permissive,
72185         to avoid duplicate code.
72186         Port to (probably hypothetical) environments were mode_t is
72187         wider than int.
72188         (openat_permissive): Require mode arg, so that we can check
72189         types better.  Put it just after flags.  Change cwd failure
72190         indicator from pointer-to-bool to pointer-to-errno-value.
72191         All callers changed.
72192         Invoke openat_save_fail and/or openat_restore_fail if
72193         cwd_errno is null, so that openat can call us.
72194         (openat_permissive, fdopendir, fstatat, unlinkat):
72195         Simplify errno handling to avoid some duplicate code,
72196         as it's OK to set errno on success.
72197         * lib/openat.h: Revamp code so that function macros depend on
72198         __OPENAT_PREFIX only, not also on AT_FDCWD.
72199         (openat_ro): Remove.  Caller changed to use openat_permissive.
72200         (openat_permissive): Now a macro, if not a function.
72201         (openat_restore_fail, openat_save_fail): Now always functions,
72202         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72203
72204         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72205         and openat.c.
72206         * lib/mkdirat.c: Include openat-priv.h.
72207         Remove definitions of macros defined therein.
72208         * lib/openat.c: Likewise.
72209
72210         * lib/mkdirat.c (mkdirat): New file and function.
72211         * lib/openat.h (mkdirat): Declare.
72212
72213         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
72214
72215         * lib/openat.h (openat_permissive): Declare.
72216         (openat_ro): Define.
72217
72218         * lib/openat.c (EXPECTED_ERRNO): New macro.
72219         (openat_permissive): New function -- used in remove.c rewrite.
72220         (all functions): Set errno just before returning, only if there
72221         was an actual failure.
72222         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
72223
72224         Emulate openat-family functions using Linux's procfs, if possible.
72225         Idea and some code based on Ulrich Drepper's glibc changes.
72226
72227         * lib/openat.c: (BUILD_PROC_NAME): New macro.
72228         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
72229         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
72230         before falling back on save_cwd and restore_cwd.
72231         (fdopendir, fstatat, unlinkat): Likewise.
72232
72233         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
72234         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
72235
72236         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
72237         as second argument to va_arg.  Otherwise, some versions of gcc
72238         warn that `if this code is reached, the program will abort'.
72239
72240 2006-01-09  Jim Meyering  <jim@meyering.net>
72241
72242         Sync from coreutils.
72243         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
72244         Require openat-priv.h.
72245
72246 2006-01-09  Bruno Haible  <bruno@clisp.org>
72247
72248         * modules/strnlen (Include): Use strnlen.h.
72249
72250 2006-01-09  Bruno Haible  <bruno@clisp.org>
72251
72252         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
72253
72254 2006-01-09  Bruno Haible  <bruno@clisp.org>
72255
72256         * lib/sysexit_.h (EX_OK): New macro.
72257         Suggested by Martin Lambers <marlam@marlam.de>.
72258
72259 2006-01-09  Bruno Haible  <bruno@clisp.org>
72260
72261         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
72262         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
72263
72264 2006-01-09  Bruno Haible  <bruno@clisp.org>
72265
72266         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
72267         numbers.
72268
72269 2006-01-09  Bruno Haible  <bruno@clisp.org>
72270
72271         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
72272         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
72273         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
72274         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
72275
72276 2006-01-09  Bruno Haible  <bruno@clisp.org>
72277
72278         * build-aux/javacomp.sh.in: New file, moved from lib/.
72279         * modules/javacomp-script (Files): Update.
72280         (configure.ac): Add AC_CONFIG_FILES invocation.
72281         (EXTRA_DIST): Remove variable.
72282
72283         * build-aux/javaexec.sh.in: New file, moved from lib/.
72284         * modules/javaexec (Files): Update.
72285         (configure.ac): Add AC_CONFIG_FILES invocation.
72286         (EXTRA_DIST): Remove javaexec.sh.in.
72287
72288         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
72289         * modules/csharpcomp-script (Files): Update.
72290         (configure.ac): Add AC_CONFIG_FILES invocation.
72291         (EXTRA_DIST): Remove variable.
72292
72293         * build-aux/csharpexec.sh.in: New file, moved from lib/.
72294         * modules/csharpexec (Files): Update.
72295         (configure.ac): Add AC_CONFIG_FILES invocation.
72296         (EXTRA_DIST): Remove csharpexec.sh.in.
72297
72298 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72299
72300         Sync from coreutils.
72301
72302         Add POSIX ACL support
72303         * lib/acl.h (copy_acl, set_acl): Add declarations.
72304         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
72305         systems other than Linux.
72306         (chmod_or_fchmod): New function: use fchmod when possible,
72307         and chmod otherwise.
72308         (file_has_acl): Add a POSIX ACL implementation, with a
72309         Linux-specific subcase.
72310         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
72311         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
72312         acls are unsupported.
72313         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
72314         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
72315         are unsupported.
72316
72317 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72318
72319         Sync from coreutils.
72320         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
72321
72322 2006-01-07  Bruno Haible  <bruno@clisp.org>
72323
72324         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
72325         gl_EARLY.
72326
72327 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72328
72329         * lib/strftime.c (tzname): Don't declare if it is already #defined.
72330         Problem reported for Mingw by Mark Junker.
72331
72332 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72333
72334         * README: Gnulib normally doesn't generate a tarball.
72335
72336 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
72337
72338         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
72339         long int, not int, for nanosecond counts, so that people who are
72340         used to POSIX struct timespec won't be surprised.  Reported by Jim
72341         Meyering.
72342
72343 2005-12-28  Bruno Haible  <bruno@clisp.org>
72344
72345         * build-aux/config.rpath: Update from GNU gettext.
72346
72347 2005-12-16  Jim Meyering  <jim@meyering.net>
72348
72349         * modules/fprintftime: New module.
72350         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
72351
72352 2005-12-16  Jim Meyering  <jim@meyering.net>
72353
72354         * m4/fprintftime.m4: New file.
72355
72356 2005-12-16  Jim Meyering  <jim@meyering.net>
72357
72358         * lib/fprintftime.c, lib/fprintftime.h: New files.
72359
72360 2005-12-15  Simon Josefsson  <jas@extundo.com>
72361
72362         * modules/socklen (configure.ac): Fix M4 macro name, to align with
72363         new m4/socklen.m4.
72364
72365 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72366
72367         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
72368         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
72369
72370 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72371
72372         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
72373         * lib/argp-help.c (fill_in_uparams): Check if the constructed
72374         struct uparams is valid. Fall back to the default values if it is
72375         not.
72376
72377 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72378
72379         * modules/argp (Files): Add argp-pin.c
72380         (Depends-on): dirname
72381         (lib_SOURCES): Add argp-pin.c
72382
72383 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72384
72385         * m4/argp.m4:  Check if program_invocation_name and
72386         program_invocation_short_name are declared and define appropriate
72387         macros if they are not.
72388
72389 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72390
72391         * lib/argp-help.c (__argp_base_name): New function
72392         (__argp_short_program_name): Rewrite using __argp_base_name
72393         * lib/argp-namefrob.h: Define program_invocation_name and
72394         program_invocation_short_name if requested
72395         (__argp_base_name): Add prototype
72396         * lib/argp-parse.c (argp_def): Use gettext wrappers
72397         (argp_default_parser): Use __argp_base_name
72398         * lib/argp-pin.c: New file. Defines program_invocation_name and
72399         program_invocation_short_name on systems that lack them.
72400
72401 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72402
72403         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
72404         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72405         porting problem reported by Georg Schwarz in
72406         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72407
72408 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72409
72410         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
72411         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72412         porting problem reported by Georg Schwarz in
72413         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72414
72415 2005-12-05  Bruno Haible  <bruno@clisp.org>
72416
72417         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
72418         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
72419         Reported by Mark Junker <mjscod@gmx.de>.
72420
72421 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
72422
72423         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
72424         Use implementation from Albert Chin, with some
72425         comments/corrections by Stepan Kasal and myself.
72426
72427 2005-12-02  Bruno Haible  <bruno@clisp.org>
72428
72429         * gnulib-tool (func_import): Accept GPLed build tool modules when
72430         --lgpl is given.
72431         * modules/csharpcomp-script: New file.
72432         * modules/csharpcomp: Depend on it.
72433         * modules/javacomp-script: New file.
72434         * modules/javacomp: Depend on it.
72435         Suggested by Simon Josefsson.
72436
72437 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
72438
72439         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
72440         statement, to work around an HP-UX 10.20 compiler bug reported by
72441         Peter O'Gorman.
72442
72443 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72444
72445         * modules/savedir (Depends-on): Add openat.
72446
72447 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72448
72449         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
72450         (uintmax_t) [defined uintmax_t]: Do not declare.
72451         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
72452         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
72453         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
72454         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
72455         sake of portability to weird hosts that C allows (though we don't
72456         know of any practical examples).
72457
72458         * lib/savedir.h (fdsavedir): New decl.
72459         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
72460         contains most of the former guts of savedir.
72461         (savedir): Use savedirstream.
72462         Include "openat.h".
72463
72464 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72465
72466         * modules/obstack (Files): Add m4/ulonglong.m4.
72467         Problem reported by Davide Angelocola.
72468
72469 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
72470
72471         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
72472         coreutils no longer futzes with rounding modes.
72473
72474 2005-11-14  Jim Meyering  <jim@meyering.net>
72475
72476         * lib/mkstemp-safer.c: Include <config.h>, required for possible
72477         replacement of mkstemp.
72478
72479 2005-11-10  Simon Josefsson  <jas@extundo.com>
72480
72481         * lib/readline.c: Remove EOL.
72482
72483 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72484
72485         * modules/gethrxtime (Depends-on): Add gettime.
72486
72487 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72488
72489         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
72490         or gettimeofday; no longer needed.
72491
72492 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72493
72494         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
72495         time business.
72496         (gethrxtime) [! (HAVE_NANOUPTIME
72497         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
72498         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
72499         our own approximation.
72500
72501 2005-11-08  Eric Blake  <ebb9@byu.net>
72502
72503         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72504
72505 2005-11-08  Eric Blake  <ebb9@byu.net>
72506
72507         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72508
72509 2005-11-04  Bruno Haible  <bruno@clisp.org>
72510
72511         * gnulib-tool: Implement --update mode.
72512
72513 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72514
72515         Fix porting problem reported by Theodoros V. Kalamatianos.
72516         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
72517         Don't assume that futimes failing means we must fail.
72518
72519 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72520
72521         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
72522         variables to suggest the intended function of the PATH_MAX check.
72523
72524 2005-10-30  Kean Johnston  <jkj@sco.com>
72525
72526         Trivial changes to support SCO systems.
72527         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
72528         as PATH_MAX.
72529         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
72530         where __ptr is null when no I/O is pending.
72531
72532 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72533
72534         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
72535         leave errno alone.  Problem reported by Dmitry V. Levin.
72536
72537 2005-10-28  Simon Josefsson  <jas@extundo.com>
72538
72539         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
72540         Test more.
72541
72542         * tests/test-gc-md2.c, tests/test-md2.c: New files.
72543
72544         * modules/md2, modules/md2-tests: New files.
72545
72546 2005-10-28  Simon Josefsson  <jas@extundo.com>
72547
72548         * m4/inet_ntop.m4: More tests.
72549
72550         * m4/gc-md2.m4, md2.m4: New file.
72551
72552 2005-10-28  Simon Josefsson  <jas@extundo.com>
72553
72554         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
72555         "restrict" keywords, as per POSIX.  Protect the function
72556         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
72557         Don't use K&R prototypes.  Check the sprintf return values.
72558         Re-define EAFNOSUPPORT if not present.  Indent.
72559
72560         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
72561         suggested by Bruno Haible <bruno@clisp.org>.
72562
72563         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
72564
72565         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
72566
72567         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
72568         libgcrypt).
72569
72570         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
72571
72572         * lib/md2.h, lib/md2.c: New files.
72573
72574 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
72575
72576         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
72577         errno alone.  Problem reported by Frederic Jolliton.
72578
72579 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72580
72581         * modules/verify (License): Change from GPL to LGPL.  This is a
72582         tiny module and there are apparently near-equivalents that are
72583         under the BSD license.
72584
72585 2005-10-24  Simon Josefsson  <jas@extundo.com>
72586
72587         * modules/sha1: Relicense to LGPL.
72588
72589 2005-10-24  Simon Josefsson  <jas@extundo.com>
72590
72591         * lib/md4.h: Shrink buffer size, now that we changed the type.
72592
72593 2005-10-23  Simon Josefsson  <jas@extundo.com>
72594
72595         * gnulib-tool (func_import): Fix --tests-base.
72596
72597 2005-10-22  Simon Josefsson  <jas@extundo.com>
72598
72599         * modules/arcfour (Depends-on): Need stdint.
72600
72601 2005-10-22  Simon Josefsson  <jas@extundo.com>
72602
72603         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
72604         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
72605
72606 2005-10-22  Simon Josefsson  <jas@extundo.com>
72607
72608         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
72609         suggested by Bruno Haible <bruno@clisp.org>.
72610
72611 2005-10-22  Simon Josefsson  <jas@extundo.com>
72612
72613         * lib/crc.h: Include stddef.h, for size_t.
72614
72615 2005-10-22  Simon Josefsson  <jas@extundo.com>
72616
72617         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
72618         arcfour_context struct (simplify test vector testing in GNU
72619         Shishi).
72620
72621 2005-10-21  Simon Josefsson  <jas@extundo.com>
72622
72623         * modules/des, modules/des-tests: New files.
72624
72625         * modules/gc-des, modules/gc-des-tests: New files.
72626
72627         * tests/test-des.c, tests/test-gc-des.c: New file.
72628
72629 2005-10-21  Simon Josefsson  <jas@extundo.com>
72630
72631         * modules/arctwo, modules/arctwo-tests: New files.
72632
72633         * tests/test-arctwo.c: New file.
72634
72635         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
72636
72637         * tests/test-gc-arctwo.c: New file.
72638
72639 2005-10-21  Simon Josefsson  <jas@extundo.com>
72640
72641         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
72642         Bruno Haible <bruno@clisp.org>.
72643
72644         * m4/gc-des.m4: New file.
72645
72646 2005-10-21  Simon Josefsson  <jas@extundo.com>
72647
72648         * m4/arctwo.m4: New file.
72649
72650         * m4/gc-arctwo.m4: New file.
72651
72652 2005-10-21  Simon Josefsson  <jas@extundo.com>
72653
72654         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
72655         block.
72656
72657 2005-10-21  Simon Josefsson  <jas@extundo.com>
72658
72659         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
72660         <bruno@clisp.org>.
72661
72662         * lib/hmac-sha1.c (hmac_sha1): Likewise.
72663
72664         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
72665         Bruno Haible <bruno@clisp.org>.
72666
72667         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
72668         <bruno@clisp.org>.
72669
72670 2005-10-21  Simon Josefsson  <jas@extundo.com>
72671
72672         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
72673
72674 2005-10-21  Simon Josefsson  <jas@extundo.com>
72675
72676         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
72677
72678 2005-10-21  Simon Josefsson  <jas@extundo.com>
72679
72680         * lib/des.h, lib/des.c: New files.
72681
72682         * lib/gc-gnulib.c: Support DES.c
72683
72684 2005-10-21  Simon Josefsson  <jas@extundo.com>
72685
72686         * lib/arctwo.h, lib/arctwo.c: New files.
72687
72688         * lib/gc-gnulib.c: Support ARCTWO.
72689
72690 2005-10-21  Simon Josefsson  <jas@extundo.com>
72691
72692         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
72693         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72694
72695 2005-10-21  Simon Josefsson  <jas@extundo.com>
72696
72697         * gnulib-tool (func_import, func_create_testdir): Define automake
72698         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
72699         Makefile.am snippet),
72700         suggested by Bruno Haible <bruno@clisp.org>.
72701
72702         * modules/gc (Makefile.am): Use it.
72703
72704 2005-10-21  Bruno Haible  <bruno@clisp.org>
72705
72706         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
72707         patch.
72708
72709 2005-10-19  Simon Josefsson  <jas@extundo.com>
72710
72711         * tests/test-gc-rijndael.c: New file.
72712
72713         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
72714
72715 2005-10-19  Simon Josefsson  <jas@extundo.com>
72716
72717         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
72718         interface too.
72719
72720 2005-10-19  Simon Josefsson  <jas@extundo.com>
72721
72722         * tests/test-gc-arcfour.c: New file.
72723
72724         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
72725
72726 2005-10-19  Simon Josefsson  <jas@extundo.com>
72727
72728         * modules/gc-md4, modules/gc-md4-tests: New file.
72729
72730         * tests/test-gc-md4.c: New file.
72731
72732 2005-10-19  Simon Josefsson  <jas@extundo.com>
72733
72734         * m4/gc-md4.m4: New file.
72735
72736 2005-10-19  Simon Josefsson  <jas@extundo.com>
72737
72738         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
72739         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
72740         <kasal@ucw.cz>.
72741
72742 2005-10-19  Simon Josefsson  <jas@extundo.com>
72743
72744         * m4/gc-arcfour.m4: New file.
72745
72746         * m4/gc-rijndael.m4: New file.
72747
72748 2005-10-19  Simon Josefsson  <jas@extundo.com>
72749
72750         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
72751
72752 2005-10-19  Simon Josefsson  <jas@extundo.com>
72753
72754         * lib/gc-gnulib.c: Support ARCFOUR.
72755
72756 2005-10-19  Simon Josefsson  <jas@extundo.com>
72757
72758         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
72759         support.
72760
72761         * lib/gc.h: Add ECB enum type.
72762
72763         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
72764
72765 2005-10-18  Simon Josefsson  <jas@extundo.com>
72766
72767         * tests/test-md5.c: New file.
72768
72769         * modules/md5-tests: New file.
72770
72771 2005-10-18  Simon Josefsson  <jas@extundo.com>
72772
72773         * tests/test-md4.c: New file.
72774
72775         * modules/md4, modules/md4-tests: New files.
72776
72777 2005-10-18  Simon Josefsson  <jas@extundo.com>
72778
72779         * m4/md4.m4: New file.
72780
72781 2005-10-18  Simon Josefsson  <jas@extundo.com>
72782
72783         * lib/md4.h, lib/md4.c: New files, based on md5.?.
72784
72785 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
72786
72787         * gnulib-tool (func_create_testdir): Omit the second check whether
72788         BUILT_SOURCES in nonempty.
72789
72790 2005-10-17  Simon Josefsson  <jas@extundo.com>
72791
72792         * tests/test-rijndael.c: New file.
72793
72794 2005-10-17  Simon Josefsson  <jas@extundo.com>
72795
72796         * modules/sha1: Depend on stdint instead of md5.
72797
72798         * modules/md5: Depend on stdint, remove uint32_t.
72799
72800 2005-10-17  Simon Josefsson  <jas@extundo.com>
72801
72802         * modules/gc-sha1-tests: New file.
72803
72804         * tests/test-gc-sha1.c: New file.
72805
72806 2005-10-17  Simon Josefsson  <jas@extundo.com>
72807
72808         * m4/md5.m4: Remove call to uint32_t.m4.
72809
72810 2005-10-17  Simon Josefsson  <jas@extundo.com>
72811
72812         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
72813
72814         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
72815         md5.h.
72816
72817         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
72818
72819         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
72820
72821 2005-10-17  Simon Josefsson  <jas@extundo.com>
72822
72823         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
72824
72825 2005-10-17  Simon Josefsson  <jas@extundo.com>
72826
72827         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
72828
72829 2005-10-17  Simon Josefsson  <jas@extundo.com>
72830
72831         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
72832
72833         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
72834
72835 2005-10-17  Bruno Haible  <bruno@clisp.org>
72836
72837         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
72838         that it can also be used in a test.
72839
72840 2005-10-16  Bruno Haible  <bruno@clisp.org>
72841
72842         * gnulib-tool (func_emit_tests_Makefile_am): Also define
72843         TESTS_ENVIRONMENT, so that individual tests can augment it.
72844
72845         * gnulib-tool (func_create_testdir): Use an intermediate target for
72846         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
72847         macros, like $(ALLOCA_H), which cannot be passed through the command
72848         line.
72849
72850 2005-10-15  Simon Josefsson  <jas@extundo.com>
72851
72852         * modules/rijndael-tests: New file.
72853
72854         * modules/rijndael: New file.
72855
72856 2005-10-15  Simon Josefsson  <jas@extundo.com>
72857
72858         * m4/rijndael.m4: New file.
72859
72860 2005-10-15  Simon Josefsson  <jas@extundo.com>
72861
72862         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
72863
72864         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
72865
72866 2005-10-14  Simon Josefsson  <jas@extundo.com>
72867
72868         * tests/test-arcfour.c: New file.
72869
72870         * modules/arcfour, modules/arcfour-tests: New files.
72871
72872 2005-10-14  Simon Josefsson  <jas@extundo.com>
72873
72874         * m4/arcfour.m4: New file.
72875
72876 2005-10-14  Simon Josefsson  <jas@extundo.com>
72877
72878         * lib/arcfour.h, lib/arcfour.c: New files.
72879
72880 2005-10-14  Roland McGrath  <roland@redhat.com>
72881
72882         Import from libc.  [BZ #1331]
72883         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
72884         macro argument.
72885         Reported by Matej Vela <vela@debian.org>.
72886
72887 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72888
72889         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
72890         include <wchar.h>; no longer needed.
72891
72892 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72893
72894         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
72895
72896 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
72897         and  Ulrich Drepper  <drepper@redhat.com>
72898
72899         Import from libc.
72900         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
72901         instead of inline stream orientation test and two separate
72902         function calls.  Pay no attention to USE_IN_LIBIO.
72903
72904 2005-10-13  Simon Josefsson  <jas@extundo.com>
72905
72906         * modules/gc-hmac-md5-tests: New file.
72907
72908         * tests/test-gc-hmac-sha1.c: New file.
72909
72910         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
72911
72912         * modules/gc-hmac-md5-tests: New file.
72913
72914         * tests/test-gc-md5.c: New file.
72915
72916         * modules/gc-md5-tests: New file.
72917
72918 2005-10-13  Simon Josefsson  <jas@extundo.com>
72919
72920         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
72921         Move memory allocation outside of loop.
72922
72923 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
72924
72925         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
72926         intermediate directory is in a read-only file system.  Problem
72927         reported by Eric Blake.
72928
72929 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
72930
72931         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
72932
72933 2005-10-12  Simon Josefsson  <jas@extundo.com>
72934
72935         * tests/test-hmac-sha1.c: New file.
72936
72937         * modules/hmac-sha1-tests: New file.
72938
72939         * modules/hmac-sha1: New file.
72940
72941 2005-10-12  Simon Josefsson  <jas@extundo.com>
72942
72943         * modules/gc-sha1: New file.
72944
72945 2005-10-12  Simon Josefsson  <jas@extundo.com>
72946
72947         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
72948
72949         * tests/test-gc-pbkdf2-sha1.c: New file.
72950
72951 2005-10-12  Simon Josefsson  <jas@extundo.com>
72952
72953         * modules/gc-md5, modules/gc-hmac-md5: New files.
72954
72955         * modules/gc (Files): Remove md5, memxor and hmac files.
72956
72957 2005-10-12  Simon Josefsson  <jas@extundo.com>
72958
72959         * m4/gc-pbkdf2-sha1.m4: New file.
72960
72961         * m4/gc-hmac-sha1.m4: New file.
72962
72963         * m4/gc-sha1: New file.
72964
72965         * m4/hmac-sha1.m4: New file.
72966
72967 2005-10-12  Simon Josefsson  <jas@extundo.com>
72968
72969         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
72970
72971         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
72972
72973 2005-10-12  Simon Josefsson  <jas@extundo.com>
72974
72975         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
72976         suggested by Bruno Haible <bruno@clisp.org>.
72977
72978 2005-10-12  Simon Josefsson  <jas@extundo.com>
72979
72980         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
72981
72982 2005-10-12  Simon Josefsson  <jas@extundo.com>
72983
72984         * lib/gc-pbkdf2-sha1.c: New file.
72985
72986         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
72987
72988 2005-10-12  Simon Josefsson  <jas@extundo.com>
72989
72990         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
72991
72992         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
72993
72994 2005-10-12  Simon Josefsson  <jas@extundo.com>
72995
72996         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
72997         GC_USE_HMAC_MD5, respectively.
72998
72999         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73000         (gc_md5): Fix typo.
73001
73002         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73003
73004         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73005
73006         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73007
73008 2005-10-12  Bruno Haible  <bruno@clisp.org>
73009
73010         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73011         Reported by Stepan Kasal <kasal@ucw.cz>.
73012
73013 2005-10-11  Simon Josefsson  <jas@extundo.com>
73014
73015         * tests/test-crc.c: New file.
73016
73017         * modules/crc, modules/crc-tests: New files.
73018
73019 2005-10-11  Simon Josefsson  <jas@extundo.com>
73020
73021         * m4/crc.m4: New file.
73022
73023 2005-10-11  Simon Josefsson  <jas@extundo.com>
73024
73025         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73026
73027         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73028
73029         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73030
73031 2005-10-11  Simon Josefsson  <jas@extundo.com>
73032
73033         * lib/crc.h, lib/crc.c: New files.
73034
73035         * lib/gc.h (gc_hash_buffer): Add doc.
73036
73037 2005-10-11  Bruno Haible  <bruno@clisp.org>
73038
73039         * modules/c-strcasestr: New file.
73040         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73041
73042 2005-10-11  Bruno Haible  <bruno@clisp.org>
73043
73044         * modules/c-strcase: New file.
73045         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73046
73047 2005-10-11  Bruno Haible  <bruno@clisp.org>
73048
73049         * lib/strcasecmp.c: Include limits.h.
73050         (strcasecmp): Avoid integer overflow on exotic platforms.
73051         * lib/strncasecmp.c: Include limits.h.
73052         (strncasecmp): Avoid integer overflow on exotic platforms.
73053         Reported by Paul Eggert.
73054
73055 2005-10-11  Bruno Haible  <bruno@clisp.org>
73056
73057         * lib/c-strcasestr.h: New file, from GNU gettext.
73058         * lib/c-strcasestr.c: New file, from GNU gettext.
73059
73060 2005-10-11  Bruno Haible  <bruno@clisp.org>
73061
73062         * lib/c-strcase.h: New file, from GNU gettext.
73063         * lib/c-strcasecmp.c: New file, from GNU gettext.
73064         * lib/c-strncasecmp.c: New file, from GNU gettext.
73065
73066 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73067
73068         * modules/mempcpy (License): GPL -> LGPL.
73069         * modules/strchrnul (License): Likewise.
73070         * modules/sysexits (License): Likewise.
73071
73072 2005-10-08  Simon Josefsson  <jas@extundo.com>
73073
73074         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73075
73076 2005-10-07  Simon Josefsson  <jas@extundo.com>
73077
73078         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73079
73080 2005-10-06  Simon Josefsson  <jas@extundo.com>
73081
73082         * tests/test-hmac-md5.c: New file.
73083
73084         * modules/hmac-md5-tests: New file.
73085
73086         * modules/hmac-md5: New file.
73087
73088 2005-10-06  Simon Josefsson  <jas@extundo.com>
73089
73090         * m4/hmac-md5.m4: New file.
73091
73092         * m4/memxor.m4: Require gl_C_RESTRICT.
73093
73094 2005-10-06  Simon Josefsson  <jas@extundo.com>
73095
73096         * lib/memxor.c (memxor): Avoid casts and warnings.
73097
73098 2005-10-06  Simon Josefsson  <jas@extundo.com>
73099
73100         * lib/hmac-md5.c: New file.
73101
73102         * lib/hmac.h: New file.
73103
73104 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73105
73106         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73107         promotes to int, not unsigned int, to catch the AIX 5.3
73108         compiler bug.
73109
73110 2005-10-05  Simon Josefsson  <jas@extundo.com>
73111
73112         * modules/memxor: New file.
73113
73114         * modules/iconv (Files): Move config.rpath to havelib, it is used
73115         there.
73116
73117         * modules/havelib (Files): Add config.rpath.
73118
73119 2005-10-05  Simon Josefsson  <jas@extundo.com>
73120
73121         * m4/memxor.m4: New file.
73122
73123 2005-10-05  Simon Josefsson  <jas@extundo.com>
73124
73125         * lib/memxor.c (memxor): Fix compiler error.
73126
73127         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
73128         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
73129
73130         * lib/memxor.h, lib/memxor.c: New files.
73131
73132         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
73133         we assume all systems have it, suggested by Jim Meyering
73134         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
73135         any systems lack sys/socket.h; mingw32 is known to lack it, but we
73136         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
73137         same reasons.
73138
73139 2005-10-05  Simon Josefsson  <jas@extundo.com>
73140
73141         * config/srclist.txt: Add glibc bug 1423 for md5.h.
73142
73143 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73144
73145         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
73146         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
73147         needed, since the source code now assumes these .h files.
73148
73149 2005-10-05  Derek Price  <derek@ximbiot.com>
73150
73151         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
73152
73153 2005-10-05  Bruno Haible  <bruno@clisp.org>
73154
73155         * modules/stdint (License): Change to LGPL.
73156
73157 2005-10-04  Simon Josefsson  <jas@extundo.com>
73158
73159         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
73160         D. Baushke" <mdb@gnu.org>.
73161
73162 2005-10-04  Bruno Haible  <bruno@clisp.org>
73163
73164         * lib/verify.h (verify_true): Provide alternative definition for C++.
73165
73166 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
73167
73168         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
73169         (SSIZE_MAX): New macro, if not already defined.
73170         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
73171         than 2 GiB.
73172
73173 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73174
73175         Sync from coreutils.
73176         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73177         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73178         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73179         ULLONG_MAX doesn't work with 2.7.2.1.
73180
73181 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73182
73183         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73184         From Ben Pfaff.
73185
73186         * modules/exclude (Depends-on): Depend on verify.
73187         * modules/strtoimax (Depends-on): Likewise.
73188         * modules/utimecmp (Depends-on): Likewise.
73189
73190 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73191
73192         * lib/exclude.c: Include verify.h.
73193         (verify): Remove.  All callers changed to use verify.h's version.
73194         * lib/strtoimax.c: Likewise.
73195         * lib/utimecmp.c: Likewis.e
73196
73197         Sync from coreutils.
73198         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73199         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73200         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73201         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73202         bother returning ENOSYS if settimeofday or stime fails; just let
73203         them return whatever errno they want to return.
73204         * lib/utimens.c: Include unistd.h, for dup2.
73205         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
73206         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
73207
73208 2005-10-02  Jim Meyering  <jim@meyering.net>
73209
73210         Sync from coreutils.
73211         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
73212         from glibc-2.2.5 that fails for read-only files.
73213
73214 2005-10-02  Jim Meyering  <jim@meyering.net>
73215
73216         Sync from coreutils.
73217         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
73218         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
73219         `#if HAVE_CONFIG_H'.
73220         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
73221         Remove AT_FDCWD test.
73222         Do not consume the fd unless successful.
73223         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
73224         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
73225         block, so that we don't even try to compile it if settimeofday is
73226         available.  This works around a compilation failure on OSF1 V5.1,
73227         due to stime requiring a `long int*' while tv_sec is `int'.
73228
73229 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
73230
73231         Sync from coreutils.
73232         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
73233         against `yes', rather than just testing for nonempty.
73234
73235 2005-10-01  Simon Josefsson  <jas@extundo.com>
73236
73237         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
73238         and Darwin.
73239
73240         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
73241         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
73242         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
73243         freeaddrinfo and gai_strerror are declared by the POSIX headers.
73244         Check if struct addrinfo is declared.
73245
73246 2005-10-01  Simon Josefsson  <jas@extundo.com>
73247
73248         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
73249         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
73250         AI_* and EAI_* definitions.  Protect function declarations.
73251
73252 2005-10-01  Jim Meyering  <jim@meyering.net>
73253
73254         Sync from coreutils.
73255
73256         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
73257         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
73258         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
73259         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73260         in the inet and nsl libraries.  Required on Solaris 5.7.
73261
73262 2005-10-01  Jim Meyering  <jim@meyering.net>
73263
73264         Sync from coreutils.
73265         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73266         in the inet and nsl libraries.  Required on Solaris 5.7.
73267
73268 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
73269
73270         * lib/getdelim.c (getdelim): Remove unused variables.
73271
73272 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73273
73274         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
73275         so that the code works even with ancient cpp.  Portability problem
73276         with GCC 2.7.2.1 reported by Thomas M.Ott.
73277
73278 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73279
73280         * modules/regex (Depends-on): Add strcase.
73281
73282         * modules/gethostname (Licence): Change from GPL to LGPL, since
73283         gethostname.c is a trivial implementation of a standard library
73284         function.
73285         * modules/poll (License): Change from GPL to LGPL, since it's
73286         derived from LGPL code.
73287
73288 2005-09-27  Jim Meyering  <jim@meyering.net>
73289
73290         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
73291         HAVE_CONFIG_H.
73292
73293         * lib/intprops.h (signed_type_or_expr__): Define.
73294         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
73295         for unsigned types.
73296
73297 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73298
73299         * lib/verify.h (verify_expr): Remove, replacing with:
73300         (verify_true): New macro that returns true instead of void.
73301         (verify_type__): Remove.
73302         (verify): Use verify_true rather than verify_type__.
73303
73304 2005-09-26  Bruno Haible  <bruno@clisp.org>
73305
73306         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
73307         is necessary.
73308         (lib_SOURCES): Remove mbchar.c.
73309         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
73310         (Files): Add m4/mbrtowc.m4.
73311         * modules/mbiter: Likewise.
73312         * modules/mbuiter: Likewise.
73313
73314 2005-09-26  Bruno Haible  <bruno@clisp.org>
73315
73316         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
73317         compile mbchar.c if they are not both present.
73318         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
73319         * m4/mbiter.m4 (gl_MBITER): Likewise.
73320         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
73321         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
73322         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
73323
73324 2005-09-25  Jim Meyering  <jim@meyering.net>
73325
73326         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
73327         also uses socklen_t.
73328
73329 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
73330
73331         * lib/utimens.c (ENOSYS): Define if not already defined.
73332         (futimens): Support having a null PATH if the file descriptor
73333         is nonnegative.
73334
73335         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
73336         Remove.
73337         (__attribute): Define to empty unless GCC 3.1 or later.
73338         This works around a core dump on OpenBSD 3.4, which has GCC
73339         2.95.3, which dumps core when given __attribute__(()).  It also
73340         simplifies other tests, since we really don't want to bother with
73341         worrying about which ancient version of GCC supported what.
73342         Original problem reported by Yoann Vandoorselaere, with part of
73343         the fix suggested by Derek Price.
73344
73345 2005-09-24  Jim Meyering  <jim@meyering.net>
73346
73347         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
73348         so we can once again use a positive bitfield width of 1 -- now we
73349         don't have to explain why we were using a bitfield width of 2.
73350
73351 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73352
73353         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
73354         and similarly for the other external symbols.  Problem reported
73355         by James Gallager.
73356
73357         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
73358         bug reported by Jim Meyering.
73359
73360         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
73361         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
73362         not needed, since socklen is a prerequisite module.
73363
73364 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73365
73366         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
73367         Problem reported by Eric Blake.
73368         (getaddrinfo): Initialize se so that it's not garbage.
73369         Redo internal storage allocation so that it doesn't make unportable
73370         assumptions about alignment.
73371         Fix a memory leak.
73372
73373         * lib/utimens.c (futimens): Use futimesat if available.
73374         Prefer it to futimes since it doesn't have the futimes bug.
73375
73376         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
73377         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
73378         Instead, declare a function that returns a pointer to an array,
73379         and use verify_type__ to declare the size of the array.
73380         Problem and germ of a solution reported by Bruno Haible.
73381         (verify_type__): Use 2, not 1, for bitfield size, to avoid
73382         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
73383
73384 2005-09-23  Jim Meyering  <jim@meyering.net>
73385
73386         Sync from coreutils.
73387         Correct build failure (socklen_t not defined) on at least
73388         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
73389         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
73390
73391 2005-09-23  Jim Meyering  <jim@meyering.net>
73392
73393         * modules/getaddrinfo (Depends-on): Add socklen.
73394
73395 2005-09-23  Bruno Haible  <bruno@clisp.org>
73396
73397         * tests/test-verify.c: New file.
73398
73399 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73400
73401         Sync from coreutils.
73402
73403         * modules/argmatch (Depends-on): Add verify.
73404         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
73405         unistd-safer.
73406         * modules/save-cwd (Depends-on): Likewise.
73407
73408         * modules/openat (Files): Add lib/openat-die.c.
73409         (Depends-on): Remove error, exitfail.
73410         Add dirname.
73411
73412         * modules/verify: New file.
73413         * MODULES.html.sh (Diagnostics <assert.h>): New section,
73414         with "verify" module.
73415
73416 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73417
73418         Sync from coreutils.
73419
73420         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
73421         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
73422         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
73423         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
73424         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
73425         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
73426         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
73427         Don't bother checking for string.h, stdlib.h, unistd.h.
73428         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
73429         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
73430         module's job.
73431         * m4/jm-macros.m4 (gl_MACROS): Likewise.
73432         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
73433
73434         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
73435         (gl_GETDATE): Use it.
73436
73437         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
73438
73439 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73440
73441         Sync from coreutils.
73442
73443         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
73444         stat-time.h.
73445         * lib/argmatch.h: Include verify.h
73446         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
73447         (ARGMATCH_ASSERT): Remove; unused.
73448         * lib/canonicalize.c: Assume STDC_HEADERS.
73449         * lib/exclude.c: Include "strcase.h".
73450         * lib/regex_internal.h [!defined _LIBC]: Likewise.
73451         * lib/getusershell.c: Include stdio--.h rather than stdio.h
73452         and stdio-safer.h.
73453         (getusershell): Call fopen, not fopen_safer.
73454         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
73455         Do not include unistd-safer.h.
73456         (save_cwd): Don't call fd_safer; no longer needed
73457         now that we include fcntl--.h.
73458
73459         * lib/getdate.y (relative_time): New type.
73460         (RELATIVE_TIME_0): New constant.
73461         (parser_control): Use relative_time instead of doing it ourselves.
73462         (%union): Add new relative_time rel member.
73463         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
73464         Now typeless.
73465         (relunit, relunit_snumber): Now of type rel.
73466         (zone, rel, relunit, get_date): Adjust to above changes.
73467
73468         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
73469         Do not include unistd-safer.h.
73470         (getloadavg): Don't call fd_safer; no longer needed
73471         now that we include fcntl--.h.
73472
73473         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
73474         (make_dir_parents): Treat ENOSYS like EEXIST.
73475
73476         Improve quality of diagnostics on restore_cwd failure.
73477         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
73478         (make_dir_parents): Last arg is now int * (for errno), not bool *.
73479         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
73480         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
73481         each time through the loop.  Do not diagnose restore_cwd failure;
73482         that is the caller's job (and perhaps the caller does not care).
73483
73484         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
73485         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
73486         If the file already exists but is not a directory, don't bother
73487         to try to make its parents.
73488         Close potential file descriptor leak if we can't chdir("/") (!).
73489         Don't always return true if chdir($PWD) fails; return true only
73490         if the requested action was done successfully (except for the
73491         chdir($PWD)).
73492         Don't log final directory unless we actually made it.
73493         Refactor to avoid duplicate code to fix up permissions.
73494         Don't attempt to fix up parent permissions if chdir($PWD) fails.
73495
73496         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
73497         to make it a bit faster and (I hope) clearer.
73498         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
73499         Fix bug in formats like %2N.
73500
73501         * lib/verify.h: New file.
73502
73503 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73504
73505         Sync from coreutils.
73506         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
73507
73508 2005-09-22  Jim Meyering  <jim@meyering.net>
73509
73510         Sync from coreutils.
73511
73512         * m4/lstat.m4 (gl_FUNC_LSTAT):
73513         Use AC_LIBSOURCES to require lstat.c and lstat.h.
73514         Remove obsolete comment.
73515         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
73516         * m4/xstrtod.m4: Likewise.
73517
73518         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
73519
73520 2005-09-22  Jim Meyering  <jim@meyering.net>
73521
73522         Sync from coreutils.
73523
73524         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
73525
73526         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
73527         the .tm_year member, since otherwise gcc-4.0 would now warn about
73528         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
73529
73530         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
73531         order to avoid an unsuppressible warning from gcc on 64-bit systems.
73532
73533         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
73534         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
73535         when run in a time zone for which daylight savings time is in effect
73536         for the starting date.
73537
73538         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
73539         stop us from restricting permissions of just-created absolute-named
73540         directories.
73541         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
73542         to restore initial working directory.
73543         * lib/mkdir-p.c (make_dir_parents): New parameter:
73544         different_working_dir, to tell caller if/when we change the working
73545         directory and are unable to return to the initial one.
73546         * lib/mkdir-p.h (make_dir_parents): Update prototype.
73547         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
73548         `return false'.  This fixes a bug introduced on 2004-07-30.
73549
73550         * lib/openat.c (fdopendir): Be sure to close the supplied
73551         file descriptor before returning.  This makes our replacement
73552         implementation a little closer to Solaris's, where fdopendir
73553         ties the file descriptor to the returned DIR* pointer.
73554         * lib/openat.c (unlinkat): New function.
73555         * lib/openat.h (unlinkat): Add prototype.
73556         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
73557         (openat_restore_fail): Rename from openat_restore_die.
73558         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
73559
73560         Provide an alternative to exiting immediately upon save_cwd or
73561         restore_cwd failure.  Now, an application can arrange e.g.,
73562         to perform a longjump in that case.
73563         * lib/openat.c: Include dirname.h.
73564         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
73565         (rpl_openat, fdopendir, fstatat): Call openat_save_die
73566         and openat_restore_die rather than calling error directly.
73567         Don't include "error.h" or "exitfail.h"; they're no longer needed.
73568
73569         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
73570         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
73571         define.
73572
73573         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
73574         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
73575                             int utc, int nanoseconds);
73576         Background:
73577         date should not have to allocate a megabyte of virtual memory to
73578         handle a format argument like +%1048575T.  When implemented with
73579         strftime, it must allocate such a buffer, use strftime to fill it
73580         in, print it, then free it.
73581         With fprintftime, it simply prints everything and exits.
73582         With no need for memory allocation, that's one fewer way to fail.
73583         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
73584         optional field width, not before, so we accept %9:z, not %:9z.
73585         (my_strftime): Be sure to use L_('x') for literals.
73586
73587         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
73588         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
73589         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
73590         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
73591         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
73592         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
73593         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
73594         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
73595         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
73596         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
73597         * lib/xgethostname.c, lib/xreadlink.c:
73598         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
73599
73600         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
73601         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
73602         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
73603         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73604         and don't include <sys/file.h>).
73605
73606 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
73607
73608         Sync from coreutils.
73609
73610         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
73611         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
73612         [!LDAV_DONE]: Avoid unused variable warning.
73613
73614 2005-09-21  Bruno Haible  <bruno@clisp.org>
73615
73616         * lib/unicodeio.h (unicode_to_mb): New declaration.
73617
73618 2005-09-20  Derek Price  <derek@ximbiot.com>
73619
73620         * lib/getaddrinfo.c: Don't include <netdb.h> included from
73621         getaddrinfo.h.
73622
73623 2005-09-20  Bruno Haible  <bruno@clisp.org>
73624
73625         * gnulib-tool: Remove trailing slashes from the values specified for
73626         --source-base, --m4-base, --tests-base, --aux-dir.
73627         Suggested by Simon Josefsson <jas@extundo.com>.
73628
73629 2005-09-20  Bruno Haible  <bruno@clisp.org>
73630
73631         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
73632         func_modules_to_filelist, func_import, func_create_testdir): Make all
73633         sorting results locale-independent, so that gnulib-cache.m4 doesn't
73634         change when gnulib-tool is invoked in a different locale.
73635
73636 2005-09-19  Simon Josefsson  <jas@extundo.com>
73637
73638         * m4/socklen.m4: Fix typo.
73639
73640 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73641
73642         Use a consistent style for including <config.h>.
73643         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
73644         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
73645         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
73646         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
73647         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
73648         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
73649         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
73650         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
73651         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
73652         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
73653         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
73654         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
73655         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
73656         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
73657         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
73658         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
73659         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
73660         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
73661         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
73662         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
73663         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
73664         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
73665         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
73666         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
73667         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
73668         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
73669         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
73670         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
73671         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
73672         lib/xstrtoumax.c, lib/yesno.c:
73673         Standardize inclusion of config.h.
73674         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
73675         lib/inttostr.h:  Removed inclusion of config.h from header files.
73676         * lib/inttostr.c:  Adjusted in-tree users.
73677         * lib/timespec.h: Remove superfluous warning to include config.h.
73678         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
73679         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
73680         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
73681         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
73682         config.h with HAVE_CONFIG_H.
73683
73684 2005-09-19  Jim Meyering  <jim@meyering.net>
73685
73686         * modules/pathmax (License): Change to LGPL.
73687
73688 2005-09-19  Derek Price  <derek@ximbiot.com>
73689
73690         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
73691
73692 2005-09-19  Bruno Haible  <bruno@clisp.org>
73693
73694         * gnulib-tool (import): Provide default for --tests-base.
73695
73696 2005-09-19  Bruno Haible  <bruno@clisp.org>
73697
73698         * doc/quote.texi: New file, extracted from gnulib.texi.
73699         * doc/ctime.texi: New file, extracted from gnulib.texi.
73700         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
73701         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
73702         * doc/gnulib.texi: Include them.
73703
73704 2005-09-18  Bruno Haible  <bruno@clisp.org>
73705
73706         Portability fix.
73707         * gnulib-tool (func_readlink): New function.
73708         (func_ln_if_changed): Use it.
73709
73710 2005-09-18  Bruno Haible  <bruno@clisp.org>
73711
73712         * gnulib-tool: Support --with-tests also with --import.
73713         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
73714         (func_import): Use variables $testsbase and $inctests. Emit a
73715         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
73716         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
73717         SUBDIRS += $testsdir.
73718         (func_create_testdir): Update.
73719
73720 2005-09-18  Bruno Haible  <bruno@clisp.org>
73721
73722         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
73723         instead of $dry_run.
73724         (func_cp_if_changed, func_mv_if_changed): Remove functions.
73725         (func_ln_if_changed): Don't handle dry-run here.
73726         (func_import): In dry-run mode, detect more precisely which actions
73727         would be performed, and don't use "...ing" verbs.
73728
73729 2005-09-18  Bruno Haible  <bruno@clisp.org>
73730
73731         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
73732         (func_import): Use join on two temporary files instead of three nested
73733         loops, in order to determine which files are new or old.
73734
73735 2005-09-18  Bruno Haible  <bruno@clisp.org>
73736
73737         * gnulib-tool (func_import): Comment out code that spits out the
73738         new files with --dry-run.
73739
73740 2005-09-18  Bruno Haible  <bruno@clisp.org>
73741
73742         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
73743
73744 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73745
73746         * lib/stat-time.h: New file.
73747         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
73748         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
73749         in a different way.
73750         (timespec_cmp): New function.
73751         * lib/utimecmp.c: Include stat-time.h.
73752         (SYSCALL_RESOLUTION): Depend on whether various struct stat
73753         members exist, not on the obsolescent ST_MTIM_NSEC.
73754         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
73755
73756 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73757
73758         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
73759
73760 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73761
73762         * MODULES.html.sh (File system functions): Add stat-time.
73763         * modules/stat-time: New file.
73764         * modules/timespec (Files): Remove m4/st_mtim.m4; this
73765         is now done in a different way, by the stat-time module.
73766         * modules/utimecmp (Depends-on): Add stat-time.
73767
73768 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73769
73770         * m4/st_mtim.m4: Remove.  Superseded by...
73771         * m4/stat-time.m4: New file.
73772         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
73773         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
73774
73775 2005-09-15  Derek Price  <derek@ximbiot.com>
73776
73777         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
73778
73779 2005-09-15  Derek Price  <derek@ximbiot.com>
73780
73781         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
73782         * lib/regex_internal.c: Ditto, using this...
73783         (__GNUC_PREREQ): ...new macro.
73784         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
73785         using...
73786         (__GNUC_PREREQ): ...this new macro.
73787
73788         * lib/strstr.h: Include string.h. Define strstr as a macro here.
73789
73790 2005-09-15  Derek Price  <derek@ximbiot.com>
73791             Paul Eggert  <eggert@cs.ucla.edu>
73792
73793         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
73794         changes, consolidating in...
73795         * lib/regex_internal.h: ...this file.
73796
73797 2005-09-13  Jim Meyering  <jim@meyering.net>
73798
73799         * lib/canon-host.c: Filter through gnu indent and reword comments
73800         slightly.
73801         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
73802
73803 2005-09-13  Derek Price  <derek@ximbiot.com>
73804
73805         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
73806         failure.
73807         Reported by Jim Meyering  <jim@meyering.net>.
73808
73809 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73810
73811         * lib/base64.c: Typo.
73812         (base64_encode): Put b64str in initialized data section.
73813
73814 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
73815
73816         Merge glibc and coreutils changes into gnulib, plus a few
73817         extra fixes.
73818         * lib/md5.c: Use #error rather than a string.
73819         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
73820         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
73821         (__attribute__): Define to empty for non recent-GCC.
73822         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
73823         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
73824         Renamed from their non-__ counterparts, with new macros replacing
73825         them if not _LIBC.  Add __THROW attribute.
73826         (rol): Remove.
73827         (struct md5_ctx): Align buffer if using GCC.
73828         * lib/sha1.h (struct sha1_ctx): Likewise.
73829         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
73830         The old name was backwards.
73831         (NOTSWAP): Remove; not used.
73832         (rol): New macro, moved here from md5.h.
73833         (sha1_process_block): Remove a FIXME that doesn't make sense.
73834
73835 2005-09-12  Derek Price  <derek@ximbiot.com>
73836
73837         Return usable errors from canon-host.
73838         * lib/canon-host.h: New file.
73839         * lib/canon-host.c (canon_host): Wrap...
73840         (canon_host_r): ...this new function, which now relies exclusively on
73841         getaddrinfo.
73842         (ch_strerror): New function.
73843         (last_cherror): New global.
73844         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
73845         interface.
73846         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
73847         void *.
73848         (freeaddrinfo): Free ai->ai_canonname when set.
73849
73850 2005-09-12  Derek Price  <derek@ximbiot.com>
73851
73852         Make canon-host require getaddrinfo.
73853         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
73854         AC_LIBSOURCE canon-host.h.  Call...
73855         (gl_PREREQ_CANON_HOST): ...this new function, which requires
73856         gl_GETADDRINFO.
73857         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
73858
73859 2005-09-12  Derek Price  <derek@ximbiot.com>
73860
73861         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
73862         LGPL.
73863         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
73864
73865 2005-09-12  Derek Price  <derek@ximbiot.com>
73866
73867         * lib/gai_strerror.c: Include config.h when available.  Include
73868         getaddrinfo.h before other headers to test interface.
73869         Reported by Larry Jones <lawrence.jones@ugs.com>.
73870
73871 2005-09-12  Derek Price  <derek@ximbiot.com>
73872             Paul Eggert  <eggert@cs.ucla.edu>
73873
73874         * modules/glob (Files): Add glob-libc.h.
73875
73876 2005-09-12  Derek Price  <derek@ximbiot.com>
73877             Paul Eggert  <eggert@cs.ucla.edu>
73878
73879         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
73880         glob_.h, glob-libc.h.
73881         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
73882
73883 2005-09-12  Derek Price  <derek@ximbiot.com>
73884             Paul Eggert  <eggert@cs.ucla.edu>
73885
73886         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
73887         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
73888         protecting things that should be done only in gnulib contexts.
73889         * lib/glob_.h: New file, containing only the glob things needed for
73890         gnulib.
73891         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
73892         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
73893         (glob, globfree, glob_pattern_p): Now defined simply in terms of
73894         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
73895         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
73896         and to respect the namespace rules better.
73897
73898 2005-09-08  Simon Josefsson  <jas@extundo.com>
73899
73900         * modules/socklen: New file.
73901
73902 2005-09-08  Simon Josefsson  <jas@extundo.com>
73903
73904         * m4/socklen.m4: New file.
73905
73906 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73907
73908         * modules/utimens (Files): Add m4/utimbuf.m4, since
73909         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
73910         Reported by Sergey Poznyakoff.
73911
73912 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73913
73914         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
73915         definitions, since that's the preferred style in glibc.
73916         Fix a minor spacing issue, and update copyright notice to match
73917         glibc's.
73918
73919 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73920
73921         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
73922
73923 2005-09-06  Simon Josefsson  <jas@extundo.com>
73924
73925         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
73926         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
73927
73928 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73929
73930         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
73931         warning.
73932
73933 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73934
73935         * config/srclist.txt: Add glibc bug 1302.
73936
73937 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
73938
73939         Change bitset word type from unsigned int to unsigned long int,
73940         as this has better performance on typical 64-bit hosts.
73941         Port bitset code to hosts with unusual word sizes.
73942         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
73943         (build_collating_symbol):
73944         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
73945         argument is a bitset.  This is merely a style issue, but it makes
73946         it clearer that an entire array is expected.
73947         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
73948         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
73949         Port to the case where bitset_word is not the same as unsigned int.
73950         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73951         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
73952         Likewise.
73953         * lib/regexec.c (check_dst_limits_calc_pos_1,
73954         check_subexp_matching_top):
73955         (build_trtable, group_nodes_into_DFAstates):
73956         Likewise.
73957         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
73958         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
73959         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
73960         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
73961         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
73962         * lib/regcomp.c (optimize_subexps, lower_subexp):
73963         Work even if bitset_word has holes in its bitwise representation.
73964         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
73965         * lib/regexec.c (check_dst_limits_calc_pos_1,
73966         check_subexp_matching_top):
73967         Likewise.
73968         * lib/regex_internal.c (re_string_reconstruct):
73969         Don't assume UCHAR_MAX == 255.
73970         * lib/regex_internal.h (bitset_set_all): Likewise.
73971         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
73972         All uses changed.
73973         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
73974         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
73975         All uses changed.
73976         (BITSET_WORD_MAX): New macro.
73977         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
73978         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
73979         (bitset_empty, bitset_copy):
73980         Prefer sizeof (bitset) to multiplying it out ourselves.
73981         (bitset_not_merge): Remove; unused.
73982         (bitset_contain): Return bool, not unsigned int with one bit on.
73983         All callers changed.
73984         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
73985         alignment than re_node_set; do this by defining a new internal
73986         type struct dests_alloc and using it to allocate memory.
73987
73988 2005-09-05  Bruno Haible  <bruno@clisp.org>
73989
73990         * gnulib-tool (func_import): Fix comparison in handling of symbolic
73991         links.
73992
73993 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
73994
73995         * modules/size_max (Makefile.am): Add size_max.h
73996
73997 2005-09-04  Derek Price  <derek@ximbiot.com>
73998
73999         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74000
74001 2005-09-03  Simon Josefsson  <jas@extundo.com>
74002
74003         * gnulib-tool: Fix typo.
74004
74005 2005-09-03  Simon Josefsson  <jas@extundo.com>
74006
74007         * config/srclist.txt: Add glibc bug 1293.
74008
74009 2005-09-03  Derek Price  <derek@ximbiot.com>
74010
74011         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74012         From Larry Jones <lawrence.jones@ugs.com>.
74013
74014 2005-09-02  Simon Josefsson  <jas@extundo.com>
74015
74016         * modules/socklen: New file.
74017
74018 2005-09-02  Simon Josefsson  <jas@extundo.com>
74019
74020         * modules/havelib: New module.
74021
74022         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74023         Use havelib.
74024
74025 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74026
74027         Check for arithmetic overflow when calculating sizes, to prevent
74028         some buffer-overflow issues.  These patches are conservative, in the
74029         sense that when I couldn't determine whether an overflow was possible,
74030         I inserted a run-time check.
74031         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74032         macros.
74033         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74034         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74035         (re_xnrealloc, re_x2nrealloc): New inline functions.
74036         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74037         parse_bracket_exp):
74038         (build_equiv_class, build_charclass): Check for arithmetic overflow
74039         in size expression calculations.
74040         * lib/regex_internal.c (re_string_realloc_buffers):
74041         (build_wcs_upper_buffer, re_node_set_add_intersect):
74042         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74043         (re_dfa_add_node, register_state): Likewise.
74044         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74045         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74046         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74047         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74048
74049 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74050
74051         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74052         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74053
74054 2005-09-02  Bruno Haible  <bruno@clisp.org>
74055
74056         Support for lib vs. lib64 distinction on biarch platforms.
74057         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74058         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74059         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74060
74061 2005-09-02  Bruno Haible  <bruno@clisp.org>
74062
74063         * gnulib-tool (import): In the other first-use case, provide defaults
74064         as well.
74065
74066 2005-09-02  Bruno Haible  <bruno@clisp.org>
74067
74068         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74069         patches not yet found in the latest gettext release.
74070
74071 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74072
74073         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74074         to avoid a collision with bits/local_lim.h in glibc.
74075         All uses changed.  Problem reported by Dmitry V. Levin in
74076         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74077
74078         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74079         bugs in int versus size_t comparisons.
74080         (re_string_context_at): Fix bug where the code assumed that
74081         Idx is signed.
74082
74083         Use bool where appropriate.
74084         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74085         All callers changed.
74086         (calc_eclosure_iter): Likewise, for ROOT arg.
74087         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74088         (build_charclass_op): Likewise, for NON_MATCH arg.
74089         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74090         (re_string_construct_common): Likewise, for ICASE arg.
74091         * lib/regexec.c (re_search_2_stub, re_search_stub):
74092         Likewise, for RET_LEN arg.
74093         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74094         (set_regs): Likewise, for FL_BACKTRACK arg.
74095         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74096         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74097         (calc_eclosure_iter, parse_bracket_exp):
74098         Use bool for internal variables that are booleans.
74099         * lib/regexec.c (re_search_internal, check_matching,
74100         proceed_next_node):
74101         (set_regs, build_sifted_states, sift_states_bkref):
74102         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74103         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74104         (find_collation_sequence_value):
74105         Likewise.
74106         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74107         (re_node_set_compare):
74108         Return bool, not int. All callers changed.
74109         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74110         (build_trtable, check_node_accept): Likewise.
74111         * lib/regex_internal.h: Include stdbool.h.
74112
74113         Fix bugs uncovered when converting to bool.
74114         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74115         failure instead of charging ahead blindly.
74116         * lib/regex_internal.c (register_state): Likewise.
74117         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74118         for freeing internal storage.
74119         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74120         bitset pieces used as boolean, to avoid undefined behavior
74121         on hosts that do int overflow checking.
74122
74123 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74124
74125         * config/srclist.txt: Add glibc bugs 1285-1287.
74126
74127 2005-09-01  Jim Meyering  <jim@meyering.net>
74128
74129         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
74130         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
74131         Require gl_STAT_MACROS, too.
74132
74133 2005-09-01  Bruno Haible  <bruno@clisp.org>
74134
74135         * gnulib-tool (import): In the first-use case, provide defaults.
74136
74137 2005-09-01  Bruno Haible  <bruno@clisp.org>
74138
74139         * gnulib-tool (func_import): Remove the .tmp files.
74140
74141 2005-09-01  Bruno Haible  <bruno@clisp.org>
74142
74143         * gnulib-tool (func_import): Fix handling of symbolic links.
74144
74145 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74146
74147         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
74148         old glibc regex code mishandles strings longer than 2**31 bytes.
74149         This patch fixes this when the regex code is used in gnulib
74150         (i.e., outside glibc).
74151
74152         This patch should not affect the use of the regex code inside
74153         glibc.  No doubt this problem also needs to be handled for glibc
74154         as well, but the result will be an incompatible change to the
74155         glibc ABI, and the old ABI will have to be supported too.  That
74156         can be the the subject for another patch.
74157
74158         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
74159         governing whether the rest of this patch is active.  By default,
74160         the macro is disabled and the patch has no effect.
74161         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
74162         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
74163         (struct re_pattern_buffer, re_search, re_search_2, re_match):
74164         (re_match_2, re_set_registers): Use the new types.
74165         * lib/regex_internal.h (Idx, re_hashval_t): New types.
74166         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
74167         New macros.
74168         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
74169         (re_string_context_at, bin_tree_t, re_dfastate_t):
74170         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
74171         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
74172         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
74173         (re_string_char_size_at, re_string_wchar_at):
74174         (re_string_elem_size_at):
74175         Use the new types and macros to port to 64-bit hosts.
74176         Use unsigned types for internal values, so that the code
74177         mostly works even for arrays larger than SSIZE_MAX.
74178         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74179         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74180         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74181         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74182         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74183         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74184         (calc_inveclosure, parse_dup_op, build_range_exp):
74185         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74186         (fetch_number, create_token_tree, mark_opt_subexp):
74187         Likewise.
74188         * lib/regex_internal.c (re_string_construct_common,
74189         create_ci_newstate):
74190         (create_cd_newstate, re_string_allocate, re_string_construct):
74191         (re_string_realloc_buffers, build_wcs_upper_buffer):
74192         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74193         (re_string_reconstruct, re_string_peek_byte_case):
74194         (re_string_fetch_byte_case, re_string_context_at):
74195         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74196         (re_node_set_init_copy, re_node_set_add_intersect):
74197         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74198         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74199         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74200         (re_acquire_state, re_acquire_state_context, register_state):
74201         Likewise.
74202         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74203         search_cur_bkref_entry):
74204         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74205         (re_search_internal, re_search_2_stub, re_search_stub)
74206         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
74207         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
74208         (update_cur_sifted_state, check_dst_limits):
74209         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74210         (check_subexp_limits, sift_states_bkref, merge_state_array):
74211         (check_subexp_matching_top, get_subexp, get_subexp_sub):
74212         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
74213         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74214         (expand_bkref_cache, check_node_accept_bytes):
74215         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
74216         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
74217         (acquire_init_state_context, check_halt_node_context):
74218         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
74219         (sift_states_backward, clean_state_log_if_needed):
74220         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
74221         (find_recover_state, transit_state_sb, transit_state_mb):
74222         (transit_state_bkref, build_trtable, match_ctx_clean):
74223         Likewise.
74224         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
74225         to work around an assumption that REG_MISSING is negative.
74226
74227         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
74228         (seek_collating_symbol_entry) [defined _LIBC]:
74229         (lookup_collation_sequence_value) [defined _LIBC]:
74230         (build_range_exp, build_collating_symbol) [defined _LIBC]:
74231         Use prototypes rather than old-style function definitions.
74232         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
74233         (transit_state_sb) [0]:
74234         (find_collation_sequence_value) [defined _LIBC]: Likewise.
74235
74236         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
74237         rm_eo.
74238
74239         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
74240         (optimize_subexps, lower_subexp):
74241         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
74242         since the signed shift might overflow.  Use 1u<<31 instead.
74243         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74244         Likewise.
74245         * lib/regexec.c (check_dst_limits_calc_pos_1,
74246         check_subexp_matching_top): Likewise.
74247
74248         * lib/regcomp.c (optimize_subexps, lower_subexp):
74249         Use CHAR_BIT rather than 8, for clarity.
74250         * lib/regexec.c (check_dst_limits_calc_pos_1):
74251         (check_subexp_matching_top): Likewise.
74252         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
74253         have to worry about portability issues when shifting it left.
74254         Remove no-longer-needed test for table_size > 0.
74255         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
74256         in a word, as the resulting behavior is undefined.
74257         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
74258         in one case, a <= should have been an <, and in another case the
74259         whole test was missing.
74260         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
74261         the standard name CHAR_BIT.
74262         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
74263         this is not true on one's complement and signed-magnitude hosts.
74264
74265         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
74266         next_last_offset.
74267         (struct re_dfa_t): Remove unused member states_alloc.
74268         * lib/regcomp.c (init_dfa): Don't initialize unused members.
74269
74270 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74271
74272         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
74273         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
74274         and large-file glibc and in 32-bit large-file Solaris.
74275
74276 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74277
74278         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
74279         lengths fit in regoff_t; this isn't true if regoff_t is the same
74280         width as size_t.
74281         * lib/regex.c (re_search_internal): 5th arg is LAST_START
74282         (= START + RANGE) instead of RANGE.  This avoids overflow
74283         problems when regoff_t is the same width as size_t.
74284         All callers changed.
74285         (re_search_2_stub): Check for overflow when adding the
74286         sizes of the two strings.
74287         (re_search_stub): Check for overflow when adding START
74288         to RANGE; if it occurs, substitute the extreme value.
74289
74290 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74291
74292         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
74293
74294 2005-08-31  Jim Meyering  <jim@meyering.net>
74295
74296         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
74297         a pointer-to-const.
74298         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
74299         (register_state): Likewise.
74300         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
74301         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74302         (group_nodes_into_DFAstates): Likewise.
74303
74304 2005-08-31  Jim Meyering  <jim@meyering.net>
74305
74306         * check-module: Add a FIXME comment.
74307
74308 2005-08-31  Eric Blake  <ebb9@byu.net>
74309
74310         * modules/unistd-safer (Files): Add unistd--.h.
74311         * modules/stdio-safer (Files): Add stdio--.h.
74312
74313 2005-08-31  Derek Price  <derek@ximbiot.com>
74314
74315         * lib/getdelim.c (getdelim): Return EOF on EOF.
74316         Reported by Larry Jones <lawrence.jones@ugs.com>.
74317
74318 2005-08-31  Bruno Haible  <bruno@clisp.org>
74319
74320         Avoid unnecessary diffs in the generated lib/Makefile.am.
74321         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
74322         the generated files.
74323         (func_import): Don't set cmd.
74324
74325 2005-08-31  Bruno Haible  <bruno@clisp.org>
74326
74327         * lib/strstr.c: Include <stddef.h>, for NULL.
74328         * lib/strcasestr.c: Likewise.
74329         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74330
74331 2005-08-31  Bruno Haible  <bruno@clisp.org>
74332
74333         * gnulib-tool: New option --macro-prefix.
74334         (func_import): Use macro_prefix.
74335         (import): Handle option --macro-prefix.
74336
74337 2005-08-31  Bruno Haible  <bruno@clisp.org>
74338
74339         * gnulib-tool (import): Rename most ac_* variables to cached_*.
74340         Also use new variables cached_lgpl, cached_libtool.
74341
74342 2005-08-31  Bruno Haible  <bruno@clisp.org>
74343
74344         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
74345         always instantiating them.
74346
74347 2005-08-31  Bruno Haible  <bruno@clisp.org>
74348
74349         * gnulib-tool (func_import): Read the previous cached settings
74350         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
74351         earlier added by gnulib but are now dropped. Warn when a gnulib file
74352         overwrites a non-gnulib file.
74353
74354 2005-08-31  Bruno Haible  <bruno@clisp.org>
74355
74356         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
74357         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
74358         projects that don't keep autogenerated files in CVS. Put into
74359         actioncmd only the specified modules, not the transitive closure.
74360
74361 2005-08-31  Bruno Haible  <bruno@clisp.org>
74362
74363         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
74364         Create directories that shall be filled.
74365         (import): Don't look for gl_* macros in configure.ac. Recurse across
74366         all directories containing a gnulib-cache.m4 files, if meaningful.
74367
74368 2005-08-31  Bruno Haible  <bruno@clisp.org>
74369
74370         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
74371         (import): Set seen_libtool when we see gl_LIBTOOL.
74372
74373 2005-08-31  Bruno Haible  <bruno@clisp.org>
74374
74375         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
74376         declaration macro definitions from generated gnulib.m4.
74377
74378 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
74379
74380         * lib/iconvme.h: Add prototype for iconv_alloc.
74381
74382 2005-08-29  Simon Josefsson  <jas@extundo.com>
74383
74384         * lib/iconvme.c: Fix errno.
74385
74386 2005-08-29  Bruno Haible  <bruno@clisp.org>
74387
74388         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
74389         that it works when the directory contains spaces.
74390
74391 2005-08-29  Bruno Haible  <bruno@clisp.org>
74392
74393         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
74394
74395 2005-08-29  Bruno Haible  <bruno@clisp.org>
74396
74397         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
74398         Emit more advice.
74399
74400 2005-08-29  Bruno Haible  <bruno@clisp.org>
74401         and Stepan Kasal  <kasal@ucw.cz>
74402
74403         * check-module: If more parameters are given, check each of them
74404         separately; add more exceptions, as noted by Jim Meyering.
74405         (check_module): New procedure.
74406         (%exempt_header): Now contains all exceptions.
74407
74408 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
74409
74410         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
74411
74412 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74413
74414         * lib/iconvme.c: Split iconv_string into iconv_alloc.
74415
74416 2005-08-28  Bruno Haible  <bruno@clisp.org>
74417
74418         * m4/gnulib-tool.m4: New file.
74419
74420 2005-08-27  Jim Meyering  <jim@meyering.net>
74421
74422         * modules/unistd-safer (Files): Add pipe-safer.c.
74423         * modules/fcntl-safer (Files): Add creat-safer.c.
74424
74425 2005-08-27  Jim Meyering  <jim@meyering.net>
74426
74427         * m4/stdlib-safer.m4: New file.  From coreutils.
74428         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
74429         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
74430         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
74431         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
74432         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
74433
74434 2005-08-27  Jim Meyering  <jim@meyering.net>
74435
74436         * lib/fopen-safer.c: Merge minor changes from coreutils.
74437         * lib/dup-safer.c: Likewise.
74438         * lib/fd-safer.c: Likewise.
74439
74440         Merge from coreutils.
74441         * lib/stdio--.h: New file.
74442         * lib/stdlib--.h: New file.
74443         * lib/mkstemp-safer.c: New file.
74444
74445         GNU tar needs these.
74446         * lib/pipe-safer.c: New file.
74447         * lib/creat-safer.c: New file.
74448         * lib/fcntl--.h (creat): Define to creat_safer.
74449         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
74450         * lib/unistd--.h (pipe): Define to pipe_safer.
74451         * lib/unistd-safer.h: Declare pipe_safer.
74452
74453 2005-08-26  Simon Josefsson  <jas@extundo.com>
74454
74455         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
74456         Haible <bruno@clisp.org>.
74457
74458 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
74459
74460         * lib/regex_internal.h: Remove all references to
74461         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
74462         or better.
74463         (bitset_not, bitset_merge, bitset_not_merge):
74464         (bitset_mask, re_string_allocate, re_string_construct):
74465         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
74466         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
74467         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
74468         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
74469         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74470         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74471         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
74472         (re_acquire_state_context):
74473         Remove unnecessary forward decls.
74474         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
74475         Put __attribute at function definition,
74476         now that the function decl has been removed.
74477         * lib/regex_internal.c (re_string_peek_byte_case):
74478         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
74479         Likewise.
74480
74481 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
74482
74483         * m4/regex.m4: Add AC_PREREQ(2.50).
74484         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
74485
74486 2005-08-25  Simon Josefsson  <jas@extundo.com>
74487
74488         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
74489         __fsetlocking.
74490
74491 2005-08-25  Simon Josefsson  <jas@extundo.com>
74492
74493         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
74494         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
74495         GLIBC specific code.
74496
74497 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74498
74499         Make regex safe for g++.  This fixes one real bug (an "err"
74500         that should have been "*err").  g++ problem reported by
74501         Sam Steingold.
74502         * lib/regex_internal.h (re_calloc): New macro, consistent with
74503         re_malloc etc.  All callers of calloc changed to use re_calloc.
74504         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
74505         not int.  All callers changed.
74506         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
74507         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
74508         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
74509         (find_recover_state): Change "err" to "*err"; this fixes what
74510         appears to be a real bug.
74511         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
74512         versus int.
74513
74514 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74515
74516         * modules/regex (Depends-on): Add malloc, since the code
74517         assumes that !malloc(0) means failure.
74518
74519 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74520
74521         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
74522
74523         alloca modernization/simplification for regex.
74524         * lib/regex.c: Remove portability cruft for alloca.  This no longer
74525         needs to be at the start of the file, and can be moved into
74526         regex_internal.h and simplified.
74527         * lib/regex_internal.h: Include <alloca.h>.
74528         (__libc_use_alloca) [!defined _LIBC]: New macro.
74529         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
74530         now works outside glibc.
74531
74532 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74533
74534         * config/srclist.txt: Add glibc bugs 1241, 1245.
74535
74536 2005-08-25  Jim Meyering  <jim@meyering.net>
74537
74538         * lib/open-safer.c: Include <config.h>.
74539         Otherwise, we'd lose LARGEFILE support in any file using
74540         e.g. "fcntl--.h"
74541
74542 2005-08-25  Bruno Haible  <bruno@clisp.org>
74543
74544         * m4/minmax.m4: Require autoconf 2.52.
74545         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
74546         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
74547         alternatives of translit over the alphabet.
74548         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
74549
74550 2005-08-24  Simon Josefsson  <jas@extundo.com>
74551
74552         * tests/test-getpass.c: New file.
74553
74554 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74555
74556         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
74557         for GNU regex features.
74558
74559 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74560
74561         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
74562         * lib/regex.h (regerror): Likewise.
74563
74564         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
74565         requires this.  (The code never needed it.)
74566
74567         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
74568         All uses of recently-renamed identifiers changed to use the new,
74569         POSIX-compliant names.  The code will build and run just fine
74570         without these changes, but it's better to eat our own dog food
74571         and use the standard-conforming names.
74572
74573         * lib/regex.h: Fix a multitude of POSIX name space violations.
74574         These changes have an effect only for programs that define
74575         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
74576         do not change anything for programs compiled in the normal way.
74577         Also, there is no effect on the ABI.
74578
74579         (_REGEX_SOURCE): New macro.
74580         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
74581         defined and _GNU_SOURCE is not; this fixes a name space violation.
74582
74583         Rename the following macros to obey POSIX requirements.
74584         The old names are still visible as macros if _REGEX_SOURCE is defined.
74585         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
74586         RE_BACKSLASH_ESCAPE_IN_LISTS.
74587         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
74588         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
74589         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
74590         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
74591         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
74592         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
74593         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
74594         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
74595         (REG_INTERVALS): renamed from RE_INTERVALS.
74596         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
74597         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
74598         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
74599         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
74600         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
74601         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
74602         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
74603         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
74604         RE_UNMATCHED_RIGHT_PAREN_ORD.
74605         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
74606         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
74607         (REG_DEBUG): renamed from RE_DEBUG.
74608         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
74609         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
74610         unusual, since we can't clash with the POSIX REG_ICASE.
74611         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
74612         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
74613         (REG_NO_SUB): renamed from RE_NO_SUB.
74614         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
74615         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
74616         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
74617         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
74618         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
74619         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
74620         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
74621         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
74622         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
74623         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
74624         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
74625         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
74626         RE_SYNTAX_POSIX_MINIMAL_BASIC.
74627         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
74628         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
74629         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
74630         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
74631         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
74632         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
74633         (REG_FIXED): Renamed from REGS_FIXED.
74634         (REG_NREGS): Renamed from RE_NREGS.
74635
74636         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
74637         of other REG_* macros, since POSIX says the user is allowed to
74638         #undef these macros selectively.
74639
74640         (reg_errcode_t): Update comment stating what other tables need
74641         to be consistent.
74642
74643         Rename the following enum values to obey POSIX requirements.
74644         The old names are still visible as macros.
74645         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
74646         is not defined, since GNU is supposed to be a superset of POSIX as
74647         much as possible, and since we want reg_errcode_t to be a signed
74648         type for implementation consistency.
74649         (_REG_NOERROR): Renamed from REG_NOERROR.
74650         (_REG_NOMATCH): Renamed from REG_NOMATCH.
74651         (_REG_BADPAT): Renamed from REG_BADPAT.
74652         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
74653         (_REG_ECTYPE): Renamed from REG_ECTYPE.
74654         (_REG_EESCAPE): Renamed from REG_EESCAPE.
74655         (_REG_ESUBREG): Renamed from REG_ESUBREG.
74656         (_REG_EBRACK): Renamed from REG_EBRACK.
74657         (_REG_EPAREN): Renamed from REG_EPAREN.
74658         (_REG_EBRACE): Renamed from REG_EBRACE.
74659         (_REG_BADBR): Renamed from REG_BADBR.
74660         (_REG_ERANGE): Renamed from REG_ERANGE.
74661         (_REG_ESPACE): Renamed from REG_ESPACE.
74662         (_REG_BADRPT): Renamed from REG_BADRPT.
74663         (_REG_EEND): Renamed from REG_EEND.
74664         (_REG_ESIZE): Renamed from REG_ESIZE.
74665         (_REG_ERPAREN): Renamed from REG_ERPAREN.
74666         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
74667         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
74668         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
74669         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
74670
74671         (_REG_RE_NAME, _REG_RM_NAME): New macros.
74672         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
74673         changed.  But support the old name if the new one is not defined
74674         and if _REGEX_SOURCE.
74675
74676         Change the following member names in struct re_pattern_buffer.
74677         The old names are still supported if !_REGEX_SOURCE.
74678         The new names are always supported, regardless of _REGEX_SOURCE.
74679         (re_buffer): Renamed from buffer.
74680         (re_allocated): Renamed from allocated.
74681         (re_used): Renamed from used.
74682         (re_syntax): Renamed from syntax.
74683         (re_fastmap): Renamed from fastmap.
74684         (re_translate): Renamed from translate.
74685         (re_can_be_null): Renamed from can_be_null.
74686         (re_regs_allocated): Renamed from regs_allocated.
74687         (re_fastmap_accurate): Renamed from fastmap_accurate.
74688         (re_no_sub): Renamed from no_sub.
74689         (re_not_bol): Renamed from not_bol.
74690         (re_not_eol): Renamed from not_eol.
74691         (re_newline_anchor): Renamed from newline_anchor.
74692
74693         Change the following member names in struct re_registers.
74694         The old names are still supported if !_REGEX_SOURCE.
74695         The new names are always supported, regardless of _REGEX_SOURCE.
74696         (rm_num_regs): Renamed from num_regs.
74697         (rm_start): Renamed from start.
74698         (rm_end): Renamed from end.
74699
74700         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
74701         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
74702         Prepend __ to parameter names.
74703
74704         Undo yesterday's changes.
74705
74706 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74707
74708         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
74709         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
74710         lib/regex.c.
74711
74712 2005-08-24  Jim Meyering  <jim@meyering.net>
74713
74714         Sync from coreutils.
74715         * m4/fcntl-safer.m4: New file.
74716
74717         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
74718         and object files for this module.
74719
74720 2005-08-24  Jim Meyering  <jim@meyering.net>
74721
74722         Sync from coreutils.
74723         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
74724
74725 2005-08-24  Jim Meyering  <jim@meyering.net>
74726
74727         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
74728         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
74729
74730 2005-08-24  Jim Meyering  <jim@meyering.net>
74731
74732         * modules/fcntl-safer: New module.
74733         * modules/fts (Depends-on): Add fcntl-safer.
74734         * MODULES.html.sh (File descriptor based Input/Output):
74735         Add fcntl-safer.
74736
74737 2005-08-24  Bruno Haible  <bruno@clisp.org>
74738
74739         Support for unit test modules.
74740         * modules/README: Mention tests modules.
74741         * modules/TEMPLATE-TESTS: New file.
74742         * gnulib-tool: New options --extract-tests-module, --with-tests and
74743         --tests-base (unused for the moment).
74744         (testsbase, inctests): New variables.
74745         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
74746         (func_verify_module): Exclude TEMPLATE-TESTS.
74747         (func_verify_nontests_module, func_verify_tests_module): New functions.
74748         (func_get_dependencies): Add implicit dependency for tests modules.
74749         (func_get_tests_module): New function.
74750         (func_modules_transitive_closure): When --with-tests was specified,
74751         include the unit tests as well, unless explicitly avoided.
74752         (func_emit_lib_Makefile_am): Ignore the tests modules here.
74753         (func_emit_tests_Makefile_am): New function.
74754         (func_create_testdir): When --with-tests was specified, emit a
74755         tests/ directory.
74756         * MODULES.html.sh (Future developments): Update.
74757
74758 2005-08-24  Bruno Haible  <bruno@clisp.org>
74759
74760         * modules/tls-tests: New file.
74761         * tests/test-tls.c: New file, from GNU gettext.
74762
74763 2005-08-24  Bruno Haible  <bruno@clisp.org>
74764
74765         * modules/lock-tests: New file.
74766         * tests/test-lock.c: New file, from GNU gettext.
74767
74768 2005-08-24  Bruno Haible  <bruno@clisp.org>
74769
74770         * lib/lock.h: Add multiple inclusion guard.
74771         * lib/tls.h: Add multiple inclusion guard.
74772
74773 2005-08-24  Bruno Haible  <bruno@clisp.org>
74774
74775         * gnulib-tool: Add support for the --aux-dir option to
74776         --create-testdir, --create-megatestdir, --test, --megatest.
74777         (func_create_testdir, func_create_megatestdir): Optionally emit a
74778         AC_CONFIG_AUX_DIR directive.
74779         (create-testdir, create-megatestdir, test, megatest): Provide a
74780         default value for $auxdir.
74781
74782 2005-08-24  Bruno Haible  <bruno@clisp.org>
74783
74784         * gnulib-tool (import): Use compound statement instead of subshell
74785         where possible.
74786
74787 2005-08-24  Bruno Haible  <bruno@clisp.org>
74788
74789         * gnulib-tool (import): Change --aux-dir default to "build-aux".
74790
74791 2005-08-24  Bruno Haible  <bruno@clisp.org>
74792
74793         * gnulib-tool (func_version): Update.
74794
74795 2005-08-24  Bruno Haible  <bruno@clisp.org>
74796
74797         * gnulib-tool (func_import, func_create_testdir,
74798         func_create_megatestdir): Quote all autoconf macro arguments.
74799
74800 2005-08-24  Bruno Haible  <bruno@clisp.org>
74801
74802         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
74803         option --force, because --force causes the aclocal.m4 of each
74804         subdirectory to be newer than the corresponding config.h.in.
74805
74806 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74807
74808         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
74809         All contents moved to gl_REGEX.
74810         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
74811         assume that it does.
74812
74813 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74814
74815         * lib/regex.h (REG_NOSYS)
74816         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
74817         Define, since POSIX requires it as of 2001.
74818         (_REG_ENOSYS)
74819         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
74820         New private symbol, used to keep the enum signed in all cases.
74821         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
74822         Youngman in
74823         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
74824
74825         * lib/regex_internal.c (re_string_skip_chars, register_state):
74826         (calc_state_hash):
74827         Remove forward decls; no longer needed now that we use prototypes.
74828         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
74829         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
74830         (clean_state_log_if_needed): Likewise.
74831
74832 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74833
74834         * config/srclist.txt: Add glibc bugs 1231-1233.
74835
74836 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74837
74838         Fix problems reported by Sam Steingold in
74839         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
74840         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
74841         assumed that reg_errcode_t is a signed type, which is not
74842         necessarily true if _XOPEN_SOURCE is not defined.
74843         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
74844         since some compilers warn about it otherwise.
74845
74846 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74847
74848         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
74849         (init_word_char, create_initial_state, duplicate_node_closure):
74850         (fetch_token, peek_token_bracket, build_range_exp):
74851         (build_collating_symbol): Remove forward decls; no longer needed
74852         now that we use prototypes.
74853
74854         * lib/regcomp.c:
74855         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
74856         (re_compile_fastmap_iter, regcomp, regerror, regfree):
74857         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
74858         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
74859         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
74860         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
74861         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
74862         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
74863         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
74864         (build_range_exp, build_collating_symbol, parse_bracket_exp):
74865         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
74866         (build_charclass, build_charclass_op, fetch_number, create_tree):
74867         (create_token_tree, mark_opt_subexp, duplicate_tree):
74868         Use prototypes rather than old-style definitions.
74869
74870         * lib/regex_internal.c:
74871         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
74872         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
74873         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74874         (re_string_reconstruct, re_string_peek_byte_case):
74875         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
74876         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74877         (re_node_set_init_copy, re_node_set_add_intersect):
74878         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74879         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74880         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74881         (re_acquire_state, re_acquire_state_context, register_state):
74882         (create_ci_newstate, create_cd_newstate, free_state):
74883         Likewise.
74884         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
74885         re_search_2):
74886         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
74887         (re_search_internal, prune_impossible_nodes):
74888         (acquire_init_state_context, check_matching, static):
74889         (check_halt_node_context, check_halt_state_context, proceed_next_node):
74890         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
74891         (update_regs, sift_states_backward, build_sifted_states):
74892         (clean_state_log_if_needed, merge_state_array):
74893         (update_cur_sifted_state, add_epsilon_src_nodes):
74894         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
74895         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
74896         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
74897         (find_recover_state, check_subexp_matching_top, transit_state_mb):
74898         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
74899         (check_arrival, check_arrival_add_next_nodes):
74900         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74901         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74902         (check_node_accept_bytes, check_node_accept, extend_buffers):
74903         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
74904         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
74905         (sift_ctx_init):
74906         Likewise.
74907
74908         * lib/regex_internal.h:
74909         (re_string_allocate, re_string_construct, re_string_reconstruct):
74910         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
74911         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
74912         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
74913         (re_string_context_at, re_string_peek_byte_case):
74914         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
74915         is defined, since we now use prototypes always.
74916
74917         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
74918         C89 or better.  All uses removed.
74919
74920 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74921
74922         * config/srclist.txt: Add glibc bugs 1220-1227.
74923
74924 2005-08-20  Jim Meyering  <jim@meyering.net>
74925
74926         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
74927         of unused local, dfa.
74928
74929 2005-08-20  Bruno Haible  <bruno@clisp.org>
74930
74931         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
74932
74933 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74934
74935         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
74936         (re_node_set_insert_last, re_dfa_add_node):
74937         Rename local variables to avoid GCC shadowing warnings.
74938
74939 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74940
74941         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
74942         [defined lint]: Suppress bogus uninitialized-variable warnings.
74943
74944         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
74945         and let the caller return REG_ESPACE if out of space.  This
74946         removes an uninitialied-variable warning with GCC 4.0.1, and also
74947         avoids taking the address of a local variable.  All callers
74948         changed.
74949
74950 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74951
74952         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
74953         $LIBCSRC/posix/regexec.c.
74954         Add glibc bug 1217 for regcomp.c.
74955
74956 2005-08-19  Jim Meyering  <jim@meyering.net>
74957
74958         * lib/regexec.c (proceed_next_node): Redo local variables to
74959         avoid GCC shadowing warnings.
74960
74961 2005-08-18  Bruno Haible  <bruno@clisp.org>
74962
74963         * lib/strstr.c (strstr): Fix return value in multibyte case.
74964         * lib/strcasestr.c (strcasestr): Likewise.
74965
74966 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74967
74968         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
74969
74970 2005-08-17  Jim Meyering  <jim@meyering.net>
74971
74972         Make the %s format (seconds since the epoch) work for a negative
74973         number and when used with a zero-padded field width, e.g. %015s.
74974
74975         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
74976         label so that it precedes the code to set `digits'.  Otherwise,
74977         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
74978         print `00-22'.  Now, it prints `-0022', as it should.
74979
74980 2005-08-17  Bruno Haible  <bruno@clisp.org>
74981
74982         * modules/strstr (Files): Add m4/mbrtowc.m4.
74983         (Depends-on): Add mbuiter.
74984
74985 2005-08-17  Bruno Haible  <bruno@clisp.org>
74986
74987         * modules/strcasestr: New file.
74988         * MODULES.html.sh (String handling, based on ANSI C 89): Add
74989         strcasestr.
74990
74991 2005-08-17  Bruno Haible  <bruno@clisp.org>
74992
74993         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
74994
74995 2005-08-17  Bruno Haible  <bruno@clisp.org>
74996
74997         * modules/mbuiter: New file.
74998         * MODULES.html.sh (Extended multibyte and wide character utilities):
74999         Add mbuiter.
75000
75001 2005-08-17  Bruno Haible  <bruno@clisp.org>
75002
75003         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75004         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75005
75006 2005-08-17  Bruno Haible  <bruno@clisp.org>
75007
75008         * m4/strcasestr.m4: New file.
75009
75010 2005-08-17  Bruno Haible  <bruno@clisp.org>
75011
75012         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75013         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75014
75015 2005-08-17  Bruno Haible  <bruno@clisp.org>
75016
75017         * lib/strcasestr.h: New file.
75018         * lib/strcasestr.c: New file.
75019
75020 2005-08-17  Bruno Haible  <bruno@clisp.org>
75021
75022         * lib/strcasecmp.c: Use mbuiter.h.
75023
75024 2005-08-17  Bruno Haible  <bruno@clisp.org>
75025
75026         * lib/mbuiter.h: New file.
75027
75028 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75029
75030         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75031         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75032         and gl_GETOPT are both invoked via different paths (as happens
75033         with GNU tar CVS because it uses both argp and getopt), the former
75034         wins.
75035
75036 2005-08-16  Bruno Haible  <bruno@clisp.org>
75037
75038         * modules/tls: New file.
75039         * MODULES.html.sh (Multithreading): Add tls.
75040
75041 2005-08-16  Bruno Haible  <bruno@clisp.org>
75042
75043         * modules/strnlen1: New file.
75044         * MODULES.html.sh (String handling): Add strnlen1.
75045
75046 2005-08-16  Bruno Haible  <bruno@clisp.org>
75047
75048         * modules/strcase (Files): Add m4/mbrtowc.m4.
75049         (Depends-on): Add strnlen1, mbchar.
75050
75051 2005-08-16  Bruno Haible  <bruno@clisp.org>
75052
75053         * modules/mbiter: New file.
75054         * MODULES.html.sh (Extended multibyte and wide character utilities):
75055         Add mbiter.
75056
75057 2005-08-16  Bruno Haible  <bruno@clisp.org>
75058
75059         * modules/mbfile: New file.
75060         * MODULES.html.sh (Extended multibyte and wide character utilities):
75061         Add mbfile.
75062
75063 2005-08-16  Bruno Haible  <bruno@clisp.org>
75064
75065         * modules/mbchar: New file.
75066         * MODULES.html.sh (Extended multibyte and wide character utilities):
75067         New section.
75068
75069 2005-08-16  Bruno Haible  <bruno@clisp.org>
75070
75071         * m4/tls.m4: New file, from GNU gettext.
75072
75073 2005-08-16  Bruno Haible  <bruno@clisp.org>
75074
75075         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75076         always.
75077         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75078
75079 2005-08-16  Bruno Haible  <bruno@clisp.org>
75080
75081         * m4/mbiter.m4: New file.
75082
75083 2005-08-16  Bruno Haible  <bruno@clisp.org>
75084
75085         * m4/mbfile.m4: New file.
75086
75087 2005-08-16  Bruno Haible  <bruno@clisp.org>
75088
75089         * m4/mbchar.m4: New file.
75090
75091 2005-08-16  Bruno Haible  <bruno@clisp.org>
75092
75093         * lib/tls.h: New file, from GNU gettext.
75094         * lib/tls.c: New file, from GNU gettext.
75095
75096 2005-08-16  Bruno Haible  <bruno@clisp.org>
75097
75098         * lib/strnlen1.h: New file.
75099         * lib/strnlen1.c: New file.
75100
75101 2005-08-16  Bruno Haible  <bruno@clisp.org>
75102
75103         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75104         (mbi_init): Update.
75105         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75106         NUL byte, not after it.
75107
75108 2005-08-16  Bruno Haible  <bruno@clisp.org>
75109
75110         * lib/strcase.h (strcasecmp): Add note in comments.
75111         * lib/strncasecmp.c: Use code from strcasecmp.c.
75112         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75113         (strcasecmp): Work correctly in multibyte locales.
75114
75115 2005-08-16  Bruno Haible  <bruno@clisp.org>
75116
75117         * lib/mbiter.h: New file.
75118
75119 2005-08-16  Bruno Haible  <bruno@clisp.org>
75120
75121         * lib/mbfile.h: New file.
75122
75123 2005-08-16  Bruno Haible  <bruno@clisp.org>
75124
75125         * lib/mbchar.h: New file.
75126         * lib/mbchar.c: New file.
75127
75128 2005-08-16  Bruno Haible  <bruno@clisp.org>
75129
75130         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
75131         the valid ones. Makes the comparison operations transitive:
75132         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
75133         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
75134
75135 2005-08-15  Simon Josefsson  <jas@extundo.com>
75136
75137         * modules/ssize_t (License): Change to 'unlimited'.
75138
75139         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
75140
75141 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75142
75143         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
75144         Add comments for each pending glibc patch.
75145
75146 2005-08-15  Bruno Haible  <bruno@clisp.org>
75147
75148         * lib/regex.h (__restrict_arr): Don't define to __restrict if
75149         __cplusplus is defined.
75150
75151 2005-08-14  Jim Meyering  <jim@meyering.net>
75152
75153         Sync from coreutils.
75154
75155         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
75156         Use the hash-table-based cycle-detection code not just when
75157         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
75158         Reported by James Youngman in
75159         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
75160         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
75161         FTS_TIGHT_CYCLE_CHECK.
75162         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
75163         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
75164         once again.
75165         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
75166         * lib/fts.c (fd_safer): Remove decl.
75167         Include fcntl--.h rather than unistd-safer.h
75168         (fts_safe_changedir): Don't call fd_safer; no longer needed
75169         now that we include fcntl--.h.
75170
75171 2005-08-12  Simon Josefsson  <jas@extundo.com>
75172
75173         * modules/getndelim2: Use ssize_t module.
75174         * modules/getnline: Likewise.
75175         * modules/safe-read: Likewise.
75176         * modules/xreadlink: Likewise.
75177
75178         * modules/ssize_t: New file.
75179
75180 2005-08-12  Simon Josefsson  <jas@extundo.com>
75181
75182         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75183
75184 2005-08-12  Simon Josefsson  <jas@extundo.com>
75185
75186         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75187         ssize_t.
75188
75189 2005-08-12  Simon Josefsson  <jas@extundo.com>
75190
75191         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75192         readline, getdelim and check_version.
75193         (Support for systems lacking ISO C 99: Sizes of integer types):
75194         Add size_max.
75195
75196 2005-08-12  Bruno Haible  <bruno@clisp.org>
75197
75198         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75199
75200 2005-08-11  Simon Josefsson  <jas@extundo.com>
75201
75202         * modules/readline: New file.
75203
75204         * modules/strnlen (Files): Add strnlen.h.
75205
75206 2005-08-11  Simon Josefsson  <jas@extundo.com>
75207
75208         * m4/readline.m4: New file.
75209
75210 2005-08-11  Simon Josefsson  <jas@extundo.com>
75211
75212         * lib/readline.h, readline.c: New file.
75213
75214 2005-08-11  Simon Josefsson  <jas@extundo.com>
75215
75216         * doc/gnulib.texi (Initial import, Finishing touches): Mention
75217         gl_AVOID.
75218
75219 2005-08-11  Bruno Haible  <bruno@clisp.org>
75220
75221         * lib/strnlen.h (strnlen): Change parameter name to match comment.
75222
75223 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
75224
75225         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
75226
75227 2005-08-10  Simon Josefsson  <jas@extundo.com>
75228
75229         * tests/test-iconvme.c: New file.
75230
75231 2005-08-10  Simon Josefsson  <jas@extundo.com>
75232
75233         * m4/strnlen.m4: New file.
75234
75235         * m4/strndup.m4: Don't check for strnlen declaration, done in
75236         strnlen.m4.
75237
75238 2005-08-10  Simon Josefsson  <jas@extundo.com>
75239
75240         * lib/strndup.c: Use strnlen.h.
75241
75242         * lib/strnlen.h: New file.
75243
75244 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75245
75246         * README: Typos.
75247
75248 2005-08-02  Simon Josefsson  <jas@extundo.com>
75249
75250         * modules/readline: New file.
75251
75252 2005-08-02  Simon Josefsson  <jas@extundo.com>
75253
75254         * modules/getdelim: New file.
75255
75256         * modules/getline: Rewrite, don't use getndelim2.
75257
75258 2005-08-02  Simon Josefsson  <jas@extundo.com>
75259
75260         * m4/getline.m4: Separate out getdelim stuff into separate module.
75261
75262         * m4/getdelim.m4: New file.
75263
75264 2005-08-02  Simon Josefsson  <jas@extundo.com>
75265
75266         * lib/getline.h, getline.c: Rewrite.
75267
75268         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
75269
75270 2005-07-31  Bruno Haible  <bruno@clisp.org>
75271
75272         * lib/lock.h (gl_lock_initializer): New macro.
75273         (gl_lock_define_initialized): Use it.
75274         (gl_rwlock_initializer): New macro.
75275         (gl_rwlock_define_initialized): Use it.
75276         (gl_recursive_lock_initializer): New macro.
75277         (gl_recursive_lock_define_initialized): Use it.
75278
75279 2005-07-30  Karl Berry  <karl@gnu.org>
75280
75281         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
75282         Report from Ben Pfaff, regarding getopt.
75283
75284 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
75285
75286         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
75287         normal way.
75288         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
75289         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
75290         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
75291         (gl_GETOPT): Use the new macros.  Most of the implementation
75292         is moved to the new macros.  This is for programs like Emacs
75293         that don't want all the functionality of gl_GETOPT.
75294
75295 2005-07-26  Bruno Haible  <bruno@clisp.org>
75296
75297         * m4/lock.m4: Update from GNU gettext.
75298
75299 2005-07-26  Bruno Haible  <bruno@clisp.org>
75300
75301         * lib/lock.h: Update from GNU gettext.
75302         * lib/lock.c: Update from GNU gettext.
75303
75304 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
75305
75306         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
75307         obsolescent AC_TRY_RUN.  Include the default includes files, for
75308         'exit'.
75309
75310 2005-07-24  Bruno Haible  <bruno@clisp.org>
75311
75312         * modules/visibility: New file.
75313         * MODULES.html.sh (Misc): Add visibility.
75314
75315 2005-07-24  Bruno Haible  <bruno@clisp.org>
75316
75317         * m4/visibility.m4: New file.
75318
75319 2005-07-24  Bruno Haible  <bruno@clisp.org>
75320
75321         * doc/visibility.texi: New file.
75322
75323 2005-07-22  Bruno Haible  <bruno@clisp.org>
75324
75325         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
75326         $(ALLOCA_H), redundant through BUILT_SOURCES.
75327         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
75328         redundant through BUILT_SOURCES.
75329         * modules/byteswap (Makefile.am): Remove explicit dependency on
75330         $(BYTESWAP_H), redundant through BUILT_SOURCES.
75331         * modules/fnmatch (Makefile.am): Remove explicit dependency on
75332         $(FNMATCH_H), redundant through BUILT_SOURCES.
75333         * modules/getopt (Makefile.am): Remove explicit dependency on
75334         $(GETOPT_H), redundant through BUILT_SOURCES.
75335         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
75336         redundant through BUILT_SOURCES.
75337         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
75338         redundant through BUILT_SOURCES.
75339         * modules/stdbool (Makefile.am): Remove explicit dependency on
75340         $(STDBOOL_H), redundant through BUILT_SOURCES.
75341         * modules/stdint (Makefile.am): Remove explicit dependency on
75342         $(STDINT_H), redundant through BUILT_SOURCES.
75343         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
75344         Remove explicit dependency on $(SYSEXITS_H).
75345         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
75346
75347 2005-07-18  Simon Josefsson  <jas@extundo.com>
75348
75349         * lib/check-version.c (check_version): Accept identical versions too.
75350
75351 2005-07-18  Bruno Haible  <bruno@clisp.org>
75352
75353         * modules/lock: New file.
75354         * MODULES.html.sh (Multithreading): New section.
75355
75356 2005-07-18  Bruno Haible  <bruno@clisp.org>
75357
75358         * m4/lock.m4: New file, from GNU gettext.
75359
75360 2005-07-18  Bruno Haible  <bruno@clisp.org>
75361
75362         * lib/lock.h: New file, from GNU gettext.
75363         * lib/lock.c: New file, from GNU gettext.
75364
75365 2005-07-18  Bruno Haible  <bruno@clisp.org>
75366
75367         * lib/lock.h (gl_once_t): New type.
75368         (gl_once_define, gl_once): New macros.
75369         * lib/lock.c (fresh_once): New variable.
75370         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
75371         functions.
75372
75373 2005-07-16  Simon Josefsson  <jas@extundo.com>
75374
75375         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
75376         workaround, suggested by Bruno.
75377
75378 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75379
75380         * modules/xalloc (Depends-on): Add xalloc-die.
75381         * modules/xvasprintf (Depends-on): Add xalloc-die.
75382
75383 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75384
75385         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
75386         with a minor change.
75387
75388 2005-07-15  Bruno Haible  <bruno@clisp.org>
75389
75390         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
75391         When using lib/poll.c, define poll as rpl_poll.
75392
75393 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
75394
75395         * modules/argp (Depends-on): Remove unlocked-io.
75396
75397 2005-07-14  Derek Price  <derek@ximbiot.com>
75398
75399         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
75400         for glob symlink bug.
75401
75402 2005-07-14  Bruno Haible  <bruno@clisp.org>
75403
75404         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
75405         Instead, test for *_unlocked function declarations directly.
75406
75407 2005-07-11  Simon Josefsson  <jas@extundo.com>
75408
75409         * modules/size_max: New file.
75410
75411         * modules/xsize: Depend on size_max module for size_max.m4.
75412
75413 2005-07-11  Simon Josefsson  <jas@extundo.com>
75414
75415         * lib/size_max.h: New file.
75416
75417 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
75418
75419         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
75420         copyright symbol and the year.
75421         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
75422         (version_etc_va): Use parameterized copyright notice.
75423         Reword to conform to the current GNU coding standards.
75424
75425 2005-07-11  Karl Berry  <karl@gnu.org>
75426
75427         * doc/gnulib.texi (Quoting): new node.
75428         (Initial import): more info, from Patrice.
75429
75430 2005-07-11  Bruno Haible  <bruno@clisp.org>
75431
75432         * gnulib-tool (func_usage): Document option --avoid.
75433         (Command line options): Handle --avoid.
75434         (func_acceptable): New function.
75435         (func_modules_transitive_closure): Use it.
75436
75437 2005-07-11  Bruno Haible  <bruno@clisp.org>
75438
75439         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
75440         Reported by Jim Meyering.
75441
75442 2005-07-10  Bruno Haible  <bruno@clisp.org>
75443
75444         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
75445         Needed when size_t is smaller than 'unsigned int'.
75446         Reported by Paul Eggert.
75447
75448 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75449
75450         * modules/argp (Depends-on): Add unlocked-io
75451
75452 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75453
75454         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
75455         block of defines.
75456
75457 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75458
75459         * config/srclist.txt: Comment out regcomp.c, since we have a porting
75460         fix now.
75461
75462 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
75463         and Paul Eggert  <eggert@cs.ucla.edu>
75464
75465         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
75466         in wint_t, not wchar_t.  Remove now-unnecessary cast.
75467
75468 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75469
75470         * modules/regex (Files): Add lib/regex_internal.c,
75471         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
75472         (Depends-on): Add extensions.
75473         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
75474
75475 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75476
75477         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
75478         pathconf.
75479         * m4/same.m4 (gl_SAME): Likewise.
75480         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
75481
75482         * m4/regex.m4: Adjust to new libc regex implementation.
75483         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
75484         all the .c and .h parts of (the new) regex.
75485         Quote the m4 stuff better.
75486         Check for RE_ICASE bug of old gnulib.
75487         Check for REG_STARTEND of recent libc.
75488         Rename local variables from jm_* to gl_*.
75489         Quote operand of "test -f".
75490         Say "recent enough" version of libc, not "version 2".
75491         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
75492         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
75493         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
75494         Remove check for btowc, isascii.
75495         Require AM_LANGINFO_CODESET.
75496
75497 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75498
75499         * lib/regex.c, regex.h: Sync from libc.
75500         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
75501         * lib/regexec.c:
75502         New files, synced from libc, except that regex_internal.h
75503         currently has a small porting fix.
75504
75505 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75506
75507         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
75508         regex_internal.c, regexec.c.
75509         Add regex_internal.h too, but as a comment, since the libc version
75510         is currently broken in gnulib mode.
75511
75512 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75513
75514         Support programs like Emacs that use gnulib but not gettext.
75515         * MODULES.html.sh (Internationalization functions): Add gettext-h.
75516         * modules/gettext-h: New file.
75517         * modules/gettext (Files): Remove lib/gettext.h.
75518         (Depends-on): Add gettext-h.
75519         (Makefile.am): Remove lib_SOURCES.
75520         * modules/argmatch, modules/c-stack, modules/closeout:
75521         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
75522         * modules/execute, modules/file-type, modules/getaddrinfo:
75523         * modules/getopt, modules/human, modules/javacomp:
75524         * modules/javaexec, modules/mkdir-p, modules/obstack:
75525         * modules/openat, modules/pagealign_alloc, modules/pipe:
75526         * modules/quotearg, modules/regex, modules/rpmatch:
75527         * modules/unicodeio, modules/userspec, modules/version-etc:
75528         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
75529         * modules/xsetenv:
75530         Depend on gettext-h, not gettext.
75531
75532 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75533
75534         * gnulib-tool (func_import): Add support for 'public domain' license.
75535         * modules/alloca, modules/atexit, modules/memmove:
75536         Now public domain, not GPL.
75537         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
75538         * modules/realloc, modules/strerror, modules/strtod:
75539         Now LGPL, not GPL.
75540
75541 2005-07-05  Bruno Haible  <bruno@clisp.org>
75542
75543         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
75544         autoconf CVS. Needed for mingw.
75545
75546 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75547
75548         Remove the dependency of the strftime module on the tzset module.
75549         * modules/strftime (Depends-on): Remove dependency on tzset.
75550
75551 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75552
75553         Remove the dependency of the strftime module on the tzset module.
75554         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
75555         gl_FUNC_TZSET_CLOBBER.
75556
75557 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75558
75559         Remove the dependency of the strftime module on the tzset module.
75560         * lib/strftime.c (my_strftime)
75561         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
75562         Copy the input structure, to work around some of the bug with
75563         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
75564         Solaris releases, you should also use the tzset module, but we won't
75565         require it as a dependency any more since we don't want LGPLed code
75566         to depend on GPLed code.
75567
75568 2005-07-02  Jim Meyering  <jim@meyering.net>
75569
75570         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
75571         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
75572         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
75573         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
75574
75575 2005-07-02  Jim Meyering  <jim@meyering.net>
75576
75577         * lib/backupfile.c (backup_args): Change a `0' to NULL.
75578
75579 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75580
75581         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
75582         declares only 'struct timespec;' (!).
75583
75584 2005-07-01  Jim Meyering  <jim@meyering.net>
75585
75586         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
75587         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
75588         * lib/save-cwd.c, tempname.c:
75589         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75590         and don't include <sys/file.h>).
75591
75592 2005-06-29  Jim Meyering  <jim@meyering.net>
75593
75594         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
75595         type name.  Use the variable name instead.
75596         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
75597         Likewise.
75598
75599 2005-06-28  Simon Josefsson  <jas@extundo.com>
75600
75601         * modules/check-version (Files): Add check-version.m4.
75602
75603 2005-06-28  Simon Josefsson  <jas@extundo.com>
75604
75605         * m4/check-version.m4: New file, suggested by Jim Meyering
75606         <jim@meyering.net>.
75607
75608 2005-06-28  Simon Josefsson  <jas@extundo.com>
75609
75610         * lib/check-version.h, lib/check-version.c: New files.
75611
75612 2005-06-28  Simon Josefsson  <jas@extundo.com>
75613
75614         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
75615         collision with global variable.  Better indentation.  Don't
75616         increment buffer pointer beyond buffer end.  Based on comments
75617         from Paul Eggert <eggert@cs.ucla.edu>.
75618
75619         * lib/base64.h: Indent.
75620
75621 2005-06-28  Simon Josefsson  <jas@extundo.com>
75622
75623         * doc/gnulib.texi (Library version handling): New section.
75624
75625 2005-06-28  Jim Meyering  <jim@meyering.net>
75626
75627         * check-module (find_included_lib_files): Hard-code another
75628         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
75629         but modules/fts-lgpl (correctly) does not list those files.
75630
75631         * modules/canonicalize (Files): Add lib/pathmax.h.
75632
75633 2005-06-25  Simon Josefsson  <jas@extundo.com>
75634
75635         * modules/check-version: New file.
75636
75637 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
75638
75639         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
75640         initializer of struct addrinfo, as an indication that we don't
75641         care how many members the structure has.
75642
75643 2005-06-24  Derek Price  <derek@ximbiot.com>
75644         and Bruno Haible  <bruno@clisp.org>
75645
75646         Remove stat module & update lstat.
75647         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
75648         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75649         * m4/stat.m4: Remove this file.
75650
75651 2005-06-24  Derek Price  <derek@ximbiot.com>
75652         and Bruno Haible  <bruno@clisp.org>
75653
75654         Remove stat module & update lstat.
75655         * lib/stat.c: Remove this file...
75656         (slash_aware_lstat): ...moving this content and its support...
75657         * lib/lstat.c (rpl_lstat): ...into here.
75658         * lib/lstat.h: New file.
75659
75660 2005-06-24  Derek Price  <derek@ximbiot.com>
75661         and Bruno Haible  <bruno@clisp.org>
75662
75663         Remove stat module & update lstat.
75664         * config/srclist.txt (libc sources): Remove stat.
75665
75666 2005-06-24  Derek Price  <derek@ximbiot.com>
75667         and Bruno Haible  <bruno@clisp.org>
75668
75669         Remove stat module & update lstat.
75670         * MODULES.html.sh (stat): Remove.
75671         * MODULES.html: Regenerated.
75672         * modules/lstat (Description): Correct function name.
75673         (Files): Add "lstat.h".
75674         (Depends-on): Remove stat, add xalloc, stat-macros.
75675         * modules/stat: Remove this file.
75676         (Include): Add "lstat.h", remove <sys/stat.h>.
75677
75678 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
75679
75680         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
75681         (ranged_convert): Don't save conversion in a temporary struct.
75682         This causes a warning with GCC 4.0.0, and anyway in the typical
75683         case it's not worth the extra 100 bytes or so of code.
75684         (ranged_convert, __mktime_internal): When calling a function via a
75685         pointer P, use P () rather than (*P) (), as we now assume C89 or
75686         better.
75687
75688 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75689
75690         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
75691         "who -r" failed to give output.  Problem reported by Tim Waugh.
75692
75693         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
75694         (xcalloc): Use it to avoid needless tests.
75695         Problem reported by Jim Meyering.
75696
75697 2005-06-20  Derek Price  <derek@ximbiot.com>
75698
75699         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
75700         unnecessary for Autoconfs > 2.59c.
75701
75702 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75703
75704         * lib/argp.h (__option_is_short): Check upper limit of
75705         __key. Isprint() requires its argument to have the value
75706         of an unsigned char or EOF.
75707
75708 2005-06-16  Jim Meyering  <jim@meyering.net>
75709
75710         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
75711         when either N or S is zero.
75712
75713 2005-06-16  Derek Price  <derek@ximbiot.com>
75714
75715         * m4/bison.m4: Declare YACC & YFLAGS precious.
75716
75717 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
75718
75719         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
75720         multibyte string or pattern, fall back on unibyte matching.
75721         Problem reported by James Youngman.
75722
75723 2005-06-08  Bruno Haible  <bruno@clisp.org>
75724
75725         * modules/csharpcomp: New file.
75726         * MODULES.html.sh (C#): Add csharpcomp.
75727
75728 2005-06-08  Bruno Haible  <bruno@clisp.org>
75729
75730         * m4/csharpcomp.m4: New file, from GNU gettext.
75731
75732 2005-06-08  Bruno Haible  <bruno@clisp.org>
75733
75734         * lib/csharpcomp.h: New file, from GNU gettext.
75735         * lib/csharpcomp.c: New file, from GNU gettext.
75736         * lib/csharpcomp.sh.in: New file, from GNU gettext.
75737
75738 2005-06-08  Bruno Haible  <bruno@clisp.org>
75739
75740         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
75741         warning on mingw.
75742
75743 2005-06-07  Derek Price  <derek@ximbiot.com>
75744
75745         Sync from CVS.
75746         * lib/glob_.h: Indent nested #ifdef.
75747
75748 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75749
75750         Sync from coreutils.
75751         Use "file name" when talking about file names, instead of "filename"
75752         or "path", as per the GNU coding standards.
75753         * lib/mkdir-p.c: Renamed from makepath.c.
75754         (make_dir_parents): Renamed from make_path.  All callers changed.
75755         * lib/mkdir-p.h: Likewise.  All includers changed.
75756         * lib/filenamecat.c: Renamed from path-concat.c.
75757         (file_name_concat): Renamed from path_concat.  All callers changed.
75758         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
75759         * lib/filenamecat.h: Likewise.  All includers changed.
75760         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
75761         in comments or local variable names.
75762         * lib/basename.c: Likewise.
75763         * lib/canonicalize.c, canonicalize.h: Likewise.
75764         * lib/dirname.c, dirname.h: Likewise.
75765         * lib/euidaccess.c: Likewise.
75766         * lib/exclude.c: Likewise
75767         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
75768         * lib/fsusage.c, fsuage.h: Likewise.
75769         * lib/fts.c, fts_.h: Likewise.
75770         * lib/getcwd.c: Likewise.
75771         * lib/getloadavg.c: Likewise.
75772         * lib/mkstemp.c: Likewise.
75773         * lib/mountlist.c, mountlist.h: Likewise.
75774         * lib/openat.c, openat.h: Likewise.
75775         * lib/readlink-stub.c: Likewise.
75776         * lib/readutmp.c, readutmp.h: Likewise.
75777         * lib/rename.c: Likewise.
75778         * lib/rmdir.c: Likewise.
75779         * lib/same.c: Likewise.
75780         * lib/savedir.c: Likewise.
75781         * lib/stripslash.c: Likewise.
75782         * lib/tempname.c: Likewise.
75783         * lib/xreadlink.c: Likewise.
75784         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
75785         All uses changed.
75786         * lib/exclude.h: Likewise.
75787
75788         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
75789         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75790         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
75791         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75792         * lib/pathmax.h: Include <limits.h> unconditionally, since other
75793         files have been getting away with it for years (MORE/BSD 4.3
75794         is extinct now).
75795         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
75796         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75797
75798         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
75799         Define to 256, not 255, as per modern POSIX.
75800
75801 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75802
75803         Sync from coreutils.
75804         Use "file name" when talking about file names, instead of "filename"
75805         or "path", as per the GNU coding standards.
75806         * MODULES.html.sh: mkdir-p renamed from makepath.
75807         filenamecat renamed from path-concat.
75808         * modules/filenamecat: Renamed from modules/path-concat.
75809         (Files): filenamecat.h and filenamecat.c renamed from
75810         path-concat.h and path-concat.c.
75811         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
75812         (Include): filenamecat.h, not path-concat.h.
75813         * modules/mkdir-p: Renamed from modules/makepath.
75814         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
75815         makepath.c.
75816         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
75817         (Include): mkdir-p.h, not makepath.h.
75818
75819 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75820
75821         Sync from coreutils.
75822         * m4/mkdir-p.m4: Renamed from makepath.m4.
75823         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
75824         Rename files from makepath.c to mkdir-p.c, and from
75825         makepath.h to mkdir-p.h.
75826         * m4/filenamecat.m4: Renamed from path-concat.m4.
75827         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
75828         Rename files from path-concat.c to filenamecat.c,
75829         and from path-concat.h to filenamecat.h.
75830         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
75831         "file name" in local variables or comments.
75832         * m4/rename.m4: Likewise.
75833
75834 2005-06-01  Bruno Haible  <bruno@clisp.org>
75835
75836         * modules/csharpexec: New file.
75837         * MODULES.html.sh (C#): New section.
75838
75839 2005-06-01  Bruno Haible  <bruno@clisp.org>
75840
75841         * m4/csharp.m4: New file, from GNU gettext.
75842         * m4/csharpexec.m4: New file, from GNU gettext.
75843
75844 2005-06-01  Bruno Haible  <bruno@clisp.org>
75845
75846         * lib/csharpexec.h: New file, from GNU gettext.
75847         * lib/csharpexec.c: New file, from GNU gettext.
75848         * lib/csharpexec.sh.in: New file, from GNU gettext.
75849
75850 2005-05-31  Derek Price  <derek@ximbiot.com>
75851             Paul Eggert  <eggert@cs.ucla.edu>
75852
75853         Sync from cvs.
75854         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75855
75856 2005-05-31  Derek Price  <derek@ximbiot.com>
75857             Paul Eggert  <eggert@cs.ucla.edu>
75858
75859         Sync from cvs.
75860         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75861
75862 2005-05-29  Derek Price  <derek@ximbiot.com>
75863
75864         * config/srclist.txt (glob_.h, glob.c): Add these files.
75865
75866 2005-05-29  Derek Price  <derek@ximbiot.com>
75867
75868         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
75869         * modules/glob: New file.
75870         * modules/getlogin_r: Add link to POSIX spec in description.
75871
75872 2005-05-29  Derek Price  <derek@ximbiot.com>
75873             Paul Eggert  <eggert@cs.ucla.edu>
75874
75875         * m4/glob.m4: New file.
75876
75877 2005-05-29  Derek Price  <derek@ximbiot.com>
75878             Paul Eggert  <eggert@cs.ucla.edu>
75879
75880         * lib/glob_.h, lib/glob.c: New files.
75881
75882 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75883
75884         * modules/fts (Files): Remove m4/inttypes-pri.m4.
75885         * modules/fts-lgpl (Depends-on): Remove gettext.
75886
75887 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75888
75889         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
75890         and don't require gt_INTTYPES_PRI.
75891
75892 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75893
75894         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
75895
75896         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
75897         the configuration hassle isn't worth it.
75898         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
75899         (LONGEST_MODIFIER, PRIuMAX): Remove.
75900
75901 2005-05-27  Bruno Haible  <bruno@clisp.org>
75902
75903         * lib/getlogin_r.h: Remove second include of <stddef.h>.
75904
75905 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
75906
75907         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
75908         _POSIX_PTHREAD_SEMANTICS for Solaris.
75909
75910 2005-05-25  Derek Price  <derek@ximbiot.com>
75911
75912         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
75913
75914 2005-05-25  Derek Price  <derek@ximbiot.com>
75915             Paul Eggert  <eggert@cs.ucla.edu>
75916
75917         * modules/getlogin_r, m4/getlogin_r.m4: New files.
75918         * lib/getlogin_r.c, getlogin_r.h: New files.
75919
75920 2005-05-25  Bruno Haible  <bruno@clisp.org>
75921             Derek Price  <derek@ximbiot.com>
75922
75923         * lib/getlogin_r.h: Simplify API documentation.
75924
75925 2005-05-23  Derek Price  <derek@ximbiot.com>
75926
75927         * modules/minmax (Files): Add m4/minmax.m4.
75928         (configure.ac): Add gl_MINMAX.
75929
75930 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75931
75932         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
75933         so that unistd-safer.h (GPL'ed code) need not be included.
75934
75935 2005-05-22  Bruno Haible  <bruno@clisp.org>
75936
75937         * m4/minmax.m4: New file.
75938         Based on a patch by Derek Price <derek@ximbiot.com>.
75939
75940 2005-05-22  Bruno Haible  <bruno@clisp.org>
75941
75942         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
75943         (INT64_MIN): Fix definition.
75944         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
75945
75946         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
75947         NEED_SIGNED_INT_TYPES.
75948
75949         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
75950         HAVE_SYSTEM_INTTYPES.
75951
75952 2005-05-22  Bruno Haible  <bruno@clisp.org>
75953
75954         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
75955         Also include <sys/param.h> if it defines MIN, MAX.
75956         Based on a patch by Derek Price <derek@ximbiot.com>.
75957
75958 2005-05-21  Jim Meyering  <jim@meyering.net>
75959
75960         * modules/fts (Files): Add m4/inttypes-pri.m4.
75961         (Depends-on): Add lstat and remove gettext.  Alphabetize.
75962
75963 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75964
75965         New fts module.
75966         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
75967         (setup_dir, free_dir): New functions.
75968         (enter_dir, leave_dir): Define trivial
75969         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
75970         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
75971         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
75972         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
75973         Move to fts-cycle.c.
75974         (fts_open): Use setup_dir.
75975         (fts_close): Use free_dir.
75976         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
75977         This adds a label and some gotos, but the alternatives were messier.
75978         Check for memory allocation failure when entering a dir.
75979         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
75980         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
75981         (FTS): New member fts_cycle, that is a union that contains the
75982         old active_dir_ht and cycle_state.  All uses changed to mention
75983         fts_cycle.ht and fts_cycle.state.
75984         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
75985         fts.c, with the following changes:
75986         (setup_dir, free_dir): New functions.
75987         (enter_dir): Now returns bool.  Return true if successful, false
75988         if memory exhausted.  All callers changed.
75989         Do not bother partly cleaning up on
75990         memory allocation failure; that is free_dir's job.
75991         However, free ad if hash_insert fails, to avoid memory leak.
75992         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
75993         fts->fts_options to see which union member to use.
75994
75995 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75996
75997         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
75998         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
75999
76000 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76001
76002         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76003
76004 2005-05-20  Jim Meyering  <jim@meyering.net>
76005
76006         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76007         Now a macro, to pacify GCC.
76008
76009 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76010
76011         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76012         of -1.
76013
76014 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76015
76016         * lib/chown.c (rpl_chown): Return -1 on failure.
76017
76018 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76019
76020         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76021         Don't check for stddef.h.
76022         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76023         don't use its results.
76024         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76025         since we include them unconditionally.  Don't require
76026         AM_STDBOOL_H, since stdbool is a prerequisite.
76027         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76028         since we assume C89 or better.
76029         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76030         as we don't use their results.
76031         Don't check for fchdir, memmove, memset, strrchr, as we use
76032         them unconditionally.
76033         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76034         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76035
76036 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76037
76038         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76039         Include <stddef.h> unconditionally, since we assume C89 now.
76040         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76041         * lib/fts.c: Include fts_.h first, to check interface.
76042         Do not include intprops.h; no longer needed.
76043         Include cycle-check.h and hash.h, since fts_.h no longer does.
76044         Remove unnecessary casts of closedir to void.
76045         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76046         decide whether to decrement nlinks.
76047         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76048         (FTS): Use struct hash_table * instead of Hash_table, so that
76049         we no longer need to include hash.h here.
76050
76051 2005-05-18  Jim Meyering  <jim@meyering.net>
76052
76053         * modules/dirfd (License): Change to LGPL.  Most of the code
76054         is already in the public domain.
76055
76056 2005-05-18  Jim Meyering  <jim@meyering.net>
76057
76058         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76059         Reported by Yoann Vandoorselaere.
76060
76061 2005-05-17  Jim Meyering  <jim@meyering.net>
76062
76063         * m4/fts.m4: New file, from coreutils.
76064
76065 2005-05-17  Jim Meyering  <jim@meyering.net>
76066
76067         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76068
76069 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76070
76071         Sync from coreutils.
76072         * m4/unlinkdir.m4: New file.
76073
76074 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76075
76076         Sync from coreutils.
76077         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76078         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76079         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76080         White space changes only.
76081         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76082         special.
76083         * lib/yesno.c: Include getline.h, not ctype.h.
76084         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76085         Use getline to remove arbitrary restriction on response length.
76086
76087 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76088
76089         * config/srclist-update: Spell out "Street" in FSF postal
76090         mail address; this is the style the FSF seems to prefer.
76091
76092         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76093         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76094         this updates FSF postal mail address.
76095
76096         Sync from coreutils.
76097         * modules/unlinkdir: New file.
76098         * modules/yesno (Depends-on): Add getline.
76099         * MODULES.html.sh (File system functions): Add unlinkdir.
76100
76101 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76102
76103         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76104         lib/strsep.h:
76105         Change the initial comment to refer to GPL, not LGPL.
76106         gnulib-tool will change it to LGPL as needed.
76107
76108         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76109         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76110         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76111         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76112         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76113         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76114         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76115         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76116         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76117         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76118         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76119         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76120         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76121         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76122         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76123         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76124         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
76125         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
76126         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
76127         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
76128         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
76129         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
76130         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
76131         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
76132         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
76133         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
76134         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
76135         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
76136         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
76137         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
76138         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
76139         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
76140         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
76141         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
76142         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
76143         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
76144         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
76145         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
76146         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
76147         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
76148         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
76149         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
76150         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
76151         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
76152         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
76153         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
76154         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
76155         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
76156         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
76157         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
76158         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76159         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
76160         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
76161         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
76162         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
76163         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
76164         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
76165         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
76166         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
76167         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
76168         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
76169         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
76170         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
76171         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
76172         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
76173         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
76174         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
76175         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76176         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76177         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76178         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76179         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76180         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76181         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76182         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76183         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76184         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76185         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76186         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76187         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76188         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76189         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76190         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76191         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76192         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76193         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76194         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76195         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76196         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76197         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76198         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76199         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76200         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76201         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76202         lib/yesno.c, lib/yesno.h:
76203         Update FSF postal mail address.
76204
76205 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76206
76207         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
76208         tests/test-memmem.c, tests/test-stpncpy.c:
76209         Update FSF postal mail address.
76210
76211 2005-05-13  Bruno Haible  <bruno@clisp.org>
76212
76213         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
76214         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
76215         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
76216         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
76217         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
76218         Add support for 64-bit integers in the MSVC compiler.
76219
76220 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76221
76222         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
76223
76224 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
76225
76226         * gnulib-tool (func_import): Sort and uniquify recommended includes.
76227
76228 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
76229
76230         * doc/getdate.texi (General date syntax): Don't say that date
76231         date --iso-8601=ns generates acceptable dates; it doesn't yet.
76232         Problem reported by Nic Ferrier.
76233
76234 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76235
76236         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
76237         specified in ai_socktype. Fix invalid ai_protocol
76238         check. ai_protocol is usually set to 0 or depending on
76239         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
76240         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
76241         ai_socktype / ai_protocol in the returned addrinfo structure.
76242
76243 2005-05-10  Simon Josefsson  <jas@extundo.com>
76244
76245         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
76246         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76247
76248 2005-05-10  Karl Berry  <karl@gnu.org>
76249
76250         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
76251         (from http://www.gnu.org/licenses).
76252         * doc/COPYING.LIB: also rename to COPYING.LESSER.
76253         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
76254         fdl.texi suffices.
76255
76256 2005-05-10  Karl Berry  <karl@gnu.org>
76257
76258         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
76259         (COPYING.DOC): remove.
76260
76261         * config/srclist-update: new FSF address.
76262
76263 2005-05-10  Derek Price  <derek@ximbiot.com>
76264
76265         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
76266         possible.
76267
76268 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76269             Bruno Haible  <bruno@clisp.org>
76270
76271         * modules/inet_ntop: New file.
76272         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76273         inet_ntop.
76274
76275 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76276             Bruno Haible  <bruno@clisp.org>
76277
76278         * m4/inet_ntop.m4: New file.
76279
76280 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76281             Bruno Haible  <bruno@clisp.org>
76282
76283         * lib/inet_ntop.h: New file.
76284         * lib/inet_ntop.c: New file, from glibc with modifications.
76285
76286 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
76287
76288         * modules/time_r (License): Change to LGPL.
76289         * modules/extensions (License): Change to LGPL.  Actually,
76290         the license is more permissive than that, but currently gnulib-tool
76291         doesn't know how to handle more-permissive licenses.
76292
76293         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
76294         Problem reported by Dave Love.
76295
76296 2005-05-08  Jim Meyering  <jim@meyering.net>
76297
76298         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
76299         blank.
76300
76301 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76302
76303         * modules/argmatch (Depends-on): Add stdbool.
76304         * modules/backupfile (Depends-on): Likewise.
76305         * modules/chdir-long (Depends-on): Likewise.
76306         * modules/closeout (Depends-on): Likewise.
76307         * modules/cycle-check (Depends-on): Likewise.
76308         * modules/dirname (Depends-on): Likewise.
76309         * modules/fnmatch (Depends-on): Likewise.
76310         * modules/fsusage (Depends-on): Likewise.
76311         * modules/fwriteerror (Depends-on): Likewise.
76312         * modules/getcwd (Depends-on): Likewise.
76313         * modules/getloadavg (Depends-on): Likewise.
76314         * modules/hard-locale (Depends-on): Likewise.
76315         * modules/makepath (Depends-on): Likewise.
76316         * modules/mountlist (Depends-on): Likewise.
76317         * modules/nanosleep (Depends-on): Likewise.
76318         * modules/posixtm (Depends-on): Likewise.
76319         * modules/quotearg (Depends-on): Likewise.
76320         * modules/readtokens (Depends-on): Likewise.
76321         * modules/readtokens0 (Depends-on): Likewise.
76322         * modules/readutmp (Depends-on): Likewise.
76323         * modules/save-cwd (Depends-on): Likewise.
76324         * modules/strftime (Depends-on): Likewise.
76325         * modules/userspec (Depends-on): Likewise.
76326         * modules/utimecmp (Depends-on): Likewise.
76327         * modules/xgetcwd (Depends-on): Likewise.
76328         * modules/xnanosleep (Depends-on): Likewise.
76329         * modules/xstrtod (Depends-on): Likewise.
76330         * modules/yesno (Depends-on): Likewise.
76331
76332 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
76333
76334         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
76335         needless checks.
76336
76337 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76338
76339         Merge from coreutils.  Among other things,
76340         add bulletproofing for cases where stdin, stdout, or stderr are closed.
76341         * lib/fd-safer.c: New file.
76342         * lib/fcntl-safer.h, open-safer.c: Remove.
76343         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
76344         * lib/dup-safer.c: Include unistd-safer.h first.
76345         Don't include errno.h.
76346         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
76347         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
76348         * lib/file-type.c: Rely on file-type.h change.
76349         * lib/getloadavg.c: Include unistd-safer.h.
76350         (getloadavg): Use safer open.
76351         * lib/getusershell.c: Include "stdio-safer.h".
76352         (getusershell): Use safer fopen.
76353         * lib/long-options.c (long_options): Use NULL rather than 0.
76354         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
76355         'free'.
76356         * lib/modechange.c: Likewise.
76357         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
76358         (MODE_DONE): New constant.
76359         (struct mode_change): Remove 'next' member.
76360         (make_node_op_equals): New function; like the old one of the
76361         same name, except it allocates an array.
76362         (mode_compile, mode_create_from_ref): Use it.
76363         (mode_compile): Allocate result as an array, not a linked list.
76364         Parse octal string ourself, so that we catch mistakes like "+0".
76365         (mode_adjust): Arg is an array, not a linked list.
76366         * lib/modechange.c: Include stat-macros.h, xalloc.h.
76367         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
76368         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
76369         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
76370         Remove.  This is now stat-macros.h's job.
76371         (talloc): Remove.  All callers replaced by xalloc, so that
76372         our invokers don't have to worry about reporting memory failures.
76373         (make_node_op_equals): Remove.
76374         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76375         New constants.
76376         (struct mode_change): Moved here from modechange.h.
76377         (mode_append_entry): Remove.
76378         (mode_compile): Remove MASKED_OPS arg, since it encouraged
76379         apps to have incorrect behavior.  Use simpler algorithm for head
76380         and tail.  Don't futz with umask; that's now the job of mode_adjust.
76381         Detect more invalid usages rather than having somewhat-random behavior.
76382         Don't insert an "a=" action, as that leads to incorrect behavior.
76383         (mode_compile, mode_create_from_ref): Return NULL on error instead
76384         of an enum, since now there's only one way to have an error.  All
76385         callers changed.
76386         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
76387         at the correct time.  Simplify calculation of "+u" and its ilk.
76388         Don't mishandle "+X".
76389         (mode_free): Remove "register" and localize decls.
76390         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76391         (struct mode_change): Move to modechange.c; callers don't
76392         need to see this stuff.
76393         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
76394         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
76395         (mode_change, mode_adjust): Reflect the new signatures noted above.
76396         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
76397         that might redefine system include files.
76398         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
76399         (my_usleep): Use NULL rather than (void *) 0.
76400         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
76401         Use siginterrupt to specify that system calls should be interrupted.
76402         (rpl_nanosleep): Move initialization of suspended closer to call of
76403         my_usleep.
76404         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
76405         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
76406         (desirable_utmp_entry): New function.
76407         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
76408         using x2nrealloc, to simplify logic.
76409         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
76410         size calculation.  Do not assume utmp file is a regular file.
76411         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
76412         (READ_UTMP_CHECK_PIDS): New constant.
76413         * lib/save-cwd.c: Include unistd-safer.h.
76414         (save_cwd): Use fd_safer.
76415         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
76416         [!_LIBC] Include "stat-macros.h" instead.
76417         * lib/unistd-safer.h (fd_safer): New decl.
76418
76419 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76420
76421         * modules/getloadavg (Depends-on): Add unistd-safer.
76422         * modules/getusershell (Depends-on): Add stdio-safer.
76423         * modules/lstat (Depends-on): Remove xalloc.
76424         * modules/mkstemp (Depends-on): Add stat-macros.
76425         * modules/modechange (Depends-on): Remove xstrtol.
76426         Add stat-macros, xalloc.
76427         * modules/save-cwd (Depends-on): Add unistd-safer.
76428         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
76429         * modules/unistd-safer (Files): Add lib/fd-safer.c
76430         (Makefile.am): Remove lib_SOURCES.
76431
76432         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
76433         Remove fcntl-safer; unistd-safer supersedes it.
76434
76435 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76436
76437         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
76438         AC_HEADER_STAT.
76439         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
76440         (gl_PREREQ_CHOWN): Remove.
76441         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
76442         it.  Don't require AC_HEADER_STAT.
76443         (gl_PREREQ_LSTAT): Remove.
76444         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
76445         Don't require AC_HEADER_STAT.
76446         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
76447         (gl_PREREQ_RMDIR): Remove.
76448         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
76449         mention stat-macros.h or AC_HEADER_STAT, since we'll make
76450         the stat-macros module a prerequisite.
76451         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
76452         * m4/filemode.m4 (gl_FILEMODE): Likewise.
76453         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
76454         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
76455         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
76456         variable names.
76457         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
76458         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
76459         variable prefixes.
76460         * m4/fcntl-safer.m4: Remove.
76461         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
76462         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
76463         Invoke gl_PREREQ_FD_SAFER.
76464         (gl_PREREQ_FD_SAFER): New macro.
76465         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
76466         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
76467         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
76468         Remove duplicate call to AC_LIBOBJ(readutmp).
76469         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
76470
76471         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
76472         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
76473
76474 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76475
76476         * MODULES.html.sh (Misc): Add byteswap.
76477
76478 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76479
76480         * modules/getcwd (Depends-on): Add extensions.
76481         * modules/openat (Depends-on): Likewise.
76482
76483 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76484
76485         * modules/byteswap: New file.
76486
76487 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76488
76489         * m4/byteswap.m4: New file.
76490
76491 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76492
76493         * lib/byteswap_.h: New file.
76494
76495 2005-04-25  Karl Berry  <karl@gnu.org>
76496
76497         * m4/gettext.m4: Update from GNU gettext 0.14.4.
76498
76499 2005-04-25  Albert Chin  <china@thewrittenword.com>
76500
76501         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
76502         Toolkit C bug.
76503
76504 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
76505
76506         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
76507         (func_ln_if_changed): Remove forcibly for no error message
76508         in case file does not exist.
76509
76510 2005-04-19  Simon Josefsson  <jas@extundo.com>
76511
76512         * gnulib-tool (Options): Make --symlink mean --symbolic.
76513
76514 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
76515
76516         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
76517
76518 2005-04-16  Simon Josefsson  <jas@extundo.com>
76519
76520         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
76521
76522 2005-04-15  Simon Josefsson  <jas@extundo.com>
76523
76524         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
76525
76526 2005-04-15  Simon Josefsson  <jas@extundo.com>
76527
76528         * gnulib-tool: Rename --symlink to --symbolic.
76529
76530 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
76531
76532         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
76533         symbolic links to files instead of copying/moving.  Add --aux-dir,
76534         specifying directory relative --dir where auxiliary build tools
76535         are placed.
76536
76537 2005-04-14  Bruno Haible  <bruno@clisp.org>
76538
76539         * modules/allocsa (License): Change to LGPL.
76540         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76541
76542 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76543
76544         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
76545         that "UTC +1 second" continues to work.  Problem reported
76546         by Dmitry V. Levin.
76547         (relunit_snumber): New rule.
76548         (relunit): Use it.
76549
76550 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76551
76552         * lib/getdate.y (universal_time_zone_table): New constant.
76553         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
76554         universal_time_zone_table.
76555         (lookup_zone): Prefer universal_time_zone_table to
76556         local_time_zone_table, so that "GMT" time stamps are allowed in
76557         London during the summer.  Problem reported by Ian Abbott.
76558
76559 2005-04-12  Jim Meyering  <jim@meyering.net>
76560
76561         * lib/human.c (humblock): Set *options even when returning due to
76562         xstrtoumax conversion failure.  Thanks to a used-uninitialized
76563         warning from gcc-4.
76564
76565 2005-04-09  Jim Meyering  <jim@meyering.net>
76566
76567         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
76568         -Wuninitialized: initialize tm0.tm_year.
76569
76570 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
76571
76572         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
76573         count, since there's no maximum.  All uses changed.
76574         Add member dsts_seen.
76575         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
76576         not being INT_MAX.
76577         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
76578         Use pc_rels_seen to decide whther a date is absolute.
76579
76580         * lib/getdate.y (number): Don't overwrite year.
76581         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
76582         check.
76583
76584 2005-04-02  Simon Josefsson  <jas@extundo.com>
76585
76586         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
76587         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
76588
76589 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
76590
76591         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
76592         where no absolute path name can be longer than PATH_MAX.
76593
76594 2005-03-27  Jim Meyering  <jim@meyering.net>
76595
76596         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
76597
76598 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
76599
76600         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
76601         "one's complement" -> "ones' complement" in comment, as per Knuth.
76602         "value of type" -> "type or expression" in comment.
76603         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
76604
76605 2005-03-26  Jim Meyering  <jim@meyering.net>
76606
76607         Comment nits.
76608         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
76609         Correct typos: s/or/of/.
76610
76611 2005-03-26  Jim Meyering  <jim@meyering.net>
76612
76613         * modules/check-include-files: Move to ../ and rename to...
76614         * check-module: ...this.
76615
76616 2005-03-25  Jim Meyering  <jim@meyering.net>
76617
76618         * modules/xvasprintf (Files): Add xalloc.h.
76619
76620 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
76621
76622         * modules/gettext (Files): config/config.rpath ->
76623         build-aux/config.rpath
76624         * modules/iconv (Files): Likewise.
76625         Problem reported by Oskar Liljeblad.
76626
76627 2005-03-23  Jim Meyering  <jim@meyering.net>
76628
76629         * modules/check-include-files: New script to check for
76630         missing dependencies, multiple includes, etc.
76631
76632         * modules/c-strtold (Depends-on): Add xalloc.
76633         * modules/c-strtod (Depends-on): Add xalloc.
76634         * modules/hash (Depends-on): Add xalloc.
76635         (Files): Remove lib/xalloc.h.
76636
76637         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
76638         * modules/userspec (Files): Add lib/inttostr.h.
76639
76640 2005-03-23  Jim Meyering  <jim@meyering.net>
76641
76642         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
76643
76644 2005-03-22  Jim Meyering  <jim@meyering.net>
76645
76646         * modules/stat-macros: New module.
76647         * modules/canonicalize, modules/euidaccess, modules/file-type,
76648         * modules/filemode, modules/lchown, modules/makepath,
76649         * modules/rmdir, modules/stat: Depend on new stat-macros module
76650         rather than listing lib/stat-macros.h manually.
76651         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
76652
76653 2005-03-22  Jim Meyering  <jim@meyering.net>
76654
76655         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
76656
76657 2005-03-22  Bruno Haible  <bruno@clisp.org>
76658
76659         * config/srclist.txt: Replace target directory 'config' with
76660         'build-aux'.
76661         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
76662         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
76663         ../build-aux/.
76664
76665 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
76666
76667         * modules/chdir-long (Depends-on): Add mempcpy.
76668
76669         * modules/acl, modules/backupfile, modules/c-strtod,
76670         modules/c-strtold, modules/canon-host, modules/canonicalize,
76671         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
76672         modules/exclude, modules/exitfail, modules/file-type,
76673         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
76674         modules/getdate, modules/getline, modules/getpagesize,
76675         modules/getpass, modules/getugroups, modules/group-member,
76676         modules/hard-locale, modules/hash, modules/human, modules/idcache,
76677         modules/inttostr, modules/long-options, modules/makepath,
76678         modules/md5, modules/memcasecmp, modules/memcoll,
76679         modules/modechange, modules/mountlist, modules/path-concat,
76680         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
76681         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
76682         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
76683         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
76684         modules/strftime, modules/strndup, modules/strverscmp,
76685         modules/timespec, modules/unlocked-io, modules/userspec,
76686         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
76687         modules/yesno:
76688         Remove lib_SOURCES line from Makefile.am section, as this is now
76689         done automatically by the corresponding Autoconf macro.
76690
76691 2005-03-21  Jim Meyering  <jim@meyering.net>
76692
76693         Changes imported from coreutils.
76694
76695         * lib/cycle-check.c: Don't include xalloc.h.
76696
76697         * lib/path-concat.c: Don't include assert.h.
76698         (path_concat): Remove assertion that would have triggered
76699         for ABASE starting with more than one slash.
76700         Reported by Andreas Schwab.
76701
76702         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
76703         properly when ABASE is an absolute file name.
76704         Correct the description of this function.
76705         Include <assert.h>.
76706         Add an assertion and a test driver.
76707         This fixes a bug introduced on 2004-07-02.
76708         Andreas Schwab reported the resulting failure of cp --parents:
76709         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
76710
76711 2005-03-21  Jim Meyering  <jim@meyering.net>
76712
76713         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
76714         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
76715
76716 2005-03-21  Jim Meyering  <jim@meyering.net>
76717         and  Paul Eggert  <eggert@cs.ucla.edu>
76718
76719         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
76720         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
76721         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
76722         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
76723         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
76724         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
76725         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
76726         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
76727         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
76728         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
76729         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
76730         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
76731         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
76732         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
76733         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
76734         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
76735         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
76736         for these modules.
76737
76738 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
76739
76740         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
76741         (which shouldn't happen), generate nothing instead of returning 0
76742         immediately, so that nstrftime (NULL, ...) doesn't return 0.
76743
76744 2005-03-16  Bruno Haible  <bruno@clisp.org>
76745
76746         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
76747         HAVE_LONGLONG_64BIT.
76748
76749 2005-03-16  Bruno Haible  <bruno@clisp.org>
76750
76751         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
76752         HAVE_LONGLONG_64BIT.
76753
76754 2005-03-16  Bruno Haible  <bruno@clisp.org>
76755
76756         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
76757         HAVE_LONGLONG_64BIT.
76758
76759 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76760
76761         * lib/strftime.c (my_strftime): Prepend space to format so that we can
76762         reliably distinguish strftime failure from empty output on POSIX
76763         hosts.
76764
76765 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76766
76767         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
76768         (iconv_string): Don't guess a size-zero buffer, as that might cause
76769         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
76770         result would be 'too large', where 'too large' is (heuristically)
76771         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
76772         overflow concerns.  This will prevent some unwanted malloc failures
76773         when the inputs are very large.
76774
76775 2005-03-15  Karl Berry  <karl@gnu.org>
76776
76777         * config/srclist.txt (config.rpath): from gettext.
76778         * config/config.rpath: update.
76779
76780 2005-03-15  Bruno Haible  <bruno@clisp.org>
76781
76782         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
76783         to 'negate'.
76784
76785         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
76786         variable.
76787
76788         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
76789         results.
76790
76791 2005-03-14  Simon Josefsson  <jas@extundo.com>
76792
76793         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
76794         <fx@gnu.org>.
76795
76796 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
76797
76798         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
76799         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
76800         intprops.h.
76801         * lib/strtol.c: Likewise.
76802
76803 2005-03-14  Jim Meyering  <jim@meyering.net>
76804
76805         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
76806         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
76807         to be nonzero so that we (and caller) can detect the difference
76808         between a valid zero-length expansion and an error return, even
76809         when the underlying strftime fails before writing anything into
76810         that location.
76811
76812 2005-03-14  Bruno Haible  <bruno@clisp.org>
76813
76814         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
76815         Update from GNU gettext 0.14.3.
76816
76817 2005-03-10  Jim Meyering  <jim@meyering.net>
76818
76819         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
76820
76821 2005-03-10  Jim Meyering  <jim@meyering.net>
76822
76823         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
76824         so that this module works on systems without fchdir.
76825
76826 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
76827
76828         Factor int-properties macros into a single file, except for
76829         glibc-related files.
76830         * lib/intprops.h: New file.
76831         * lib/getloadavg.c: Include it instead of limits.h.
76832         (INT_STRLEN_BOUND): Remove.
76833         * lib/human.c: Include intprops.h.
76834         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
76835         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
76836         302/1000.
76837         * lib/inttostr.h: Include intprops.h instead of limits.h.
76838         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
76839         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
76840         for consistency with intprops.h.
76841         (time_t_is_integer, twos_complement_arithmetic): Use them.
76842         * lib/sig2str.h: Include <signal.h>, intprops.h.
76843         (INT_STRLEN_BOUND): Remove.
76844         * lib/strftime.c (TYPE_SIGNED): Remove.
76845         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
76846         * lib/strtol.c: Adjust comments to match intprops.h.
76847         * lib/userspec.c: Include intprops.h.
76848         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
76849         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
76850         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
76851         instead of rolling our own expressions.
76852         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
76853
76854         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
76855         instead of int.
76856         (my_strftime): Do not mishandle years close to INT_MAX, by doing
76857         the right thing even if adding 1900 would overflow.  Similarly
76858         for tm_mon + 1 and tm_yday + 1.
76859         Make %Y always equivalent to %C%y, and similarly for %G and %g.
76860         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
76861         (DO_SIGNED_NUMBER): New macro.
76862         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
76863
76864 2005-03-07  Bruno Haible  <bruno@clisp.org>
76865
76866         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
76867
76868 2005-03-07  Bruno Haible  <bruno@clisp.org>
76869
76870         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
76871
76872 2005-03-04  Derek R. Price  <derek@ximbiot.com>
76873
76874         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
76875         (func_import): Only replace files via --import when they have actually
76876         changed.
76877
76878 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76879
76880         * m4/mmap-anon.m4: New file.
76881         * m4/pagealign_alloc.m4: New file.
76882
76883 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76884             Bruno Haible  <bruno@clisp.org>
76885
76886         * modules/pagealign_alloc: New file.
76887         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
76888
76889 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76890             Bruno Haible  <bruno@clisp.org>
76891
76892         * lib/pagealign_alloc.h: New file.
76893         * lib/pagealign_alloc.c: New file.
76894
76895 2005-03-03  Bruno Haible  <bruno@clisp.org>
76896
76897         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
76898         Use an all-permissive copyright notice, recommended by RMS.
76899
76900 2005-03-02  Bruno Haible  <bruno@clisp.org>
76901
76902         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
76903         of AIX, the replacement has to be done only after <string.h> is
76904         included, therefore not in config.h. stpncpy.h does the replacement,
76905         and stpncpy.c uses it.
76906
76907 2005-03-02  Bruno Haible  <bruno@clisp.org>
76908
76909         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
76910         stpncpy.c uses it.
76911
76912 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76913
76914         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
76915         The workaround isn't strictly needed for POSIX conformance, and
76916         it's too much of a pain to configure and maintain.  We'll ask
76917         people to fix their kernels instead.
76918         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
76919         (NANOSLEEP_BUG_WORKAROUND): Remove.
76920         (xnanosleep): Remove the workaround.
76921
76922 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76923
76924         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
76925         Reported by Derek Price.
76926         (Include): Add "timespec.h".
76927
76928         * modules/xnanosleep (Depends-on): Remove gethrxtime.
76929
76930 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76931
76932         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
76933         to detect nanosleep bug.
76934
76935 2005-03-01  Bruno Haible  <bruno@clisp.org>
76936
76937         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
76938
76939 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76940
76941         * modules/gethrxtime: New file.
76942         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
76943         (Depends-on): Add gethrxtime.
76944         (configure.ac): Add gl_XNANOSLEEP.
76945         (Makefile.am): Remove lib_SOURCES line.
76946
76947 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76948
76949         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
76950         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
76951
76952 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76953
76954         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
76955         * lib/timespec.h (gettime): Return void, since it always
76956         succeeds now.  All uses changed.
76957         * lib/gettime.c (gettime): Likewise.
76958         [HAVE_NANOTIME]: Prefer nanotime.
76959         Assume gettimeofday succeeds, as POSIX requires.
76960         Assime time () succeeds, since other code already does.
76961         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
76962         (timespec_subtract): Remove.
76963         (NANOSLEEP_BUG_WORKAROUND): New constant.
76964         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
76965         things considerably.  Use it only on GNU/Linux hosts, since the
76966         workaround shouldn't be needed elsewhere.
76967
76968 2005-02-24  Bruno Haible  <bruno@clisp.org>
76969
76970         * modules/gettext (Files): Add m4/glibc2.m4.
76971
76972 2005-02-24  Bruno Haible  <bruno@clisp.org>
76973
76974         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
76975         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
76976         * m4/progtest.m4:
76977         Update from GNU gettext 0.14.2.
76978         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
76979
76980 2005-02-24  Bruno Haible  <bruno@clisp.org>
76981
76982         * lib/localcharset.c: Update from GNU gettext 0.14.2.
76983         * lib/config.charset: Update from GNU gettext 0.14.2.
76984
76985 2005-02-24  Bruno Haible  <bruno@clisp.org>
76986
76987         * lib/gettext.h: Update from GNU gettext 0.14.2.
76988
76989 2005-02-23  Simon Josefsson  <jas@extundo.com>
76990
76991         * m4/iconvme.m4: New file.
76992
76993 2005-02-23  Jim Meyering  <jim@meyering.net>
76994
76995         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
76996         change.
76997         Thanks to Bruno Haible for catching it.
76998
76999 2005-02-22  Simon Josefsson  <jas@extundo.com>
77000
77001         * modules/iconvme: New file.
77002
77003         * MODULES.html.sh: Add iconvme.
77004
77005 2005-02-22  Simon Josefsson  <jas@extundo.com>
77006
77007         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77008
77009 2005-02-22  Simon Josefsson  <jas@extundo.com>
77010
77011         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77012
77013 2005-02-22  Jim Meyering  <jim@meyering.net>
77014
77015         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77016         s/ifndef/ifdef/.
77017
77018 2005-02-20  Neil Conway  <neilc@samurai.com>
77019
77020         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77021         returned by OSX/Darwin if the specified buffer is not large
77022         enough for the hostname.
77023
77024 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77025
77026         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77027         pass it to _help, otherwise the latter coredumps trying to
77028         dereference state.root_argp.
77029
77030 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77031
77032         * modules/chdir-long (Depends-on): Add memrchr.
77033         * modules/memrchr (Files): Add lib/memrchr.h.
77034         (Include): "memrchr.h".
77035
77036 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77037
77038         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77039
77040 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77041
77042         * lib/memrchr.h: New file.
77043         * lib/chdir-long.c: Include it.
77044         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77045         Don't bother including stddef.h.
77046
77047 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77048
77049         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77050         inclusion.
77051         Include <sys/types.h>, for dev_t.
77052         (ME_DUMMY, ME_REMOTE): Move from here....
77053         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77054         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77055         Dmitry V. Levin.
77056         Include mountlist.h first, to test the interface.
77057
77058 2005-01-29  Bruno Haible  <bruno@clisp.org>
77059
77060         * lib/progname.c (program_name): Initialize.
77061         Needed when linking statically on MacOS X.
77062
77063 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77064
77065         Sync from coreutils.
77066         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77067         (Depends-on): Add c-strtod.
77068         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77069
77070 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77071
77072         Sync from coreutils.
77073         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77074
77075         Remove files that are specific to coreutils.
77076         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77077
77078 2005-01-28  Bruno Haible  <bruno@clisp.org>
77079
77080         * modules/javacomp: New file.
77081         * MODULES.html.sh (Java): Add javacomp.
77082
77083 2005-01-28  Bruno Haible  <bruno@clisp.org>
77084
77085         * m4/javacomp.m4: New file, from GNU gettext.
77086
77087 2005-01-28  Bruno Haible  <bruno@clisp.org>
77088
77089         * lib/javacomp.sh.in: New file, from GNU gettext.
77090         * lib/javacomp.h: New file, from GNU gettext.
77091         * lib/javacomp.c: New file, from GNU gettext.
77092
77093 2005-01-26  Simon Josefsson  <jas@extundo.com>
77094
77095         * lib/gai_strerror.c: Use GPL in header.
77096
77097 2005-01-26  Bruno Haible  <bruno@clisp.org>
77098
77099         * modules/javaexec: New file.
77100         * MODULES.html.sh (Java): Add javaexec.
77101
77102 2005-01-26  Bruno Haible  <bruno@clisp.org>
77103
77104         * m4/javaexec.m4: New file, from GNU gettext.
77105
77106 2005-01-26  Bruno Haible  <bruno@clisp.org>
77107
77108         * lib/javaexec.sh.in: New file, from GNU gettext.
77109         * lib/javaexec.h: New file, from GNU gettext.
77110         * lib/javaexec.c: New file, from GNU gettext.
77111
77112 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77113
77114         * modules/lchown (Depends-on): Remove lchown.h
77115
77116 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77117
77118         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77119         must be defined if the header file was not found, in order
77120         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77121
77122 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77123
77124         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
77125         initializers for struct pentry_state.
77126         (__argp_error): Check return value of __asprintf
77127         (__argp_failure): Translate error message
77128
77129         * lib/argp-parse.c: Removed braces around the expansion of N_()
77130
77131 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77132
77133         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
77134         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
77135         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
77136         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
77137         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
77138         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
77139         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
77140         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
77141         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
77142         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
77143         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
77144         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
77145         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
77146         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
77147         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
77148         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
77149         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
77150         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
77151         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
77152         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
77153         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
77154         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
77155         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
77156         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
77157         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
77158         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
77159         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
77160         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
77161         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
77162         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
77163         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
77164         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
77165         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
77166         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
77167         xstrtol.m4, xstrtoumax.m4, yesno.m4:
77168         Use an all-permissive copyright notice, recommended by RMS.
77169
77170 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
77171
77172         * modules/chdir-long (Depends-on): Remove mempcpy.
77173
77174 2005-01-21  Jim Meyering  <jim@meyering.net>
77175
77176         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77177         same value as for Solaris 9.
77178
77179         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77180         component length.  This included changing the parameter to be
77181         of type `char *' rather than `char const *'.
77182         * lib/chdir-long.h (chdir_long): Update prototype.
77183
77184         * lib/openat.c (fdopendir, fstatat): New functions.
77185         * lib/openat.h: Include headers required for use of DIR and struct
77186         stat.
77187         [AT_SYMLINK_NOFOLLOW]: Define.
77188         (fdopendir, fstatat): Add prototypes.
77189
77190 2005-01-21  Bruno Haible  <bruno@clisp.org>
77191
77192         * modules/classpath: New file.
77193         * MODULES.html.sh (Java): Add classpath.
77194
77195 2005-01-21  Bruno Haible  <bruno@clisp.org>
77196
77197         * lib/classpath.h: New file, from GNU gettext.
77198         * lib/classpath.c: New file, from GNU gettext.
77199
77200 2005-01-20  Simon Josefsson  <jas@extundo.com>
77201
77202         * modules/version-etc-fsf: New file.
77203
77204 2005-01-20  Simon Josefsson  <jas@extundo.com>
77205
77206         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
77207         * lib/version-etc.c: Remove version_etc_copyright.
77208         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
77209         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
77210
77211 2005-01-20  Simon Josefsson  <jas@extundo.com>
77212
77213         * lib/base64.h (isbase64): Add.
77214
77215         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
77216         using a unsigned prototype, don't inline.
77217         (base64_decode): Use it.
77218
77219 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77220
77221         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
77222         it.
77223
77224 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77225
77226         * lib/save-cwd.c (save_cwd): Remove code to support the case
77227         where fchdir is missing or flaky.
77228
77229 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77230
77231         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
77232
77233 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
77234
77235         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
77236         AC_LIBSOURCES now does this.
77237         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
77238         with new ullong_max module.
77239
77240 2005-01-19  Bruno Haible  <bruno@clisp.org>
77241
77242         * modules/sh-quote: New file.
77243         * MODULES.html.sh (Executing programs): Add sh-quote.
77244
77245 2005-01-19  Bruno Haible  <bruno@clisp.org>
77246
77247         * lib/sh-quote.h: New file, from GNU gettext.
77248         * lib/sh-quote.c: New file, from GNU gettext.
77249
77250 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77251
77252         Merge from coreutils.
77253         * m4/ullong_max.m4: New file.
77254         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
77255         (gl_MACROS): Assume localeconv exists.
77256
77257 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77258
77259         Merge changes from coreutils, as described below in several
77260         changelogs dated today.
77261
77262         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
77263         (O_DIRECTORY): Remove; not needed here, since "." must be
77264         a directory.  All uses removed.
77265         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
77266         universal on Suns, and we also need to test for IRIX.
77267         Revamp code to use 'if' rather than '#if'.
77268         Avoid unnecessary comparison of cwd->desc to 0.
77269
77270         * lib/utimens.c (futimens): Robustify the previous patch, by checking
77271         for known valid error numbers rather than observed invalid ones.
77272
77273 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77274
77275         * modules/ullong_max: New file.
77276
77277         * modules/chdir-long, modules/openat: New files.
77278         * modules/save-cwd (Depends-on): Depend on chdir-long.
77279         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
77280
77281 2005-01-18  Jim Meyering  <jim@meyering.net>
77282
77283         Merge from coreutils.
77284         * m4/chdir-long.m4, m4/openat.m4: New files.
77285         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
77286         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
77287         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
77288         is sane and DOES follow symlinks.  Besides, testing 20 different
77289         systems found no broken chown implementations.
77290         Prompted by a change in rsync's copy of this macro.
77291         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
77292
77293         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
77294
77295         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
77296         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
77297         NULL-means-set-to-current-time semantics.
77298         Remove temporary file immediately, rather than waiting
77299         for configure's at-exit trap code to do it.
77300
77301 2005-01-18  Jim Meyering  <jim@meyering.net>
77302
77303         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77304
77305         * lib/utimens.c (futimens): Account for the fact that futimes
77306         can also fail with errno == ENOSYS or errno == ENOENT.
77307         Patch from Dmitry V. Levin.
77308
77309         Change the name of the robust chdir function from chdir to chdir_long.
77310         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
77311         (restore_cwd): Use chdir_long, not chdir.
77312         * lib/chdir-long.c: Renamed from chdir.c.
77313         * lib/chdir-long.h: Renamed from chdir.h.
77314         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
77315         Hurd.
77316
77317 2005-01-18  Bruno Haible  <bruno@clisp.org>
77318
77319         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
77320         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
77321         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
77322         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
77323         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
77324         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
77325         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
77326         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
77327         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
77328         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
77329         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
77330         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
77331         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
77332         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
77333         Use an all-permissive copyright notice, recommended by RMS.
77334
77335 2005-01-18  Bob Proulx  <bob@proulx.com>
77336
77337         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
77338         simplify offsetof() macro construct to avoid compile failure with
77339         native HP-UX 11.0 ANSI C compiler.
77340
77341 2005-01-17  Bruno Haible  <bruno@clisp.org>
77342
77343         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
77344         redundant because stpncpy.m4 takes care of it.
77345
77346 2005-01-17  Bruno Haible  <bruno@clisp.org>
77347
77348         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
77349
77350 2005-01-17  Bruno Haible  <bruno@clisp.org>
77351
77352         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
77353         used.
77354
77355 2005-01-17  Bruno Haible  <bruno@clisp.org>
77356
77357         * lib/fwriteerror.h (fwriteerror): Change specification to include
77358         fclose.
77359         * lib/fwriteerror.c: Include <stdbool.h>.
77360         (fwriteerror): At the end, close the file stream. Record whether
77361         stdout was already closed.
77362
77363 2005-01-17  Bruno Haible  <bruno@clisp.org>
77364
77365         * lib/execute.c (environ): Declare if needed.
77366         * lib/pipe.c (environ): Likewise.
77367         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
77368
77369 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77370
77371         * modules/argp: Depend on vsnprintf
77372
77373 2005-01-10  Jim Meyering  <jim@meyering.net>
77374
77375         * modules/closeout (Depends-on): Add atexit.
77376
77377 2005-01-06  Bruno Haible  <bruno@clisp.org>
77378
77379         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
77380
77381 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77382
77383         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
77384         definitions to be after all include files, to avoid collisions.
77385         Problem reported by Bob Proulx.
77386
77387 2005-01-04  Jim Meyering  <jim@meyering.net>
77388
77389         Changes imported from coreutils.
77390         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
77391         as the mkstemp template, use a temporary directory and an
77392         8.3-friendly template to avoid trouble on systems like DJGPP.
77393         Reported by Juan M. Guerrero via Stepan Kasal.
77394         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
77395         close. Remove the temporary directory right away, rather than waiting
77396         for configure's at-exit trap code to do it.
77397         Suggestion from Stepan Kasal.
77398
77399 2005-01-01  Simon Josefsson  <jas@extundo.com>
77400
77401         * gnulib-tool: Print #include directives when --import'ing.
77402
77403 2004-12-28  Simon Josefsson  <jas@extundo.com>
77404
77405         * tests/test-base64.c: Include required header files.  Remove
77406         unused variables.
77407
77408 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77409
77410         * modules/error (Depends-on): Remove gettext.
77411
77412 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77413
77414         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
77415         not needed.  This removes a dependency on the gettext module.
77416         [defined _LIBC]: Do not include <libintl.h>; not needed.
77417
77418 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77419
77420         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
77421         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
77422
77423 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77424
77425         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
77426         HAVE_DECL_STRTOLD.
77427
77428 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77429
77430         * modules/getdate (Depends-on): Remove alloca-opt.
77431
77432 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77433
77434         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
77435
77436 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77437
77438         * lib/argp-parse.c: Include <stddef.h>.
77439         (alignof, alignto): New macros.
77440         (parser_init): Don't assume that void * is aligned sufficiently
77441         for struct option.
77442
77443         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
77444         need to extend the stack.
77445         (YYINITDEPTH): New macro, so that the initial stack isn't overly
77446         large.
77447
77448 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77449
77450         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
77451
77452 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77453
77454         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
77455         (2004-10-24) change.  Apparently this was a false alarm.
77456
77457         * modules/getdate: Depend on alloca-opt, not alloca.
77458
77459 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77460
77461         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
77462         Remove now-obsolete comment about AIX.
77463         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
77464         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
77465         (YYMAXDEPTH): New macro.
77466
77467 2004-12-18  Simon Josefsson  <jas@extundo.com>
77468
77469         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
77470
77471 2004-12-18  Bruno Haible  <bruno@clisp.org>
77472
77473         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
77474
77475 2004-12-18  Bruno Haible  <bruno@clisp.org>
77476
77477         * lib/fatal-signal.c (fatal_signals): Make non-const.
77478         (init_fatal_signals): New function.
77479         (uninstall_handlers, install_handlers): Ignore signals that were set to
77480         SIG_IGN.
77481         (at_fatal_signal): Call init_fatal_signals.
77482         (init_fatal_signal_set): Likewise. Ignore signals that were set to
77483         SIG_IGN.
77484         Reported by Paul Eggert.
77485
77486 2004-12-18  Bruno Haible  <bruno@clisp.org>
77487
77488         * doc/alloca.texi: New file.
77489         * doc/alloca-opt.texi: New file.
77490
77491 2004-12-17  Jim Meyering  <jim@meyering.net>
77492
77493         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
77494         Otherwise, install-sh could exit with improper exit status when
77495         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
77496
77497 2004-12-16  Simon Josefsson  <jas@extundo.com>
77498
77499         * tests/test-base64.c: Add license.
77500
77501 2004-12-15  Stepan Kasal  <address@hidden>
77502
77503         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
77504
77505 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
77506
77507         * modules/getcwd (Files): Add m4/d-ino.m4.
77508         Suggested by Mark D. Baushke.
77509
77510 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77511
77512         * lib/getdate.y (textint): New member "negative".
77513         (time_zone_hhmm): New function.
77514         Expect 14 shift-reduce conflicts, not 13.
77515         (o_colon_minutes): New rule.
77516         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
77517         (yylex): Set the "negative" member of signed numbers.
77518
77519 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         * doc/getdate.texi (Time of day items, Time zone items):
77522         Describe new formats +00:00, UTC+00:00.
77523
77524 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77525
77526         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
77527         spurious "-l"s.  Problem reported by Stepan Kasal.
77528
77529 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
77530
77531         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
77532         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
77533
77534 2004-12-04  Simon Josefsson  <jas@extundo.com>
77535
77536         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
77537         Vandoorselaere <yoann@prelude-ids.org>.
77538
77539 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77540
77541         Changes imported from coreutils.
77542         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
77543         exist.
77544         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
77545
77546 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77547
77548         Changes imported from coreutils.
77549         * lib/hard-locale.c: Assume <locale.h> exists.
77550         Include "strdup.h".
77551         (GLIBC_VERSION): New macro.
77552         (hard_locale): Assume setlocale exists.
77553         Rewrite to avoid #ifdef.
77554         Use strdup rather than malloc + strcpy.
77555         * lib/human.c: Assume <locale.h> exists.
77556         (human_readable): Assume localeconv exists.
77557
77558 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77559
77560         * modules/hard-locale (Depends-on): Add strdup.
77561
77562 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
77563
77564         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
77565         convert T2, not T.  (Imported from libc.)
77566
77567 2004-11-30  Simon Josefsson  <jas@extundo.com>
77568
77569         * modules/restrict (License): Change to LGPL.
77570
77571 2004-11-30  Simon Josefsson  <jas@extundo.com>
77572
77573         * m4/restrict.m4: Add copyright and copying conditions.
77574
77575 2004-11-30  Simon Josefsson  <jas@extundo.com>
77576
77577         * m4/base64.m4: New file.
77578
77579 2004-11-30  Simon Josefsson  <jas@extundo.com>
77580
77581         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
77582         base64.
77583
77584         * tests/test-base64.c: New file.
77585
77586         * modules/base64: New file.
77587
77588 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77589
77590         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
77591         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
77592
77593         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
77594
77595 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77596
77597         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
77598         (__getcwd.c): Don't restore errno; glibc doesn't.
77599         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
77600         first, falling back to our code only if its results look suspicious.
77601         Ensure that the resulting buffer is only as large as necessary.
77602
77603         * lib/readutmp.c: Include readutmp.h first.
77604         Include <errno.h>, since readutmp.h no longer does that.
77605         * lib/readutmp.h: Don't include <errno.h>,
77606         <sys/param.h>, <time.h>; not needed to establish interface.
77607         (errno): Remove decl.
77608         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
77609         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
77610         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
77611
77612 2004-11-28  Simon Josefsson  <jas@extundo.com>
77613
77614         * lib/base64.h, base64.c: New file.
77615
77616 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
77617
77618         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
77619
77620 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
77621
77622         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
77623         (Depends-on): Remove pathmax, same.  Add mempcpy.
77624         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
77625         (Makefile.am): Append getcwd.h to lib_SOURCES.
77626         (Include): Add getcwd.h.
77627         (Maintainer): Change from Jim Meyering to "all, glibc",
77628         since getdate now uses intended-for-glibc code.
77629         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
77630         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
77631
77632 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77633
77634         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
77635         HP's ANSI C compiler.
77636         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
77637         Declaring int functions causes warnings on some modern systems and
77638         shouldn't be needed to compile on ancient ones.
77639         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
77640         defined.
77641
77642         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
77643         with the following changes.
77644         (__set_errno): Parenthesize properly.
77645         Include <stdbool.h>.
77646         (MIN, MAX, MATCHING_INO): New macros.
77647         (__getcwd): Define with prototype, not K&R form.
77648         Use heuristics to allocate default buffer on stack if possible.
77649         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
77650         behavior, and to avoid the PATH_MAX limit when computing
77651         ../../../../...
77652         Use MATCHING_INO to compare inode number to file.
77653         Check for arithmetic overflow in size calculations.
77654         Fix bug in reallocation of dot array that caused getcwd to fail
77655         on directories nested deeper than 75.
77656         Be more careful about saving errno on error.
77657         Do not use realloc; use only free+malloc, as this is a bit
77658         more flexible and avoids a needless copy operation.
77659         Do not inspect st_dev and st_ino for symbolic links; POSIX
77660         doesn't specify the latter.
77661         Check for closedir errors.
77662         Avoid needless casts.
77663         Use "#ifdef weak_alias" around weak_alias, to be like other
77664         glibc code.
77665         The following changes to getcwd.c have effect only when used in
77666         gnulib; they have no effect inside glibc proper.
77667         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
77668         as alloca isn't used.
77669         (alloca, __alloca): Likewise.
77670         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
77671         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77672         unconditionally, as gnulib assumes C89 or better.
77673         Do not include <sys/param.h>.
77674         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
77675         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
77676         better.
77677         (NULL) [!defined NULL]: Remove; we assume C89 or better.
77678         Include <dirent.h> in a way that is compatible with modern Autoconf.
77679         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
77680         New macros, if not already defined.
77681         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
77682         Use "_LIBC", not "defined _LIBC", for consistency.
77683         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
77684         a mempcpy module.
77685         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
77686         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
77687         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
77688         credit only to Jim Meyering and adjust the copyright dates.
77689         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
77690         <stdlib.h>, <unistd.h>, "pathmax.h".
77691         Instead, include "xgetcwd.h" (first) and "getcwd.h".
77692         (INITIAL_BUFFER_SIZE): Remove.
77693         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
77694
77695 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77696
77697         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
77698         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
77699         Use the _ONCE methods, for efficiency.
77700         Check for fcntl.h.  In test program, include <errno.h>
77701         and <fcntl.h> if available.  Remove old K&R cruft from
77702         test program.  Check for common errors in GNU/Linux,
77703         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
77704         don't do AC_LIBOBJ, as that's getcwd.m4's job.
77705         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
77706         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
77707         name accordingly.
77708         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
77709         accommodate new getcwd.c.
77710         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
77711         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
77712         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
77713         that's all we need now.
77714
77715 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77716
77717         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
77718         argp-parse.c depends on getopt internals, that means we should
77719         always use our getopt, to be on the safe side.
77720         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
77721         order not to spoil the result of an eventual previous invocation
77722         of gl_GETOPT_SUBSTITUTE.
77723
77724 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77725
77726         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
77727         redefinition warnings. To avoid them, include the defines
77728         in `#if !defined __need_getopt ... #endif'. The only place
77729         where __getopt_argv_const is used is in definitions
77730         of getopt_long and getopt_long_only below, which are as well
77731         protected by `#ifndef __need_getopt'.
77732         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
77733         __need_getopt after including <stdio.h> and <unistd.h> These
77734         headers might have defined it.
77735
77736 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77737
77738         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
77739
77740 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77741
77742         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
77743         (futimens): New function, which uses futimes if available.
77744         (futimens, utimens): Support timespec==NULL, with same semantics
77745         as utime and utimens.
77746         * lib/utimens.h (futimens): New decl.
77747
77748 2004-11-23  Jim Meyering  <jim@meyering.net>
77749
77750         * lib/getopt_.h: Remove trailing blanks.
77751
77752 2004-11-23  Jim Meyering  <jim@meyering.net>
77753
77754         * lib/__fpending.c: Add comment.
77755
77756 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
77757
77758         * modules/canonicalize (Depends-on): Add xreadlink.
77759         Problem reported by James Youngman.
77760
77761 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77762
77763         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
77764         New macros.
77765         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
77766         optopt): Use them instead of invoking ## directly; otherwise, the
77767         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
77768
77769 2004-11-19  Bruno Haible  <bruno@clisp.org>
77770
77771         * lib/strtok_r.c: Move comments from here...
77772         * lib/strtok_r.h: ... to here.
77773
77774 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77775
77776         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
77777         implementations that mishandle size_t overflow.
77778
77779 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77780
77781         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
77782         might fail.  Problem reported by Yoann Vandoorselaere.
77783         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
77784         implementations that mishandle size_t overflow.
77785
77786 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77787
77788         * modules/canon-host (Depends-on): Add strdup.
77789
77790 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77791
77792         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
77793
77794 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77795
77796         * lib/canon-host.c: Include "strdup.h".
77797         (canon_host): Use getaddrinfo if available, so that IPv6 works.
77798         Use strdup instead of malloc/strcpy to duplicate strings.
77799
77800         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
77801         (human_space_before_unit): New constant.
77802         * lib/human.c (human_readable): Support it.
77803
77804         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
77805         (xgetcwd): Set errno correctly when failing.
77806         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
77807         the failure is actually due to a PATH_MAX problem.
77808
77809         Further getopt changes to make it more likely that glibc will
77810         buy the changes back.
77811         * lib/getopt.c (POSIXLY_CORRECT): New constant.
77812         (getopt): Use it, so to preserve glibc semantic
77813         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
77814         when compiling for libc.
77815         * lib/getopt_.h (__getopt_argv_const): Bring it back.
77816         (getopt_long, getopt_long_only): Use it.
77817
77818         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77819         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
77820         (getopt): Argv is now char * const *, as per standard.
77821         (_getopt_internal_r, _getopt_internal): Argv is now char **,
77822         not char *__getopt_argv_const *.
77823         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77824         _getopt_long_only_r): Likewise.
77825         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
77826         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77827         _getopt_long_r, _getopt_long_only_r): Likewise.
77828         * lib/getopt_.h (__getopt_argv_const): Remove.
77829         (getopt): Argv is now char * const *, as per standard.
77830
77831         * lib/getdate.y (tORDINAL): New token.
77832         (day, relunit): Allow it for relative times.
77833         (relative_time_table): Use tORDINAL for ordinals.
77834
77835 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77836
77837         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
77838         Document that "second" isn't allowed as an ordinal number.
77839
77840 2004-11-16  Jim Meyering  <jim@meyering.net>
77841
77842         * modules/closeout (Depends-on): Add fpending.
77843
77844 2004-11-15  Jim Meyering  <jim@meyering.net>
77845
77846         * lib/closeout.c: Include "__fpending.h" once again.
77847         Include <stdbool.h>.
77848         (close_stdout): Don't fail just because stdout was closed initially,
77849         since some programs don't write to stdout in the normal course of
77850         operation (other than --version and --help), and we don't want this
77851         function to make e.g. `touch file >&-' fail.
77852         But do fail if it was closed and someone has tried to write to it.
77853         E.g., `printf foo >&-' must fail.
77854
77855 2004-11-13  Jim Meyering  <jim@meyering.net>
77856
77857         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
77858
77859 2004-11-12  Simon Josefsson  <jas@extundo.com>
77860
77861         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
77862         small doc fix is still pending.
77863
77864 2004-11-11  Simon Josefsson  <jas@extundo.com>
77865
77866         * modules/strtok_r: New file.
77867
77868         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77869         strtok_r.
77870
77871 2004-11-11  Simon Josefsson  <jas@extundo.com>
77872
77873         * m4/strtok_r.m4: New file.
77874
77875         * m4/getopt.m4: Replace opterr.
77876
77877 2004-11-11  Simon Josefsson  <jas@extundo.com>
77878
77879         * lib/strtok_r.h, strtok_r.c: New file.
77880
77881 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77882
77883         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
77884         of replacing opterr, getopt, etc.  This should handle the
77885         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
77886
77887 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77888
77889         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
77890         we can stop lying to compilers about the constness of argv when we
77891         are compiled outside glibc.
77892         (getopt, getopt_long, getopt_long_only): Use it.
77893         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77894         _getopt_internal, getopt): Likewise.
77895         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77896         _getopt_long_only_r): Likewise.
77897         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77898         _getopt_long_r, _getopt_long_only_r): Likewise.
77899
77900         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
77901         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
77902         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
77903         the other external symbols.
77904         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
77905         declaration, since the above renaming now works around collisions.
77906
77907 2004-11-11  Jim Meyering  <jim@meyering.net>
77908
77909         * lib/linebreak.c: Remove trailing blanks.
77910         * lib/alloca_.h: Likewise.
77911         * lib/acosl.c: Likewise.
77912         * lib/euidaccess.c: Likewise.
77913         * lib/allocsa.h: Likewise.
77914
77915 2004-11-10  Simon Josefsson  <jas@extundo.com>
77916
77917         * m4/getaddrinfo.m4: New file.
77918
77919 2004-11-10  Simon Josefsson  <jas@extundo.com>
77920
77921         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
77922
77923 2004-11-10  Simon Josefsson  <jas@extundo.com>
77924
77925         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77926         getaddrinfo.
77927
77928         * modules/getaddrinfo: New file.
77929
77930 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77931
77932         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
77933
77934 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77935
77936         * lib/mktime.c (SHR): New macro, which is a portable
77937         substitute for >> that should work even on Crays.
77938         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
77939         Problem reported by Mark D. Baushke in
77940         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
77941         * lib/getdate.y (SHR): Likewise.
77942         (tm_diff): Use it.
77943         * lib/strftime.c (SHR): Likewise.
77944         (tm_diff): Use it.
77945         * lib/quotearg.c (struct quoting_options): Use unsigned int for
77946         quote_these_too, so that right shifts are well defined.  All uses
77947         changed.
77948
77949 2004-11-10  Jim Meyering  <jim@meyering.net>
77950
77951         Ensure that no close failure goes unreported.
77952         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
77953         return early when it seems there's nothing to flush.
77954         Don't include __fpending.h.
77955
77956 2004-11-10  Jim Meyering  <jim@meyering.net>
77957
77958         * modules/closeout (Depends-on): Remove fpending.
77959
77960 2004-11-10  Jim Meyering  <jim@meyering.net>
77961
77962         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
77963
77964 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77965
77966         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
77967         gl_FUNC_STRFTIME.
77968         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
77969         and AC_REQUIRE when possible, to avoid duplicate checks.
77970         Check for <wchar.h>.
77971
77972 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77973
77974         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
77975
77976 2004-11-09  Bruno Haible  <bruno@clisp.org>
77977
77978         * m4/sockpfaf.m4: New file.
77979
77980 2004-11-05  Bruno Haible  <bruno@clisp.org>
77981
77982         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
77983         Reported by Mark D. Baushke <mdb@cvshome.org>.
77984
77985 2004-11-04  Bruno Haible  <bruno@clisp.org>
77986
77987         2004-09-11  Bruno Haible  <bruno@clisp.org>
77988                 * allocsa.valgrind: New file.
77989         2004-02-06  Bruno Haible  <bruno@clisp.org>
77990                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
77991                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
77992                 Reported by Christopher Seip <chris.seip@hp.com>.
77993
77994 2004-11-04  Bruno Haible  <bruno@clisp.org>
77995
77996         * modules/allocsa (Files): Add lib/allocsa.valgrind.
77997         (Makefile.am): Distribute it.
77998
77999 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78000
78001         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78002         with errno == ERANGE if the buffer is too small.
78003         Problem reported by Mark D. Baushke.
78004
78005 2004-11-03  Albert Chin  <china@thewrittenword.com>
78006             Paul Eggert  <eggert@cs.ucla.edu>
78007
78008         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78009         equivalent, substitute $ac_type for equivalent type rather than
78010         blindly using uint32_t *always* which won't work if uint32_t is not
78011         available.  Define _UINT32_T to work around typedef of uint32_t if
78012         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78013         2.5.1.
78014
78015 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78016
78017         * m4/jm-macros.m4: Sync from coreutils.
78018         (gl_MACROS): Check for mbrlen, for pathchk.
78019         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78020
78021 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78022
78023         * lib/xreadlink.c (MAXSIZE): New macro.
78024         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78025         size does not exceed MAXSIZE.  Avoid cast.
78026         As suggested by Mark D. Baushke in
78027         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78028         if readlink fails with buffer size just under MAXSIZE, try again
78029         with MAXSIZE.
78030
78031 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78032
78033         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78034
78035 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78036         and  Paul Eggert  <eggert@cs.ucla.edu>
78037
78038         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78039         (get_date): Overparenthesize to avoid GCC warning.
78040
78041 2004-11-02  Bruno Haible  <bruno@clisp.org>
78042
78043         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78044         returns void.
78045
78046 2004-11-02  Bruno Haible  <bruno@clisp.org>
78047
78048         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78049         function returns void.
78050
78051 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78052
78053         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78054         fflush_unlocked, flockfile, funlockfile, funlockfile,
78055         fputs_unlocked, putc_unlocked.
78056
78057 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78058
78059         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78060         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78061         already declared.
78062
78063 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78064
78065         * modules/getdate (Files): Add doc/getdate.texi.
78066         (Depends-on): Add setenv, xalloc.
78067
78068 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78069
78070         * lib/getdate.y: Add support for TZ="foo" within a date string.
78071         Fix some bugs near time_t boundaries.  Reject dates with
78072         out-of-range components, e.g., "Sept 31".
78073         Include <stdlib.h>, "setenv.h", "xalloc.h".
78074         (ISDIGIT_LOCALE): Remove; unused.
78075         Note that the TZ and time functions used here are not reentrant.
78076         (mktime_ok, get_tz): New functions.
78077         (TZBUFSIZE): New constant.
78078         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78079         This requires that we sometimes generate our own TZ="XXX..." setting.
78080
78081 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78082
78083         * doc/getdate.texi: New file, from coreutils with modifications for
78084         the new TZ parsing.
78085
78086 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78087
78088         * lib/mktime.c (not_equal_tm): Remove redundant check.
78089
78090 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78091
78092         * modules/regex (lib_SOURCES): Add regex.c.
78093         Reported by James Youngman in
78094         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78095
78096 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78097
78098         * lib/getdate.y: Use Bison 1.875 features, and some minor
78099         code cleanups.  This change does not affect semantics.
78100         Don't include <stdlib.h>; no longer needed.
78101         Don't include unlocked-io.h; only the "#if TEST" code uses
78102         stdio, and performance isn't crucial there.
78103         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78104         Bison 1.875 features as described below.
78105         All uses of "PC." replaced by "pc->".
78106         (YYSTYPE): Add a forward declaration.
78107         (yylex, yyerror): Use full prototypes in forward decls.
78108         Use "%pure-parser" rather than obsolescent "%pure_parser".
78109         Use %parse-param and %lex-param instead of obsolescent
78110         YYPARSE_PARAM and YYLEX_PARAM.
78111         (meridian_table, month_and_day_table, time_units_table,
78112         relative_time_table, time_zone_table, military_table,
78113         lookup_zone, lookup_word, get_date):
78114         Use NULL instead of 0 where appropriate.
78115         (to_hour): Avoid abort (), to avoid a dependency on
78116         stdlib.h.
78117         (yyerror, yylex): Now accepts parser_control * arg.
78118         (main) [TEST]: Use '\0' rather than 0 for char.
78119
78120 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78121
78122         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78123
78124 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78125
78126         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
78127         It's now the caller's responsibility to handle the case where
78128         !HAVE_GETPAGESIZE && !defined getpagesize.
78129
78130         * lib/mktime.c (leapyear): Arg is long int, not int.
78131
78132 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
78133
78134         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
78135
78136 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78137
78138         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
78139         missing.  Problem reported by James Youngman.
78140
78141 2004-10-16  Simon Josefsson  <jas@extundo.com>
78142
78143         * gnulib-tool: Fix comments.  Fix parse problem.
78144         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
78145
78146 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
78147
78148         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
78149         implementation of getopt_long.  Problem reported by Alexander Taler in:
78150         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
78151
78152 2004-10-15  Bruno Haible  <bruno@clisp.org>
78153
78154         * gnulib-tool: Untabify. Initialize supplied_libname.
78155         (func_usage): More homogenous output.
78156         (func_modules_transitive_closure, func_modules_to_filelist,
78157         func_emit_lib_Makefile_am): New functions.
78158         (func_import): New function, extracted from big case statement. Use
78159         func_get_license, func_modules_transitive_closure,
78160         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
78161         opt_lgpl. Don't use test -a, as it's not portable.
78162         (func_create_testdir): Use func_modules_transitive_closure,
78163         func_modules_to_filelist, func_emit_lib_Makefile_am.
78164
78165 2004-10-15  Bruno Haible  <bruno@clisp.org>
78166
78167         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
78168
78169 2004-10-15  Bruno Haible  <bruno@clisp.org>
78170
78171         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
78172         the portions belonging to each module.
78173         Suggested by Derek Robert Price <derek@ximbiot.com>.
78174
78175 2004-10-12  Simon Josefsson  <jas@extundo.com>
78176
78177         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78178         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78179         to real functions.
78180
78181 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78182
78183         * modules/vsnprintf: New file.
78184
78185 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78186
78187         * m4/vsnprintf.m4: New file.
78188
78189 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78190
78191         * lib/vsnprintf.h: New file.
78192         * lib/vsnprintf.c: New file.
78193
78194 2004-10-11  Bruno Haible  <bruno@clisp.org>
78195
78196         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78197         vsnprintf.
78198
78199 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78200
78201         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78202
78203 2004-10-07  Bruno Haible  <bruno@clisp.org>
78204
78205         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
78206         fits into the provided buffer.
78207
78208 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78209
78210         * lib/diacrit.c, diacrit.h: Add GPL notice.
78211
78212         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
78213         notice.
78214         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
78215         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
78216         This avoids a potential constant-folding bug.
78217
78218 2004-10-05  Bruno Haible  <bruno@clisp.org>
78219
78220         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
78221         for the declaration of strsep.
78222
78223 2004-10-05  Bruno Haible  <bruno@clisp.org>
78224
78225         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
78226
78227 2004-10-04  Simon Josefsson  <jas@extundo.com>
78228
78229         * modules/memmem: New file.
78230         * tests/test-memmem.c: New file.
78231         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
78232
78233 2004-10-04  Simon Josefsson  <jas@extundo.com>
78234
78235         * m4/memmem.m4: New file.
78236
78237 2004-10-04  Simon Josefsson  <jas@extundo.com>
78238
78239         * lib/memmem.h: New file.
78240         * lib/memmem.c: New file, taken from glibc.
78241
78242 2004-10-04  Simon Josefsson  <jas@extundo.com>
78243
78244         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
78245         '#ifdef USE_UNLOCKED_IO'.
78246
78247 2004-10-04  Simon Josefsson  <jas@extundo.com>
78248
78249         * config/srclist.txt: Add memmem from glibc.
78250
78251 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78252
78253         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
78254
78255         * modules/argmatch, modules/argp, modules/closeout, modules/error,
78256         modules/exclude, modules/getdate, modules/getline,
78257         modules/getndelim2, modules/getpass, modules/getpass-gnu,
78258         modules/getusershell, modules/linebuffer, modules/md5,
78259         modules/mountlist, modules/posixtm, modules/readtokens,
78260         modules/readutmp, modules/regex, modules/sha1,
78261         modules/version-etc, modules/yesno:
78262         Remove dependency on unlocked-io.
78263
78264 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78265
78266         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
78267
78268         * m4/unlocked-io.m4: Add copyright notice.
78269         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
78270
78271 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78272
78273         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
78274         * lib/xmalloc.c (xmemdup): Likewise.
78275         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
78276         XFREE): Remove these long-obsolescent macros.
78277         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
78278         * lib/xstrdup.c: Remove.
78279
78280         * lib/regex.c (re_comp): Cast gettext return value to char *,
78281         Problem reported by Martin Neitzel via Mark D. Baushke.
78282
78283 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78284
78285         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
78286         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
78287         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
78288         regex.c, sha1.c, version-etc.c, yesno.c:
78289         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
78290         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
78291         the includer's responsibility.
78292
78293         Sync from coreutils.
78294
78295         * lib/modechange.c (mode_compile): Don't decrement a pointer that
78296         points to the start of a string, as the C Standard says the
78297         resulting behavior is undefined.
78298
78299         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
78300         simple -> simple_backups, numbered_existing ->
78301         numbered_existing_backups, numbered -> numbered_backups
78302         to avoid shadowing problems.  All uses changed.
78303         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
78304         * lib/backupfile.c (check_extension, numbered_backup):
78305         Rename locals to avoid shadowing 'basename'.
78306         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
78307         once.
78308
78309         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
78310         * lib/.cvsignore: Add getopt.h.
78311
78312 2004-10-04  Bruno Haible  <bruno@clisp.org>
78313
78314         * modules/README: New file.
78315         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
78316         not a module.
78317
78318 2004-10-02  Jim Meyering  <jim@meyering.net>
78319
78320         * lib/dirfd.h, getpagesize.h: Add copyright notice.
78321
78322 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78323
78324         * modules/strsep: New file.
78325
78326 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78327
78328         * m4/strsep.m4: New file.
78329
78330 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78331
78332         * lib/strsep.h: New file.
78333         * lib/strsep.c: New file.
78334
78335 2004-10-01  Simon Josefsson  <jas@extundo.com>
78336
78337         * lib/snprintf.c (snprintf): Handle size==0.
78338
78339 2004-10-01  Simon Josefsson  <jas@extundo.com>
78340             Bruno Haible  <bruno@clisp.org>
78341
78342         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
78343         (snprintf): Declare 'args'.
78344
78345 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
78346
78347         * lib/snprintf.c: Remove comments as to why each header is needed.
78348
78349 2004-10-01  Bruno Haible  <bruno@clisp.org>
78350
78351         * MODULES.html.sh: Add strsep.
78352
78353 2004-09-30  Simon Josefsson  <jas@extundo.com>
78354
78355         * modules/snprintf: New file.
78356
78357 2004-09-30  Simon Josefsson  <jas@extundo.com>
78358
78359         * m4/snprintf.m4: New file.
78360
78361 2004-09-30  Simon Josefsson  <jas@extundo.com>
78362
78363         * lib/snprintf.h, lib/snprintf.c: New files.
78364
78365 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78366
78367         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
78368         (hol_entry_help): Never translate an empty string.
78369         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
78370         * lib/argp.h (OPTION_NO_TRANS): New option.
78371
78372 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78373
78374         * modules/argp (Maintainer): Replace Simon Josefsson
78375         by Sergey Poznyakoff.
78376
78377 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78378
78379         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
78380         changes merged back into glibc.
78381
78382 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78383
78384         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
78385
78386 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78387
78388         * lib/xvasprintf.c: Include xalloc.h.
78389         (xvasprintf): Use xalloc_die, not xmalloc_die.
78390
78391 2004-09-29  Bruno Haible  <bruno@clisp.org>
78392
78393         * modules/alloca-opt: New file, derived from modules/alloca.
78394         * modules/allocsa: Depend on alloca-opt instead of alloca.
78395         * modules/setenv: Likewise.
78396         * modules/vasnprintf: Likewise.
78397         * MODULES.html.sh: Add alloca-opt.
78398
78399 2004-09-28  Simon Josefsson  <jas@extundo.com>
78400
78401         * gnulib-tool: New parameter --lgpl, to asseert that modules are
78402         LGPL, and to replace license template from GPL to LGPL.
78403
78404 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78405
78406         * modules/dummy: Change license to LGPL.
78407
78408 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78409
78410         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
78411
78412 2004-09-24  Simon Josefsson  <jas@extundo.com>
78413
78414         * modules/minmax (License): Change from GPL to LGPL.
78415
78416 2004-09-23  Simon Josefsson  <jas@extundo.com>
78417
78418         * gnulib-tool (--import): Typo.
78419
78420 2004-09-23  Simon Josefsson  <jas@extundo.com>
78421
78422         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
78423
78424 2004-09-22  Bruno Haible  <bruno@clisp.org>
78425
78426         * modules/*: Add 'License' field.
78427         * gnulib-tool: Accept --extract-license option.
78428         (func_get_license): New function.
78429
78430 2004-09-21  Bruno Haible  <bruno@clisp.org>
78431
78432         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
78433         Reported by Simon Josefsson.
78434
78435 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78436
78437         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
78438         gl_AC_TYPE_LONG_LONG.
78439
78440 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78441
78442         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
78443
78444 2004-09-18  Simon Josefsson  <jas@extundo.com>
78445         and  Paul Eggert  <eggert@cs.ucla.edu>
78446
78447         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
78448         calls with autoreconf.  Define GL_LIB.
78449
78450 2004-09-14  Karl Berry  <karl@gnu.org>
78451
78452         * config/srclist.txt: unsync setenv.c, sigh.
78453
78454 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78455
78456         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
78457         Problem reported by Bruno Haible in:
78458         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
78459
78460 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78461
78462         * config/srclist.txt: Comment out argp-pvh.c.
78463
78464 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
78465
78466         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
78467         in case some system header has #define'd it.  Problem reported by
78468         Soeren D. Schulze in
78469         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
78470
78471 2004-09-09  Karl Berry  <karl@gnu.org>
78472
78473         * regex.[ch]: delete from the root.  These were supposed to be
78474                 synced with emacs cvs, but this has not happened for about
78475                 a year, and anyway nothing else uses emacs regex.[ch].
78476                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
78477                 lib/regex[.ch] is untouched.
78478
78479 2004-09-09  Bruno Haible  <bruno@clisp.org>
78480
78481         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
78482
78483 2004-09-09  Bruno Haible  <bruno@clisp.org>
78484
78485         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
78486         modifications.
78487         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
78488
78489 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78490
78491         * modules/xvasprintf: New file.
78492         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
78493
78494 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78495
78496         * lib/xvasprintf.h: New file.
78497         * lib/xvasprintf.c: New file.
78498         * lib/xasprintf.c: New file.
78499
78500 2004-09-08  Bruno Haible  <bruno@clisp.org>
78501
78502         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
78503
78504 2004-09-08  Bruno Haible  <bruno@clisp.org>
78505
78506         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
78507         length is > INT_MAX.
78508         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
78509         more.
78510
78511 2004-09-08  Bruno Haible  <bruno@clisp.org>
78512
78513         * lib/stdint_.h: New file, taken from GNU clisp.
78514
78515 2004-09-08  Bruno Haible  <bruno@clisp.org>
78516             Oskar Liljeblad  <oskar@osk.mine.nu>
78517
78518         * modules/stdint: New file.
78519         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
78520
78521 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78522
78523         Import from coreutils.
78524         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
78525         strings on unbounded length.  alloca's performance benefits aren't
78526         that important here.
78527         (V_STRDUP): Remove.
78528         (parse_with_separator): New function, with most of the internals
78529         of the old parse_user_spec.  Allow user to omit both user and group,
78530         for compatibility with FreeBSD.
78531         Clone only the user name, not the entire spec.
78532         Do not set *uid, *gid unless entirely successful.
78533         Avoid memory leak in some failing cases.
78534         Fix regression for USER.GROUP reported by Dmitry V. Levin in
78535         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
78536         (parse_user_spec): Rewrite to use parse_with_separator.
78537
78538 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78539
78540         * modules/userspec: Don't depend on alloca.
78541
78542 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78543
78544         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
78545
78546 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78547
78548         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
78549         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
78550         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
78551
78552 2004-08-16  Simon Josefsson  <jas@extundo.com>
78553
78554         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
78555         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
78556         Add --dry-run for --import.
78557         Let user provided command line parameters override configure.ac
78558         settings.
78559
78560 2004-08-12  Simon Josefsson  <jas@extundo.com>
78561
78562         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
78563         as discussed with Paul Eggert in threads rooted at
78564         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
78565         and
78566         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
78567         Before, the test was empty, and relied on ELIDE_CODE in source
78568         code.)
78569         (gl_PREREQ_GETOPT): New macro.
78570         (gl_GETOPT): Use them.
78571
78572 2004-08-12  Simon Josefsson  <jas@extundo.com>
78573
78574         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
78575         * lib/getopt_.h: Renamed from getopt.h.
78576
78577 2004-08-12  Simon Josefsson  <jas@extundo.com>
78578
78579         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
78580         Change default library name from libfoo to libgnu.
78581         Now, if you have a configure.ac that says:
78582                 gl_SOURCE_BASE(gl)
78583                 gl_M4_BASE(gl/m4)
78584                 gl_MODULES(error getopt etcetera)
78585                 gl_INIT
78586         you can import all you need by running:
78587                 ../gnulib/gnulib-tool --import
78588
78589         * modules/getopt (Files): Rename getopt.h to getopt_.h.
78590         (Makefile.am): Rewrite, use logic from argz.
78591         (Include): Use <getopt.h> instead of "getopt.h".
78592
78593 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78594
78595         * modules/argp (Files): Add m4/unlocked-io.m4.
78596         (Depends-on): Add extensions.
78597
78598 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78599
78600         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
78601         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
78602         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
78603         Check for program_invocation_name, program_invocation_short_name,
78604         flockfile, funlockfile, features.h, _getopt_long_only_r.
78605
78606 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78607
78608         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
78609         its complicated substitute.
78610         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
78611         and program_invocation_name.
78612         (__argp_basename) [!_LIBC]: Remove; the only use was
78613         replaced by its body.
78614         (__argp_short_program_name): Change condition from
78615         !defined __argp_short_program_name to
78616         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
78617         to match argp-namefrob.h.
78618         (__argp_failure): Don't assume strerror_r returns char *.
78619         * lib/argp-parse.c (N_): Define unconditionally.
78620         (argp_default_options): Fill out initializers with 0 to avoid
78621         gcc warnings.
78622
78623 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78624
78625         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
78626         getopt1.c.
78627
78628 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78629
78630         Merge from coreutils.
78631
78632         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
78633
78634         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
78635         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
78636
78637 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78638
78639         Merge from coreutils.
78640
78641         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
78642         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
78643         for Reliant Unix 5.43.
78644
78645         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
78646         (union fooround): Use uintmax_t, not long int.
78647         The rest is a merge from libc:
78648         [defined _LIBC]: Include <shlib-compat.h>.
78649         (_obstack) [defined _LIBC]: Remove after 2.3.4.
78650
78651         * lib/settime.c (settime): Recode to avoid warning with
78652         Sun Forte C 6U2.
78653
78654         * lib/strverscmp.c: Convert to UTF-8.
78655
78656 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78657
78658         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78659         m4/uintmax_t.m4.
78660
78661 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78662
78663         * modules/xalloc-die: New file.
78664         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
78665
78666         * modules/md5 (Files): Add m4/uint32_t.m4.
78667         * modules/sha1: Renamed from modules/sha.
78668         (Files):
78669         Rename lib/sha.h to lib/sha1.h.
78670         Rename lib/sha.c to lib/sha1.c.
78671         Rename m4/sha.m4 to m4/sha1.m4.
78672         (lib_SOURCES): Likewise.
78673         (configure.ac): Rename gl_SHA to gl_SHA1.
78674         (Include): sha.h -> sha1.h.
78675
78676 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78677
78678         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
78679         * m4/sha1.m4: Renamed from sha.m4.
78680         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
78681
78682 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78683
78684         * lib/obstack.h (obstack_empty_p):
78685         Don't assume that chunk->contents is suitably aligned.
78686         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
78687         Likewise. Problem reported by Benno in
78688         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
78689
78690         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
78691         readable.  This could be improved further but it'd take some work.
78692
78693 2004-08-08  Simon Josefsson  <jas@extundo.com>
78694
78695         * modules/xgethostname (Depends-on): Remove exit and error (not
78696         used).
78697
78698         * modules/getpass-gnu: Add getpass.h.
78699         (Depends-on): Add stdbool.
78700         * modules/getpass: Add getpass.h.
78701
78702 2004-08-08  Simon Josefsson  <jas@extundo.com>
78703
78704         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
78705         Check getpass declaration.
78706
78707 2004-08-08  Simon Josefsson  <jas@extundo.com>
78708
78709         * lib/xgethostname.c: Don't include error.h (not used).
78710
78711         * lib/getpass.h: Add.
78712         * lib/getpass.c: Include getpass.h first.
78713
78714 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
78715
78716         * lib/xalloc-die.c: New file.
78717         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
78718         All uses removed.
78719         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
78720         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
78721         xalloc-die.c.
78722         (_, N_, xalloc_die): Move to xalloc-die.c.
78723         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
78724         so that we needn't mess with xalloc_msg_memory_exhausted.
78725
78726         * lib/sha1.h: Renamed from sha.h.
78727         (SHA1_H): Renamed from _SHA_H.
78728         (sha1_ctx): Renamed from sha_ctx.
78729         (sha1_init_ctx): Renamed from sha_init_ctx.
78730         (sha1_process_block): Renamed from sha_process_block.
78731         (sha1_process_bytes): Renamed from sha_process_bytes.
78732         (sha1_finish_ctx): Renamed from sha_finish_ctx.
78733         (sha1_read_ctx): Renamed from sha_read_ctx.
78734         (sha1_stream): Renamed from sha_stream.
78735         (sha1_buffer): Renamed from sha_buffer.
78736         * lib/sha1.c: Likewise; renamed from sha.c.
78737         Do not include <sys/types.h>.
78738         Include <stddef.h> rather than <stdlib.h>.
78739
78740 2004-08-08  Bruno Haible  <bruno@clisp.org>
78741
78742         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
78743         FILESYSTEM_PREFIX_LEN.
78744         * lib/progreloc.c: Likewise.
78745         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
78746
78747 2004-08-06  Simon Josefsson  <jas@extundo.com>
78748
78749         * modules/progname (Depends-on): Don't depend on stdbool.
78750
78751 2004-08-06  Simon Josefsson  <jas@extundo.com>
78752
78753         * modules/getsubopt: New file.
78754         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78755         getsubopt.
78756
78757 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78758
78759         More merge from coreutils.
78760
78761         * m4/utimens.m4, m4/utimecmp.m4: New files.
78762         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
78763         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
78764         prereq.m4, sha.m4: Import changes from coreutils.
78765
78766 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78767
78768         More merge from coreutils.
78769         * modules/raise, modules/readtokens0, modules/utimens:
78770         * modules/utimecmp, module/xnanosleep: New files.
78771         * modules/strftime: Add lib/strftime.h.
78772         Change include from <time.h> to "strftime.h".
78773         * modules/yesno: Add lib/yesno.h.
78774         * modules/backupfile: Remove lib/addext.c.
78775         * modules/euidaccess: Add stat-macros.h.
78776         * modules/canonicalize, modules/euidaccess,
78777         modules/filemode, modules/lchown, modules/makepath,
78778         modules/rmdir, modules/stat: Likewise.
78779
78780 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78781
78782         Merge from tar.
78783         * lib/argp-help.c (make_hol, hol_append): Don't assume that
78784         SIZE_MAX is a valid preprocessor constant.
78785         (__argp_basename): Change from "#ifndef _LIBC"
78786         to "#ifndef __argp_short_program_name", so that
78787         we don't compile these functions for tar.
78788
78789         More merges from coreutils.
78790         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
78791         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
78792         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
78793         * lib/addext.c: Remove; no longer needed.
78794         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
78795         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
78796         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
78797         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
78798         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
78799         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
78800         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
78801         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
78802         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
78803         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78804         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
78805         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
78806         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
78807         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
78808         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
78809         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
78810         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
78811         Import changes from coreutils.
78812
78813 2004-08-05  Simon Josefsson  <jas@extundo.com>
78814
78815         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
78816
78817 2004-08-05  Simon Josefsson  <jas@extundo.com>
78818
78819         * m4/getsubopt.m4: New file.
78820
78821 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78822
78823         Merge from coreutils.
78824
78825         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
78826         * m4/getcwd-path-max.m4: New files.
78827
78828         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
78829         FILESYSTEM_PREFIX_LEN ->
78830         FILE_SYSTEM_PREFIX_LEN.
78831         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
78832         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
78833         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
78834         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
78835
78836         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
78837         prerequisite modules now handle the DOS stuff.
78838         Don't check for unistd.h.
78839
78840 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78841
78842         Merge from coreutils.
78843
78844         * lib/.gdb-history: Remove; this doesn't belong here.
78845
78846         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
78847         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
78848         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
78849         * lib/getcwd.c: New files.
78850
78851         * lib/dirname.h: Include <stdbool.h>.
78852         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
78853         for consistency with POSIX terminology.  All uses changed.
78854         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
78855         (strip_trailing_slashes): Use bool for booleans.
78856         * lib/stripslash.c (strip_trailing_slashes): Likewise.
78857
78858         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
78859         sometimes returns a positive errno value even when it succeeds.
78860         (print_errno_message) [!LIBC]: Fall back on strerror if
78861         __strerror_r fails.
78862
78863         * lib/path-concat.c (mempcpy): Don't define if a system header defines
78864         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
78865         (longest_relative_suffix): New function.
78866         (path_concat): Use it.  Assume first argument is not NULL.
78867         Port to DOS.  Omit redundant separators.
78868         Report an error instead of returning NULL.
78869         Use mempcpy instead of memcpy.
78870         (xpath_concat): Remove: not declared or used.
78871
78872         * lib/same.h: Include <stdbool.h>
78873         (same_name): Return bool, not int.
78874         * lib/same.c (same_name): Likewise.
78875         (errno): Don't declare; we assume C89 or better now.
78876
78877         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
78878         if not already defined.
78879
78880         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
78881         * lib/dup-safer.c (errno): Likewise.
78882
78883 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         Merge from coreutils.
78886         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
78887         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
78888         * modules/path-concat: Don't depend on strdup.
78889
78890 2004-08-03  Simon Josefsson  <jas@extundo.com>
78891
78892         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
78893         * lib/progname.h: Don't include stdbool.h.
78894
78895 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78896
78897         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
78898         * MODULES.html.sh (func_all_modules): Remove fatal.
78899
78900 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78901
78902         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
78903
78904 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78905
78906         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
78907         working.
78908
78909 2004-08-02  Simon Josefsson  <jas@extundo.com>
78910
78911         * lib/getsubopt.h: New file, with comments from Bruno Haible.
78912         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
78913         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
78914
78915 2004-08-01  Simon Josefsson  <jas@extundo.com>
78916
78917         * lib/xgetdomainname.c: Include stdlib.h, for free().
78918
78919 2004-07-19  Bruno Haible  <bruno@clisp.org>
78920
78921         * MODULES.html.sh (func_all_modules): Add dummy.
78922
78923 2004-07-16  Simon Josefsson  <jas@extundo.com>
78924
78925         * modules/dummy: New file.
78926
78927 2004-07-16  Simon Josefsson  <jas@extundo.com>
78928
78929         * lib/dummy.c: New file.
78930
78931 2004-07-16  Bruno Haible  <bruno@clisp.org>
78932
78933         * lib/backupfile.h: Add extern "C" for C++.
78934         * lib/closeout.h: Likewise.
78935         * lib/copy-file.h: Likewise.
78936         * lib/findprog.h: Likewise.
78937         * lib/full-write.h: Likewise.
78938         * lib/pathname.h: Likewise.
78939         * lib/progname.h: Likewise.
78940         * lib/stpcpy.h: Likewise.
78941         * lib/stpncpy.h: Likewise.
78942         * lib/strcase.h: Likewise.
78943         * lib/strstr.h: Likewise.
78944         * lib/xalloc.h: Likewise.
78945
78946         * lib/mbswidth.h: Add extern "C" for C++.
78947         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
78948
78949 2004-07-13  Robert Millan  <robertmh@gnu.org>
78950
78951         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
78952
78953 2004-07-09  Simon Josefsson  <jas@extundo.com>
78954
78955         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
78956         failed without this.)
78957
78958 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78959
78960         * modules/chown (Files): Add lib/fchown-stub.c, since
78961         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
78962
78963 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78964
78965         * lib/fchown-stub.c: New file.
78966
78967 2004-06-24  Jim Meyering  <jim@meyering.net>
78968
78969         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
78970
78971 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78972
78973         * modules/argz: Omit "#include".
78974
78975         * MODULES.html.sh (func_all_modules): Add calloc, to match
78976         2004-06-01 addition of calloc module.
78977
78978 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78979
78980         * m4/argz.m4: New file, which is autoupdated from libtool.
78981
78982 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78983
78984         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
78985         libtool.
78986
78987 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78988
78989         * config/srclist-update: Don't insist on "USA." before the
78990         close-comment, as libtool omits the period and puts the */ on a
78991         separate line.
78992         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
78993         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
78994
78995 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
78996
78997         * modules/argz: New file.
78998         * MODULES.html.sh (func_all_modules): Add argz.
78999
79000 2004-06-12  Jim Meyering  <jim@meyering.net>
79001         and  Paul Eggert  <eggert@cs.ucla.edu>
79002
79003         * modules/hash (Files): Add lib/xalloc.h.
79004         * modules/pipe (Depends-on): Add wait-process.
79005         * modules/stat (Depends-on): Add xalloc.
79006         * modules/userspec (Files): Add lib/userspec.h.
79007         * modules/xstrto
79008
79009         Upgrade from gettext-0.13.
79010         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79011         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79012         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79013
79014 2004-06-10  Jim Meyering  <jim@meyering.net>
79015
79016         * lib/calloc.c: New file.
79017
79018 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79019
79020         * lib/getdate.y (yylex): Allow space between sign and number.
79021         Problem reported by Dan Jacobson.
79022
79023 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79024
79025         Merge from coreutils CVS.
79026
79027         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79028         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79029         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79030         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79031         xstrtol.m4: Fix copyright date and/or serial number.
79032
79033         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79034         See if we need an fchown replacement.
79035         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79036         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79037         and use the replacement function if we detect either defect.
79038
79039         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79040         gl_UTIMECMP.
79041
79042 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79043         and  Jim Meyering  <jim@meyering.net>
79044
79045         Merge from coreutils CVS.
79046
79047         * lib/stat-macros.h: New file, with contents from file-type.h
79048         and coreutils' system.h.
79049         * lib/file-type.c: Include "stat-macros.h".
79050         * lib/file-type.h (file_type): Move all macro definitions to new file,
79051         stat-macros.h.
79052
79053         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79054         Wrap old code with this conditional.
79055         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79056         function that does not dereference symlinks.
79057         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79058
79059         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79060         dependency problems.
79061         (xreadlink): Accept new arg SIZE, for efficiency.
79062         All decls and uses changed.
79063         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79064
79065         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79066         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79067
79068         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79069         sysexits.h.
79070
79071 2004-06-01  Jim Meyering  <jim@meyering.net>
79072
79073         * m4/calloc.m4: New file.
79074
79075 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79076
79077         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79078         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79079         Also, fix a typo in a diagnostic.
79080
79081 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79082
79083         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79084         or AC_FUNC_REALLOC.
79085
79086 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79087
79088         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79089         macros to be defined.
79090         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79091         the allocator returns NULL because the requested size is zero.
79092
79093 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79094
79095         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79096         var.  Add comment explaining why libc still defines it.  This
79097         merges the following patch from glibc:
79098         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79099
79100 2004-05-20  Andreas Schwab  <schwab@suse.de>
79101
79102         * m4/free.m4: Replace free if it not known to work, not the other
79103         way round.
79104
79105 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79106
79107         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79108         present in glibc since revision 1.1 of this file.
79109         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79110         obstack_alignment_mask, obstack_alloc, obstack_base,
79111         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79112         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79113         obstack_grow0, obstack_init, obstack_int_grow,
79114         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79115         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79116         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79117         nonexistent functions.
79118
79119 2004-05-18  Karl Berry  <karl@gnu.org>
79120
79121         * config/srclist.txt: break link for vasnprintf.c.
79122
79123 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79124
79125         Port obstack to the AS/400, where pointers are 16 bytes wide and
79126         you cannot cast an integer to a valid pointer.  This patch is
79127         currently waiting to be integrated into glibc; see
79128         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
79129
79130         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
79131         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
79132         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
79133         (struct obstack): temp member is now a union of a pointer and
79134         an integer, instead of an integer.  All integer uses changed.
79135         This does not affect the physical layout of struct obstack,
79136         except on hosts (like the AS/400) where the size or alignment of
79137         void * is greater than that of ptrdiff_t.
79138         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
79139         __STDC__)]: Store temporary in pointer member of union, not
79140         integer member.
79141         * lib/obstack.c: Include <stddef.h>, for offsetof.
79142         (struct fooalign): Remove; it doesn't need a name.
79143         (union fooround): Change double to long double, and add void *.
79144         (DEFAULT_ALIGNMENT): Use offsetof to compute.
79145         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
79146         not a macro.  Hence the values are always int; so remove all
79147         casts-to-int in uses.
79148
79149 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79150
79151         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
79152         we can get this patch merged into glibc.
79153
79154 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79155             Paul Eggert  <eggert@cs.ucla.edu>
79156
79157         * m4/argp: Depend on alloca.
79158
79159 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79160             Paul Eggert  <eggert@cs.ucla.edu>
79161
79162         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
79163         freecoding.
79164
79165 2004-05-17  Bruno Haible  <bruno@clisp.org>
79166
79167         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
79168         precision that consists of a '.' followed by an empty digit string.
79169         Patch by Tor Lillqvist <tml@iki.fi>.
79170
79171 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79172
79173         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
79174         for backward compatibility with older code.  We need our own
79175         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79176         it under some other name, and our alloca.h will define it.
79177
79178 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79179             Derek Price  <derek@ximbiot.com>
79180
79181         * lib/alloca.c: Include <alloca.h>, to get our interface.
79182         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79183         include <alloca.h> first.  Use C89 prototype for alloca; this
79184         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79185         Use #elif for simplicity, since we can assume C89 now.
79186         Don't try to source the system alloca.h since it will not be found
79187         and to prevent recursively including its replacement.
79188         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79189         * lib/regex.c: Likewise.
79190
79191 2004-05-16  Derek Price  <derek@ximbiot.com>
79192             Paul Eggert  <eggert@cs.ucla.edu>
79193
79194         getline cleanup.  This changes the getndelim2 API: both order of
79195         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79196         no delimiter).
79197
79198         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79199         interface does that.
79200         (getline): Always use getdelim, so that we don't have two
79201         copies of this code.
79202         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79203         if available.
79204         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79205         (GETNDELIM2_MAXIMUM): New macro.
79206         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
79207         instead of the old practice of delim2==0.  All callers changed.
79208         Return -1 on overflow, instead of returning junk.
79209         Do not set *linesize unless allocation succeeds.
79210         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
79211         that we include sys/types.h.
79212         * lib/getnline.h: Likewise.
79213         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
79214         (getndelim2): Reorder arguments.
79215         * lib/getnline.c (getnline, getndelim):
79216         Don't discard the NMAX argument.
79217         (getnline): Invoke getndelim, to avoid code duplication.
79218         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
79219         of (size_t) -1 by callers of the getnline family.
79220
79221 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79222
79223         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
79224         Check for gettimeofday.
79225         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
79226         Check for settimeofday, stime.
79227
79228 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79229
79230         * lib/nanosleep.c (suspended): Change its type from int to
79231         sig_atomic_t volatile.
79232         (first_call): Make it private to rpl_nanosleep, and have it
79233         be zero initially as that's a bit faster.
79234         (my_usleep): Round up fractional times instead of truncating them,
79235         as this is the usual meaning for 'sleep'.
79236
79237         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
79238         doesn't work.
79239         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
79240         (ENOSYS): Define if not defined.
79241         (settime): Fall back on stime if it exists and settimeofday fails.
79242         But don't bother with fallbacks if a method fails with errno == EPERM.
79243
79244 2004-05-11  Jim Meyering  <jim@meyering.net>
79245
79246         Prior to this change, the save_cwd caller required read access to the
79247         current directory on most systems (ones with the fchdir function).
79248
79249         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
79250         fails, try write-only, and finally, resort to using xgetcwd.
79251
79252 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79253
79254         * lib/obstack.c, obstack.h: Import changes from libc.
79255
79256 2004-04-28  Bruno Haible  <bruno@clisp.org>
79257
79258         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
79259         also implicitly appends .exe to executables.
79260         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
79261         accepts Windows pathnames.
79262         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79263         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79264         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79265         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79266         Reported by Derek Robert Price <derek@ximbiot.com>.
79267
79268 2004-04-21  Karl Berry  <karl@gnu.org>
79269
79270         * config/srclist.txt (localcharset.c): break sync.
79271
79272 2004-04-20  Paul Eggert  <eggert@twinsun.com>
79273
79274         * m4/host-os.m4: Add a copyright notice.
79275
79276 2004-04-20  Jim Meyering  <jim@meyering.net>
79277
79278         Change UTILS_ to gl_ in AC_DEFINE'd names.
79279         Change utils_- and jm_-prefixed variables, too.
79280         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
79281         UTILS_FUNC_MKDIR_TRAILING_SLASH.
79282         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
79283
79284         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
79285         Don't emit trailing blanks.
79286         Also rename jm_-prefixed variables to have gl_ prefix.
79287
79288         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
79289         Also rename jm_-prefixed variables to have gl_ prefix.
79290
79291         * m4/jm-macros.m4: Reflect the renamings.
79292         * m4/prereq.m4: Likewise.
79293
79294 2004-04-20  Jim Meyering  <jim@meyering.net>
79295
79296         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
79297         memory.
79298
79299 2004-04-20  Jim Meyering  <jim@meyering.net>
79300             Bruno Haible  <bruno@clisp.org>
79301
79302         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
79303         memory when realloc fails.
79304
79305 2004-04-19  Jim Meyering  <jim@meyering.net>
79306
79307         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
79308         now that readutmp.c may call `free (0)'.
79309
79310 2004-04-19  Bruno Haible  <bruno@clisp.org>
79311
79312         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
79313         * m4/inttypes_h.m4: Likewise.
79314         * m4/stdint_h.m4: Likewise.
79315         * m4/intmax_t.m4: Likewise.
79316         * m4/uintmax_t.m4: Likewise.
79317
79318 2004-04-18  Jim Meyering  <jim@meyering.net>
79319
79320         * m4/prereq.m4: Don't forbid jm_ prefix.
79321
79322         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
79323         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
79324         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
79325         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
79326         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
79327         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
79328         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
79329         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
79330         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
79331         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
79332         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
79333         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
79334         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
79335         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
79336         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
79337         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
79338         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
79339         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
79340         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
79341
79342 2004-04-18  Jim Meyering  <jim@meyering.net>
79343
79344         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
79345         failure, don't leak memory and do call END_UTMP_ENT.
79346
79347 2004-04-16  Jim Meyering  <jim@meyering.net>
79348
79349         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
79350         coreutils' stat program.
79351         (gl_PREREQ): Don't require jm_PREREQ_STAT.
79352
79353 2004-04-11  Paul Eggert  <eggert@twinsun.com>
79354
79355         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
79356         C89.
79357         (CHAR_BIT): Remove, since we assume C89.
79358         Include <stdint.h> if available, as per current Autoconf CVS advice.
79359
79360 2004-03-31  Jim Meyering  <jim@meyering.net>
79361
79362         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
79363         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
79364         * m4/xalloc.m4: Likewise.
79365
79366 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79367
79368         Merge from coreutils.
79369
79370         * m4/inttostr.m4: New file.
79371         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
79372         Require AM_STDBOOL_H and gl_TIMESPEC instead.
79373         Require gl_CLOCK_TIME.
79374         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
79375
79376 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79377
79378         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
79379         not bool, to be more consistent with Unix conventions.
79380         Suggested by Bruno Haible.
79381
79382         Merge from coreutils.
79383
79384         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
79385         * lib/umaxtostr.c: New files.
79386
79387         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
79388         the usual <time.h> dance.
79389         (get_date): Change signature to support fractional time stamps.
79390         All callers changed.
79391         * lib/getdate.y: Include "getdate.h" first, as we can now
79392         assume C89 and don't need to worry about 'const'.
79393         Similarly, include "unlocked-io.h" near start, not in middle.
79394         Include <limits.h>.
79395         (textint.value): Use long int rather than int.
79396         (textint.digits): Use size_t rather than int.
79397         (BILLION, LOG10_BILLION): New constants.
79398         (parser_control): New member rel_ns.  Members day_ordinal,
79399         time_zone, month, day, hour, minutes, rel_year, rel_month,
79400         rel_day, rel_hour, rel_minutes, rel_seconds
79401         are now long int, not int.  Member seconds is now struct timespec,
79402         not int.  New member timespec_seen.  Members dates_seen, days_seen,
79403         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
79404         not int.
79405         (%union.intval): Now long int, not int.
79406         New member timespec.
79407         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
79408         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
79409         (spec): Now is a timespec or an item list.
79410         (timespec, items): New nonterminals.
79411         (time, rel, relunit, number, get_date):
79412         Add support for fractional seconds.
79413         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
79414         (gmtime, localtime, mktime): Remove decls; not needed with C89.
79415         (to_hour): First arg is now long int, not int.
79416         (to_year): Returns long int, not int.
79417         Don't treat year -70 like 70.
79418         (tm_diff): Returns long int, not int.
79419         (lookup_word): Use bool instead of int when appropriate.
79420         (yylex): Use size_t for count, not int.
79421         Detect overflow when parsing large integer constants.
79422         Add support for fractions.
79423         (get_date): Make pointers 'const' if possible.
79424         Use more-portable code to detect integer overflow.
79425         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
79426         Don't use ctime; it's not reliable if the year has >4 digits.
79427
79428         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
79429         This is for compatibility with BSD.
79430
79431         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
79432         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
79433         From coreutils' system.h.
79434
79435         * lib/userspec.c: Don't include "posixver.h".
79436         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
79437         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
79438         compatible extension.  Simplify code by removing a boolean int
79439         that was always nonzero if a string was nonnull.
79440
79441 2004-03-30  Jim Meyering  <jim@meyering.net>
79442
79443         Merge from coreutils.
79444
79445         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
79446         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
79447         on some systems one must include <grp.h> before it.
79448         Reported by Christian Krackowizer.
79449
79450 2004-03-30  Jim Meyering  <jim@meyering.net>
79451
79452         Merge from coreutils.
79453
79454         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
79455
79456         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
79457         an empty input stream.
79458
79459         * lib/readtokens.c: Include <stdbool.h>.
79460         (readtoken): Use `size_t' rather than int/long.
79461         All callers adjusted.
79462         Use `bool' rather than `int' where appropriate.
79463         Use memset rather than an explicit loop.
79464         Use x2nrealloc rather than xrealloc.
79465         Allow the use of `\0' as a delimiter.
79466         (readtokens): Likewise.
79467         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
79468
79469 2004-03-30  Jim Meyering  <jim@meyering.net>
79470
79471         * m4/realloc.m4: Remove file, since now it does no more than
79472         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
79473         the `configure.ac' section of module/realloc.
79474         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
79475
79476 2004-03-30  Bruno Haible  <bruno@clisp.org>
79477
79478         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
79479         nonnull.
79480
79481 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79482
79483         Merge changes to getloadavg.c from coreutils and Emacs.
79484
79485         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
79486         Define to an expression, not to the empty string.
79487         Include cloexec.h and xalloc.h.
79488         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
79489         Use set_cloexec_flag rather than rolling our own.
79490         * lib/cloexec.c, lib/cloexec.h: New files.
79491
79492 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79493
79494         * m4/cloexec.m4: New file.
79495
79496 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79497
79498         * lib/getopt.h: Sync with libc CVS.
79499
79500 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79501             Bruno Haible  <bruno@clisp.org>
79502
79503         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
79504         mbswidth.
79505
79506 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79507             Bruno Haible  <bruno@clisp.org>
79508
79509         * lib/mbswidth.h: Include <wchar.h> only if
79510         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
79511         <wchar.h>.
79512         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
79513
79514 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79515
79516         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
79517         Sync with libc CVS.
79518         * lib/getopt_int.h: New file, also synced from libc.
79519
79520 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79521
79522         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
79523         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
79524         Bring back getopt.c, getopt.h, getopt1.c.
79525
79526 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79527
79528         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
79529         All uses changed.  Check for sa_sigaction member; this fixes
79530         a bug first reported by Jason Andrade in
79531         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79532
79533 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79534
79535         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
79536         '#if' expressions.  Unlike the code it replaces, it does not
79537         depend on (defined _SC_PAGESIZE).  However, it does depend on
79538         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
79539         first reported by Jason Andrade in
79540         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79541
79542 2004-02-25  Simon Josefsson  <jas@extundo.com>
79543
79544         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
79545
79546 2004-02-25  Simon Josefsson  <jas@extundo.com>
79547
79548         * lib/strdup.h: New file.
79549         * lib/strdup.c: Include it.
79550         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
79551         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
79552
79553 2004-02-23  Karl Berry  <karl@gnu.org>
79554
79555         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
79556         (from fencepost.gnu.org:/gd/gnuorg).
79557
79558 2004-02-23  Karl Berry  <karl@gnu.org>
79559
79560         * config/srclistvars.sh (GNUORG) [karl]: redefine.
79561         * config/srclist.txt: add maintain/standards documents.
79562
79563 2004-02-18  Bruno Haible  <bruno@clisp.org>
79564
79565         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
79566         Reported by Derek Robert Price <derek@ximbiot.com>.
79567
79568 2004-02-16  Karl Berry  <karl@gnu.org>
79569
79570         * config/mkinstalldirs, install-sh: update from automake.
79571
79572 2004-02-06  Karl Berry  <karl@gnu.org>
79573
79574         * m4/po.m4: update from gettext 0.14.1.
79575
79576 2004-02-06  Karl Berry  <karl@gnu.org>
79577
79578         * lib/config.charset: update from gettext 0.14.1.
79579
79580 2004-02-05  Paul Eggert  <eggert@twinsun.com>
79581
79582         Add comments and code, prompted by suggestions from Bruno Haible
79583         for sh-quote.
79584         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
79585         describing the enum quoting_style values.
79586         * lib/quotearg.c (quotearg_alloc): New function.
79587         (quotearg_buffer_restyled): Treat lone { and } as special.
79588         Treat = as special.  Work around bug with older shells
79589         that "see" a '\' that is really the 2nd byte of a multibyte char.
79590         Quote empty string with shell_quoting_style.
79591
79592 2004-02-03  Bruno Haible  <bruno@clisp.org>
79593
79594         * m4/pipe.m4: New file, from GNU gettext.
79595
79596 2004-02-03  Bruno Haible  <bruno@clisp.org>
79597
79598         * lib/pipe.h: New file, from GNU gettext.
79599         * lib/pipe.c: New file, from GNU gettext.
79600
79601 2004-01-27  Bruno Haible  <bruno@clisp.org>
79602
79603         * m4/execute.m4: New file, from GNU gettext.
79604
79605 2004-01-27  Bruno Haible  <bruno@clisp.org>
79606
79607         * lib/execute.h: New file, from GNU gettext.
79608         * lib/execute.c: New file, from GNU gettext.
79609         * lib/w32spawn.h: New file, from GNU gettext.
79610
79611 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79612
79613         Merge from diffutils.
79614
79615         * lib/file-type.c (file_type): Add typed memory objects.
79616         * lib/file-type.h (S_TYPEISTMO): New macro.
79617
79618         * lib/c-stack.h (c_stack_action): Remove argv argument.
79619         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
79620         (die): Don't calculate message unless segv_action returns.
79621         (get_stack_location, min_address_from_argv, max_address_from_argv,
79622         volatile stack_base, volatile_stack_size): Remove.
79623         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
79624         that every segmentation violation is a stack overflow.  (Ouch!)
79625         See Debian bug 136249 (still outstanding) for more info about why
79626         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
79627
79628 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79629
79630         Exit-status fix from coreutils.
79631
79632         Use exit_failure consistently in place of EXIT_FAILURE,
79633         so that program exit statuses are consistent on failure.
79634
79635         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
79636         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
79637         * lib/argmatch.h: Comment fix to match the above.
79638         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
79639         Now a macro referring to exit_failure, instead of a separate
79640         variable.  Include "exitfail.h" to get it.
79641         * lib/xstrtol.h: Include "exitfail.h".
79642         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
79643
79644         * lib/long-options.c (parse_long_options): Use prototype
79645         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
79646         for clarity.
79647
79648 2004-01-21  Jim Meyering  <jim@meyering.net>
79649
79650         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
79651         so as not to conflict with a different-sized __mktime_internal
79652         function in GNU libc.
79653         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
79654         Problem building statically-linked `ls' reported by Michael Brunnbauer.
79655
79656 2004-01-20  Karl Berry  <karl@gnu.org>
79657
79658         * config/config.guess: update from config.
79659
79660         * config/srclistvars.sh: GNUWWWLICENSES for karl.
79661
79662 2004-01-20  Bruno Haible  <bruno@clisp.org>
79663
79664         Safer stack allocation.
79665         * lib/setenv.c: Include allocsa.h.
79666         (alloca): Remove fallback definition.
79667         (freea): Remove macro.
79668         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
79669         instead of freea.
79670
79671 2004-01-20  Bruno Haible  <bruno@clisp.org>
79672
79673         * m4/eealloc.m4: New file, from GNU gettext.
79674
79675 2004-01-20  Bruno Haible  <bruno@clisp.org>
79676
79677         * m4/allocsa.m4: New file, from GNU gettext.
79678
79679 2004-01-20  Bruno Haible  <bruno@clisp.org>
79680
79681         * lib/xallocsa.h: New file, from GNU gettext.
79682         * lib/xallocsa.c: New file, from GNU gettext.
79683
79684 2004-01-20  Bruno Haible  <bruno@clisp.org>
79685
79686         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
79687
79688 2004-01-20  Bruno Haible  <bruno@clisp.org>
79689
79690         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
79691         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
79692         specially.
79693
79694 2004-01-20  Bruno Haible  <bruno@clisp.org>
79695
79696         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
79697         patch.
79698
79699 2004-01-20  Bruno Haible  <bruno@clisp.org>
79700
79701         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
79702
79703 2004-01-20  Bruno Haible  <bruno@clisp.org>
79704
79705         * lib/eealloc.h: New file.
79706
79707 2004-01-20  Bruno Haible  <bruno@clisp.org>
79708
79709         * lib/binary-io.h: Avoid warnings on Cygwin.
79710
79711 2004-01-20  Bruno Haible  <bruno@clisp.org>
79712
79713         * lib/allocsa.h: New file, from GNU gettext.
79714         * lib/allocsa.c: New file, from GNU gettext.
79715
79716 2004-01-18  Karl Berry  <karl@gnu.org>
79717
79718         * doc/gpl.texi, doc/lgpl.texi: new files.
79719
79720 2004-01-18  Karl Berry  <karl@gnu.org>
79721
79722         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
79723         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
79724
79725 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79726
79727         Merge from coreutils.
79728
79729         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
79730         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
79731         (gl_DEFAULT_POSIX2_VERSION): Move
79732         the documentation from 'configure' into 'config.hin',
79733         so that 'configure --help' isn't burdened by it and
79734         we don't have to worry about its formatting there.
79735         Reword the documentation so that it's more succinct
79736         and can be run together into a single paragraph.
79737         * m4/same.m4 (gl_SAME): Check for pathconf.
79738
79739 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79740
79741         Merge from coreutils.
79742
79743         * lib/posixver.c: Include posixver.h.
79744
79745         * lib/same.c: Include <stdbool.h>, <limits.h>.
79746         (_POSIX_NAME_MAX): Define if not defined.
79747         (MIN): New macro.
79748         (same_name): If file names are silently truncated, report
79749         that the file names are the same if they are the same after
79750         the silent truncation.
79751
79752         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
79753         conversion function.
79754         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
79755         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
79756         longer needed.
79757
79758 2004-01-15  Jim Meyering  <jim@meyering.net>
79759
79760         Merge from coreutils.
79761
79762         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
79763         if no library is required.
79764         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
79765         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
79766         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
79767         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
79768         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
79769         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
79770         value, $ac_cv_search_crypt, if it's "none required".
79771         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
79772         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
79773         not gl_FUNC_GETLOADAVG.
79774         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
79775         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
79776
79777 2004-01-15  Jim Meyering  <jim@meyering.net>
79778
79779         Merge from coreutils.
79780
79781         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
79782         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
79783         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
79784
79785         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
79786         optional configure-time default.
79787
79788         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79789
79790         * lib/xreadlink.c (xreadlink): Correct outdated comment.
79791
79792 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
79793
79794         Merge from coreutils.
79795
79796         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
79797         value, $ac_cv_search_nanosleep, if it's "none required".
79798
79799 2004-01-14  Paul Eggert  <eggert@twinsun.com>
79800
79801         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
79802         with like-named macro in fnmatch.c.
79803         (EXT): Use an internal constant instead.
79804
79805         Merge fnmatch patches from glibc.
79806         * lib/fnmatch.c (mbsinit): Remove define.
79807         Add libc_hidden_ver (__fnmatch, fnmatch).
79808         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
79809         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
79810
79811 2004-01-14  Karl Berry  <karl@gnu.org>
79812
79813         * config/install-sh: update from automake.
79814
79815 2004-01-13  Karl Berry  <karl@gnu.org>
79816
79817         * config/install-sh: update from automake.
79818
79819 2004-01-09  Karl Berry  <karl@gnu.org>
79820
79821         * config/install-sh: update from automake.
79822
79823 2004-01-05  Karl Berry  <karl@gnu.org>
79824
79825         * config/config.{sub,guess}: update from config.
79826
79827 2003-12-31  Karl Berry  <karl@gnu.org>
79828
79829         * config/depcomp: update from automake.
79830
79831 2003-12-14  Karl Berry  <karl@gnu.org>
79832
79833         * lib/config.charset: update from gettext-runtime.
79834
79835 2003-12-03  Paul Eggert  <eggert@twinsun.com>
79836
79837         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
79838         Bug reported by Alfred M. Szmidt.
79839
79840 2003-12-03  Bruno Haible  <bruno@clisp.org>
79841
79842         * m4/gettext.m4: Upgrade from gettext-0.13.
79843         * m4/po.m4: Upgrade from gettext-0.13.
79844         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
79845         * m4/intmax.m4: New file, from gettext-0.13.
79846         * m4/printf-posix.m4: New file, from gettext-0.13.
79847
79848 2003-11-29  Karl Berry  <karl@gnu.org>
79849
79850         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
79851
79852 2003-11-25  Paul Eggert  <eggert@twinsun.com>
79853             Bruno Haible  <bruno@clisp.org>
79854
79855         * lib/printf-parse.h: Don't include sys/types.h.
79856         (ARG_NONE): New macro.
79857         (char_directive): Change type of *arg_index fields to size_t.
79858         * lib/printf-parse.c: Don't include sys/types.h.
79859         (SSIZE_MAX): Remove macro.
79860         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
79861         Remove unnecessary overflow check.
79862         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
79863         fields.
79864
79865 2003-11-25  Bruno Haible  <bruno@clisp.org>
79866
79867         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
79868
79869 2003-11-25  Bruno Haible  <bruno@clisp.org>
79870
79871         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
79872         gt_TYPE_SSIZE_T.
79873
79874 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79875
79876         * modules/alloca: Remove dependency on xalloc.
79877
79878 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79879
79880         * lib/alloca.c: Remove dependency on xalloc module.
79881         (xalloc_die): Remove.
79882         (memory_full) [!defined emacs]: New macro.
79883         [!defined emacs]: Don't include xalloc.h.
79884         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
79885         address arithmetic overflows.  Change datatypes a bit to avoid
79886         unnecessary casts.
79887
79888 2003-11-22  Jim Meyering  <jim@meyering.net>
79889
79890         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
79891         s/size/size_t/.
79892
79893 2003-11-21  Karl Berry  <karl@gnu.org>
79894
79895         * config/config.{sub,guess}: update from config.
79896
79897 2003-11-18  Karl Berry  <karl@gnu.org>
79898
79899         * config/config.{sub,guess}: update from config.
79900
79901         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
79902
79903 2003-11-17  Paul Eggert  <eggert@twinsun.com>
79904
79905         * README: Mention that S+T cannot overflow if S is the size of
79906         an existing object and T is sufficiently small.
79907
79908 2003-11-17  Jim Meyering  <jim@meyering.net>
79909
79910         On systems without utime and without a utimes function capable of
79911         dealing with a NULL struct utimbuf* argument, this utime replacement
79912         could -- in unusual circumstances -- leak a file descriptor.
79913         * lib/utime.c: Include <unistd.h> and <errno.h>.
79914         (utime_null): Be sure to close `fd' and to preserve errno.
79915         Reported by Geoff Collyer via Arnold Robbins.
79916
79917 2003-11-17  Bruno Haible  <bruno@clisp.org>
79918
79919         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
79920         (Depends-on): Add xsize.
79921
79922 2003-11-17  Bruno Haible  <bruno@clisp.org>
79923
79924         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
79925
79926 2003-11-17  Bruno Haible  <bruno@clisp.org>
79927
79928         * lib/vasnprintf.c (alloca): Remove fallback definition.
79929         (freea): Remove definition.
79930         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
79931         Reported by Paul Eggert.
79932
79933 2003-11-16  Paul Eggert  <eggert@twinsun.com>
79934             Bruno Haible  <bruno@clisp.org>
79935
79936         Protect against address arithmetic overflow.
79937         * lib/printf-args.h: Include stddef.h.
79938         (arguments): Change type of field 'count' to size_t.
79939         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
79940         'unsigned int' where appropriate.
79941         * lib/printf-parse.h: Include sys/types.h.
79942         (char_directive): Change type of *arg_index fields to ssize_t.
79943         (char_directives): Change type of fields 'count', max_*_length to
79944         size_t.
79945         * lib/printf-parse.c: Include sys/types.h and xsize.h.
79946         (SSIZE_MAX): Define fallback value.
79947         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
79948         instead of 'int' where appropriate. Check a_allocated, d_allocated
79949         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
79950         * lib/vasnprintf.c: Include xsize.h.
79951         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
79952         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
79953         overflow. Avoid wraparound when converting a width or precision from
79954         decimal to binary.
79955
79956 2003-11-16  Bruno Haible  <bruno@clisp.org>
79957
79958         Update from GNU gettext.
79959         * lib/printf-parse.c: Generalize to it can be compiled for wide
79960         strings.
79961         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
79962         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
79963         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
79964         SNPRINTF): New macros.
79965         Don't include <alloca.h> if the file is used inside libintl.
79966         (local_wcslen): New function, for Solaris 2.5.1.
79967         (VASNPRINTF): Use it instead of wcslen.
79968
79969 2003-11-16  Bruno Haible  <bruno@clisp.org>
79970
79971         * lib/xsize.h (xmax): New function.
79972         (xsum, xsum3, xsum4): Declare as "pure" functions.
79973
79974 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79975
79976         * modules/xalloc (Files): Undo latest change, since xalloc.h
79977         no longer needs SIZE_MAX or PTRDIFF_MAX.
79978
79979 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79980
79981         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
79982         gl_PTRDIFF_MAX.
79983
79984 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79985
79986         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
79987         "return", to pacify some unknown compiler.  Problem reported
79988         by Joerg Schilling.
79989
79990 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79991
79992         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
79993         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
79994         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
79995         heuristic is just as accurate as far as we know, and it removes a
79996         dependency on size_max.m4 and ptrdiff_max.m4.
79997
79998 2003-11-11  Bruno Haible  <bruno@clisp.org>
79999
80000         * modules/xsize (Files): Add m4/size_max.m4.
80001         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80002
80003 2003-11-11  Bruno Haible  <bruno@clisp.org>
80004
80005         * m4/size_max.m4: New file.
80006         * m4/ptrdiff_max.m4: New file.
80007         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80008         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80009         (gl_XALLOC): Invoke it.
80010
80011 2003-11-11  Bruno Haible  <bruno@clisp.org>
80012
80013         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80014         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80015         defined.
80016
80017 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80018
80019         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80020         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80021         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80022         From Bruno Haible.
80023         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80024         not (size_t) -1, since it's defined here.
80025
80026 2003-11-09  Karl Berry  <karl@gnu.org>
80027
80028         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80029
80030 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80031
80032         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80033         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80034         Reject sizes of exactly SIZE_MAX bytes.
80035         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80036         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80037
80038 2003-11-05  Bruno Haible  <bruno@clisp.org>
80039
80040         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80041         SIZE_MAX defined in <limits.h> on Solaris.
80042
80043 2003-11-04  Jim Meyering  <jim@meyering.net>
80044
80045         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80046         variable names, rather than @VAR@.
80047         * modules/poll: Likewise.
80048
80049 2003-11-04  Bruno Haible  <bruno@clisp.org>
80050
80051         * modules/xsize: New file.
80052         * modules/linebreak: Depend on xsize.
80053         * MODULES.html.sh (func_all_modules): Add xsize.
80054
80055 2003-11-04  Bruno Haible  <bruno@clisp.org>
80056
80057         * m4/xsize.m4: New file.
80058
80059 2003-11-04  Bruno Haible  <bruno@clisp.org>
80060
80061         * lib/xsize.h: New file.
80062         * lib/linebreak.c: Include xsize.h.
80063         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80064         argument for overflow.
80065         Suggested by Paul Eggert.
80066
80067 2003-11-03  Karl Berry  <karl@gnu.org>
80068
80069         * config/config.{guess,sub}: update from config.
80070
80071 2003-11-03  Jim Meyering  <jim@meyering.net>
80072
80073         * modules/userspec (lib_SOURCES): Add userspec.h.
80074         (Include): Add "userspec.h".
80075         Improve description.
80076
80077 2003-11-03  Jim Meyering  <jim@meyering.net>
80078
80079         * lib/userspec.c: Include "userspec.h".
80080         * lib/userspec.h: New file.
80081
80082 2003-11-03  Bruno Haible  <bruno@clisp.org>
80083
80084         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80085
80086 2003-11-03  Bruno Haible  <bruno@clisp.org>
80087
80088         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80089         available, to avoid (extremely rare) race condition.
80090         Suggested by Paul Eggert.
80091
80092 2003-11-02  Karl Berry  <karl@gnu.org>
80093
80094         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80095
80096 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80097
80098         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80099         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80100         (read_filesystem_list): Set and use me_type_malloced.
80101         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80102         whatever the type happens to be), for brevity and consistency.
80103         Check for size calculation overflow on Alphas running OSF/1.
80104
80105 2003-10-31  Jim Meyering  <jim@meyering.net>
80106
80107         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80108
80109         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80110
80111 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80112             Bruno Haible  <bruno@clisp.org>
80113
80114         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80115         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80116
80117 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80118
80119         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80120         netbsd*-gnu*.  Suggested by Robert Millan.
80121
80122 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80123
80124         * modules/group-member: Depend on stdbool.
80125
80126 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80127
80128         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
80129
80130 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80131
80132         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
80133         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
80134         after the 'gnu' in these cases.  This fixes some bugs in the
80135         previous change, and is based on suggestions by Robert Millan.
80136
80137 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80138
80139         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
80140         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
80141         no longer needed.
80142         * lib/quotearg.c (quotearg_n_options): Use it.
80143         * lib/group-member.c: Include <stdbool.h>.
80144         (free_group_info): Arg is now const *; don't free arg.
80145         (get_group_info): Now returns bool and accepts struct group_info *,
80146         rather than returning a malloc'ed struct group_info *.
80147         All uses changed.  Check for overflow in internal size calculation.
80148
80149         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
80150         rather than xmalloc/xrealloc.
80151         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
80152         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
80153         conformance bug: the old code used a pointer after freeing the
80154         storage that it addressed.
80155         * lib/hash.c (hash_initialize): Simplify the code by using
80156         xalloc_oversized rather than doing it by hand.
80157         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
80158         the buffer preserved.  Use free and xmalloc instead.
80159         * lib/quotearg.c (quotearg_n_options): Likewise.
80160         Use a simpler test for size overflow.  Don't use xalloc_oversized
80161         because unsigned int might be wider than size_t (!); this suggests
80162         that we should switch from unsigned int to size_t for slot numbers.
80163
80164 2003-10-28  Paul Eggert  <eggert@twinsun.com>
80165
80166         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
80167         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
80168         NetBSD kernels.  Requested by Richard Stallman.
80169
80170 2003-10-27  Paul Eggert  <eggert@twinsun.com>
80171
80172         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
80173         to allocate the returned structure.  Do not allocate a subarray,
80174         as x2nrealloc will do that.
80175         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80176         instead of xnrealloc.
80177         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80178
80179 2003-10-27  Bruno Haible  <bruno@clisp.org>
80180
80181         * lib/stdbool_.h: Better support for BeOS.
80182
80183 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80184
80185         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80186         now uses inline.
80187
80188 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80189
80190         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80191         callers that want to do their own size-overflow checking.  Include
80192         <stdbool.h>, since xalloc_oversized returns bool.
80193         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80194         to use xalloc_oversized.
80195
80196         Add two functions x2realloc, x2nrealloc, for programs that grow
80197         arrays dynamically by doubling their sizes.
80198         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80199         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80200         New functions.
80201
80202         Port to C99 semantics for 'inline' of external functions.
80203         Bug reported by Bruno Haible.
80204         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80205         with the old contents of xnmalloc.
80206         (xnmalloc, xmalloc): Use it.
80207         (xnrealloc_inline): New static inline function,
80208         with the old contents of xnrealloc.
80209         (xnrealloc, xrealloc): Use it.
80210
80211         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
80212         that.
80213
80214 2003-10-26  Karl Berry  <karl@gnu.org>
80215
80216         * config/srclist.txt (COPYING.DOC): no longer available from
80217         /gd/gnuorg; don't know where the ultimate source is.
80218
80219 2003-10-25  Paul Eggert  <eggert@twinsun.com>
80220
80221         Fix several address-calculation bugs in the hash modules,
80222         plus some minor code cleanup.
80223
80224         * lib/hash.h: Include <stdbool.h>, for bool.
80225         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
80226         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
80227         hash_get_n_entries, hash_get_max_bucket_length,
80228         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
80229         hash_rehash): Use size_t rather than unsigned.
80230         * lib/hash.c (struct hash_table, hash_get_n_buckets,
80231         hash_get_n_buckets_used, hash_get_n_entries,
80232         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
80233         hash_get_entries, hash_do_for_each, hash_string, is_prime,
80234         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
80235         Likewise.
80236         (SIZE_MAX): Define if not defined.
80237         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
80238         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
80239         hash_print):
80240         Use const * when possible.
80241         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
80242         (check_tuning): Fix bug: if tuning parameters were very close to
80243         0 or 1, rounding errors could have caused subscript violations.
80244         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
80245         (hash_initialize): Add 'fail:' label
80246         to free table and return NULL, and use it to simplify code.
80247         Use calloc rather than clearing the storage ourself.
80248         (hash_initialize, hash_rehash): Check for arithmetic overflow in
80249         buffer size calculations.
80250         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
80251         Include <stddef.h>, for size_t.
80252         * lib/hash-pjw.c (hash_pjw): Likewise.
80253         Switch to method described by Bruno Haible.
80254         Include <limits.h>, for CHAR_BIT.
80255         (SIZE_BITS): New macro.
80256
80257 2003-10-23  Paul Eggert  <eggert@twinsun.com>
80258
80259         * m4/getline.m4 (AM_FUNC_GETLINE):
80260         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
80261         hosts.  Problem reported by Derek Robert Price in
80262         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
80263         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
80264         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
80265
80266 2003-10-21  Paul Eggert  <eggert@twinsun.com>
80267
80268         * lib/getndelim2.c (getndelim2): When size calculation overflows,
80269         ceiling the allocation at NMAX bytes rather than silently
80270         discarding input bytes before NMAX is reached.  This makes
80271         a difference only if NMAX exceeds SIZE_MAX / 2.
80272
80273         * lib/obstack.c: Merge from glibc.
80274         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
80275         Add libc_hidden_def (_obstack_newchunk).
80276         (_obstack_free) [! defined _LIBC]: Remove.
80277         [defined _LIBC]: Make a strong alias from obstack_free, rather than
80278         a clone of the function body.
80279         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
80280         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
80281
80282         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
80283         glibc.
80284         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
80285         arg to memcpy.
80286
80287         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
80288         (obstack_ptr_grow_fast, obstack_int_grow_fast):
80289         Don't use lvalue casts, as GCC plans to remove support for them
80290         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
80291         was also present in the non-GCC version, indicating that this
80292         code had always been buggy and had never been widely used.
80293         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
80294         Use the fast variant of each macro, rather than copying the
80295         definiens of the fast variant; that way, we'll be more likely to
80296         catch future bugs in the fast variants.
80297
80298 2003-10-20  Bruno Haible  <bruno@clisp.org>
80299
80300         * modules/wait-process: New file.
80301         * MODULES.html.sh (func_all_modules): Add wait-process.
80302
80303 2003-10-20  Bruno Haible  <bruno@clisp.org>
80304
80305         * m4/wait-process.m4: New file.
80306
80307 2003-10-20  Bruno Haible  <bruno@clisp.org>
80308
80309         * lib/wait-process.h: New file, from GNU gettext.
80310         * lib/wait-process.c: New file, from GNU gettext.
80311
80312 2003-10-19  Jim Meyering  <jim@meyering.net>
80313
80314         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
80315         HPUX 10.20.
80316
80317 2003-10-18  Karl Berry  <karl@gnu.org>
80318
80319         * config/config.guess: update from config.
80320
80321 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80322
80323         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
80324         (getgroups): First arg is int, not size_t.
80325         Don't let 'free' mangle errno.
80326
80327 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80328
80329         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
80330
80331 2003-10-16  Karl Berry  <karl@gnu.org>
80332
80333         * config/config.{guess,sub}: update from config.
80334
80335 2003-10-16  Jim Meyering  <jim@meyering.net>
80336
80337         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
80338         memcpy.
80339
80340 2003-10-15  Paul Eggert  <eggert@twinsun.com>
80341
80342         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
80343         (SIZE_MAX): Remove.
80344         (new_exclude, add_exclude_file): Initial size no longer needs to
80345         be a power of 2.
80346         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
80347         our own address arithmetic overflow checking.
80348
80349         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
80350         (fnmatch): Do not alloca more than 2000 wide characters;
80351         instead, use malloc for large buffers.
80352         Check for address arithmetic overflow, and return -1
80353         with errno set to ENOMEM in that case.
80354         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
80355         (NEW_PATTERN): Do not alloca more than 8000 bytes;
80356         instead, return -1.  Check for address arithmetic overflow.
80357
80358 2003-10-14  Paul Eggert  <eggert@twinsun.com>
80359
80360         Handle invalid suffixes and overflow independently, so that
80361         callers can treat them independently as needed.  Fix some bugs in
80362         suffix handling, e.g., "100k@" was not diagnosed as an invalid
80363         suffix for a human-readable blocksize.  The major caller-visible
80364         change is the addition of a new
80365         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
80366         that both overflow and suffix chars were found.
80367
80368         * lib/human.c (humblock): Don't check separately for invalid suffix
80369         char; that is xstrtoumax's job (now that its bug is fixed).
80370         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
80371         INTMAX_MAX]: New macros.
80372         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
80373         TYPE_MAXIMUM): New macros.
80374         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
80375         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
80376         if overflow occurs, as it's what __strtol does and it's more useful
80377         in practice.
80378         (__xstrtol): If __strtol reports some error other than ERANGE,
80379         reflect it to the caller as LONGINT_INVALID.  If it reports
80380         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
80381         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
80382         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
80383         value.
80384         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
80385         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
80386         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
80387         [defined UINTMAX_MAX]: New macros.
80388
80389 2003-10-14  Bruno Haible  <bruno@clisp.org>
80390
80391         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
80392
80393 2003-10-14  Bruno Haible  <bruno@clisp.org>
80394
80395         * m4/sig_atomic_t: New file, from GNU gettext.
80396         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
80397
80398 2003-10-14  Bruno Haible  <bruno@clisp.org>
80399
80400         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
80401         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
80402         Also use volatile where needed.
80403
80404 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80405
80406         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
80407         Change maintainer from Bruno Haible to 'all'.
80408
80409 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80410
80411         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
80412
80413 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80414
80415         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
80416         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
80417         and define in terms of the other primitives.
80418         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
80419         (SIZE_MAX): Define if not already defined.
80420         (array_size_overflow): New function.
80421         (xalloc_die): Abort instead of exiting if 'error' returns.
80422         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
80423         (xmalloc, xrealloc): Use them.
80424         (xcalloc): Check for address arithmetic overflow.
80425         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
80426         a bit faster than strcpy.
80427
80428 2003-10-10  Simon Josefsson  <jas@extundo.com>
80429
80430         * modules/argp (Depends-on): Add restrict and strcase.
80431
80432 2003-10-10  Simon Josefsson  <jas@extundo.com>
80433
80434         * m4/argp.m4: Add AC_C_INLINE.
80435
80436 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80437
80438         Merge getpass from libc, plus a few fixes.
80439
80440         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
80441         Include <stdbool.h>.
80442         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
80443         __fsetlocking to empty.
80444         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
80445         do include <bits/libc-lock.h>.
80446         Do not include <fcntl.h>; not needed.
80447         [_LIBC]: Include <wchar.h>.
80448         (NOTCANCEL_MODE): New macro.
80449         (flockfile, funlockfile) [_LIBC]: New macros.
80450         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
80451         [!_LIBC]: New macros.
80452         (call_fclose): New function.
80453         (getpass): Use it.  Save tty stream separately; this simplifies the
80454         code and makes it more reliable if stdin happens to equal stdout.
80455         Invoke __fsetlocking on tty.
80456         Handle thread cancellation if needed.
80457         Namespace cleanup (use __tcgetattr, __getline).
80458         Use bool for Booleans.
80459         [USE_IN_LIBIO]: Handle wide streams.
80460         [!_LIBC]: Unconditionally do the fseek, since we don't know what
80461         stream might go where.
80462
80463         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
80464         doesn't have to include <stdio.h> before us.
80465         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
80466         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
80467         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
80468         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
80469         if not declared, so that we can use getpass.c code from libc without
80470         rewriting it.
80471         (flockfile, ftrylockfile, funlockfile): New macros.
80472
80473 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80474
80475         * modules/getpass: Depend on stdbool.
80476
80477 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80478
80479         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
80480
80481 2003-10-07  Karl Berry  <karl@gnu.org>
80482
80483         * config/config.{guess,sub}: update from config.
80484
80485 2003-10-06  Jim Meyering  <jim@meyering.net>
80486             Bruno Haible  <bruno@clisp.org>
80487
80488         This lets translators provide better translations for the
80489         "Written by ..." part of --version output.
80490         * lib/version-etc.h: Include stdarg.h.
80491         (version_etc_copyright): Declare as readonly.
80492         (version_etc): Make this function variadic with a NULL-terminated list
80493         of author name strings.
80494         (version_etc_va): New declaration.
80495         * lib/version-etc.c: Include stdarg.h, stdlib.h.
80496         (version_etc_copyright): Declare as readonly.
80497         (version_etc_va): New function. Provide a different translatable string
80498         for each possible number of authors < 10. Abbreviate when there are 10
80499         authors or more.
80500         (version_etc): Make this function variadic. Call version_etc_va.
80501         Suggestion from Gary V. Vaughan.
80502
80503         * lib/long-options.h (parse_long_options): Change prototype: the
80504         authors string is moved to the end and becomes variadic.
80505         * lib/long-options.c: Include stdarg.h.
80506         (parse_long_options): Make this function variadic, too.
80507         Call version_etc_va, not version_etc.
80508
80509 2003-10-06  Bruno Haible  <bruno@clisp.org>
80510
80511         * modules/version-etc-2: Remove file.
80512         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
80513
80514 2003-10-06  Bruno Haible  <bruno@clisp.org>
80515
80516         * modules/fatal-signal: New file.
80517         * MODULES.html.sh (func_all_modules): Add fatal-signal.
80518
80519 2003-10-06  Bruno Haible  <bruno@clisp.org>
80520
80521         * m4/fatal-signal.m4: New file.
80522         * m4/signalblocking.m4: New file, from GNU gettext.
80523
80524 2003-10-06  Bruno Haible  <bruno@clisp.org>
80525
80526         * lib/version-etc-2.h: Remove file.
80527         * lib/version-etc-2.c: Remove file.
80528
80529 2003-10-06  Bruno Haible  <bruno@clisp.org>
80530
80531         * lib/fatal-signal.h: New file, from GNU gettext.
80532         * lib/fatal-signal.c: New file, from GNU gettext.
80533
80534 2003-10-05  Paul Eggert  <eggert@twinsun.com>
80535
80536         * README: Rework advice for preventing empty .o files.
80537         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
80538         not <sys/types.h>.
80539
80540 2003-10-04  Karl Berry  <karl@gnu.org>
80541
80542         * lib/argp*: update from libc.
80543
80544 2003-10-04  Karl Berry  <karl@gnu.org>
80545
80546         * config/config.{guess,sub}: update from config.
80547
80548 2003-10-02  Bruno Haible  <bruno@clisp.org>
80549
80550         * modules/lchown (Include): Add lchown.h.
80551         * modules/time_r (Include): Use "..." syntax.
80552         * modules/xgetdomainname (Include): Add xgetdomainname.h.
80553
80554 2003-10-01  Simon Josefsson  <jas@extundo.com>
80555
80556         * MODULES.html.sh (func_all_modules): Move gethostname from section
80557         'based on' to section 'lacking' POSIX:2001.
80558
80559 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
80560
80561         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
80562         to output mode on the same stream.
80563
80564 2003-09-29  Paul Eggert  <eggert@twinsun.com>
80565
80566         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
80567         Fix arg typo in previous patch.
80568
80569 2003-09-28  Jim Meyering  <jim@meyering.net>
80570
80571         * lib/error.c: Correct cpp indentation.
80572
80573 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80574
80575         * modules/free: New file.
80576
80577 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80578
80579         * m4/free.m4: New file.
80580
80581 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80582
80583         * lib/minmax.h (MIN, MAX)
80584         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
80585         Omit the special code that used __typeof__, since we worry that
80586         it could be more trouble than it's worth.  See:
80587         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
80588         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
80589
80590         * lib/free.c: New file.
80591
80592 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
80593
80594         Trivial fixes to Makefile.am parts of module listings.
80595         * modules/strstr: Append strstr.h to lib_SOURCES.
80596         * modules/strcase: Likewise, for strcase.h.
80597
80598 2003-09-27  Karl Berry  <karl@gnu.org>
80599
80600         * config/mkinstalldirs: update from automake.
80601
80602 2003-09-26  Paul Eggert  <eggert@twinsun.com>
80603
80604         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
80605         (error_tail): Do not loop, reallocating temporary buffer, since
80606         the output cannot contain more wide characters than the input
80607         contains bytes, the size must be big enough already.  This avoids
80608         one potential size overflow calculation.  Check for size overflow
80609         when calculating temporary buffer size.  Free temporary buffer
80610         when done, if it was allocated with malloc; this plugs a memory
80611         leak.  Remove casts from void * to pointers, that are no longer
80612         needed now that we're assuming C89 or better.
80613
80614         Merge error changes from glibc.
80615
80616         * lib/error.c, error.h: Update copyright notice header to match glibc.
80617         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
80618         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
80619         Disable cancellation while printing error.
80620         * lib/error.h: Prepend __ to parameter names.
80621
80622 2003-09-26  Jim Meyering  <jim@meyering.net>
80623
80624         * lib/error.c (error_tail): Move some declarations
80625         into inner scope where the local variables are used.
80626
80627 2003-09-26  Bruno Haible  <bruno@clisp.org>
80628
80629         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
80630         stpncpy().
80631         Don't define stpncpy through config.h; it's now done through stpncpy.h.
80632
80633 2003-09-26  Bruno Haible  <bruno@clisp.org>
80634
80635         * lib/stpncpy.h (gnu_stpncpy): New declaration.
80636         (stpncpy): Define as alias for gnu_stpncpy.
80637         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
80638
80639 2003-09-25  Simon Josefsson  <jas@extundo.com>
80640
80641         * lib/xgetdomainname.h: New file.
80642         * lib/xgetdomainname.c: New file.
80643
80644 2003-09-25  Simon Josefsson  <jas@extundo.com>
80645             Bruno Haible  <bruno@clisp.org>
80646
80647         * modules/getdomainname: New file.
80648         * modules/xgetdomainname: New file.
80649         * MODULES.html.sh (func_all_modules): Add getdomainname,
80650         xgetdomainname.
80651
80652 2003-09-25  Simon Josefsson  <jas@extundo.com>
80653             Bruno Haible  <bruno@clisp.org>
80654
80655         * m4/getdomainname.m4: New file.
80656
80657 2003-09-25  Simon Josefsson  <jas@extundo.com>
80658             Bruno Haible  <bruno@clisp.org>
80659
80660         * lib/getdomainname.h: New file.
80661         * lib/getdomainname.c: New file.
80662
80663 2003-09-25  Karl Berry  <karl@gnu.org>
80664
80665         * lib/argp-fmtstream.c, argp-help.c: update from libc.
80666
80667 2003-09-25  Karl Berry  <karl@gnu.org>
80668
80669         * config/install-sh: update from automake.
80670
80671 2003-09-25  Bruno Haible  <bruno@clisp.org>
80672
80673         * modules/version-etc-2: New file, from modules/version-etc with
80674         modifications.
80675         * MODULES.html.sh (func_all_modules): Add version-etc-2.
80676
80677 2003-09-25  Bruno Haible  <bruno@clisp.org>
80678
80679         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
80680         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
80681
80682 2003-09-24  Simon Josefsson  <jas@extundo.com>
80683
80684         * modules/xgethostname: Add xgethostname.h.
80685
80686 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80687
80688         * lib/linebuffer.c (freebuffer): Don't free the argument, just
80689         the buffer associated with the argument.  Bug reported by
80690         Simon Josefsson.
80691
80692 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80693
80694         * README: Document assumptions that 'int' is at least 32 bits
80695         wide, that integer arithmetic is 2's complement without overflow,
80696         that there are no holes in integer values, that adding sizes of
80697         two nonoverlapping objects can't overflow, and that all-bits-zero
80698         yields scalar zero.  Fix spelling and capitalization typos.
80699
80700 2003-09-19  Karl Berry  <karl@gnu.org>
80701
80702         * lib/argp.h: update from libc.
80703
80704 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80705
80706         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
80707         to avoid spurious warnings like "AC_RUN_IFELSE was called before
80708         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
80709
80710 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80711
80712         * gnulib-tool: Use "test -h", not "test -L", for portability
80713         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
80714         (tags_regexp): Remove, since \| doesn't conform to POSIX.
80715         (sed_extract_prog): Issue s commands one-by-one, rather than
80716         using \| in one s command.
80717
80718 2003-09-16  Paul Eggert  <eggert@twinsun.com>
80719
80720         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
80721         input error, instead of returning NULL the next time we are called
80722         (and therefore losing track of errno).
80723
80724 2003-09-16  Bruno Haible  <bruno@clisp.org>
80725
80726         * gnulib-tool (func_create_testdir): Warn about duplicated
80727         dependencies.
80728
80729 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80730
80731         * modules/argmatch, modules/fatal, modules/obstack,
80732         modules/xalloc, modules/xgethostname: Sort dependencies by
80733         importance, not alphabetically.
80734
80735 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80736
80737         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
80738         fails, so that the caller gets the proper errno.
80739
80740         * lib/readutmp.c (read_utmp): Likewise.
80741         Check for fstat error.  Close stream and free storage
80742         when failing.
80743
80744 2003-09-14  Karl Berry  <karl@gnu.org>
80745
80746         * config/srclist.txt (strdup.c): disable for c89 changes.
80747
80748 2003-09-14  Jim Meyering  <jim@meyering.net>
80749
80750         * lib/getloadavg.c: Correct cpp indentation.
80751         * lib/strdup.c: Likewise.
80752         * lib/vasnprintf.c: Likewise.
80753
80754 2003-09-14  Bruno Haible  <bruno@clisp.org>
80755
80756         * modules/fwriteerror: New file.
80757         * MODULES.html.sh (func_all_modules): Add fwriteerror.
80758
80759 2003-09-14  Bruno Haible  <bruno@clisp.org>
80760
80761         * lib/fwriteerror.h: New file.
80762         * lib/fwriteerror.c: New file.
80763
80764 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80765
80766         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
80767         modules/xgethostname, modules/xalloc: Depend on exit.
80768
80769 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80770
80771         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
80772
80773         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
80774         and AC_MINIX, too, so that their extensions are available.
80775
80776         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
80777         This macro has been superseded by gl_BACKUPFILE.
80778
80779         More patches to assume C89 or better.
80780
80781         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
80782
80783         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
80784         unconditionally.
80785         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
80786         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
80787         Include <string.h>, <stdlib.h> unconditionally.
80788         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
80789         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
80790         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
80791         headers or for string.h.
80792         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
80793         or strtoul.
80794
80795         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
80796         headers.
80797         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
80798         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80799         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
80800         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
80801         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80802         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
80803         memcpy, memset.
80804         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
80805         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
80806         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
80807         strtol.
80808         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
80809         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
80810         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
80811         strtoul.
80812
80813 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80814
80815         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
80816         * lib/obstack.c [!defined _LIBC]: Likewise.
80817         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
80818         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
80819         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
80820
80821         More changes to assume C89 or better.
80822
80823         * lib/error.c (error_tail): Assume vprintf.
80824
80825         * lib/argmatch.c (getenv): Remove decl.
80826         * lib/progreloc.c (get_full_program_name): Define via prototype.
80827         * lib/setenv.c (clearenv): Likewise.
80828         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
80829         needed.
80830         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
80831         (malloc, memcpy): Remove decls.
80832         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
80833         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
80834         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80835         (memcpy): Remove macro.
80836         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
80837         (__P): Remove.  All uses removed.
80838         (PTR): Remove.  All uses changed to void *.
80839         (CHAR_BIT, NULL): Remove.
80840         (spaces, zeros, memset_space, memset_zero)
80841         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
80842         Remove.
80843         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
80844         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
80845         Define with prototype.
80846         Remove now-unnecessary prototype decl.
80847         (extra_args_spec): Assume ANSI C.  All uses changed.
80848         (extra_args_spec_iso): Remove.
80849         (my_strftime, emacs_strftimeu): Define via prototype.
80850         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
80851         unconditionally.
80852         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
80853         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
80854         (strtoul, strtol): Remove decls.
80855         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
80856         LONG_MAX): Remove.
80857         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80858         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
80859         (LOCALE_PARAM_PROTO): New macro.
80860         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
80861         (INTERNAL (strtol), strtol): Define with a prototype.
80862         (PARAMS): Remove.  All uses removed.
80863         * lib/tempname.c: Include <string.h> unconditionally.
80864         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
80865         * lib/xgethostname.c (main): Define with a prototype.
80866         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
80867         Include <stdlib.h> unconditionally.
80868         (calloc, malloc, realloc, free): Remove decls.
80869         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
80870         Include <stdlib.h> unconditionally.  Sort include file names.
80871         (strtod): Remove.
80872         (xstrtod): Define with a prototype.
80873         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
80874         (strtol, strtoul): Remove decls.
80875
80876 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80877
80878         More patches to assume C89 or better.
80879         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
80880         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
80881         string.h, memchr, STDC_HEADERS.
80882
80883 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80884
80885         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
80886         Include <stdlib.h>, <string.h> unconditionally.
80887         Remove now-unnecessary cast to char *.
80888         * lib/strnlen.c: Include <string.h> unconditionally.
80889         * lib/yesno.c (yesno): Define with a prototype.
80890
80891 2003-09-11  Bruno Haible  <bruno@clisp.org>
80892
80893         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
80894
80895 2003-09-10  Jim Meyering  <jim@meyering.net>
80896
80897         * lib/error.c: Correct indentation of cpp directives.
80898
80899 2003-09-10  Bruno Haible  <bruno@clisp.org>
80900
80901         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
80902         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
80903         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
80904         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
80905         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
80906         <stdlib.h> and <string.h> checks.
80907         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
80908         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
80909
80910 2003-09-10  Bruno Haible  <bruno@clisp.org>
80911
80912         * lib/strcspn.c: Include <string.h> unconditionally.
80913         * lib/strpbrk.c: Include <string.h> unconditionally.
80914         * lib/strstr.c: Include <string.h> unconditionally.
80915         * lib/unicodeio.c: Include <string.h> unconditionally.
80916         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
80917         * lib/unsetenv.c: Likewise.
80918         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
80919         * lib/yesno.c: Include <stdlib.h> unconditionally.
80920         (rpmatch): Add prototype.
80921
80922 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80923
80924         More patches to assume C89 or better.
80925         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
80926         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
80927         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
80928         or for string.h.
80929         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
80930         stdlib.h.
80931         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
80932         C headers.
80933         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
80934         string.h.
80935         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
80936         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
80937         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
80938         or for string.h.
80939         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
80940         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
80941         C headers.
80942         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
80943         memcpy.
80944         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
80945         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
80946         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
80947         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
80948         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
80949         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
80950         string.h, free.
80951         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
80952         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
80953         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
80954         C headers, or for string.h.
80955         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
80956         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
80957         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
80958         headers, memory.h, stdlib.h, string.h, strings.h.
80959         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
80960         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
80961         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
80962         strchr.
80963         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
80964         headers, memory.h, string.h.
80965         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
80966         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
80967         free.
80968         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
80969         headers.
80970         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
80971         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
80972         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
80973         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
80974         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
80975
80976 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80977
80978         More K&R removal.
80979
80980         * lib/acosl.c (main): Use a prototype.
80981         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
80982         tanl.c: Likewise.
80983
80984         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
80985
80986         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
80987         (getopt, etopt_long, getopt_long_only, _getopt_internal)
80988         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
80989         with a prototype.
80990         * lib/getopt.c (const): Remove macro.
80991         Include <string.h> unconditionally.
80992         (my_index): Remove; all uses changed to strchr.
80993         (strlen): Remove decl.
80994         (exchange): Remove forward decl; no longer needed.
80995         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
80996         Define with prototype.
80997         * lib/getopt1.c (const): Remove macro.
80998         (getopt_long, getopt_long_only, main): Define with prototype.
80999
81000         * lib/getugroups.c: Include <string.h> unconditionally.
81001
81002         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81003         (getusershell, setusershell, endusershell, readname, main):
81004         Define with prototypes.
81005
81006         * lib/group-member.c: Include group-member.h first.
81007         Include <stdlib.h> unconditionally.
81008
81009         * lib/hard-locale.c: Include hard-locale.h first.
81010         Include <stdlib.h>, <string.h> unconditionally.
81011
81012         * lib/hash.c (free, malloc): Remove decls.
81013         Include <stdlib.h> unconditionally.
81014
81015         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81016         (getenv): Do not declare.
81017
81018         * lib/idcache.c: Include <string.h> unconditionally.
81019
81020         * lib/long-options.c: Include long-options.h first, to test interface.
81021         Include <stdlib.h> unconditionally.
81022
81023         * lib/makepath.c: Include makepath.h first, to test interface.
81024         Include <stdlib.h> and <string.h> unconditionally.
81025
81026         * lib/linebuffer.c: Include <stdlib.h>.
81027         (free): Remove decl.
81028
81029         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81030         stddef.h. rpl_malloc returns void *, not char *.
81031         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81032         prototype.
81033
81034         * lib/md5.h: Include <limits.h> unconditionally.
81035         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81036         (__P): Remove; all uses removed.
81037         * lib/md5.c: Include "md5.h" first.
81038         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81039         md5_buffer, md5_process_bytes, md5_process_block):
81040         Define with prototypes.
81041         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81042         * lib/sha.c: Include "sha.h" first.
81043         Include <stdlib.h>, <string.h> unconditionally.
81044
81045         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81046         * lib/memcmp.c (__ptr_t): Likewise.
81047         * lib/memrchr.c (__ptr_t): Likewise.
81048         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81049         Include <string.h> unconditionally.
81050         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81051         * lib/memchr.c: Include <stdlib.h> unconditionally.
81052         * lib/memchr.c (LONG_MAX): Remove.
81053         * lib/memrchr.c (LONG_MAX): Likewise.
81054         * lib/memchr.c (__memchr): Define via a prototype.
81055         * lib/memrchr.c (__memrchr): Likewise.
81056         * lib/memcmp.c (__P): Remove, and remove all uses.
81057         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81058         Remove forward decls; no longer needed.
81059         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81060         Use types required by C89 in prototype.
81061
81062         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81063         * lib/savedir.c: Likewise.
81064         * lib/mkdir.c (free): Remove decl.
81065         * lib/rmdir.c (rmdir): Define with a prototype.
81066         * lib/savedir.c: Include savedir.h first, to test interface.
81067
81068         * lib/mktime.c (STDC_HEADERS): Remove.
81069         Include <stdlib.h>, <string.h> unconditionally.
81070
81071         * lib/modechange.c: Include <stdlib.h> unconditionally.
81072         (malloc): Remove decl.
81073
81074         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81075         (free): Remove decl.
81076
81077         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81078         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81079         (This type really should be intptr_t, but that's a C99ism.)
81080         (_obstack_memcpy): Remove: all uses changed to memcpy.
81081         Include <string.h> unconditionally.
81082         (struct obstack): Assume __STDC__ for types of members
81083         chunkfun, freefun, extra_arg.
81084         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81085         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81086         obstack_begin, obstack_specify_allocation,
81087         obstack_specify_allocation_with_arg, obstack_chunkfun,
81088         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81089         Remove unprototyped decls and the macros that use them.
81090         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81091         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81092         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81093         (defined __STDC__ && __STDC__)]:
81094         Remove nonprototyped code.
81095         Include <stdlib.h> unconditionally.
81096         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81097         _obstack_allocated_p, _obstack_free, obstack_free,
81098         _obstack_memory_used, print_and_abort):
81099         Define using prototypes.
81100         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81101         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81102         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81103         obstack_next_free, obstack_object_size, obstack_room) [0]:
81104         Remove unused, unprototyped code.
81105
81106         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81107
81108         * lib/physmem.c (physmem_total, physmem_available, main): Define
81109         with prototypes.
81110
81111         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81112         (main): Define with a prototype.
81113
81114         * lib/posixver.c (getenv): Remove decl.
81115
81116         * lib/putenv.c (malloc): Returns void *, not char *.
81117         Include <string.h> unconditionally.
81118         (strchr, memcpy, NULL): Do not define.
81119
81120         * lib/readtokens.c: Include readtokens.h first, to test interface.
81121         Include <stdlib.h>, <string.h> unconditionally.
81122         (init_tokenbuffer): Define with a prototype.
81123
81124         * lib/regex.c (PARAMS): Remove.  All uses removed.
81125         All uses of _RE_ARGS removed, too.
81126         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81127         unconditionally.
81128         (bzero): Assume memset exists.
81129         (memcmp, memcpy, NULL): Remove.
81130         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
81131         char, or assignments to local vars of type signed char.
81132         (init_syntax_once, PREFIX(extract_number_and_incr),
81133         PREFIX(print_partial_compiled_pattern),
81134         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
81135         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
81136         PREFIX(regex_grow_registers), PREFIX(regex_compile),
81137         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
81138         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
81139         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
81140         wcs_compile_range, byte_compile_range, truncate_wchar,
81141         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
81142         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
81143         count_mbs_length, wcs_re_match_2_internal,
81144         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
81145         PREFIX(alt_match_null_string_p),
81146         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
81147         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
81148         regfree, PREFIX(extract_number)): Define with prototype.  Remove
81149         now-unnecessary declaration, if any.
81150         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
81151         regcomp, regexec):
81152         Remove now-unnecessary casts among pointer types.
81153         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
81154
81155         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
81156         (free): Remove decl.
81157
81158         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
81159
81160         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
81161         (free): Remove decl.
81162
81163         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
81164         * lib/xgetcwd.c: Likewise.
81165
81166         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
81167         (free): Remove decl.
81168
81169         * lib/strchrnul.c (strchrnul): Define with a prototype.
81170         Fix bug: c_in was not converted to char before searching.
81171
81172         The following changes are not K&R related:
81173
81174         * lib/group-member.h: Include <sys/types.h>, so that this file is
81175         self-contained.
81176         * lib/makepath.h: Likewise.
81177
81178         * lib/getusershell.c (readname, default_index, line_size, readname):
81179         Use size_t, not int, for sizes.
81180         (readname): If the size overflows, report an error instead of
81181         looping forever.
81182
81183 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81184
81185         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81186         libc.
81187
81188 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81189
81190         * README: New section: portability guidelines.
81191
81192 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81193
81194         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81195         C89 spec.
81196
81197 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81198
81199         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81200
81201 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81202
81203         Assume C89 or better; remove K&R cruft.
81204         A few of these changes were first proposed by Derek Robert Price
81205         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
81206
81207         * lib/addext.c: Include <string.h> unconditionally.
81208         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
81209         Don't declare getenv or malloc.
81210
81211         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
81212         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
81213         (NULL): Remove.
81214         (find_stack_direction, alloca): Use prototypes.
81215
81216         * lib/atexit.c (atexit): Define using a prototype.
81217
81218         * lib/basename.c, dirname.c, stripslash.c:
81219         Include <string.h> unconditionally.
81220
81221         * lib/bcopy.c: Include <stddef.h>.
81222         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
81223
81224         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
81225
81226         * lib/error.h (error, error_at_line, error_print_progname)
81227         [! (defined (__STDC__) && __STDC__)]: Remove decls.
81228         * lib/error.c: Include error.h first, to check interface.
81229         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81230         (VA_START): Remove; all uses changeed to va_start.
81231         (exit, strerror): Remove decls.
81232         (error_print_progname): Prototype uncondionally.
81233         Don't include <errno.h>; no longer needed.
81234         (private_strerror): Remove.
81235         (error_tail): Always define.
81236         (error, error_at_line): Assume C89 or better; always use prototypes.
81237         * lib/fatal.c: Include "fatal.h" first, to test interface.
81238         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81239         (VA_START): Remove; all uses changed to va_start.
81240         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
81241         this case.
81242         (exit): Remove decl.
81243         (fatal): Prototype unconditionally.  Assume va_start works.
81244         Abort at end, to pacify gcc.
81245
81246         * lib/euidaccess.c (main): Define with a prototype.
81247
81248         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
81249
81250         * lib/exitfail.c: Include <stdlib.h> unconditionally.
81251
81252         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
81253         prototypes.
81254         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
81255         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
81256         (getenv): Remove decl.
81257         (fnmatch): Define using a prototype.
81258         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
81259         (FCT): Define using a prototype.
81260
81261         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
81262
81263         * lib/gethostname.c: Include <stddef.h>.
81264         (gethostname): Define with prototype.  Length is size_t, not int.
81265
81266 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81267
81268         Assume C89 or better; remove K&R cruft.
81269         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
81270         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
81271         string.h, getenv, malloc.
81272         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
81273         headers.
81274         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
81275         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
81276         do not check for strerror.
81277         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
81278         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
81279         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
81280         do not check for doprnt or vprintf.
81281         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
81282         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
81283
81284 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81285
81286         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
81287         getversion.c should have been removed then, but was accidentally
81288         preserved.
81289
81290         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
81291         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
81292
81293 2003-09-08  Karl Berry  <karl@gnu.org>
81294
81295         * config/config.sub, config.guess, srclistvars.sh: update from savannah
81296                 config, forget about prep.
81297
81298         * config/depcomp, missing: update from automake.
81299
81300 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81301
81302         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
81303         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81304
81305 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81306
81307         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
81308         copy_tm_result.  Bug reported by Simon Josefsson in
81309         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81310
81311 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81312
81313         * m4/time_r.m4: New file.
81314         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
81315         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
81316         is. Check for timegm declaration.
81317         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
81318         Do not check for gmtime_r.
81319         Replace mktime if __mktime_internal does not exist and if mktime
81320         hasn't been replaced already.
81321
81322 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81323
81324         * lib/time_r.c, lib/time_r.h: New files.
81325
81326         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
81327         __localtime_r.
81328         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
81329         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
81330
81331         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
81332         __gmtime_r.
81333         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
81334         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
81335         Include <time_r.h>.
81336
81337         * lib/timegm.c: Switch to glibc implementation, with the following
81338         changes:
81339         [defined HAVE_CONFIG_H]: Include <config.h>.
81340         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
81341         (__mktime_internal) [!defined _LIBC]: New decl.
81342         (__gmtime_r) [!defined _LIBC]: New macro and function.
81343         (timegm): Use a prototype, since gnulib assumes C89.
81344         Do not bother declaring tmp to be const, as it's not really usefu.
81345         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
81346         (timegm): Declare only if HAVE_DECL_TIMEGM.
81347
81348 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81349
81350         * MODULES.html.sh (func_all_modules): Add time_r.
81351         * modules/time_r: New file.
81352         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
81353         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
81354
81355 2003-09-03  Paul Eggert  <eggert@twinsun.com>
81356
81357         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
81358         Bug reported by Lute Kamstra in
81359         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
81360
81361         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
81362         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
81363         course with correspondingly smaller numbers for tomorrow and
81364         yesterday.  From Tadayoshi Funaba.  Originally installed into
81365         sh-utils on 1999-08-07, but the patch got lost (I guess during the
81366         coreutils merge?).
81367
81368 2003-08-31  Simon Josefsson  <jas@extundo.com>
81369
81370         * modules/timegm: New file.
81371         * MODULES.html.sh (func_all_modules): Add timegm.
81372
81373 2003-08-31  Simon Josefsson  <jas@extundo.com>
81374
81375         * m4/timegm.m4: New file.
81376
81377 2003-08-31  Simon Josefsson  <jas@extundo.com>
81378
81379         * lib/timegm.h: New file.
81380         * lib/timegm.c: New file.  Based on
81381         wget-1.8.2/src/http.c:mktime_from_utc.
81382
81383 2003-08-31  Karl Berry  <karl@gnu.org>
81384
81385         * lib/argp.h: update from libc.
81386
81387 2003-08-28  Bruno Haible  <bruno@clisp.org>
81388
81389         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
81390         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
81391         followed by '#define fnmatch fnmatch_posix' gives an error.
81392
81393 2003-08-28  Bruno Haible  <bruno@clisp.org>
81394
81395         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
81396         warning on QNX, which defines O_BINARY to 000000.
81397
81398 2003-08-27  Jim Meyering  <jim@meyering.net>
81399
81400         * m4/mkstemp.m4: Require that the system mkstemp be able to create
81401         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
81402         would fail after 32.  Reported by Danny Levinson.  Details here:
81403         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
81404
81405 2003-08-24  Bruno Haible  <bruno@clisp.org>
81406
81407         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
81408         MSVC7 <stdio.h> is included later.
81409
81410 2003-08-22  Simon Josefsson  <jas@extundo.com>
81411
81412         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
81413
81414 2003-08-20  Karl Berry  <karl@gnu.org>
81415
81416         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
81417
81418 2003-08-20  Bruno Haible  <bruno@clisp.org>
81419
81420         * modules/progname: New file.
81421         * MODULES.html.sh (func_all_modules): Add progname.
81422
81423 2003-08-20  Bruno Haible  <bruno@clisp.org>
81424
81425         * lib/progname.h: New file, from GNU gettext.
81426         * lib/progname.c: New file, from GNU gettext.
81427         * lib/progreloc.c: New file, from GNU gettext.
81428
81429 2003-08-19  Jim Meyering  <jim@meyering.net>
81430
81431         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
81432         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
81433
81434 2003-08-19  Bruno Haible  <bruno@clisp.org>
81435
81436         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
81437         more.
81438
81439 2003-08-19  Bruno Haible  <bruno@clisp.org>
81440
81441         * lib/xstrdup.c: Assume <string.h> exists.
81442
81443 2003-08-18  Paul Eggert  <eggert@twinsun.com>
81444
81445         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
81446         in makefile rules.
81447
81448 2003-08-18  Jim Meyering  <jim@meyering.net>
81449
81450         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
81451         * m4/lib-ld.m4: Likewise.
81452
81453 2003-08-18  Jim Meyering  <jim@meyering.net>
81454
81455         * lib/setenv.h: Indent nested cpp directive.
81456         * lib/vasnprintf.c: Remove trailing blanks.
81457
81458 2003-08-17  Simon Josefsson  <jas@extundo.com>
81459
81460         * modules/xstrndup: New file.
81461         * MODULES.html.sh (func_all_modules): Add xstrndup.
81462
81463 2003-08-17  Simon Josefsson  <jas@extundo.com>
81464
81465         * modules/argp: Fix autoconf macro name. Add more dependencies.
81466
81467 2003-08-17  Simon Josefsson  <jas@extundo.com>
81468
81469         * m4/xstrndup.m4: New file.
81470
81471 2003-08-17  Simon Josefsson  <jas@extundo.com>
81472
81473         * m4/argp.m4: New file.
81474
81475 2003-08-17  Simon Josefsson  <jas@extundo.com>
81476             Bruno Haible  <bruno@clisp.org>
81477
81478         * lib/xstrndup.h: New file.
81479         * lib/xstrndup.c: New file.
81480
81481 2003-08-17  Bruno Haible  <bruno@clisp.org>
81482
81483         * modules/strndup (Files, Include): Add lib/strndup.h.
81484
81485 2003-08-17  Bruno Haible  <bruno@clisp.org>
81486
81487         * modules/euidaccess (Files): Add lib/euidaccess.h.
81488
81489 2003-08-17  Bruno Haible  <bruno@clisp.org>
81490
81491         * lib/strndup.h: New file.
81492
81493 2003-08-17  Bruno Haible  <bruno@clisp.org>
81494
81495         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
81496         like AC_GNU_SOURCE.
81497         * modules/extensions (configure.ac): Comment out the invocation of
81498         gl_USE_SYSTEM_EXTENSIONS.
81499
81500 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81501
81502         Merges from coreutils, etc.
81503         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
81504         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
81505         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
81506         fixing a typo.
81507         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
81508         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
81509
81510 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81511
81512         Document merge from coreutils.
81513         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
81514         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
81515         * modules/utime: Add m4/utimes-null.m4.
81516
81517 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81518
81519         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
81520         space, undoing this 2003-08-12 change:
81521         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81522
81523 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81524
81525         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
81526         strtoul.c from libc, undoing this 2003-08-12 change:
81527         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81528
81529 2003-08-16  Jim Meyering  <jim@meyering.net>
81530
81531         Merges from coreutils.
81532         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
81533         prefix.  Adjust cache variables similarly.  Create 500 rather than
81534         just 300 files, to exercise bug on Darwin6.5, too.
81535         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
81536         $missing_dir.
81537         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
81538         AM_SYS_POSIX_TERMIOS.
81539         Reported by mkc@mathdogs.com.
81540         Also change use of $am_cv_sys_posix_termios
81541         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
81542         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
81543         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
81544         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
81545         in /proc/mounts until it finds one with matching device number.  This
81546         is unnecessary when the FILE argument *is* a mount point.  No stat call
81547         is necessary in that case.  So, disable the statvfs-testing code on
81548         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
81549         as RedHat bug# 84846.
81550         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81551         to 1MB, so as not to render systems with no stack size limit (e.g.,
81552         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81553         Include <unistd.h>.  On some systems,
81554         it is required for the definition of _SC_PAGESIZE.
81555
81556 2003-08-16  Jim Meyering  <jim@meyering.net>
81557
81558         Merge from coreutils.
81559         * lib/xstrtoimax.c: #else #if -> #elif.
81560         * lib/xstrtoumax.c: Likewise.
81561
81562 2003-08-16  Jim Meyering  <jim@meyering.net>
81563
81564         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
81565         * m4/utimes.m4: Removed.
81566         * m4/utimes-null.m4: Renamed from utimes.m4.
81567
81568         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81569         to 1MB, so as not to render systems with no stack size limit (e.g.,
81570         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81571         Include <unistd.h>.  On some systems,
81572         it is required for the definition of _SC_PAGESIZE.
81573
81574 2003-08-16  Jim Meyering  <jim@meyering.net>
81575         and Paul Eggert  <eggert@cs.ucla.edu>
81576
81577         Merges from coreutils, etc.
81578
81579         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
81580         using the latest version from cvs.  This avoids problems with #line
81581         directives using a vendor (Sun) compiler.
81582         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
81583         Don't set GETGROUPS_LIB here; now it's
81584         done via getgroups.m4's wrapper function.
81585         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
81586         rather than just in sh-util/configure.in, so that the
81587         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
81588         same.
81589         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
81590         AC_FUNC_GETLOADAVG where to find getloadavg.c.
81591         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
81592         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
81593         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
81594         Remove code that is now done by the newly-required macros.
81595         Append $(EXEEXT) to DF_PROG.
81596         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
81597         Do not invoke or require the following here,
81598         since prereq.m4 or some gnulib .m4 now does this for us:
81599         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
81600         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
81601         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
81602         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
81603         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
81604         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
81605         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
81606         AC_FUNC_OBSTACK.
81607         Do not replace the following functions, as this is now the job
81608         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
81609         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
81610         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
81611         atexit getpass, strdup, getpagesize.
81612         Replace 'raise'.
81613         Do not check for the following functions, as this is now the job
81614         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
81615         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
81616         setregid.
81617         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
81618         Check for sys/sysctl.h.
81619         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
81620         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
81621         of checking for ssize_t ourselves.
81622
81623         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
81624         Require every macro that gnulib/modules/* suggests for us.
81625         (jm_PREREQ_ADDEXT): New macro.
81626         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
81627         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
81628
81629         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
81630         (gl_PHYSMEM): Use it.
81631         Also check for `table' function.
81632         Check for new headers and functions.
81633         Add check for sys/sysmp.h.
81634         With suggestions from Kaveh Ghazi.
81635         Ignore headers that are present but cannot be compiled.  This
81636         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
81637         C 5.4.
81638
81639 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81640
81641         Document merge from coreutils.
81642         * modules/userspec: Depend on posixver.
81643         * modules/strftime: Depend on tzset.
81644
81645 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81646
81647         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
81648         rather than tab, after '#' in shell-script copyright notices.
81649         Suggested by Bruno Haible.
81650
81651 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81652
81653         * config/srclist-update: Use three spaces, rather than tab, after '#'
81654         in shell-script copyright notices.  Suggested by Bruno Haible.
81655         Remove unnecessary parenthesization in regular expression.
81656
81657 2003-08-15  Jim Meyering  <jim@meyering.net>
81658
81659         Merge from coreutils.
81660         * lib/xgethostname.c: Include <stdlib.h>.
81661         (xghostname): Don't exit for anything other than memory-related
81662         failure; just return NULL.
81663         * lib/userspec.c: Include "posixver.h".
81664         (parse_user_spec): Accept `.' as a separator only
81665         in pre-POSIX-200112 mode.
81666         * lib/strtoimax.c: Use #elif rather than #else #if.
81667         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
81668         Remove function, now that we can rely on a working tzset function.
81669         [!_LIBC]: Ensure that the required autoconf test has been run.
81670         [!defined _NL_CURRENT && HAVE_STRFTIME]:
81671         Use underlying_strftime for %r.
81672         * lib/sha.c: Merge in some clean-up and optimization changes from
81673         glibc.
81674         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
81675         Ensure that it is a multiple of 64.
81676         Rearrange loop exit tests so as to avoid performing an
81677         additional fread after encountering an error or EOF.
81678         * lib/realloc.c: Update copyright date.
81679
81680 2003-08-15  Jim Meyering  <jim@meyering.net>
81681         and Paul Eggert  <eggert@twinsun.com>
81682
81683         Merge from coreutils.
81684         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
81685         member but strut utmpx does not.  Needed for AIX 4.3.3.
81686         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
81687
81688 2003-08-15  Jim Meyering  <jim@meyering.net>
81689         and Paul Eggert  <eggert@cs.ucla.edu>
81690
81691         Merges from coreutils, etc.
81692         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
81693         Require gl_FUNC_TZSET_CLOBBER.
81694         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
81695         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
81696         members.
81697
81698 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81699
81700         Help the merge from coreutils.
81701         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
81702         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
81703         * m4/tzset.m4: Use it too.
81704
81705 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81706
81707         * modules/tzset: New file.
81708
81709 2003-08-14  Jim Meyering  <jim@meyering.net>
81710
81711         Merges from coreutils.
81712         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
81713         variable names, rather than @FNMATCH_H@.
81714         * modules/alloca: Likewise for $(ALLOCA_H).
81715
81716         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
81717         the three copies of the literal target, `fnmatch.h'.
81718         * modules/alloca (alloca.h): Likewise.
81719
81720 2003-08-14  Jim Meyering  <jim@meyering.net>
81721
81722         Merge from coreutils.
81723         * m4/tzset.m4: New file.
81724         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
81725         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
81726         otherwise, AIX 5.1 systems would end up using the latter.
81727         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
81728         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
81729         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
81730         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
81731
81732 2003-08-14  Jim Meyering  <jim@meyering.net>
81733
81734         Merge from coreutils.
81735         * lib/obstack.h: Whitespace changes.
81736         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
81737         and xcalloc return values.
81738         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
81739         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
81740         hang on OSF/1 5.1 for DIR on both local and remote file systems.
81741         Reported by (and fix confirmed by) Nelson H. F. Beebe.
81742         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81743         error from mntctl.
81744         Use mntctl's return value to drive the entry-processing loop, since
81745         we can't rely on the value of the vmt_length member in the last
81746         entry.  On some systems doing so could result in exhausting
81747         virtual memory.  Based in part on a patch from Mike Jetzer.
81748
81749 2003-08-14  Jim Meyering  <jim@meyering.net>
81750         and Paul Eggert  <eggert@twinsun.com>
81751
81752         Merges from coreutils, plus other fixes.
81753         * lib/physmem.c: Merge in portability changes from gcc/libiberty
81754         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
81755         for credits and details.  Thanks to Kaveh Ghazi for helping
81756         to keep these files in sync.
81757         (ARRAY_SIZE): Define it.
81758         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
81759         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
81760         (memcasecmp): Don't assume size_t fits in unsigned int.
81761         Remove casts and duplicate code.
81762         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
81763         (memcpy): Remove definition.
81764         Merge in some clean-up and optimization changes from glibc.
81765         [BLOCKSIZE]: Move definition to top of file.
81766         Ensure that it is a multiple of 64.
81767         Rearrange loop exit tests so as to avoid performing an
81768         additional fread after encountering an error or EOF.
81769         * lib/md5.h (md5_uintptr): Define.
81770         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
81771         return to the initial working directory.  Preserve errno
81772         for caller.
81773         * lib/idcache.c: Include "xalloc.h".
81774         (xmalloc, xrealloc): Remove decls.
81775         (getuser): Remove casts no longer required in C89.
81776         * lib/human.c: Include stdio.h, for sprintf.
81777         * lib/group-member.c: Include "xalloc.h".
81778         (xmalloc, xrealloc): Remove decls.
81779         (get_group_info): Remove casts no longer required in C89.
81780         * lib/getusershell.c (readname): Remove casts no longer required in
81781         C89.
81782         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
81783         * lib/getline.c: Whitespace fix, from coreutils.
81784
81785 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81786
81787         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
81788         Check for isascii.
81789
81790         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81791         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81792         Undo previous (whitespace-only) change.
81793
81794 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81795
81796         * lib/exclude.c: Include <ctype.h>
81797         (IN_CTYPE_DOMAIN): New macro.
81798         (is_space): New fn.
81799         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
81800         and empty lines.
81801
81802         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81803         Undo previous (whitespace-only) change.
81804
81805 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81806
81807         * config/srclist-update: Change update back to the old behavior,
81808         leaving whitespace alone.  Use one 'sed' command rather than a
81809         pipeline.
81810         (fixlicense): Now a variable, not a function.
81811         (remove_trailing_blanks): Remove.
81812         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
81813         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81814         Undo previous (whitespace-only) change.
81815
81816 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81817
81818         Merge from coreutils.
81819         * modules/euidaccess: Add lib_SOURCES, include for new
81820         file euidaccess.h
81821
81822 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81823
81824         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81825         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81826         Normalize leading white space and remove trailing white space.
81827
81828         Merge from coreutils
81829         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
81830
81831         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
81832         0.12.1.  These files are now being upgraded automatically by
81833         ../config/srclist-update.
81834
81835 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81836
81837         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81838         Normalize leading white space and remove trailing white space.
81839         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
81840         notice, as per ../config/srclist-update.
81841
81842         Merge from coreutils.
81843         * lib/euidaccess.h: New file.
81844         * lib/euidaccess.c: Include it.
81845         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
81846         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
81847         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
81848
81849 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81850
81851         * config/srclist-update: Add copyright notice.
81852         (remove_id_lines, remove_trailing_blanks): New constants.
81853         (fixfile): Use them to normalize spacing a bit in copied files.
81854         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81855         Normalize leading white space and remove trailing white space.
81856
81857         * config/texinfo.tex: Sync with texinfo.
81858
81859         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
81860         strtoul.c from libc, to merge coreutils whitespace changes.
81861
81862         * config/srclist.txt: Get the following m4 files from gettext:
81863         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
81864         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
81865         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
81866         wint_t.m4.
81867
81868 2003-08-12  Karl Berry  <karl@gnu.org>
81869
81870         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
81871         been made.
81872
81873 2003-08-11  Paul Eggert  <eggert@twinsun.com>
81874
81875         * modules/gnu-source, m4/gnu-source.m4:
81876         Remove; we're assuming Autoconf 2.54 or later now.
81877         Suggested by Bruno Haible.
81878         * MODULES.html.sh (func_all_modules): Remove gnu-source.
81879
81880 2003-08-11  Bruno Haible  <bruno@clisp.org>
81881
81882         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
81883
81884 2003-08-11  Bruno Haible  <bruno@clisp.org>
81885
81886         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
81887         (vasnprintf): Use it instead of wcslen.
81888
81889 2003-08-11  Bruno Haible  <bruno@clisp.org>
81890
81891         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
81892         value to ensure that _Bool promotes to int. Use #define for _Bool when
81893         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
81894
81895 2003-08-10  Karl Berry  <karl@gnu.org>
81896
81897         * lib/regex.h: update from libc (whitespace fix).
81898
81899 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81900
81901         Merge some files from coreutils.  These changes were
81902         originally made by Jim Meyering.
81903         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
81904         many older Unixes require this.
81905         * lib/alloca.c (alloca): Remove cast to argument of free;
81906         no longer needed in C89.
81907         * lib/alloca_.h, regex.h: Fix white space to match
81908         what GNU indent does.
81909
81910 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81911
81912         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
81913         apparently Emacs's Unicode mode got confused before my 2003-08-05
81914         checkin.
81915
81916 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81917
81918         * m4/extensions.m4: New file.
81919         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
81920         Require gl_USE_SYSTEM_EXTENSIONS.
81921         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
81922         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
81923
81924 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81925
81926         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
81927         * modules/extensions, modules/gnu-source: New files.
81928         * modules/timespec, modules/unlocked-io: Depend on extensions.
81929
81930 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81931
81932         * modules/restrict: New file.
81933         * MODULES.html.sh (func_all_modules): Add restrict.
81934         * modules/regex: Depend on restrict.
81935
81936 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81937
81938         * m4/restrict.m4: New file.
81939         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
81940
81941 2003-08-07  Bruno Haible  <bruno@clisp.org>
81942
81943         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
81944         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
81945
81946 2003-08-07  Bruno Haible  <bruno@clisp.org>
81947
81948         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
81949         makes the module 'getndelim2' compatible with the module 'getline'.
81950
81951 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81952
81953         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
81954         byte with "\201" to avoid glitches when editing that source file
81955         with multi-gnome-terminal.
81956
81957 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81958
81959         * lib/bumpalloc.h: Remove.
81960
81961 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81962
81963         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
81964         * modules/bumpalloc: Remove.
81965
81966 2003-08-04  Paul Eggert  <eggert@twinsun.com>
81967
81968         * lib/getloadavg.c: Change copyright notice and spacing to conform to
81969         GNU coding style.
81970
81971         Merge from coreutils.
81972         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
81973         1. From glibc.
81974         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
81975         from Karl Berry, implemented by Jim Meyering.
81976         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
81977         from Dmitry V. Levin.
81978         Remove anachronistic cast of xrealloc.
81979         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
81980         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
81981         type. Otherwise, it wouldn't compile with at least /bin/cc on
81982         ymp-cray-unicos9.0.2.X.
81983         Combine two mostly-identical uses of alloca into one.
81984         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
81985
81986 2003-08-04  Dave Love  <d.love@dl.ac.uk>
81987
81988         [From Emacs.]
81989
81990         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
81991         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
81992         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
81993         obsolete NLIST_NAME_UNION.
81994         [__GNU__]: Undef BSD and FSCALE.
81995         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
81996
81997 2003-08-03  Paul Eggert  <eggert@twinsun.com>
81998
81999         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82000         an enum type, so that it's guaranteed to promote to int.  See:
82001         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82002
82003 2003-08-03  Karl Berry  <karl@gnu.org>
82004
82005         * config/depcomp: update from automake.
82006
82007 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82008
82009         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82010         (strerror): Don't assume that a printable int fits in 14 bytes.
82011
82012 2003-07-31  Bruno Haible  <bruno@clisp.org>
82013
82014         * modules/getpass-gnu: New file.
82015         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82016
82017 2003-07-31  Bruno Haible  <bruno@clisp.org>
82018
82019         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82020
82021 2003-07-24  Karl Berry  <karl@gnu.org>
82022
82023         * config/missing: update from automake.
82024
82025 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82026             Bruno Haible  <bruno@clisp.org>
82027
82028         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82029         * lib/getline.c (getline, getdelim): Likewise.
82030         Remove _GNU_SOURCE define; now it's defined in config.h through
82031         m4/getline.m4.
82032
82033 2003-07-23  Karl Berry  <karl@gnu.org>
82034
82035         * config/config.sub: update from prep.
82036
82037 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82038
82039         * modules/xalloc (Depends-on): Add exitfail.
82040         * modules/xmemcoll: Likewise.
82041
82042 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82043
82044         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82045         over-parenthesization in macros.
82046
82047         Sync with coreutils.
82048
82049         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82050         required by C99.
82051
82052         Use `exit_failure' for xalloc and xmemcoll instead of their own
82053         private exit-failure variables.
82054         * lib/xalloc.h (xalloc_exit_failure): Remove.
82055         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82056         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82057         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82058         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82059         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82060
82061 2003-07-20  Jim Meyering  <jim@meyering.net>
82062
82063         * modules/closeout (Depends-on): Add exitfail.
82064         Suggestion from Bruno Haible.
82065
82066 2003-07-19  Karl Berry  <karl@gnu.org>
82067
82068         * config/config.sub: update from prep.
82069
82070 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82071
82072         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82073         Remove.
82074         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82075         to test that it can stand by itself.  Include "exitfail.h".
82076         Clients should set exit_failure instead.
82077         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82078
82079 2003-07-18  Bruno Haible  <bruno@clisp.org>
82080
82081         * modules/getndelim2: New file.
82082         * modules/getline: Share files with module getndelim2.
82083         * modules/getnline: Depend on getndelim2 instead of sharing files with
82084         it. Add getnline.c to lib_SOURCES.
82085         * MODULES.html.sh (func_all_modules): Add getndelim2.
82086
82087 2003-07-18  Bruno Haible  <bruno@clisp.org>
82088
82089         * m4/getndelim2.m4: New file.
82090         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82091         invoke gl_PREREQ_GETNDELIM2.
82092         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82093         gl_PREREQ_GETNDELIM2.
82094         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82095         gl_GETNDELIM2.
82096
82097 2003-07-18  Bruno Haible  <bruno@clisp.org>
82098
82099         * lib/getndelim2.h: New file.
82100         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82101         getndelim2.h.
82102         (getndelim2): Make non-static. Change return type to ssize_t.
82103         * lib/getline.h: Change argument names.
82104         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82105         * lib/getnline.c: Include getndelim2.h.
82106
82107 2003-07-18  Andreas Schwab  <schwab@suse.de>
82108
82109         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82110
82111 2003-07-17  Karl Berry  <karl@gnu.org>
82112
82113         * config/config.sub: update from prep.
82114
82115 2003-07-17  Bruno Haible  <bruno@clisp.org>
82116
82117         * modules/getnline: New file.
82118         * modules/getline: Add lib/getndelim2.c to source file list.
82119         * MODULES.html.sh (func_all_modules): Add getnline.
82120
82121 2003-07-17  Bruno Haible  <bruno@clisp.org>
82122
82123         * m4/getnline.m4: New file.
82124
82125 2003-07-17  Bruno Haible  <bruno@clisp.org>
82126
82127         * m4/Makefile.am.in: Remove file.
82128         * m4/Makefile.am: Remove file.
82129         * m4/Makefile.in: Remove file.
82130
82131 2003-07-17  Bruno Haible  <bruno@clisp.org>
82132
82133         * lib/getnline.h: New file.
82134         * lib/getnline.c: New file.
82135         * lib/getndelim2.c: New file, extracted from getline.c.
82136         (getndelim2): Renamed from getdelim2, with added nmax argument.
82137         * lib/getline.c: Include getndelim2.c.
82138         (getdelim2): Moved out to getndelim2.c.
82139         (getline, getdelim): Update.
82140
82141 2003-07-17  Bruno Haible  <bruno@clisp.org>
82142
82143         * lib/Makefile.am: Remove file.
82144         * lib/Makefile.in: Remove file.
82145
82146 2003-07-17  Bruno Haible  <bruno@clisp.org>
82147
82148         * configure.in: Remove file.
82149         * Makefile.in: Remove file.
82150
82151 2003-07-17  Bruno Haible  <bruno@clisp.org>
82152
82153         * MODULES.html.sh: Put the </BODY> right before </HTML>.
82154
82155 2003-07-16  Karl Berry  <karl@gnu.org>
82156
82157         * config/srclist-update: was running fixlicense twice, which caused
82158                 texinfo.tex to be nullified for some reason.  Simplify,
82159                 $gplsrc is no longer needed as far as I can see?
82160
82161 2003-07-16  Jim Meyering  <jim@meyering.net>
82162
82163         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
82164
82165 2003-07-15  Paul Eggert  <eggert@twinsun.com>
82166
82167         * config/srclist.txt: Get the following files from gettext-runtime/intl
82168         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
82169         ref-del.sin.  From Bruno Haible.
82170         * config/srclist-update (fixfile): Change grep pattern again, since the
82171         previous fix didn't work (there was another trailing $).  Use
82172         '[$]' to escape the $s.
82173
82174 2003-07-15  Karl Berry  <karl@gnu.org>
82175
82176         * lib/vasnprintf.c: update from gettext.
82177
82178 2003-07-15  Karl Berry  <karl@gnu.org>
82179
82180         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82181         gets expanded when surrounded by '$'.
82182
82183 2003-07-15  Jim Meyering  <jim@meyering.net>
82184
82185         * modules/save-cwd: Don't depend on error.  From Derek Price.
82186
82187 2003-07-15  Jim Meyering  <jim@meyering.net>
82188
82189         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82190
82191 2003-07-14  Simon Josefsson  <jas@extundo.com>
82192
82193         * modules/mempcpy: New file.
82194         * MODULES.html.sh (func_all_modules): Add mempcpy.
82195
82196 2003-07-14  Simon Josefsson  <jas@extundo.com>
82197
82198         * m4/mempcpy.m4: New file.
82199
82200 2003-07-14  Simon Josefsson  <jas@extundo.com>
82201
82202         * lib/mempcpy.h: New file.
82203         * lib/mempcpy.c: New file.
82204
82205 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82206
82207         * modules/getdate, modules/posixtm: Depend on mktime.
82208
82209 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82210
82211         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
82212         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
82213         unicodeio.c, unicodeio.h, unlocked-io.h:
82214         Switch from LGPL to GPL.
82215
82216 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82217
82218         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
82219         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
82220         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
82221         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
82222         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
82223         updated automatically by ../config/srclist-update.  This changes
82224         their license from LPGL to GPL.
82225
82226 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82227
82228         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
82229         assumed to refer to the root of the most recent stable gettext version.
82230         * config/srclistvars.sh: Add defaults for eggert.
82231         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
82232         Match "This program" as well as "The program".  This is needed
82233         for gettext.
82234
82235 2003-07-14  Jim Meyering  <jim@meyering.net>
82236
82237         Don't emit diagnostics.  Let callers do that.
82238         * lib/save-cwd.c: Don't include "error.h".
82239         (save_cwd): Don't call error.  Ensure that errno is valid
82240         when returning nonzero.
82241
82242         * lib/save-cwd.h (restore_cwd): Update prototype.
82243         * lib/save-cwd.c (restore_cwd): Remove two parameters.
82244         Simplify.  Don't call error upon failure.  Let callers do that.
82245         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
82246         when auditing is enabled.  But don't bother updating the #if.
82247
82248 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
82249
82250         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
82251         it breaks C++ compilation.
82252         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
82253
82254 2003-07-10  Simon Josefsson  <jas@extundo.com>
82255
82256         * modules/strchrnul (Makefile.am): Add strchrnul.h.
82257
82258 2003-07-10  Jim Meyering  <jim@meyering.net>
82259
82260         * m4/clock_time.m4: Remove trailing blank.
82261         * m4/intmax_t.m4: Likewise.
82262
82263 2003-07-10  Jim Meyering  <jim@meyering.net>
82264
82265         * lib/vasnprintf.c: Remove trailing blanks.
82266         Make cpp indentation consistent.
82267
82268 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82269
82270         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
82271         posixver.c, strftime.c, strnlen.c, strverscmp.c:
82272         Switch from LGPL to GPL.
82273
82274 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82275
82276         * config/srclist.txt: Sort sublists.  Add
82277         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
82278         that differ from gnulib for one reason or another; we'd like this list
82279         to be smaller but for now let's document what we have.
82280
82281 2003-07-08  Paul Eggert  <eggert@twinsun.com>
82282
82283         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
82284         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
82285         and sweeter "eval x=$x".
82286         * config/srclist.txt: Get lib/argp* from glibc.
82287
82288 2003-07-07  Paul Eggert  <eggert@twinsun.com>
82289
82290         * lib/mktime.c: Fix some boundary cases and remove need for floating
82291         point.
82292
82293         Issue a compile-time diagnostic if time_t is floating point, or if
82294         two's complement arithmetic is not in effect, or if arithmetic
82295         right shift does not propagate the sign.  These assumptions were
82296         all in the original code but they weren't checked.
82297
82298         (TIME_T_MIDPOINT, verify): New macros.
82299         (__isleap): Remove; it has integer overflow problems.
82300         (leapyear): New function, without those problems.
82301         (ydhms_tm_diff): Remove; splitting into two parts.
82302         (ydhms_diff): New function, containing the arithmetic part of
82303         the old ydhms_tm_diff function.  Issue a compile-time
82304         diagnostic if we are not using C99 integer division.
82305         Avoid casts when possible.
82306         (guess_time_tm): New function, containing the checking part of
82307         the old ydhms_tm_diff function.  Return the new value, rather than
82308         the difference between it and the old.  Accept a new argument T
82309         so that *T specifies the old value.  Check for overflow in the result.
82310
82311         (__mktime_internal): Use a time_t offset, not a long int offset.
82312         This undoes the 2003-06-04 change, which is no longer needed now
82313         that we have better overflow checking.
82314         (localtime_offset): Likewise.
82315
82316         (__mktime_internal): Avoid harmful overflow on hosts where time_t
82317         and long are 64-bit but int is only 32-bit.
82318         (ydhms_diff): Use long int to store year1 and yday1.
82319         Issue a compile-time diagnostic if long int is not wide enough.
82320
82321         (__mktime_internal): Use long int to store adjusted year and yday.
82322         Use plain C rather than preprocessor commands, if that doesn't
82323         affect efficiency.
82324         Check for overflow (and try to repair) after each probe
82325         rather than checking only at the very end.  This avoids some bugs
82326         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
82327         does not equal GMT offset at maximum time).
82328         Use integer to check for overflow rather than floating point; this
82329         is more portable to non-IEEE hosts, and is a tad faster.
82330         When we detect that we are oscillating between two values,
82331         don't check whether tm_isdst has the requested value, since
82332         we already know the answer.  When tm_isdst has the wrong value,
82333         use a different heuristic to find the right one, based on the
82334         extreme values actually observed in practice in tz2003a,
82335         rather than the (overly optimistic) "previous 3 calendar quarters".
82336
82337         (not_equal_tm, print_tm, check_result): Use "const T" rather than
82338         "T const" to accommodate glibc style.
82339         (check_result): Use less-confusing report format.  "long" -> "long int.
82340         (main): Likewise.
82341         Don't loop if the iteration overflows time_t.
82342         Allow a negative step in the iteration.
82343
82344 2003-07-06  Karl Berry  <karl@gnu.org>
82345
82346         * config/depcomp: update from automake.
82347         * config/config.sub: update from prep.
82348
82349 2003-07-03  Karl Berry  <karl@gnu.org>
82350
82351         * config/config.guess: update from prep.
82352
82353 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82354
82355         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
82356         xreadlink.c now includes it unconditionally.
82357
82358 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82359
82360         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
82361         having it depend on HAVE_SYS_TYPES_H.
82362
82363 2003-07-01  Bruno Haible  <bruno@clisp.org>
82364
82365         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
82366         <sys/types.h> should be sufficient.
82367         Reported by Paul Eggert.
82368
82369 2003-06-26  Karl Berry  <karl@gnu.org>
82370
82371         * config/depcomp: update from automake.
82372
82373 2003-06-26  Bruno Haible  <bruno@clisp.org>
82374
82375         * modules/human: Depend on module stdbool.
82376
82377 2003-06-25  Bruno Haible  <bruno@clisp.org>
82378
82379         * modules/readlink: New file.
82380         * modules/xreadlink: Depend on it.
82381         * MODULES.html.sh (func_all_modules): Add readlink.
82382
82383 2003-06-25  Bruno Haible  <bruno@clisp.org>
82384
82385         * m4/readlink.m4: New file.
82386
82387 2003-06-25  Bruno Haible  <bruno@clisp.org>
82388
82389         * lib/readlink.c: New file.
82390
82391 2003-06-22  Karl Berry  <karl@gnu.org>
82392
82393         * config/srclist.txt: update mkinstalldirs from automake.
82394         * config/mkinstalldirs: update.
82395
82396 2003-06-22  Bruno Haible  <bruno@clisp.org>
82397
82398         Portability to mingw32.
82399         * m4/ssize_t.m4: New file, from GNU gettext.
82400         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
82401         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
82402
82403 2003-06-22  Bruno Haible  <bruno@clisp.org>
82404
82405         * modules/safe-read: Add m4/ssize_t.m4.
82406         * modules/xreadlink: Add m4/ssize_t.m4.
82407
82408 2003-06-20  Bruno Haible  <bruno@clisp.org>
82409
82410         Assume C89, so PARAMS isn't needed.
82411         * lib/unicodeio.h (PARAMS): Remove.
82412         * lib/unicodeio.c: Don't use PARAMS.
82413
82414 2003-06-18  Karl Berry  <karl@gnu.org>
82415
82416         * config/config.{guess,sub}: update from prep.
82417
82418 2003-06-18  Jim Meyering  <jim@meyering.net>
82419
82420         Merge changes from coreutils.
82421         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
82422         Remove explicit declarations of xmalloc and realloc.
82423         Include xalloc.h.
82424         (read_utmp): Remove anachronistic cast of xmalloc.
82425
82426 2003-06-17  Paul Eggert  <eggert@twinsun.com>
82427
82428         Assume C89, so PARAMS isn't needed.
82429         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
82430         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
82431         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
82432         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
82433         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
82434         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
82435         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
82436         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
82437         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
82438         lib/xstrtod.h, lib/xstrtol.h: Likewise.
82439         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
82440         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
82441         no longer needed. Anyway, config.h should always be included before any
82442         other file.
82443
82444 2003-06-11  Simon Josefsson  <jas@extundo.com>
82445
82446         * modules/sysexits: New file.
82447         * MODULES.html.sh (func_all_modules): Add sysexits.
82448
82449 2003-06-11  Simon Josefsson  <jas@extundo.com>
82450
82451         * lib/sysexit_.h: New file.
82452
82453 2003-06-11  Derek Price  <derek@ximbiot.com>
82454
82455         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
82456         necessary.
82457
82458 2003-06-11  Bruno Haible  <bruno@clisp.org>
82459
82460         * m4/sysexits.m4: New file.
82461
82462 2003-06-10  Simon Josefsson  <jas@extundo.com>
82463
82464         * lib/argp.h: New file, from glibc.
82465         * lib/argp-ba.c: New file, from glibc.
82466         * lib/argp-eexst.c: New file, from glibc.
82467         * lib/argp-fmtstream.c: New file, from glibc.
82468         * lib/argp-fmtstream.h: New file, from glibc.
82469         * lib/argp-fs-xinl.c: New file, from glibc.
82470         * lib/argp-help.c: New file, from glibc.
82471         * lib/argp-namefrob.h: New file, from glibc.
82472         * lib/argp-parse.c: New file, from glibc.
82473         * lib/argp-pv.c: New file, from glibc.
82474         * lib/argp-pvh.c: New file, from glibc.
82475         * lib/argp-xinl.c: New file, from glibc.
82476
82477 2003-06-10  Simon Josefsson  <jas@extundo.com>
82478
82479         * modules/strchrnul: New file.
82480
82481 2003-06-10  Simon Josefsson  <jas@extundo.com>
82482
82483         * modules/argp: New file.
82484
82485 2003-06-10  Simon Josefsson  <jas@extundo.com>
82486
82487         * m4/strchrnul.m4: New file.
82488
82489 2003-06-10  Simon Josefsson  <jas@extundo.com>
82490
82491         * lib/strchrnul.h: New file.
82492         * lib/strchrnul.c: New file.
82493
82494 2003-06-10  Bruno Haible  <bruno@clisp.org>
82495
82496         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
82497
82498 2003-06-07  Karl Berry  <karl@gnu.org>
82499
82500         * config/config.{guess,sub}: update from prep.
82501
82502 2003-06-07  Jim Meyering  <jim@meyering.net>
82503
82504         * modules/strtod: Use $(...) notation, not @...@ for
82505         AC_REPLACE'd variables.
82506         * modules/localcharset: Likewise.
82507
82508 2003-06-07  Jim Meyering  <jim@meyering.net>
82509
82510         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
82511         in place of my name in the copyright comment.
82512         Remove definition and uses of __P.
82513
82514         From coreutils.
82515         * lib/stat.c: Don't declare xmalloc explicitly.
82516         Instead, include "xalloc.h".
82517         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
82518         xrealloc, and xcalloc return values.
82519         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
82520         Improve comment.
82521         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
82522
82523 2003-06-07  Bruno Haible  <bruno@clisp.org>
82524
82525         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
82526         avoid AC_CONFIG_LINKS.
82527         * modules/fnmatch (Makefile.am): Use explicit creation rule for
82528         fnmatch.h, to avoid AC_CONFIG_LINKS.
82529         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
82530
82531 2003-06-07  Bruno Haible  <bruno@clisp.org>
82532
82533         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
82534         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
82535         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82536         directory.
82537         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
82538         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82539         directory.
82540
82541 2003-06-06  Jim Meyering  <jim@meyering.net>
82542
82543         Merge from coreutils.
82544         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
82545         Consolidate declarations and initializations of *_base* locals.
82546
82547         Merge from coreutils.
82548         This avoids a core dump on systems without GNU putenv,
82549         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
82550         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
82551         (unsetenv): New static function, from GNU libc.
82552         (rpl_putenv): Use it.
82553
82554         * lib/modechange.c: Remove trailing blanks.
82555
82556         Merge from coreutils.
82557         * lib/fsusage.c: Remove declaration of statfs.
82558         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
82559
82560         * lib/posixtm.c: Include <stdbool.h> unconditionally.
82561
82562 2003-06-06  Jim Meyering  <jim@meyering.net>
82563
82564         * lib/stdbool_.h: Renamed from stdbool.h.in.
82565
82566 2003-06-06  Jim Meyering  <jim@meyering.net>
82567             Bruno Haible  <bruno@clisp.org>
82568
82569         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
82570         Adjust Makefile.am snippet not to redirect directly to target.
82571         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
82572
82573 2003-06-05  Paul Eggert  <eggert@twinsun.com>
82574
82575         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
82576         mismatch, look in future quarters as well as past.  This fixes a
82577         bug when processing fall-backwards gaps immediately after a long
82578         period of daylight-saving time.
82579
82580         * lib/mktime.c: Assume freestanding C89 or better.
82581         (HAVE_LIMITS_H): Remove.  Assume it's 1.
82582         (__P): Remove; not used.
82583         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
82584         (mktime, not_equal_tm, print_tm, check_result,
82585         main): Use prototypes.  Use const * where appropriate.
82586         (main): Fix typo in testing code that uncovered by above changes.
82587         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
82588
82589 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82590
82591         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
82592         locale.h, localeconv.  This merges changes from coreutils.
82593
82594         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
82595         It can be removed after the next Autoconf is released.
82596         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
82597         needed.
82598
82599 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82600
82601         * lib/mktime.c: Fix Debian bug 177940
82602         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
82603         (localtime_offset): Now long int, not time_t, because we want it
82604         to be guaranteed to be signed.  All uses changed.
82605         (__mktime_internal): If overflow would occur when adding offset,
82606         don't add it.
82607
82608         Merge 'human' changes from coreutils.  Rewrite to support
82609         locale-specific notations like thousands separators.
82610         * lib/human.c: Simplify authorship notice.
82611         Include human.h immediately after config.h.
82612         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
82613         <limits.h>: Do not include, since human.h does.
82614         (SIZE_MAX, UINTMAX_MAX): New macros.
82615         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
82616         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
82617         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
82618         (power_letter): Renamed from suffixes.
82619         (generate_suffix_backwards): Remove.
82620         (adjust_value): Now takes int style (because of human.h changes)
82621         and long double value (for greater precision on some platforms).
82622         (group_number): New function.
82623         (human_readable): Use it.  Use integer options, not enum.
82624         Put the options before the sizes in the arg list.
82625         Support all the new options.
82626         The old human_readable function has been removed;
82627         use inttostr.h instead.
82628         (human_readable, default_block_size, humblock):
82629         Use uintmax_t, not int, for block sizes.
82630         (human_readable_inexact, block_size_types): Remove.
82631         (block_size_opts): New constant.
82632         (human_options): Renamed from human_block_size, with new signature
82633         that allows block sizes up to UINTMAX_MAX.  All callers changed.
82634         * lib/human.h: Add copyright and authorship notice.
82635         Include <limits.h> and <stdbool.h> unconditionally.
82636         (PARAMS): Remove.  All uses removed.
82637         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
82638         (enum human_inexact_style): Remove tag; now a nameless enum.
82639         (human_floor, human_ceiling, human_round_to_even): Now have
82640         values 2, 0, 1 rather than -1, 1, 0.
82641         (human_group_digits, human_suppress_point_zero, human_autoscale,
82642         human_base_1024, human_SI, human_B): New constants.
82643         (human_readable_inexact, human_block_size): Remove.
82644         (human_readable): Size args are now uintmax_t, not int.
82645         (human_options): New decl.
82646
82647         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
82648         unnecessary now that we assume C89 or better.  This change
82649         imported from coreutils.
82650
82651         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82652         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
82653         in the 2003-05-30 sync from glibc.
82654
82655         .h files should stand alone, but we shouldn't include <sys/types.h>
82656         if we can get away with just <stddef.h>.
82657
82658         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
82659         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
82660         rather than <sys/types.h>, as we merely need size_t.
82661         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
82662         to get size_t.
82663         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
82664         Include <stdio.h>, to get FILE.
82665         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
82666         memcasecmp.h has included <stddef.h> and all we need is size_t.
82667         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
82668         our interface, instead of including <sys/types.h>
82669
82670 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82671
82672         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
82673         now, as glibc mktime is buggy on non-glibc systems.
82674
82675 2003-06-03  Karl Berry  <karl@gnu.org>
82676
82677         * config/config.sub: update from prep.
82678
82679 2003-06-02  Paul Eggert  <eggert@twinsun.com>
82680
82681         [from coreutils]
82682         Fix some minor time-related bugs with POSIX time arguments.
82683         Some valid time stamps were being rejected (notably -1, and
82684         time stamps before 1900 on 64-bit hosts).  And some invalid
82685         time stamps were being accepted, e.g. September 31.
82686
82687         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
82688         that we can return (time_t) -1 successfully.
82689         * lib/posixtm.c: Likewise.
82690         [HAVE_STDBOOL_H]: Include <stdbool.h>.
82691         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
82692         (t): Remove static var.
82693         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
82694         of static var.  All uses changed.
82695         (year): Do not reject years before 1900; they can occur with
82696         64-bit time_t.
82697         (posix_time_parse): Do not check for out-of-range components;
82698         that is now the caller's responsibility, since our checks were
82699         only approximations.
82700         (posixtime): Use mktime to check for out-of-range components,
82701         since it knows them exactly.
82702         If mktime returns (time_t) -1, check whether an error actually occurred
82703         by invoking localtime on -1.
82704         (main) [TEST_POSIXTIME]: Check for input data errors, and report
82705         posixtime failures better.
82706         Improve the test data (in comments only).
82707
82708 2003-06-02  Karl Berry  <karl@gnu.org>
82709
82710         * config/mkinstalldirs (version): new variable.
82711         (--version): new option.
82712         (usage): improve message.
82713
82714 2003-05-30  Karl Berry  <karl@gnu.org>
82715
82716         * lib/mktime.c: update from libc.
82717
82718 2003-05-30  Bruno Haible  <bruno@clisp.org>
82719
82720         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
82721         * config/config.rpath: Upgrade to gettext-0.12.1.
82722
82723 2003-05-30  Bruno Haible  <bruno@clisp.org>
82724
82725         * m4/gettext.m4: Upgrade to gettext-0.12.1.
82726         * m4/nls.m4: New file, from gettext-0.12.1.
82727         * m4/po.m4: New file, from gettext-0.12.1.
82728         * m4/progtest.m4: Upgrade to gettext-0.12.1.
82729
82730 2003-05-30  Bruno Haible  <bruno@clisp.org>
82731
82732         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
82733         * lib/localcharset.h: Likewise.
82734         * lib/localcharset.c: Likewise.
82735
82736 2003-05-29  Karl Berry  <karl@gnu.org>
82737
82738         * config/config.rpath: update from gettext.
82739
82740 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82741
82742         Assume the headers required for C89 freestanding compilers.
82743         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
82744         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
82745         * m4/human.m4 (gl_HUMAN): Likewise.
82746         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
82747         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
82748         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82749         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
82750         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82751         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
82752
82753 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82754
82755         Assume the headers required for C89 freestanding compilers.
82756         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
82757         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
82758         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
82759         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
82760         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
82761         define, since <limits.h> is guaranteed to do that.
82762         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
82763         * lib/exclude.c: Include <stdbool.h> unconditionally.
82764         * lib/tempname.c: Include <stddef.h> unconditionally.
82765         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
82766         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
82767         <stddef.h> does that.
82768         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
82769         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
82770         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
82771         needed.
82772         * lib/xstrtol.c: Likewise.
82773         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
82774         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
82775
82776         * lib/addext.c (addext): Use assignment rather than cast, to avoid
82777         warnings on some platforms.
82778
82779         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82780         arbitrarily.
82781
82782 2003-05-26  Jim Meyering  <jim@meyering.net>
82783
82784         Merge in a change from coreutils:
82785         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
82786         that is guaranteed to be `no'.  Use `no_such_member' to indicate
82787         that condition, rather than `-1' which is slightly misleading.
82788         Change the name of the cache variable to have the gl_ prefix.
82789         Prompted by a patch from Richard Dawe for DJGPP.
82790
82791 2003-05-24  Karl Berry  <karl@gnu.org>
82792
82793         * config/config.guess: update from prep.
82794
82795 2003-05-22  Karl Berry  <karl@gnu.org>
82796
82797         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
82798
82799 2003-05-20  Karl Berry  <karl@gnu.org>
82800
82801         * config/config.guess: update from prep.
82802
82803 2003-05-18  Karl Berry  <karl@gnu.org>
82804
82805         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
82806         might actually be set by the user.
82807
82808         * config/depcomp, install-sh, mdate-sh: update from automake.
82809
82810 2003-05-17  Bruno Haible  <bruno@clisp.org>
82811
82812         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
82813         invalid expansion for AC_EGREP_CPP.
82814         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
82815         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
82816         Suggested by Akim Demaille <akim@epita.fr> in
82817         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
82818
82819 2003-05-12  Jim Meyering  <jim@meyering.net>
82820
82821         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
82822         the space-padded-by-default conversion specifiers, %e, %k, %l.
82823
82824 2003-05-12  Bruno Haible  <bruno@clisp.org>
82825
82826         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
82827         the string is longer than 4 KB.
82828
82829 2003-05-11  Karl Berry  <karl@gnu.org>
82830
82831         * config/config.{guess,sub}: update from prep.
82832
82833 2003-05-09  Bruno Haible  <bruno@clisp.org>
82834
82835         * modules/error: Add m4/strerror_r.m4 to file list.
82836
82837 2003-05-03  Bruno Haible  <bruno@clisp.org>
82838
82839         Upgrade to Unicode-4.0.
82840         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
82841         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
82842         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
82843         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
82844         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
82845         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
82846         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
82847         Change width of U+E0100..U+E01EF from 1 to 0.
82848
82849 2003-04-25  Jim Meyering  <jim@meyering.net>
82850
82851         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
82852         of type size_t, not int.
82853
82854 2003-04-25  Bruno Haible  <bruno@clisp.org>
82855
82856         * lib/copy-file.c: Include <stddef.h>, for size_t.
82857
82858 2003-04-21  Paul Eggert  <eggert@twinsun.com>
82859
82860         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
82861         code which expansion is under static control.  Patch imported from
82862         Akim Demaille's patch to Bison; see
82863         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
82864
82865 2003-04-14  Bruno Haible  <bruno@clisp.org>
82866
82867         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
82868
82869 2003-04-11  Jim Meyering  <jim@meyering.net>
82870
82871         Merge changes from Coreutils.
82872
82873         2003-03-22  Jim Meyering  <jim@meyering.net>
82874
82875         * lib/strftime.c (widen): Cast alloca return value to proper type.
82876
82877         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
82878
82879         From GNU libc.
82880         * lib/strftime.c (my_strftime): Handle very large width
82881         specifications for numeric values correctly.  Improve checks for
82882         overflow.
82883
82884         2003-01-19  Jim Meyering  <jim@meyering.net>
82885
82886         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
82887         definitions.
82888         (nl_get_alt_digit) [! defined my_strftime]: Define.
82889         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
82890         _nl_get_alt_digit and _nl_get_walt_digit.
82891
82892         * lib/strftime.c (my_strftime): Merge in locale-related changes from
82893         libc. These changes have no effect outside of _LIBC.
82894
82895 2003-04-10  Bruno Haible  <bruno@clisp.org>
82896
82897         * modules/findprog: New file.
82898         * MODULES.html.sh (func_all_modules): Add it.
82899
82900 2003-04-10  Bruno Haible  <bruno@clisp.org>
82901
82902         * m4/findprog.m4: New file.
82903         * m4/eaccess.m4: New file.
82904
82905 2003-04-10  Bruno Haible  <bruno@clisp.org>
82906
82907         * lib/findprog.h: New file, from GNU gettext.
82908         * lib/findprog.c: New file, from GNU gettext.
82909
82910 2003-04-05  Jim Meyering  <jim@meyering.net>
82911
82912         Merge changes from Coreutils.
82913
82914         * lib/exclude.h (PARAMS): Remove definition and uses.
82915         * lib/exclude.c: Remove uses of `PARAMS'.
82916
82917         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
82918         Add test-cases for DOS filenames. Declare program_name.
82919         (main): Set up program_name.  Patch by Rich Dawe.
82920
82921         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82922         error from mntctl.
82923         Use mntctl's return value to drive the entry-processing loop, since
82924         we can't rely on the value of the vmt_length member in the last
82925         entry.  On some systems doing so could result in exhausting
82926         virtual memory.  Based in part on a patch from Mike Jetzer.
82927
82928 2003-04-04  Bruno Haible  <bruno@clisp.org>
82929
82930         * modules/linebreak: New file.
82931         * MODULES.html.sh (func_all_modules): Add it.
82932
82933 2003-04-04  Bruno Haible  <bruno@clisp.org>
82934
82935         * m4/linebreak.m4: New file.
82936
82937 2003-04-04  Bruno Haible  <bruno@clisp.org>
82938
82939         * lib/linebreak.h: New file, from GNU gettext.
82940         * lib/linebreak.c: New file, from GNU gettext with slight
82941         modifications.
82942         * lib/lbrkprop.h: New file, from GNU gettext.
82943
82944 2003-04-03  Bruno Haible  <bruno@clisp.org>
82945
82946         * modules/utf8-ucs4: New file.
82947         * modules/utf16-ucs4: New file.
82948         * modules/ucs4-utf8: New file.
82949         * modules/ucs4-utf16: New file.
82950         * MODULES.html.sh (func_all_modules): Add them.
82951
82952 2003-04-03  Bruno Haible  <bruno@clisp.org>
82953
82954         * m4/utf-ucs4.m4: New file.
82955         * m4/ucs4-utf.m4: New file.
82956
82957 2003-04-03  Bruno Haible  <bruno@clisp.org>
82958
82959         * lib/utf8-ucs4.h: New file, from GNU gettext.
82960         * lib/utf16-ucs4.h: New file, from GNU gettext.
82961         * lib/ucs4-utf8.h: New file, from GNU gettext.
82962         * lib/ucs4-utf16.h: New file, from GNU gettext.
82963
82964 2003-04-02  Bruno Haible  <bruno@clisp.org>
82965
82966         * modules/binary-io: New file.
82967         * MODULES.html.sh (func_all_modules): Add it.
82968
82969 2003-04-02  Bruno Haible  <bruno@clisp.org>
82970
82971         * lib/binary-io.h: New file, from GNU gettext.
82972
82973 2003-04-01  Bruno Haible  <bruno@clisp.org>
82974
82975         * modules/pathname: New file.
82976         * MODULES.html.sh (func_all_modules): Add it.
82977
82978 2003-04-01  Bruno Haible  <bruno@clisp.org>
82979
82980         * lib/pathname.h: New file, from GNU gettext.
82981         * lib/concatpath.c: New file, from GNU gettext.
82982
82983 2003-03-30  Bruno Haible  <bruno@clisp.org>
82984
82985         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
82986
82987 2003-03-30  Bruno Haible  <bruno@clisp.org>
82988
82989         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
82990         function chown() doesn't exist.
82991
82992 2003-03-28  Bruno Haible  <bruno@clisp.org>
82993
82994         * modules/copy-file: New file.
82995         * MODULES.html.sh (func_all_modules): Add it.
82996
82997 2003-03-28  Bruno Haible  <bruno@clisp.org>
82998
82999         * m4/copy-file.m4: New file.
83000
83001 2003-03-28  Bruno Haible  <bruno@clisp.org>
83002
83003         * lib/copy-file.h: New file, from GNU gettext.
83004         * lib/copy-file.c: New file, from GNU gettext.
83005
83006 2003-03-18  Jim Meyering  <jim@meyering.net>
83007
83008         * lib/quote.c (quote_n): Fix typo in comment.
83009
83010 2003-03-18  Bruno Haible  <bruno@clisp.org>
83011
83012         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83013         checking.
83014         * m4/onceonly_2_57.m4: Likewise.
83015
83016 2003-03-17  Bruno Haible  <bruno@clisp.org>
83017
83018         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83019         (m4_quote): Remove macro.
83020         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83021
83022 2003-03-14  Jim Meyering  <jim@meyering.net>
83023
83024         Merge changes from Coreutils.
83025         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83026         to be const, in order to avoid warnings.
83027         (obstack_room): Likewise.
83028         (obstack_empty_p): Likewise.
83029
83030 2003-03-14  Bruno Haible  <bruno@clisp.org>
83031
83032         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83033         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83034
83035 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83036
83037         Merge changes from Bison.
83038         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83039         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83040         when compiling Bison 1.875's `bitset bset = obstack_alloc
83041         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83042         * lib/hash.c: Include <stdbool.h> unconditionally.
83043
83044 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83045
83046         * m4/onceonly.m4 (m4_quote): New macro.
83047         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83048         Quote AC_FOREACH variable-expansions properly.
83049
83050 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83051
83052         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83053
83054 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83055
83056         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83057         Reported by Bruce Becker; see:
83058         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83059
83060 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83061             Bruno Haible  <bruno@clisp.org>
83062
83063         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83064         Reported by John Hughes, see
83065         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83066
83067 2003-02-20  Bruno Haible  <bruno@clisp.org>
83068
83069         * MODULES.html.sh (func_all_modules): Add poll.
83070
83071 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83072
83073         * modules/poll: New file.
83074
83075 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83076
83077         * lib/poll_.h: New file.
83078         * lib/poll.c: New file.
83079
83080 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83081
83082         * m4/poll.m4: New file.
83083
83084 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83085
83086         * modules/mathl: New file.
83087
83088 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83089
83090         * lib/mathl.h: New file.
83091         * lib/acosl.c: New file.
83092         * lib/asinl.c: New file.
83093         * lib/atanl.c: New file.
83094         * lib/ceill.c: New file.
83095         * lib/cosl.c: New file.
83096         * lib/expl.c: New file.
83097         * lib/floorl.c: New file.
83098         * lib/frexpl.c: New file.
83099         * lib/ldexpl.c: New file.
83100         * lib/logl.c: New file.
83101         * lib/sincosl.c: New file.
83102         * lib/sinl.c: New file.
83103         * lib/sqrtl.c: New file.
83104         * lib/tanl.c: New file.
83105         * lib/trigl.c: New file.
83106         * lib/trigl.h: New file.
83107
83108 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83109
83110         * m4/mathl.m4: New file.
83111
83112 2003-02-18  Bruno Haible  <bruno@clisp.org>
83113
83114         * MODULES.html.sh (func_all_modules): Add mathl.
83115
83116 2003-02-17  Bruno Haible  <bruno@clisp.org>
83117
83118         * modules/mkdtemp: New module.
83119         * MODULES.html.sh (func_all_modules): Add it.
83120
83121 2003-02-17  Bruno Haible  <bruno@clisp.org>
83122
83123         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83124
83125 2003-02-17  Bruno Haible  <bruno@clisp.org>
83126
83127         * lib/mkdtemp.h: New file, from GNU gettext.
83128         * lib/mkdtemp.c: New file, from GNU gettext.
83129
83130 2003-02-02  Jim Meyering  <jim@meyering.net>
83131
83132         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
83133         e.g. glibc-2.2.93.
83134
83135 2003-01-31  Bruno Haible  <bruno@clisp.org>
83136
83137         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
83138         'rpl_rename'.
83139         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
83140         'rpl_strnlen'.
83141         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
83142         'rpl_strtod'.
83143         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
83144         'rpl_utime'.
83145
83146 2003-01-31  Bruno Haible  <bruno@clisp.org>
83147
83148         * lib/rename.c: #undef rename before defining rpl_rename.
83149         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
83150
83151 2003-01-30  Bruno Haible  <bruno@clisp.org>
83152
83153         * modules/vasnprintf, modules/vasprintf: New modules.
83154         * MODULES.html.sh (func_all_modules): Add them.
83155
83156 2003-01-30  Bruno Haible  <bruno@clisp.org>
83157
83158         * m4/signed.m4: New file, from GNU gettext.
83159         * m4/longdouble.m4: New file, from GNU gettext.
83160         * m4/wchar_t.m4: New file, from GNU gettext.
83161         * m4/wint_t.m4: New file, from GNU gettext.
83162         * m4/vasnprintf.m4: New file.
83163         * m4/vasprintf.m4: New file.
83164
83165 2003-01-30  Bruno Haible  <bruno@clisp.org>
83166
83167         * lib/printf-args.h: New file, from GNU gettext.
83168         * lib/printf-args.c: New file, from GNU gettext.
83169         * lib/printf-parse.h: New file, from GNU gettext.
83170         * lib/printf-parse.c: New file, from GNU gettext.
83171         * lib/vasnprintf.h: New file, from GNU gettext.
83172         * lib/vasnprintf.c: New file, from GNU gettext.
83173         * lib/asnprintf.c: New file, from GNU gettext.
83174         * lib/vasprintf.h: New file, from GNU gettext with modifications.
83175         * lib/vasprintf.c: New file, from GNU gettext.
83176         * lib/asprintf.c: New file, from GNU gettext.
83177
83178 2003-01-29  Bruno Haible  <bruno@clisp.org>
83179
83180         * modules/stpncpy: New module.
83181         * MODULES.html.sh (func_all_modules): Add it.
83182
83183 2003-01-29  Bruno Haible  <bruno@clisp.org>
83184
83185         * m4/stpncpy.m4: New file.
83186
83187 2003-01-29  Bruno Haible  <bruno@clisp.org>
83188
83189         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83190         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83191
83192 2003-01-28  Bruno Haible  <bruno@clisp.org>
83193
83194         * modules/c-ctype: New module.
83195         * MODULES.html.sh (func_all_modules): Add it.
83196
83197 2003-01-28  Bruno Haible  <bruno@clisp.org>
83198
83199         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83200         Paul Eggert.
83201         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83202         Paul Eggert.
83203
83204 2003-01-27  Bruno Haible  <bruno@clisp.org>
83205
83206         * modules/xsetenv: New module.
83207         * MODULES.html.sh (func_all_modules): Add it.
83208
83209 2003-01-27  Bruno Haible  <bruno@clisp.org>
83210
83211         * lib/xsetenv.h: New file, from GNU gettext.
83212         * lib/xsetenv.c: New file, from GNU gettext.
83213
83214 2003-01-23  Jim Meyering  <jim@meyering.net>
83215
83216         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
83217         from working on systems without dirfd (at least Irix and OSF1/Tru64).
83218
83219 2003-01-23  Bruno Haible  <bruno@clisp.org>
83220
83221         * modules/minmax: New module.
83222         * MODULES.html.sh (func_all_modules): Add it.
83223
83224 2003-01-23  Bruno Haible  <bruno@clisp.org>
83225
83226         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
83227         Eggert.
83228
83229 2003-01-22  Bruno Haible  <bruno@clisp.org>
83230
83231         * modules/exit: New module.
83232         * MODULES.html.sh (func_all_modules): Add it.
83233
83234 2003-01-22  Bruno Haible  <bruno@clisp.org>
83235
83236         * lib/exit.h: New file, from GNU gettext.
83237
83238 2003-01-19  Bruno Haible  <bruno@clisp.org>
83239
83240         * gnulib-tool: Recognize option --extract-maintainer.
83241         (func_get_maintainer): New function.
83242         * modules/*: Add Maintainer entry.
83243
83244 2003-01-16  Jim Meyering  <jim@meyering.net>
83245
83246         * m4/regex.m4: The `regex' struct is both input and output.
83247         Initialize it before each use.  Patch by Tim Waugh.
83248
83249 2003-01-16  Bruno Haible  <bruno@clisp.org>
83250
83251         * MODULES.html.sh: Add a table of contents. Add the module name as
83252         leftmost column. Add hyperlinks.
83253
83254 2003-01-15  Bruno Haible  <bruno@clisp.org>
83255
83256         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
83257
83258 2003-01-15  Bruno Haible  <bruno@clisp.org>
83259
83260         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
83261         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
83262         suffix.
83263
83264 2003-01-15  Bruno Haible  <bruno@clisp.org>
83265
83266         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
83267
83268 2003-01-15  Bruno Haible  <bruno@clisp.org>
83269
83270         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
83271         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
83272
83273 2003-01-14  Jim Meyering  <jim@meyering.net>
83274
83275         * lib/same.c (same_name): Tweak a comment.
83276
83277 2003-01-14  Bruno Haible  <bruno@clisp.org>
83278
83279         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
83280         when a string comparison is sufficient.
83281
83282 2003-01-14  Bruno Haible  <bruno@clisp.org>
83283
83284         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
83285         'unsigned int'.
83286
83287 2003-01-14  Bruno Haible  <bruno@clisp.org>
83288
83289         * lib/hash-pjw.c: Add comment about low quality of this function.
83290
83291 2003-01-13  Bruno Haible  <bruno@clisp.org>
83292
83293         * modules/stpcpy: Distribute lib/stpcpy.h.
83294         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
83295
83296 2003-01-13  Bruno Haible  <bruno@clisp.org>
83297
83298         * modules/*: Add a description.
83299         * modules/strpbrk: Fix Makefile.am snippet.
83300         * modules/strtoimax: Fix dependencies.
83301         * modules/strtoumax: Likewise.
83302
83303 2003-01-13  Bruno Haible  <bruno@clisp.org>
83304
83305         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
83306         * modules/alloca (Makefile.am): All object files depend on alloca.h.
83307         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
83308
83309 2003-01-13  Bruno Haible  <bruno@clisp.org>
83310
83311         * gnulib-tool (func_create_testdir): Store config/* files in the main
83312         directory.
83313         * config.rpath: Move to ...
83314         * config/config.rpath: ... here.
83315         * modules/gettext: Contains config/config.rpath, not config.rpath.
83316         * modules/iconv: Likewise.
83317
83318 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83319
83320         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83321         to avoid collisions with libcurses and libreadline.
83322
83323         * m4/getstr.m4: Remove.
83324         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
83325
83326 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83327
83328         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83329         to avoid collisions with libcurses and libreadline.
83330
83331         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
83332         * lib/getstr.h, getstr.c: Remove.
83333         * lib/getline.c: Include "getline.h", to check interface.
83334         Move body of old getstr.c here: this defines MIN_CHUNK and
83335         declares getdelim2, which is renamed from getstr.
83336         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
83337
83338         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
83339         All uses changed.
83340         * lib/linebuffer.h: Likewise.
83341         (readline): Remove backward-compatibility macro.
83342
83343 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83344
83345         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83346         to avoid collisions with libcurses and libreadline.
83347         * getstr: Remove.
83348         * MODULES.html.sh: Remove getstr.
83349         * modules/getline: Depend on unlocked-io, not getstr.
83350
83351 2003-01-12  Jim Meyering  <jim@meyering.net>
83352
83353         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
83354
83355 2003-01-10  Bruno Haible  <bruno@clisp.org>
83356
83357         * modules/alloca: Change Makefile.am requirements. Simplify Include
83358         requirements. Add lib/alloca_.h to file list.
83359
83360 2003-01-10  Bruno Haible  <bruno@clisp.org>
83361
83362         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
83363
83364 2003-01-10  Bruno Haible  <bruno@clisp.org>
83365
83366         * lib/alloca_.h: New file.
83367         * lib/getdate.y: Unconditionally include alloca.h.
83368         * lib/makepath.c: Likewise.
83369         * lib/setenv.c: Likewise.
83370         * lib/userspec.c: Likewise.
83371
83372 2003-01-09  Karl Berry  <karl@gnu.org>
83373
83374         * MODULES.html.sh: include `dirname $0` in PATH, to find
83375         gnulib-tool.
83376
83377 2003-01-09  Bruno Haible  <bruno@clisp.org>
83378
83379         * modules/stdbool: Change configure.ac, Makefile.am requirements.
83380         Simplify Include requirements. Add lib/stdbool.h.in to file list.
83381
83382 2003-01-09  Bruno Haible  <bruno@clisp.org>
83383
83384         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
83385
83386 2003-01-09  Bruno Haible  <bruno@clisp.org>
83387
83388         * lib/stdbool.h.in: New file.
83389
83390 2003-01-09  Bruno Haible  <bruno@clisp.org>
83391
83392         * gnulib-tool (func_all_modules): Ignore files ending in ~.
83393         * MODULES.html.sh: Likewise.
83394
83395 2003-01-08  Jim Meyering  <jim@meyering.net>
83396
83397         * lib/full-write.c: Undefine and define-away `const' after inclusion
83398         of errno.h, not before.  Suggestion from Bruno Haible.
83399
83400 2003-01-08  Bruno Haible  <bruno@clisp.org>
83401
83402         * modules/full-read: Depend on full-write.
83403
83404 2003-01-08  Bruno Haible  <bruno@clisp.org>
83405
83406         * lib/safe-read.c: Include specification header first, to ensure its
83407         selfcontainedness.
83408         * lib/full-write.c: Likewise.
83409
83410 2003-01-07  Jim Meyering  <jim@meyering.net>
83411
83412         * lib/full-write.c: Rework so that it may serve to define full_read,
83413         too.
83414         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
83415
83416 2003-01-07  Bruno Haible  <bruno@clisp.org>
83417
83418         * lib/strtoimax.c: Include <stdint.h> as an alternative to
83419         <inttypes.h>.
83420         * lib/xstrtol.h: Likewise.
83421         * lib/xstrtoimax.c: Likewise.
83422         * lib/xstrtoumax.c: Likewise.
83423         * lib/human.h: Likewise.
83424
83425         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
83426         on systems that have <inttypes.h> but not <stdint.h>.
83427
83428 2003-01-07  Bruno Haible  <bruno@clisp.org>
83429
83430         * MODULES.html.sh: Add copyright notice.
83431         (missed_files): Omit CVS directory entries.
83432         (func_module): Make it work with sed-3.02.
83433         * MODULES.txt: Remove file.
83434
83435 2003-01-06  Jim Meyering  <jim@meyering.net>
83436
83437         * lib/version-etc.c: Update year in translatable copyright string.
83438
83439 2003-01-03  Karl Berry  <karl@gnu.org>
83440
83441         * config/config.{guess,sub}: update from prep.
83442
83443 2003-01-02  Karl Berry  <karl@gnu.org>
83444
83445         * doc/COPYING.DOC: belatedly updated to 1.2.
83446
83447 2003-01-01  Karl Berry  <karl@gnu.org>
83448
83449         * gnulib-tool (func_verify_module): report module name $module in
83450         error message, not $1.
83451         * gnulib-tool (create-testdir): don't complain if destdir couldn't
83452         be created, only if it doesn't exist.
83453         * gnulib-tool (last_checkin_date): don't expand the $Date here.
83454
83455 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83456
83457         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
83458
83459 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83460
83461         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
83462         memcmp if strcoll doesn't work.
83463
83464 2002-12-31  Bruno Haible  <bruno@clisp.org>
83465
83466         * lib/utime.c (utime_null): No need to call ftruncate if the file was
83467         nonempty.
83468
83469 2002-12-31  Bruno Haible  <bruno@clisp.org>
83470
83471         * lib/memcoll.c (STRCOLL): New macro.
83472         (memcoll): Use it.
83473
83474 2002-12-31  Bruno Haible  <bruno@clisp.org>
83475
83476         * lib/localcharset.h: New file.
83477         * lib/localcharset.c: Include it.
83478         * lib/unicodeio.c: Likewise.
83479
83480 2002-12-31  Bruno Haible  <bruno@clisp.org>
83481
83482         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
83483         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
83484
83485 2002-12-31  Bruno Haible  <bruno@clisp.org>
83486
83487         * lib/getline.h: Include <stddef.h>, for size_t.
83488
83489         * lib/unicodeio.h: Include <stddef.h>, for size_t.
83490         * lib/unicodeio.c: Don't include <stddef.h>.
83491
83492 2002-12-31  Bruno Haible  <bruno@clisp.org>
83493
83494         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
83495         HAVE_TM_ZONE.
83496
83497 2002-12-24  Karl Berry  <karl@gnu.org>
83498
83499         * config/config.guess: update from prep.
83500
83501 2002-12-24  Bruno Haible  <bruno@clisp.org>
83502
83503         General infrasructure.
83504         * m4/README: Rewritten.
83505         * m4/onceonly.m4: New file.
83506         * m4/onceonly_2_57.m4: New file.
83507
83508         Module atexit.
83509         * m4/atexit.m4: New file.
83510
83511         Module strtod.
83512         * m4/strtod.m4: New file.
83513
83514         Module strtol.
83515         * m4/strtol.m4: New file.
83516
83517         Module strtoul.
83518         * m4/strtoul.m4: New file.
83519
83520         Module memchr.
83521         * m4/memchr.m4: New file.
83522
83523         Module memcmp.
83524         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
83525         (jm_FUNC_MEMCMP): Invoke it.
83526
83527         Module memcpy.
83528         * m4/memcpy.m4: New file.
83529
83530         Module memmove.
83531         * m4/memmove.m4: New file.
83532
83533         Module memset.
83534         * m4/memset.m4: New file.
83535
83536         Module strcspn.
83537         * m4/strcspn.m4: New file.
83538
83539         Module strpbrk.
83540         * m4/strpbrk.m4: New file.
83541
83542         Module strstr.
83543         * m4/strstr.m4: New file.
83544
83545         Module strerror.
83546         * m4/strerror.m4: New file.
83547
83548         Module mktime.
83549         * m4/mktime.m4: Renamed from jm-mktime.m4.
83550         (gl_PREREQ_MKTIME): New macro.
83551         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
83552
83553         Module malloc.
83554         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
83555         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
83556         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
83557
83558         Module realloc.
83559         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
83560         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
83561         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
83562
83563         Module strftime.
83564         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
83565         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
83566         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
83567         gl_TM_GMTOFF.
83568         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
83569
83570         Module xalloc.
83571         * m4/xalloc.m4: New file.
83572
83573         Module alloca.
83574         * m4/alloca.m4: New file.
83575
83576         Module putenv.
83577         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
83578         (jm_FUNC_PUTENV): Invoke it.
83579
83580         Module setenv.
83581         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
83582         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
83583         when invoked twice.
83584         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
83585         gt_FUNC_SETENV.
83586
83587         Module memrchr.
83588         * m4/memrchr.m4: New file.
83589
83590         Module stpcpy.
83591         * m4/stpcpy.m4: New file.
83592
83593         Module strcase.
83594         * m4/strcase.m4: New file.
83595
83596         Module strdup.
83597         * m4/strdup.m4: New file.
83598
83599         Module strnlen.
83600         * m4/strnlen.m4: New file.
83601
83602         Module strndup.
83603         * m4/strndup.m4: New file.
83604
83605         Module xstrtod.
83606         * m4/xstrtod.m4: New file.
83607
83608         Module xstrtol.
83609         * m4/xstrtol.m4: New file.
83610
83611         Module getdate.
83612         * m4/getdate.m4: New file.
83613
83614         Module unlocked-io.
83615         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
83616         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
83617         * m4/jm-glibc-io.m4n: Remove file.
83618
83619         Module long-options.
83620         * m4/long-options.m4: New file.
83621
83622         Module md5.
83623         * m4/md5.m4: New file.
83624
83625         Module sha.
83626         * m4/sha.m4: New file.
83627
83628         Module getstr.
83629         * m4/getstr.m4: New file.
83630
83631         Module getline.
83632         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
83633         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
83634         <sys/types.h>, for size_t. Use the function name gnu_getline, not
83635         simply getline. Infoke gl_PREREQ_GETLINE.
83636
83637         Module obstack.
83638         * m4/obstack.m4: New file.
83639
83640         Module hash.
83641         * m4/hash.m4: New file.
83642
83643         Module readtokens.
83644         * m4/readtokens.m4: New file.
83645
83646         Module strverscmp.
83647         * m4/strverscmp.m4: New file.
83648
83649         Module stdbool.
83650         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
83651         OSF/1.
83652
83653         Module strtoll.
83654         * m4/strtoll.m4: New file.
83655
83656         Module strtoull.
83657         * m4/strtoull.m4: New file.
83658
83659         Module strtoimax.
83660         * m4/strtoimax.m4: New file.
83661
83662         Module strtoumax.
83663         * m4/strtoumax.m4: New file.
83664
83665         Module xstrtoimax.
83666         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
83667         jm_AC_PREREQ_XSTRTOIMAX.
83668         Moved the strtol prerequisites to strtol.m4.
83669         Moved the strtoll prerequisites to strtoll.m4.
83670         Moved the strtoimax prerequisites to strtoimax.m4.
83671
83672         Module xstrtoumax.
83673         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
83674         jm_AC_PREREQ_XSTRTOUMAX.
83675         Moved the strtoul prerequisites to strtoul.m4.
83676         Moved the strtoull prerequisites to strtoull.m4.
83677         Moved the strtoumax prerequisites to strtoumax.m4.
83678
83679         Module chown.
83680         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
83681         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
83682
83683         Module dup2.
83684         * m4/dup2.m4: New file.
83685
83686         Module ftruncate.
83687         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
83688         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
83689
83690         Module getgroups.
83691         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
83692         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
83693
83694         Module gettimeofday.
83695         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
83696         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
83697         gl_PREREQ_GETTIMEOFDAY.
83698
83699         Module mkdir.
83700         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
83701         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
83702
83703         Module mkstemp.
83704         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
83705         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
83706         jm_AC_TYPE_UINTMAX_T.
83707         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
83708
83709         Module stat.
83710         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
83711         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
83712
83713         Module lstat.
83714         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
83715         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
83716
83717         Module timespec.
83718         * m4/timespec.m4 (gl_TIMESPEC): New macro.
83719         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
83720         * m4/st_mtim.m4: Indentation.
83721
83722         Module nanosleep.
83723         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
83724         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
83725         gl_PREREQ_NANOSLEEP.
83726
83727         Module regex.
83728         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
83729         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
83730         (gl_REGEX): New macro.
83731
83732         Module rename.
83733         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
83734         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
83735
83736         Module rmdir.
83737         * m4/rmdir.m4: New file.
83738
83739         Module utime.
83740         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
83741         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
83742         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
83743
83744         Module dirname.
83745         * m4/dirname.m4: New file.
83746
83747         Module getopt.
83748         * m4/getopt.m4: New file.
83749
83750         Module unistd-safer.
83751         * m4/unistd-safer.m4: New file.
83752
83753         Module fnmatch.
83754         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
83755         declaration.
83756         (gl_PREREQ_FNMATCH_EXTRA): New macro.
83757         (gl_FUNC_FNMATCH_POSIX): New macro.
83758         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
83759         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
83760         simply fnmatch.
83761
83762         Module exclude.
83763         * m4/exclude.m4: New file.
83764
83765         Module human.
83766         * m4/human.m4: New file.
83767
83768         Module acl.
83769         * m4/acl.m4: Nop.
83770
83771         Module backupfile.
83772         * m4/backupfile.m4: New file.
83773         * m4/d-ino.m4: Indentation.
83774
83775         Module fsusage.
83776         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
83777         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
83778         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
83779
83780         Module dirfd.
83781         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
83782         requirements.
83783
83784         Module euidaccess.
83785         * m4/euidaccess.m4: New file.
83786
83787         Module file-type.
83788         * m4/file-type.m4: New file.
83789
83790         Module fileblocks.
83791         * m4/fileblocks.m4: New file.
83792
83793         Module filemode.
83794         * m4/filemode.m4: New file.
83795
83796         Module isdir.
83797         * m4/isdir.m4: New file.
83798
83799         Module lchown.
83800         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
83801         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
83802
83803         Module makepath.
83804         * m4/makepath.m4: New file.
83805
83806         Module modechange.
83807         * m4/modechange.m4: New file.
83808
83809         Module mountlist.
83810         * m4/mountlist.m4: New file.
83811         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
83812         Indentation.
83813
83814         Module path-concat.
83815         * m4/path-concat.m4: New file.
83816
83817         Module pathmax.
83818         * m4/pathmax.m4: New file.
83819
83820         Module same.
83821         * m4/same.m4: New file.
83822
83823         Module save-cwd.
83824         * m4/save-cwd.m4: New file.
83825
83826         Module savedir.
83827         * m4/savedir.m4: New file.
83828
83829         Module xgetcwd.
83830         * m4/xgetcwd.m4: New file.
83831         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
83832
83833         Module xreadlink.
83834         * m4/xreadlink.m4: New file.
83835
83836         Module safe-read.
83837         * m4/safe-read.m4: New file.
83838
83839         Module safe-write.
83840         * m4/safe-write.m4: New file.
83841
83842         Module closeout.
83843         * m4/closeout.m4: New file.
83844
83845         Module stdio-safer.
83846         * m4/stdio-safer.m4: New file.
83847
83848         Module getpass.
83849         * m4/getpass.m4: New file.
83850
83851         Module getugroups.
83852         * m4/getugroups.m4: New file.
83853
83854         Module group-member.
83855         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
83856         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
83857
83858         Module idcache.
83859         * m4/idcache.m4: New file.
83860
83861         Module userspec.
83862         * m4/userspec.m4: New file.
83863
83864         Module gettime.
83865         * m4/clock_time.m4: New file.
83866         * m4/gettime.m4: New file.
83867
83868         Module settime.
83869         * m4/settime.m4: New file.
83870
83871         Module posixtm.
83872         * m4/posixtm.m4: New file.
83873
83874         Module gethostname.
83875         * m4/gethostname.m4: New file.
83876
83877         Module canon-host.
83878         * m4/canon-host.m4: New file.
83879
83880         Module gettext.
83881         * m4/codeset.m4: New file, from gettext-0.11.5.
83882         * m4/gettext.m4: New file, from gettext-0.11.5.
83883         * m4/glibc21.m4: New file, from gettext-0.11.5.
83884         * m4/iconv.m4: New file, from gettext-0.11.5.
83885         * m4/intdiv0.m4: New file, from gettext-0.11.5.
83886         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
83887         * m4/inttypes.m4: New file, from gettext-0.11.5.
83888         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
83889         * m4/isc-posix.m4: New file, from gettext-0.11.5.
83890         * m4/lcmessage.m4: New file, from gettext-0.11.5.
83891         * m4/lib-ld.m4: New file, from gettext-0.11.5.
83892         * m4/lib-link.m4: New file, from gettext-0.11.5.
83893         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
83894         * m4/progtest.m4: New file, from gettext-0.11.5.
83895         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
83896         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
83897         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
83898
83899         Module localcharset.
83900         * m4/localcharset.m4: New file.
83901
83902         Module hard-locale.
83903         * m4/hard-locale.m4: New file.
83904
83905         Module mbswidth.
83906         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
83907         onceonly macros.
83908         * m4/mbrtowc.m4: Add comment.
83909
83910         Module memcasecmp.
83911         * m4/memcasecmp.m4: New file.
83912
83913         Module memcoll.
83914         * m4/memcoll.m4: New file.
83915
83916         Module unicodeio.
83917         * m4/unicodeio.m4: New file.
83918
83919         Module rpmatch.
83920         * m4/rpmatch.m4: New file.
83921
83922         Module yesno.
83923         * m4/yesno.m4: New file.
83924
83925         Module exitfail.
83926         * m4/exitfail.m4: New file.
83927
83928         Module c-stack.
83929         * m4/c-stack.m4 (gl_C_STACK): New macro.
83930         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
83931
83932         Module error.
83933         * m4/error.m4 (gl_ERROR): New macro.
83934         (jm_PREREQ_ERROR): Use onceonly macros.
83935
83936         Module fatal.
83937         * m4/fatal.m4: New file.
83938
83939         Module getloadavg.
83940         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
83941         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
83942
83943         Module getpagesize.
83944         * m4/getpagesize.m4: New file.
83945
83946         Module getusershell.
83947         * m4/getusershell.m4: New file.
83948
83949         Module physmem.
83950         * m4/physmem.m4: New file.
83951
83952         Module posixver.
83953         * m4/posixver.m4: New file.
83954
83955         Module quotearg.
83956         * m4/quotearg.m4: New file.
83957
83958         Module quote.
83959         * m4/quote.m4: New file.
83960
83961         Module readutmp.
83962         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
83963
83964         Module sig2str.
83965         * m4/sig2str.m4: New file.
83966
83967         Other.
83968         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
83969         ulonglong.m4.
83970         * m4/intmax_t.m4: New file.
83971         * m4/d-type.m4: Indentation.
83972         * m4/jm-macros.m4: Update.
83973         * m4/prereq.m4 (jm_PREREQ): Update.
83974         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
83975         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
83976         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
83977         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
83978         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
83979         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
83980         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
83981         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
83982         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
83983         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
83984         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
83985         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
83986         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
83987         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
83988         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
83989         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
83990         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
83991         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
83992         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
83993
83994 2002-12-24  Bruno Haible  <bruno@clisp.org>
83995
83996         * MODULES.txt: Update according to m4/ changes.
83997
83998         Module gettext.
83999         * config.rpath: New file, from gettext-0.11.5.
84000
84001         * modules/*: New module descriptions.
84002         * gnulib-tool: New file.
84003         * MODULES.html.sh: New file.
84004
84005 2002-12-21  Karl Berry  <karl@gnu.org>
84006
84007         * doc/fdl.texi: update to version 1.2.
84008
84009 2002-12-19  Karl Berry  <karl@gnu.org>
84010
84011         * config/config.guess: update from prep.
84012
84013 2002-12-18  Bruno Haible  <bruno@clisp.org>
84014
84015         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84016         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84017
84018 2002-12-17  Bruno Haible  <bruno@clisp.org>
84019
84020         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84021         stdlib.h, string.h.
84022
84023 2002-12-17  Bruno Haible  <bruno@clisp.org>
84024
84025         * lib/canon-host.c (strdup): Remove unused declaration.
84026
84027         * lib/fsusage.c: Include full_read.h.
84028         (get_fs_usage): Use full_read instead of safe_read.
84029
84030         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84031
84032 2002-12-12  Karl Berry  <karl@gnu.org>
84033
84034         * config/config.guess: update from prep.
84035
84036 2002-12-11  Bruno Haible  <bruno@clisp.org>
84037
84038         * m4/setenv.m4: New file, from gettext-0.11.5.
84039
84040 2002-12-11  Bruno Haible  <bruno@clisp.org>
84041
84042         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84043         not unsetenv().
84044         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84045         modifications:
84046
84047         2002-12-11  Bruno Haible  <bruno@clisp.org>
84048
84049                 * setenv.c (alloca): Fall back to malloc.
84050                 (freea): New macro.
84051                 (setenv): Use freea() to free memory allocated with alloca().
84052
84053         2002-11-13  Bruno Haible  <bruno@clisp.org>
84054
84055                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84056                 function declarations.
84057                 * unsetenv.c (unsetenv): Likewise.
84058
84059         2002-03-04  Bruno Haible  <bruno@clisp.org>
84060
84061                 Portability to AIX 4.3.3.
84062                 * unsetenv.c: New file, extracted from setenv.c.
84063                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84064
84065         2001-12-20  Bruno Haible  <bruno@clisp.org>
84066
84067                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84068                 use malloc instead. For SunOS 4.
84069
84070         2001-12-11  Bruno Haible  <bruno@clisp.org>
84071
84072                 * setenv.c: Declare alloca.
84073                 (compar_fn_t): New typedef.
84074                 (KNOWN_VALUE, STORE_VALUE): Use it.
84075
84076         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84077         setenv.h.
84078
84079 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84080
84081         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84082         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84083         Choose values that are less likely to collide with system fnmatch
84084         options.
84085         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84086         defined (e.g., a pure POSIX system).
84087         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84088         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84089
84090 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84091
84092         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84093         a pain in practice to deal with generated m4 files.  This change
84094         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84095
84096         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84097         and jm-glibc-io.m4, as they are no longer a special case.
84098         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84099         kludge and the auto-generation stuff.  Check only whether the
84100         functions are declared, not whether they exist, since older hosts
84101         that don't declare the functions can't use the optimization anyway.
84102
84103 2002-12-06  Jim Meyering  <jim@meyering.net>
84104
84105         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84106
84107         Merge in changes from libc's misc/error.c, in preparation
84108         for the merge of gnulib's changes back into libc.
84109
84110         * lib/error.c (_): Define only if not already defined.
84111         Move definition to follow all #include directives.
84112         Include unlocked-io.h only if !_LIBC.
84113         [_LIBC]: Include <libio/libioP.h>.
84114         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84115         (fflush): Tweak definition to use INTUSE.
84116         (putc): Define.
84117
84118 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84119
84120         * lib/alloca.c [defined emacs]: Include "lisp.h".
84121         (xalloc_die) [defined emacs]: New macro.
84122         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84123         [! defined emacs]: Include <xalloc.h>.
84124         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
84125         (pointer): Typedef to POINTER_TYPE *.
84126         (malloc): Remove decl; we now always use xmalloc.
84127         (alloca): Use old-style definition, since Emacs needs this.
84128         Check for arithmetic overflow when computing combined size.
84129
84130 2002-12-04  Paul Eggert  <eggert@twinsun.com>
84131
84132         Do not generate unlocked-io.h automatically, since it's easier to
84133         maintain it by hand.
84134
84135         * lib/unlocked-io.h: New file, from GNU diffutils,
84136         but with proper copyright notice and attribution.
84137         * lib/gen-uio: Remove.
84138         * lib/Makefile.am: Add copyright notice.
84139         (libfetish_a_SOURCES): Add unlocked-io.h.
84140         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
84141         (DISTCLEANFILES, io_functions): Remove macros.
84142         (EXTRA_DIST): Remove gen_uio.
84143         (unlocked-io.h): Remove rule.
84144
84145 2002-12-04  Jim Meyering  <jim@meyering.net>
84146
84147         Reflect the fact that stat.c and lstat.c are no longer generated.
84148         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
84149         (DISTCLEANFILES): Likewise.
84150         (EXTRA_DIST): Likewise.
84151         (all_local): Don't depend on stat.c or lstat.c.
84152         (stat.c, lstat.c): Remove rules.
84153         (EXTRA_DIST): Remove xstat.in.
84154
84155         * lib/xstat.in: Remove file.  Contents moved into stat.c.
84156         * lib/stat.c: New file.  Contents mostly from xstat.in.
84157         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
84158         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
84159
84160         * lib/safe-read.c: Rework so that it may serve to define safe_write,
84161         too.
84162         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
84163
84164 2002-12-03  Jim Meyering  <jim@meyering.net>
84165
84166         * lib/safe-read.c, safe-write.c: Change variable names and comments,
84167         but not semantics, to minimize the differences between these two files.
84168         (safe_read): Change comment to mention SAFE_READ_ERROR.
84169
84170         * lib/safe-read.c (IS_EINTR): Define.
84171         (safe_read): Use IS_EINTR in place of in-function cpp directives.
84172
84173 2002-12-02  Jim Meyering  <jim@meyering.net>
84174
84175         * lib/safe-read.c (EINTR): Define.
84176         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84177         (INT_MAX): Provide fallback.
84178         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84179
84180         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84181
84182 2002-12-02  Bruno Haible  <bruno@clisp.org>
84183
84184         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84185         Define, taken from safe-read.c.
84186         (INT_MAX): Provide fallback.
84187         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84188         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84189
84190         * lib/safe-read.c (EINTR): Remove definition.
84191         (safe_read): Don't use EINTR if it is absent.
84192
84193 2002-12-01  Jim Meyering  <jim@meyering.net>
84194
84195         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84196         zero.
84197         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84198
84199 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84200
84201         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84202         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84203         with `if (! (value < limit)) abort ();', for readability.
84204
84205 2002-11-26  Karl Berry  <karl@gnu.org>
84206
84207         * lib/strdup.c: copy from libc again, with jim's ok.
84208         * lib/.cppi-disable: re-add strdup.c
84209
84210 2002-11-25  Karl Berry  <karl@gnu.org>
84211
84212         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
84213         instead of "strtol.c".
84214
84215 2002-11-25  Karl Berry  <karl@gnu.org>
84216
84217         * config/install-sh: update from automake for variable quoting, $0 in
84218         error msgs, etc.
84219
84220         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
84221         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
84222         entry.
84223
84224 2002-11-25  Jim Meyering  <jim@meyering.net>
84225
84226         * lib/mktime.c: Sync from libc, now that it has the latest fix.
84227
84228 2002-11-24  Karl Berry  <karl@gnu.org>
84229
84230         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
84231         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
84232
84233 2002-11-24  Jim Meyering  <jim@meyering.net>
84234
84235         Update from coreutils:
84236
84237         * lib/mktime.c: Merge in changes from libc.
84238
84239         Avoid a link-time failure on some Linux systems.
84240         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
84241         (otherwise).
84242         (__mon_yday): Declare with the STATIC attribute.
84243         (__mktime_internal): Likewise.
84244         Based on a report from Greg Schafer.
84245
84246 2002-11-23  Jim Meyering  <jim@meyering.net>
84247
84248         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
84249         Use `unsigned', not `int', as type of index.
84250
84251         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
84252
84253         * lib/fsusage.c: Remove unneeded parentheses around operands of
84254         `defined'.
84255
84256 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84257
84258         * lib/quotearg.h: Allow multiple inclusion by surrounding with
84259         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
84260         so that we can be included first.
84261         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
84262         * lib/quotearg.c: Include quotearg.h immediately after config.h.
84263         No need to include stddef.h or sys/types.h any more.
84264         Surround local include files with "", not "<>".
84265         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
84266         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
84267         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
84268         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
84269         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
84270         (ISPRINT): Remove; no longer needed now that we assume C89.
84271
84272         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
84273         Preserve errno.
84274
84275         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
84276         quotearg_char): Use SIZE_MAX rather than
84277         (size_t) -1 when we are talking about "infinity".
84278
84279         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
84280
84281 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84282
84283         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
84284         hint that one should use `if (! x) abort ();' rather than `assert
84285         (x);', and anyway it's one less thing to worry about configuring.
84286         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
84287         hash_rehash, hash_insert): Use abort rather than assert.
84288
84289 2002-11-22  Bruno Haible  <bruno@clisp.org>
84290
84291         * lib/safe-read.h: Assume C89. Add comments.
84292         (safe_read): Change return type to size_t.
84293         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
84294         byte counts > SSIZE_MAX correctly.
84295         * lib/safe-write.h: New file.
84296         * lib/safe-write.c: New file.
84297         * lib/full-read.h: New file.
84298         * lib/full-read.c: New file.
84299         * lib/full-write.h: Assume C89. Add comments.
84300         * lib/full-write.c: Include safe-write.h.
84301         (full_write): Rewritten to use safe_write.
84302         Suggested by Jim Meyering and Paul Eggert.
84303
84304 2002-11-21  Jim Meyering  <jim@meyering.net>
84305
84306         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
84307
84308         Merge in changes from the coreutils.
84309
84310         2002-09-25  Paul Eggert  <eggert@twinsun.com>
84311         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
84312         <stdint.h>.
84313         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
84314         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
84315         int.  Work more efficiently if X is the same width as uintmax_t.
84316         Do not compare X to -1, to avoid bogus compiler warning.
84317         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
84318         Don't assume that f_frsize and f_bsize are the same type.
84319
84320         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
84321         warning on FreeBSD.
84322
84323         * lib/makepath.c (make_path): Restore umask *before* creating the final
84324         component.
84325         (make_path): Minor reformatting.
84326
84327         * lib/xmalloc.c: Adjust to work with new autoconf macros,
84328         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
84329         HAVE_MALLOC/HAVE_REALLOC.
84330
84331         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
84332         dummy ones.  At least on GNU/Linux systems, `auto' means something
84333         else.
84334         From Michael Stone.
84335
84336 2002-11-21  Bruno Haible  <bruno@clisp.org>
84337
84338         Remove case insensitive option matching.
84339         * lib/argmatch.h (argcasematch): Remove declaration.
84340         (ARGCASEMATCH): Remove macro.
84341         (__xargmatch_internal): Remove case_sensitive argument.
84342         (XARGMATCH): Update.
84343         (XARGCASEMATCH): Remove macro.
84344         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
84345         case_sensitive argument.
84346         (argcasematch): Remove function.
84347         (__xargmatch_internal): Remove case_sensitive argument.
84348         (main): Use XARGMATCH instead of XARGCASEMATCH.
84349
84350         * lib/xmalloc.c: Change compile-time error message. Add comment about
84351         required autoconf version.
84352
84353 2002-11-20  Paul Eggert  <eggert@twinsun.com>
84354
84355         Merge argmatch cleanups from Bison.  Assume C89.
84356
84357         * lib/argmatch.c: Include config.h here, not in argmatch.h.
84358         Include stdlib.h, for EXIT_FAILURE.
84359         Always include <string.h>, since we assume C89.
84360         (EXIT_FAILURE): Remove pre-C89 bug workaround.
84361         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
84362         Include <stddef.h> instead, since it's all we need for size_t.
84363         (PARAMS): Remove.  All uses removed.
84364         (ARRAY_CARDINALITY): Do not bother to #undef.
84365         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
84366         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84367         Remove unnecessary parentheses.
84368         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84369         Insert necessary parentheses.
84370         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
84371         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
84372
84373 2002-11-19  Bruno Haible  <bruno@clisp.org>
84374
84375         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
84376         * lib/mbswidth.h: Include <stddef.h>, for size_t.
84377
84378         * lib/mbswidth.h (PARAMS): Remove macro.
84379         (mbswidth, mbsnwidth): Use ANSI C function declarations.
84380         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
84381
84382         * lib/gcd.h (PARAMS): Remove macro.
84383         (gcd): Use ANSI C function declarations.
84384         * lib/gcd.c (gcd): Likewise.
84385
84386 2002-11-15  Bruno Haible  <bruno@clisp.org>
84387
84388         * lib/strcspn.c: Include <stddef.h>.
84389         (strcspn): Use ANSI C function declaration. Change return type to
84390         size_t. Use NULL.
84391         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
84392         (strpbrk): Use NULL.
84393         * lib/strpbrk.h (PARAMS): Remove macro.
84394         (strpbrk): Use ANSI C function declaration.
84395         * lib/strstr.c: Don't include <sys/types.h>.
84396         * lib/strstr.h (PARAMS): Remove macro.
84397         (strstr): Use ANSI C function declarations.
84398
84399 2002-11-14  Karl Berry  <karl@gnu.org>
84400
84401         * config/mkinstalldirs: `do' on separate line, instead of
84402         `for var; do'.
84403
84404 2002-11-06  Bruno Haible  <bruno@clisp.org>
84405
84406         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
84407         * lib/gcd.c (gcd): Likewise.
84408
84409 2002-11-05  Bruno Haible  <bruno@clisp.org>
84410
84411         * lib/gcd.h: New file, from gettext-0.11.5.
84412         * lib/gcd.c: New file, from gettext-0.11.5.
84413
84414 2002-11-05  Bruno Haible  <bruno@clisp.org>
84415
84416         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84417         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84418         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84419         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84420
84421         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
84422         <libintl.h>.
84423         * lib/makepath.c: Include gettext.h instead of <locale.h> and
84424         <libintl.h>.
84425
84426         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
84427         * lib/human.c: Include gettext.h instead of <libintl.h>.
84428         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
84429         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
84430         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
84431         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
84432         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
84433         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
84434         (textdomain): Remove definition.
84435         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
84436
84437         * lib/long-options.c: Remove include of <libintl.h> and definition of
84438         _.
84439         * lib/same.c: Remove include of <libintl.h> and definition of _.
84440
84441 2002-11-04  Owen Taylor  <otaylor@redhat.com>
84442
84443         * lib/config.charset: A few additions for Solaris.
84444
84445 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84446
84447         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
84448         * lib/localcharset.c (locale_charset): Declare as extern "C".
84449
84450 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84451
84452         * lib/config.charset: msdos in uk_UA uses CP1125.
84453
84454 2002-11-04  Bruno Haible  <bruno@clisp.org>
84455
84456         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
84457         * lib/strcase.h: New file, from GNU gettext-0.11.5.
84458         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
84459         * lib/strstr.h: New file, from GNU gettext-0.11.5.
84460         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
84461
84462 2002-11-04  Bruno Haible  <bruno@clisp.org>
84463
84464         * lib/localcharset.c (locale_charset): Don't return an empty string.
84465
84466 2002-11-04  Bruno Haible  <bruno@clisp.org>
84467
84468         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
84469         aliases.
84470
84471 2002-11-04  Bruno Haible  <bruno@clisp.org>
84472
84473         * lib/config.charset: Update for newest glibc. Add canonical names
84474         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
84475
84476 2002-11-04  Bruno Haible  <bruno@clisp.org>
84477
84478         * lib/config.charset: Add support for NetBSD.
84479
84480 2002-11-04  Bruno Haible  <bruno@clisp.org>
84481
84482         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
84483
84484 2002-11-01  Bruno Haible  <bruno@clisp.org>
84485
84486         * configure.in: Add AC_CONFIG_AUX_DIR call.
84487         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
84488         test/Makefile.
84489         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
84490
84491 2002-09-28  Karl Berry  <karl@gnu.org>
84492
84493         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
84494         installed automake until the next release, since changes have been
84495         made.
84496
84497 2002-09-25  Karl Berry  <karl@gnu.org>
84498
84499         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
84500         * lib/getopt*: copy from libc/posix.
84501         * lib/gettext.h: copy from gettext.
84502         * lib/.cppi-disable: add strdup.c, gettext.h.
84503
84504 2002-09-25  Karl Berry  <karl@gnu.org>
84505
84506         * config/srclist.txt: enable gettext.h check.
84507         * config/config.{guess,sub}: update from prep.
84508         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
84509                 from automake 1.6.3.
84510         See srclist*.
84511
84512 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
84513
84514         * regex.c (PATFETCH): Remove the translating fetch.
84515         (PATFETCH_RAW): Rename to PATFETCH.
84516         (set_image_of_range): New fun.
84517         (SET_RANGE_TABLE_WORK_AREA): Use it.
84518         (regex_compile): Don't translate the pattern chars so eagerly.
84519         Only do it when inserting an `exactn' bytecode or when handling
84520         a char-range.
84521         (mutually_exclusive_p): Avoid empty statement.
84522
84523 2002-07-06  Jim Meyering  <meyering@lucent.com>
84524
84525         * m4/README: Don't mention Makefile.am.in.
84526         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
84527
84528 2002-07-01  Jim Meyering  <meyering@lucent.com>
84529
84530         * lib/c-stack.c: Include sys/time.h.
84531         From Volker Borchert.
84532
84533 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84534
84535         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
84536
84537 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84538
84539         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
84540         New macro.  Use it uniformly instead of
84541         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
84542         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
84543         reported by Vin Shelton.
84544
84545 2002-06-22  Paul Eggert  <eggert@twinsun.com>
84546
84547         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
84548         Do not assume SA_SIGINFO behavior.
84549         Bug reported by Jim Meyering on NetBSD 1.5.2.
84550
84551 2002-06-22  Jim Meyering  <meyering@lucent.com>
84552
84553         * m4/c-stack.m4: New file, from diffutils-2.8.2.
84554         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
84555
84556         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
84557         now that configure.ac uses AC_GNU_SOURCE.
84558         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
84559         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
84560
84561         Update to latest tools.  Suggestions from Paul Eggert.
84562         * m4/stdbool.m4: New file, from diffutils-2.8.2.
84563         * m4/gnu-source.m4: Update from diffutils-2.8.2.
84564         * m4/fnmatch.m4: Likewise.
84565         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
84566         to AC_HEADER_STDBOOL
84567
84568 2002-06-22  Jim Meyering  <meyering@lucent.com>
84569
84570         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
84571         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
84572
84573 2002-06-22  Jim Meyering  <meyering@lucent.com>
84574
84575         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
84576
84577         * lib/exitfail.c, exitfail.h: Likewise.
84578         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
84579
84580         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
84581         of fnmatch.h.
84582         (EXTRA_DIST): Add fnmatch_loop.c.
84583         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
84584
84585         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
84586         * lib/fnmatch.c: Update from diffutils-2.8.2.
84587         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
84588         * lib/fnmatch.h: Remove file.
84589
84590 2002-06-21  Jim Meyering  <meyering@lucent.com>
84591
84592         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
84593         * m4/mbrtowc.m4: Likewise.
84594
84595         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
84596         * m4/mbswidth.m4: Reflect name change:
84597         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
84598         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84599
84600         * m4/lib-link.m4: Update from gettext-0.11.2.
84601         * m4/gettext.m4: Likewise.
84602
84603         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
84604         From Alfred M. Szmidt.
84605
84606 2002-06-18  Paul Eggert  <eggert@twinsun.com>
84607
84608         * lib/file-type.h: Report an error if neither S_ISREG nor
84609         S_IFREG is defined, instead of using a test specific to glibc
84610         2.2.  This should be safe, since POSIX requires S_ISREG and
84611         Unix Version 7 had S_IFREG.  We don't need to check for
84612         <sys/types.h> since we don't use any symbols that it defines.
84613
84614 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
84615
84616         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
84617         $@-t, so that each temporary file name is unique and valid in the first
84618         8 characters, for operation under DOS.
84619
84620 2002-06-15  Paul Eggert  <eggert@twinsun.com>
84621
84622         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
84623
84624 2002-06-15  Jim Meyering  <meyering@lucent.com>
84625
84626         Work even with DJGPP 2.03, which lacks support for symlinks.
84627         From Richard Dawe.
84628         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
84629         is defined.
84630         * lib/lchown.c (S_ISLNK): Likewise.
84631
84632 2002-06-15  Jim Meyering  <meyering@lucent.com>
84633
84634         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
84635         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
84636         have been included before this file.
84637
84638 2002-06-14  Jim Meyering  <meyering@lucent.com>
84639
84640         * lib/file-type.h: Use the version from diffutils-2.8.2.
84641         * lib/file-type.c: Likewise.
84642
84643 2002-06-07  Jim Meyering  <meyering@lucent.com>
84644
84645         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
84646         They're needed at least for NetBSD 1.5.2.
84647         ($statxfs_includes): Include those same headers.
84648         ($statxfs_includes): Include sys/vfs.h if available.
84649         ($statxfs_includes): Likewise for sys/statvfs.h.
84650         Check for the following members in both structs statfs and statvfs:
84651         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
84652
84653 2002-06-01  Jim Meyering  <meyering@lucent.com>
84654
84655         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
84656         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
84657
84658 2002-05-28  Jim Meyering  <meyering@lucent.com>
84659
84660         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
84661         Reported by Volker Borchert.
84662
84663 2002-05-27  Jim Meyering  <meyering@lucent.com>
84664
84665         Fix a problem seen only on nonconforming systems whereby ls.c's
84666         use of localtime, and then of gettimeofday would cause trouble:
84667         the localtime call used to initialize rpl_gettimeofday's save
84668         mechanism would clobber ls's current local time information so
84669         that in any long listing the first file would always be listed
84670         with date 1970-01-01.  Analysis by Volker Borchert.
84671
84672         * lib/gettimeofday.c (localtime): Undefine.
84673         (rpl_localtime): New function.
84674
84675 2002-05-27  Jim Meyering  <meyering@lucent.com>
84676
84677         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
84678         localtime.
84679
84680         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
84681         use the replacement function; it wouldn't resolve at link time.
84682         Reported by Volker Borchert.
84683
84684 2002-05-22  Jim Meyering  <meyering@lucent.com>
84685
84686         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
84687         file-type.h.
84688         * lib/file-type.h: New file.
84689         * lib/file-type.c (file_type): New file/function.  Extracted from
84690         diffutils.
84691
84692 2002-04-30  Jim Meyering  <meyering@lucent.com>
84693
84694         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
84695
84696 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84697
84698         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
84699
84700 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84701
84702         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
84703         Do not check for alloca.h (no longer used) or stdbool.h (was never
84704         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
84705
84706 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84707
84708         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
84709
84710 2002-04-29  Jim Meyering  <meyering@lucent.com>
84711
84712         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
84713         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
84714         Use AC_FUNC_STRNLEN here instead.
84715
84716         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
84717         With autoconf-2.53a, it's part of AC_PROG_CC.
84718
84719 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84720
84721         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
84722         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
84723
84724 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84725
84726         * lib/sig2str.h, lib/sig2str.c: New files.
84727         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
84728
84729 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84730
84731         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
84732         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
84733         of 127, since 64 is the largest conceivable number for ancient
84734         nonstandard hosts.
84735         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
84736
84737 2002-04-28  Jim Meyering  <meyering@lucent.com>
84738
84739         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
84740
84741 2002-04-24  Jim Meyering  <meyering@lucent.com>
84742
84743         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
84744         (jm_PREREQ): Use it.
84745
84746         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
84747         mach/mach.h fcntl.h.
84748         Check for this function: setlocale.
84749
84750 2002-04-24  Jim Meyering  <meyering@lucent.com>
84751
84752         * lib/gettext.h: New file, from Gettext.
84753         * lib/Makefile.am (INCLUDES): Remove -I../intl.
84754         (libfetish_a_SOURCES): Add gettext.h.
84755
84756 2002-04-16  Jim Meyering  <meyering@lucent.com>
84757
84758         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
84759         ut_pid, ut_id, ut_exit.
84760
84761 2002-04-16  Jim Meyering  <meyering@lucent.com>
84762
84763         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
84764         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
84765         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
84766
84767 2002-04-12  Jim Meyering  <meyering@lucent.com>
84768
84769         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
84770         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
84771         existence of the getmntinfo function.  Needed for Darwin 5.3.
84772
84773         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
84774         This is necessary at least on Darwin 5.3.
84775
84776         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
84777         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
84778         strnlen.o in the library, and that makes some versions of ranlib
84779         object.
84780
84781 2002-04-12  Jim Meyering  <meyering@lucent.com>
84782
84783         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
84784
84785 2002-04-09  Jim Meyering  <meyering@lucent.com>
84786
84787         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
84788         to be more precise.  Rather than saying we're checking whether the
84789         function `works', say what we're testing.
84790         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
84791         Reported by Bruno Haible.
84792
84793 2002-03-10  Jim Meyering  <meyering@lucent.com>
84794
84795         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
84796         Suggestion from Santiago Vila.
84797
84798 2002-03-08  Jim Meyering  <meyering@lucent.com>
84799
84800         * lib/rename.c: Mention that this wrapper is needed also on
84801         mips-dec-ultrix4.4 systems.
84802
84803 2002-03-02  Jim Meyering  <meyering@lucent.com>
84804
84805         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
84806         not HAVE_CLOCK_SETTIME.
84807
84808 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84809
84810         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
84811         Check for clock_settime.
84812
84813 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84814
84815         * lib/nanosleep.h: Rename to....
84816         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
84817
84818         * lib/gettime.c: New file.
84819         * lib/settime.c: New file.
84820         * lib/stime.c: Remove.
84821
84822         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
84823         timespec.h.  Remove nanosleep.h.
84824
84825 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84826
84827         * m4/acl.m4: New file.
84828         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
84829         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
84830
84831 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84832
84833         * lib/acl.c, lib/acl.h: New files.
84834         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
84835
84836 2002-02-24  Jim Meyering  <meyering@lucent.com>
84837
84838         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
84839         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
84840         cause trouble.  Reported by Nelson Beebe.
84841
84842 2002-02-23  Paul Eggert  <eggert@twinsun.com>
84843
84844         * lib/path-concat.c (xpath_concat): Reorder code to pacify
84845         compilers that don't know that xalloc_die never returns.
84846
84847 2002-02-20  Jim Meyering  <meyering@lucent.com>
84848
84849         * lib/getdate.c: Regenerate using bison-1.33.
84850
84851 2002-02-17  Jim Meyering  <meyering@lucent.com>
84852
84853         * config/config.guess (main): Don't use `head -1'; it's no longer
84854         portable. Use `sed 1q' instead.
84855
84856 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
84857
84858         * m4/codeset.m4: Upgrade to gettext-0.11.
84859         * m4/gettext.m4: Upgrade to gettext-0.11.
84860         * m4/glibc21.m4: Upgrade to gettext-0.11.
84861         * m4/iconv.m4: Upgrade to gettext-0.11.
84862         * m4/isc-posix.m4: Upgrade to gettext-0.11.
84863         * m4/lcmessage.m4: Upgrade to gettext-0.11.
84864         * m4/lib-ld.m4: New file, from gettext-0.11.
84865         * m4/lib-link.m4: New file, from gettext-0.11.
84866         * m4/lib-prefix.m4: New file, from gettext-0.11.
84867         * m4/progtest.m4: Upgrade to gettext-0.11.
84868
84869 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84870
84871         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
84872         (jm_PREREQ): Use it.
84873
84874 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84875
84876         * lib/posixver.c, lib/posixver.h: New files.
84877         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84878
84879 2002-02-02  Paul Eggert  <eggert@twinsun.com>
84880             Bruno Haible  <bruno@clisp.org>
84881
84882         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
84883         (fwrite_success_callback): New declaration.
84884         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
84885         print_unicode_char. Call failure callback instead of error.
84886         (fwrite_success_callback): New function.
84887         (exit_failure_callback): New function.
84888         (fallback_failure_callback): New function.
84889         (print_unicode_char): Call unicode_to_mb.
84890
84891 2002-01-26  Jim Meyering  <meyering@lucent.com>
84892
84893         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
84894         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
84895
84896 2002-01-26  Jim Meyering  <meyering@lucent.com>
84897
84898         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
84899
84900 2002-01-22  Paul Eggert  <eggert@twinsun.com>
84901
84902         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
84903
84904 2002-01-22  Jim Meyering  <meyering@lucent.com>
84905
84906         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
84907         Otherwise, some versions of automake would omit the rule that makes
84908         Makefile from Makefile.in.
84909
84910 2002-01-21  Paul Eggert  <eggert@twinsun.com>
84911
84912         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
84913         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84914         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
84915         (memcoll): Set errno to zero if there is no error.
84916
84917         * lib/quotearg.c (quotearg_buffer_restyled):
84918         Fix bug with quoting buffers containing NUL when backslashing escapes.
84919         This bug was exposed by the other changes in this patch.
84920         (quotearg_n_options): New arg ARGSIZE.
84921         All callers changed.
84922         (quoting_options_from_style): New function.
84923         (quotearg_n_style): Use it.
84924         (quotearg_n_style_mem): New function.
84925
84926         * lib/quotearg.h (quotearg_n_style_mem): New function.
84927
84928 2002-01-19  Jim Meyering  <meyering@lucent.com>
84929
84930         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
84931         Remove useless quotes: DF_PROG="df".
84932         * m4/strnlen.m4: New file.
84933
84934 2002-01-16  Paul Eggert  <eggert@twinsun.com>
84935
84936         * lib/backupfile.c (ISDIGIT): Comment fix.
84937         * lib/getdate.y (ISDIGIT): Likewise.
84938         * lib/posixtm.c (ISDIGIT, year): Likewise.
84939         * lib/strverscmp.c (ISDIGIT): Likewise.
84940         * lib/userspec.c (ISDIGIT): Likewise.
84941
84942 2002-01-16  Jim Meyering  <meyering@lucent.com>
84943
84944         * lib/getdate.y: Add three semicolons, each just before a closing
84945         brace. Bison (as of version 1.31) no longer papers over that mistake.
84946
84947 2002-01-05  Jim Meyering  <meyering@lucent.com>
84948
84949         * lib/version-etc.c (version_etc_copyright): Update copyright year.
84950
84951 2001-12-19  Paul Eggert  <eggert@twinsun.com>
84952
84953         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
84954         not silently exit merely because the output buffer happens to
84955         have nothing pending.
84956
84957 2001-12-18  Paul Eggert  <eggert@twinsun.com>
84958
84959         See the big note in ../ChangeLog.
84960         * lib/human.c (suffixes): Prefer K to k for 1024.
84961         (generate_suffix_backwards): New function.
84962         (human_readable_inexact): Use it.
84963         * lib/xstrtol.c (__xstrtol): If there is no number but there
84964         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
84965         Accept 'K' as well as 'k'.
84966
84967 2001-12-15  Jim Meyering  <meyering@lucent.com>
84968
84969         * lib/regex.h (__restrict_arr): Update from libc.
84970
84971         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
84972         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
84973         (STREQ): Define.
84974
84975 2001-12-14  Jim Meyering  <meyering@lucent.com>
84976
84977         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
84978         Suggestion from Bruno Haible.
84979
84980 2001-12-10  Jim Meyering  <meyering@lucent.com>
84981
84982         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
84983         xrealloc, Instead, include "xalloc.h".
84984         (initbuffer): Don't cast xmalloc return value to char*.
84985         (readline): Reword comment.
84986         Don't cast xrealloc return value to char*
84987         Return NULL, not 0.
84988
84989 2001-12-09  Jim Meyering  <meyering@lucent.com>
84990
84991         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
84992         about `signed and unsigned type in conditional expression'.
84993         * lib/posixtm.c (posix_time_parse): Likewise.
84994
84995         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
84996
84997         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
84998         to avoid a pedantic warning.
84999
85000         * lib/getstr.c: Don't include assert.h.
85001         (getstr): Remove warning-evoking assertions.
85002         Return -1 if offset parameter is out of bounds.
85003         Change the type of a local from int to size_t.
85004
85005         * lib/strftime.c (my_strftime_localtime_r): Include this function
85006         definition in the `#if ! HAVE_TM_GMTOFF' block.
85007
85008         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85009         Include xalloc.h instead.
85010
85011 2001-12-02  Jim Meyering  <meyering@lucent.com>
85012
85013         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85014         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85015         included.
85016
85017         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85018         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85019
85020 2001-11-30  Akim Demaille  <akim@epita.fr>
85021
85022         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85023         before being defined.
85024
85025 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85026
85027         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85028         First arg is int, not unsigned.
85029         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85030         (SIZE_MAX, UINT_MAX): New macros.
85031         (quotearg_n_options): Abort if N is negative.
85032         Avoid overflow check on hosts where size_t is 64 bits and int
85033         is 32 bits, as overflow is impossible there.
85034         Fix off-by-one typo that caused unnecessary reallocation.
85035
85036 2001-11-27  Jim Meyering  <meyering@lucent.com>
85037
85038         * lib/tempname.c: Merge with version from libc.
85039         * lib/regex.c: Likewise.
85040
85041         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85042         systems for which STDC_HEADERS is 0, it was not included, resulting in
85043         a warning about an integer-to-pointer conversion problem with getenv.
85044         Reported by Volker Borchert.
85045
85046 2001-11-26  Jim Meyering  <meyering@lucent.com>
85047
85048         * lib/gtod.h: Remove file.
85049         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85050         * lib/gettimeofday.c: Don't include gtod.h.
85051         (GTOD_init): Remove function.
85052         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85053         Suggestion from Volker Borchert.
85054
85055 2001-11-23  Jim Meyering  <meyering@lucent.com>
85056
85057         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85058         it.
85059         * lib/hash.c (struct hash_table): Define it here instead.
85060
85061 2001-11-22  Jim Meyering  <meyering@lucent.com>
85062
85063         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85064
85065 2001-11-20  Jim Meyering  <meyering@lucent.com>
85066
85067         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85068         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85069
85070 2001-11-19  Jim Meyering  <meyering@lucent.com>
85071
85072         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85073         directory.  Use "conftestXXXXXX" as the template.
85074         Suggestion from Paul Eggert.
85075
85076         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85077         immediately, so the test doesn't mistakenly hit the max-open-files
85078         limit.
85079
85080 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85081
85082         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85083         (TEMPORARIES): New macro.
85084         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85085         removes an artificial limitation (e.g. HP-UX 10.20, where
85086         TMP_MAX is 17576).
85087
85088 2001-11-18  Jim Meyering  <meyering@lucent.com>
85089
85090         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85091
85092 2001-11-18  Jim Meyering  <meyering@lucent.com>
85093
85094         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85095         on SunOS 4.
85096
85097         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85098         files will be created before anything else.
85099
85100 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85101
85102         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85103         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85104
85105 2001-11-17  Jim Meyering  <meyering@lucent.com>
85106
85107         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85108         Prompted by a report from Bob Proulx.
85109
85110         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85111         Instead, require UTILS_FUNC_MKSTEMP.
85112
85113 2001-11-17  Jim Meyering  <meyering@lucent.com>
85114
85115         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85116         Now, that's done as part of AC_FUNC_STRTOD.
85117
85118 2001-11-17  Jim Meyering  <meyering@lucent.com>
85119
85120         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85121         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85122         rather than group writable.  Patch by Juan F. Codagnone.
85123
85124         * lib/readtokens.c: Remove explicit declarations of xmalloc and
85125         xrealloc, Instead, include "xalloc.h".
85126
85127         * lib/mountlist.c: Include unlocked-io.h after all system headers.
85128         Remove explicit declarations of xmalloc, xrealloc,
85129         and xstrdup.  Instead, include "xalloc.h".
85130
85131         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
85132         unlocked-io.h.
85133         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
85134         Likewise.
85135         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
85136
85137         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
85138         Reported by Padraig Brady.
85139
85140         * lib/mkstemp.c: #undef mkstemp.
85141         Include config.h.
85142         (rpl_mkstemp): Rename from mkstemp.
85143         Protoize.
85144
85145 2001-11-16  Jim Meyering  <meyering@lucent.com>
85146
85147         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
85148         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
85149         determine the amount of total physical memory, use pstat_getstatic.
85150         HPUX-11 doesn't define _SC_PHYS_PAGES.
85151         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
85152         If sysconf couldn't be used to determine the amount of available
85153         physical memory, use both pstat_getstatic and pstat_getdynamic.
85154         Based on a patch from Bob Proulx.
85155
85156 2001-11-10  Jim Meyering  <meyering@lucent.com>
85157
85158         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
85159         (jm_PREREQ): Use it.
85160
85161 2001-11-09  Jim Meyering  <meyering@lucent.com>
85162
85163         * m4/jm-macros.m4: Require autoconf-2.52f.
85164         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
85165         Use these AC_-prefixed names, not the AM_-prefixed ones.
85166
85167         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
85168
85169 2001-11-05  Jim Meyering  <meyering@lucent.com>
85170
85171         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
85172
85173 2001-11-04  Jim Meyering  <meyering@lucent.com>
85174
85175         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85176         $DEFS.
85177
85178 2001-11-03  Jim Meyering  <meyering@lucent.com>
85179
85180         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85181         of AC_DEFUN.
85182
85183         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85184         know the name of the variable in the macro definition.
85185
85186 2001-11-03  Jim Meyering  <meyering@lucent.com>
85187
85188         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85189         in argmatch_to_argument call.
85190
85191         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85192         argument.
85193
85194         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85195         e.g., a fault due to an attempt to free a NULL pointer.
85196
85197 2001-11-01  Jim Meyering  <meyering@lucent.com>
85198
85199         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85200         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85201
85202 2001-11-01  Jim Meyering  <meyering@lucent.com>
85203
85204         * lib/dirfd.c, lib/dirfd.h: New files.
85205         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
85206
85207         * lib/hash.c (hash_print) [TESTING]: Clean up.
85208
85209 2001-10-22  Paul Eggert  <eggert@twinsun.com>
85210
85211         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
85212         to avoid a warning if -Wall.
85213
85214 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
85215
85216         * README: New file
85217         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
85218         (per RMS's instructions, this is now the canonical source)
85219         * lgpl/, gpl/: New directories.
85220
85221 2001-10-21  Paul Eggert  <eggert@twinsun.com>
85222
85223         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
85224
85225 2001-10-21  Jim Meyering  <meyering@lucent.com>
85226
85227         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
85228         this code would end up calling gettext even in packages built
85229         with --disable-nls.
85230         * lib/getopt.c (_): Likewise.
85231         * lib/regex.c (_): Likewise.
85232
85233 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85234
85235         * m4/error.m4 (jm_PREREQ_ERROR):
85236         Do not invoke AC_CHECK_FUNCS with strerror_r, as
85237         AC_FUNC_STRERROR_R does that.
85238         Check for strerror declaration.
85239
85240         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
85241         are supposed to have them these days.
85242         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
85243         Merge changes from latest Autoconf CVS.
85244         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
85245         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
85246         POSIX decided to standardize on the int flavor of strerror_r.
85247
85248 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85249
85250         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
85251         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
85252         Use strerror_r that is only a macro, even if it is not a function.
85253         (strerror): Check for HAVE_DECL_STRERROR before declaring.
85254         (private_strerror): Use prototypes, not old-style function definition.
85255         (print_errno_message): New function.
85256         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
85257         char*-flavored one.
85258         (error_tail, error, error_at_line): Use it.
85259
85260 2001-10-11  Jim Meyering  <meyering@lucent.com>
85261
85262         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
85263         and quote_n (1, ... to avoid clobbering a buffer.
85264
85265 2001-10-05  Jim Meyering  <meyering@lucent.com>
85266
85267         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
85268         hash-pjw.h.
85269         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
85270         * lib/hash-pjw.h: New file.
85271
85272 2001-09-30  Jim Meyering  <meyering@lucent.com>
85273
85274         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
85275         `struct fsstat' has the `f_fstypename' member.
85276         Use that to define FS_TYPE, which is now used to make
85277         the getfsstat link test tighter.
85278
85279 2001-09-30  Jim Meyering  <meyering@lucent.com>
85280
85281         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
85282         Include <sys/ucred.h>, for Apple Darwin.
85283         Include sys/mount.h and sys/fs_types.h only if available.
85284         (FS_TYPE): Define.
85285         (read_filesystem_list): Use FS_TYPE.
85286
85287 2001-09-29  Paul Eggert  <eggert@twinsun.com>
85288
85289         * lib/exclude.c (excluded_filename): 0 -> false, since it's
85290         a boolean context.
85291
85292 2001-09-29  Jim Meyering  <meyering@lucent.com>
85293
85294         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85295         [one-argument getmntent function]): Include stdio.h before mntent.h.
85296         SunOS 4.1.x needs it for the declaration of `FILE'.
85297         Patch by Volker Borchert.
85298
85299         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85300         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
85301         sys/fs_types.h, and make the link-test for getfsstat guard #include
85302         directives with appropriate #if HAVE_*_H tests so that we can
85303         detect getfsstat on Apple Darwin1.3.7 systems.
85304         Reported by Nelson Beebe.
85305         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
85306
85307 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85308
85309         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85310         #defines strtoimax.  Also treat the other strto* functions
85311         like strtoimax.
85312
85313         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85314         Check for strtoul and strtoumax,
85315         as those declarations are made even in the signed case.
85316         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
85317         Likewise, for strtol and strtoimax.
85318
85319 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85320
85321         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85322         #defines strtoimax.  Also treat the other strto* functions
85323         like strtoimax.
85324
85325         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
85326         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
85327         (strtoimax, strtoumax): Do not declare if already defined as a macro.
85328
85329 2001-09-26  Jim Meyering  <meyering@lucent.com>
85330
85331         Most macros in unlocked-io.h had the wrong number of arguments.
85332         * lib/gen-uio: New script.
85333         (USE_UNLOCKED_IO): Define to 1 if not already defined.
85334         * lib/unlocked-io.hin: Remove file.
85335         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
85336         rather than trying to embed it here.
85337         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
85338         Reported by Padraig Brady.
85339
85340 2001-09-25  Volker Borchert  <bt@teknon.de>
85341
85342         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
85343         `result'.
85344
85345 2001-09-24  Jim Meyering  <meyering@lucent.com>
85346
85347         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
85348
85349 2001-09-23  Jim Meyering  <meyering@lucent.com>
85350
85351         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
85352         instead of the mere test for existence of mntent.h.  The latter
85353         would get a false-positive on AIX 3.4 systems.
85354         In the outer getmntent if-block, don't die if neither of the getmntent
85355         tests succeeds.  Instead, just fall through and continue with the
85356         remaining tests.
85357
85358 2001-09-23  Jim Meyering  <meyering@lucent.com>
85359
85360         * lib/mountlist.c: Remove useless parentheses in #if directives.
85361         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
85362         the deprecated MOUNTED symbol is no longer defined in mntent.h.
85363
85364 2001-09-22  Jim Meyering  <meyering@lucent.com>
85365
85366         * m4/gettext.m4: New file.  From gettext.
85367         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
85368         * m4/progtest.m4: Likewise
85369         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
85370         * m4/glibc21.m4: Likewise.
85371
85372         * m4/libintl.m4: Remove.  No longer used.
85373
85374 2001-09-22  Jim Meyering  <meyering@lucent.com>
85375
85376         * lib/localcharset.c: Update from latest gettext.
85377         * lib/config.charset: Likewise.
85378
85379 2001-09-20  Jim Meyering  <meyering@lucent.com>
85380
85381         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
85382         strtoimax.
85383         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
85384         strtoumax.
85385
85386 2001-09-20  Jim Meyering  <meyering@lucent.com>
85387
85388         * lib/xstrtol.c (strtoimax): Guard declaration with
85389         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
85390         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
85391         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
85392         (strtoumax): Likewise, for completeness (it wasn't necessary).
85393
85394 2001-09-17  Paul Eggert  <eggert@twinsun.com>
85395
85396         * lib/strtoimax.c (HAVE_LONG_LONG):
85397         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
85398         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
85399         to work around bug in IBM C compiler.
85400
85401 2001-09-17  Jim Meyering  <meyering@lucent.com>
85402
85403         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
85404         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
85405         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
85406         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
85407         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
85408         whenever the right hand side need not be expanded by the shell.
85409
85410 2001-09-16  Paul Eggert  <eggert@twinsun.com>
85411
85412         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
85413         library.  It's not correct, as some older glibcs are buggy.
85414         fnmatch wasn't fixed until glibc 2.2.
85415
85416         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
85417         special shell magic here.
85418
85419 2001-09-16  Jim Meyering  <meyering@lucent.com>
85420
85421         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
85422         * m4/jm-macros.m4: Require it.
85423
85424 2001-09-16  Jim Meyering  <meyering@lucent.com>
85425
85426         * lib/mkdir.c: New file.
85427
85428 2001-09-15  Jim Meyering  <meyering@lucent.com>
85429
85430         * m4/jm-macros.m4: Check for help2man.
85431
85432 2001-09-11  Jim Meyering  <meyering@lucent.com>
85433
85434         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
85435         The body, by Paul Eggert, was moved here from configure.in.
85436         * m4/jm-macros.m4: Require UTILS_HOST_OS.
85437
85438 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85439
85440         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
85441         (jm_PREREQ): Use it.
85442
85443 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85444
85445         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
85446         Use ssize_t, not int, to store result of readlink.
85447         Check for ssize_t overflow as well as size_t overflow,
85448         as POSIX says the result of readlink is implementation-defined
85449         when ssize_t overflows.
85450         Remove unnecessary cast to char*.
85451         Use free+malloc instead of realloc, as the storage doesn't need
85452         to be preserved and it's clearer and can be more efficient that way.
85453         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
85454         * lib/xreadlink.h (xreadlink): Update prototype.
85455
85456 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85457
85458         * lib/xgetcwd.c: Revert some of the previous change; intead,
85459         fix the HAVE_GETCWD_NULL code to behave more like the
85460         !HAVE_GETCWD_NULL code used to.
85461
85462         Include "xalloc.h".
85463         (xgetcwd): Do not return NULL when memory is exhausted; instead,
85464         invoke xalloc_die.
85465
85466 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85467
85468         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
85469         sys/param.h, as pathmax.h includes them.
85470
85471 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85472
85473         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
85474         (jm_PREREQ_XGETCWD): New macro.
85475
85476         * m4/getcwd.m4: New file.
85477
85478 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85479
85480         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
85481         like the HAVE_GETCWD_NULL code.
85482         Include pathmax.h if not HAVE_GETCWD.
85483         Do not include xalloc.h.
85484         (INITIAL_BUFFER_SIZE): New symbol.
85485         Do not use xmalloc / xrealloc, since the caller is responsible for
85486         handling errors.  Preserve errno around `free' during failure.
85487         Do not overrun buffer when using getwd.
85488
85489 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85490
85491         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
85492         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
85493         getcwd (NULL, 0).
85494
85495 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85496
85497         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
85498         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
85499         spotted by Jim Meyering.
85500
85501 2001-09-03  Jim Meyering  <meyering@lucent.com>
85502
85503         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
85504         failure.
85505
85506 2001-09-02  Jim Meyering  <meyering@lucent.com>
85507
85508         * lib/error.c: Update from GNU libc.
85509
85510 2001-09-01  Jim Meyering  <meyering@lucent.com>
85511
85512         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
85513         Used by df.
85514
85515 2001-09-01  Jim Meyering  <meyering@lucent.com>
85516
85517         * lib/xreadlink.c: New file.
85518         * lib/xreadlink.h: New file.
85519         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
85520         xreadlink.h.
85521
85522         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
85523         doesn't conflict with sparc Solaris 7's definition in
85524         /usr/include/sys/int_types.h.
85525
85526         * lib/exclude.c: Use `""', not `<>' to #include non-system header
85527         files.
85528         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
85529         and strncasecmp as r-values.  Unixware didn't have declarations.
85530
85531 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85532
85533         * lib/xstrtol.h: Add copyright notice.
85534         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
85535         LONGINT_INVALID_SUFFIX_CHAR.
85536
85537 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85538
85539         * lib/xstrtol.c (strtoimax): New decl.
85540
85541 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85542
85543         * lib/xgetcwd.c: Don't include pathmax.h.
85544         Include stdlib.h and unistd.h if available.
85545         Include xalloc.h.
85546         (xmalloc, xstrdup, free): Remove decls.
85547         (xgetcwd): Don't assume sizes fit in unsigned.
85548         Check for overflow when computing sizes.
85549         Simplify reallocation code.
85550
85551 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85552
85553         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
85554         a directory's st_size can have an arbitrary value, so the old
85555         usage could waste an arbitrary amount of memory.  All uses
85556         changed.
85557         * lib/savedir.h: Update prototype.
85558
85559 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85560
85561         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
85562
85563         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
85564         old strtoimax.c.
85565
85566         Also, make the following further changes to make this file's
85567         configuration more similar to that of strtol.c:
85568         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
85569         (strtoumax, uintmax_t, strtoull, strtol): Remove.
85570         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
85571         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
85572         changed to signed values.
85573
85574         And make the following changes as well:
85575         Fix copyright notice, as 1999 was missing.
85576         (verify): New macro.
85577         (strtoimax): Check sizes at compile-time, not run-time.
85578         Prefer strtol to strtoll if both work.
85579         (main): Remove; it was not that useful and was a pain to maintain.
85580
85581         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
85582
85583 2001-08-31  Jim Meyering  <meyering@lucent.com>
85584
85585         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
85586         Use an initial, malloc'd, buffer of length 128 rather than
85587         a statically allocated one of length 1024.
85588
85589 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85590
85591         Simplify code, partly by assuming autoconf 2.52 semantics.
85592
85593         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
85594
85595         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
85596         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
85597         All uses removed.
85598         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
85599         Move AC_REQUIRE to next-to-top level, to avoid confusion.
85600         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
85601         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
85602         jm_AC_HEADER_INTTYPES_H.
85603         * m4/jm-macros.m4 (jm_MACROS): Likewise.
85604
85605         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
85606
85607         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85608         Quote first arg of AC_DEFUN.
85609         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
85610         since they are needed to parse the include file even if we need
85611         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
85612         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
85613         but with opposite signedness.
85614
85615 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85616
85617         Merge 'exclude' changes from tar 1.13.22.
85618         This fixes one or two unlikely storage allocation overflow bugs,
85619         but doesn't change user-visible behavior otherwise.
85620
85621 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85622
85623         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
85624         (jm_PREREQ_EXCLUDE): New macro.
85625
85626 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85627
85628         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
85629         tm to be declared.
85630
85631 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85632
85633         * lib/hash.c: Remove '2001' from copyright notice.
85634
85635 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85636
85637         * lib/full-write.h: New file.
85638         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
85639         * lib/full-write.c: Correct credits, as cccp.c no longer
85640         exists and anyway it was so heavily changed from the old cccp
85641         code as to be unrecognizable.  Include full-write.h.
85642         (full_write): Return size_t, with short writes meaning failure.
85643         All callers changed.  This fixes a bug with large buffers
85644         on 64-bit hosts.
85645         * lib/utime.c: Include full-write.h.
85646
85647 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85648
85649         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
85650         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
85651         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
85652         Include if available.
85653         (<xalloc.h>): Include
85654         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
85655         (verify): New macro.  Use it to verify that EXCLUDE macros do not
85656         collide with FNM macros.
85657         (struct patopts): New struct.
85658         (struct exclude): Use it, as exclude patterns now come with options.
85659         (new_exclude): Support above changes.
85660         (new_exclude, add_exclude_file):
85661         Initial size must now be a power of two to simplify overflow checking.
85662         (free_exclude, fnmatch_no_wildcards): New function.
85663         (excluded_filename): No longer requires options arg, as the options
85664         are determined by add_exclude.  Now returns bool, not int.
85665         (excluded_filename, add_exclude):
85666         Add support for the fancy new exclusion options.
85667         (add_exclude, add_exclude_file): Now takes int options arg.
85668         Check for arithmetic overflow when computing sizes.
85669         (add_exclude_file): xrealloc might modify errno, so don't
85670         realloc until after errno might be used.
85671
85672         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
85673         New macros.
85674         (free_exclude): New decl.
85675         (add_exclude, add_exclude_file): Now takes int options arg.
85676         (excluded_filename): No longer requires options arg, as the options
85677         are determined by add_exclude.  Now returns bool, not int.
85678
85679 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85680
85681         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
85682
85683 2001-08-27  Jim Meyering  <meyering@lucent.com>
85684
85685         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
85686
85687         * lib/version-etc.c (N_): Remove definition.
85688         Revert most of last change.
85689         Instead, simply don't mark the `Copyright...' string for translation.
85690         Based on advice from Paul Eggert.
85691
85692         * lib/strtoxmax.c: Tweak comment.
85693
85694 2001-08-26  Jim Meyering  <meyering@lucent.com>
85695
85696         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
85697
85698         * m4/xstrtoimax.m4: New file.
85699         * m4/xstrtoumax.m4: Add comments explaining why we
85700         AC_REPLACE_FUNCS(strtol).
85701
85702 2001-08-26  Jim Meyering  <meyering@lucent.com>
85703
85704         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
85705         of copyright with `%s' so translators don't get an untranslated
85706         message in 2002.
85707         (COPYRIGHT_YEAR): Define.
85708         (version_etc): Use fprintf rather than fputs.
85709         Suggestion from Ulrich Drepper.
85710
85711         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
85712
85713         * lib/strtoll.c: New file, from GNU libc.
85714         * lib/xstrtoimax.c: New file.
85715
85716         * lib/xstrtol.h: Add xstrtoimax.
85717         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
85718         * lib/strtoimax.c: New file.  Likewise, but first define
85719         STRTOUXMAX_SIGNED.
85720
85721         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
85722         ...
85723         * lib/strtoxmax.c: ... then renamed to this.
85724
85725 2001-08-18  Paul Eggert  <eggert@twinsun.com>
85726
85727         * m4/inttypes.m4: Add AC_PREREQ(2.13).
85728         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
85729         (jm_AC_TYPE_INTMAX_T): New macro.
85730         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
85731
85732         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
85733
85734         * m4/longlong.m4: Renamed from ulonglong.m4.
85735         * m4/inttypes.m4: Renamed from inttypes_h.m4.
85736         * m4/uintmax_t.m4: Removed.
85737
85738 2001-08-13  Paul Eggert  <eggert@twinsun.com>
85739
85740         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
85741         Port to Solaris 8, where 'sed' requires a space after the 'r'
85742         command, and where sh dislikes "$/".  Clean up the spacing a bit.
85743         Redirect output to $tmp just once.
85744
85745 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
85746
85747         * lib/addext.c (<errno.h>): Include.
85748         (errno): Declare if not defined.
85749         (addext): Work correctly when pathconf returns -1 and leaves
85750         errno alone because there is no limit.  Also, work even if
85751         pathconf returns a value greater than SIZE_MAX.
85752
85753 2001-08-12  Jim Meyering  <meyering@lucent.com>
85754
85755         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
85756         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
85757         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
85758         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
85759         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
85760         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
85761         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
85762         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
85763         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
85764         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
85765         utime.m4, utimes.m4, xstrtoumax.m4:
85766         Quote the first argument in each use of AC_DEFUN.
85767
85768 2001-08-12  Jim Meyering  <meyering@lucent.com>
85769
85770         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
85771         Simply `return getcwd (NULL, 0);'.
85772         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
85773         Use 1300 as initial value for length, not PATH_MAX.
85774
85775         * lib/pathmax.h: Clean up cpp syntax.
85776
85777 2001-08-12  Jim Meyering  <meyering@lucent.com>
85778
85779         * lib/gettimeofday.c: New file.
85780         * lib/gtod.h: New file.
85781         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
85782
85783 2001-08-05  Jim Meyering  <meyering@lucent.com>
85784
85785         * m4/jm-macros.m4: Require autoconf-2.52.
85786
85787 2001-08-04  Jim Meyering  <meyering@lucent.com>
85788
85789         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
85790         stmt, to get in sync with glibc.
85791
85792 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85793
85794         The following changes are from gettext 0.10.39 as maintained by
85795         Bruno Haible.
85796
85797         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
85798         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
85799         with inverted sense.  All uses changed.
85800
85801         * lib/mbswidth.c: Don't include <limits.h>.
85802         Include <stdlib.h> and <string.h> unconditionally.
85803         (iswcntrl, mbsinit, ISCNTRL): New macros.
85804         (mbsnwidth): Use K&R style function declarations.
85805         Don't bother checking for MB_LEN_MAX == 1, since the compiler
85806         can optimize it when MB_CUR_MAX == 1.
85807         The width of control characters is zero, not 1.
85808
85809 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85810
85811         The following changes are from gettext 0.10.39 as maintained by
85812         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
85813
85814         * m4/codeset.m4: Upgrade to serial AM1.
85815         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
85816         all uses changed.  Quote first arg of AC_DEFUN.
85817         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
85818
85819         * m4/iconv.m4: Upgrade to serial AM2.
85820         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
85821         Add --with-libconv-prefix.
85822         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
85823         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
85824         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
85825         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
85826         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
85827
85828         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
85829         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
85830         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
85831         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
85832         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
85833         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
85834         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
85835         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
85836         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
85837
85838         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
85839         string.h any more.
85840
85841         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
85842         not the default value.
85843
85844         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
85845         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
85846         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
85847         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
85848         Also check for iswcntrl, used for wcwidth fallback.
85849         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
85850         to Autoconf 2.13.
85851
85852 2001-08-03  Jim Meyering  <meyering@lucent.com>
85853
85854         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
85855         as it was in the original.  Reported by Paul Eggert.
85856
85857 2001-07-16  Jim Meyering  <meyering@lucent.com>
85858
85859         * m4/gettimeofday.m4: New file.
85860         Prompted by a report from Bernhard Baehr.
85861
85862 2001-07-15  Jim Meyering  <meyering@lucent.com>
85863
85864         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
85865         stuff. Now it's in ../Makefile.cfg.
85866
85867 2001-07-15  Jim Meyering  <meyering@lucent.com>
85868
85869         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
85870         (BUILT_SOURCES): Add unlocked-io.h.
85871         (io_functions): Define.
85872         (unlocked-io.h): New rule.
85873         (DISTCLEANFILES): Add unlocked-io.h.
85874         (all-local): Depend on unlocked-io.h, to ensure it is created.
85875
85876         * lib/unlocked-io.hin: New file
85877
85878         * lib/regex.c: Update from glibc.
85879
85880 2001-07-05  Jim Meyering  <meyering@lucent.com>
85881
85882         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
85883         recommendation.
85884         (libfetish_a_SOURCES): Put all .h files here instead.
85885         Remove a thus-exposed (better checks in automake) duplicate and
85886         two unnecessary .h files.
85887
85888 2001-07-04  Jim Meyering  <meyering@lucent.com>
85889
85890         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
85891         that generates jm-glibc-io.m4 so that it doesn't trigger any make
85892         distcheck failure.
85893
85894 2001-07-02  Jim Meyering  <meyering@lucent.com>
85895
85896         The following changes were prompted by suggestions from Bruno Haible.
85897
85898         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
85899         is now generated.
85900         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
85901         definition of EXTRA_DIST.
85902         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
85903         ensure that the generated file is created/updated whenever the list
85904         of $(unlocked_functions) is changed.
85905         (jm-glibc-io.m4): New rule.
85906         (unlocked-io.h): New rule -- currently unused.
85907
85908 2001-06-24  Jim Meyering  <meyering@lucent.com>
85909
85910         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
85911         unmatched right bracket, rather than kludging it with an extra,
85912         falsely-matching quote in a comment.  Patch by Akim Demaille.
85913
85914 2001-06-11  Jim Meyering  <meyering@lucent.com>
85915
85916         * lib/regex.c: Update from GNU libc.
85917
85918 2001-05-27  Jim Meyering  <meyering@lucent.com>
85919
85920         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
85921         Check for ut_type in struct utmp.
85922
85923 2001-05-27  Jim Meyering  <meyering@lucent.com>
85924
85925         * lib/readutmp.h (UT_TYPE): Define.
85926
85927 2001-05-24  Jim Meyering  <meyering@lucent.com>
85928
85929         * lib/argmatch.c: Include "quote.h".
85930         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
85931         quote function.  Reported by Göran Uddeborg.
85932
85933 2001-05-22  Jim Meyering  <meyering@lucent.com>
85934
85935         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
85936         now that we use the package-supplied version unconditionally.
85937         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
85938
85939 2001-05-21  Jim Meyering  <meyering@lucent.com>
85940
85941         * m4/regex.m4: Change a couple backticks to single quotes to avoid
85942         shell syntax errors.
85943
85944 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85945
85946         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
85947
85948 2001-05-20  Paul Eggert  <eggert@twinsun.com>
85949
85950         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
85951         Don't bother to check library strftime, since
85952         we'll be using our own my_strftime function anyway.
85953         Define my_strftime instead of strftime.
85954
85955 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
85956
85957         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
85958         which is not yet declared.
85959
85960 2001-05-15  Jim Meyering  <meyering@lucent.com>
85961
85962         * m4/regex.m4: Use proper quoting so brackets appear in the test
85963         program.
85964         Reported by, and with help from, Bruno Haible.
85965
85966 2001-05-13  Jim Meyering  <meyering@lucent.com>
85967
85968         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
85969         undefined.
85970
85971 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85972
85973         dirname code cleanup.  base_name now behaves more compatibly
85974         with POSIX basename when given file names that have trailing
85975         slashes, and similarly for dir_name.  Add new primitives
85976         base_len and dir_len.  Put the directory-name-related decls
85977         into dirname.h.
85978
85979         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
85980         * lib/backupfile.c (base_name): Likewise.
85981         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
85982         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
85983         * lib/makepath.c (strip_trailing_slashes): Likewise.
85984         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
85985         ISSLASH): Likewise.
85986         * lib/rename.c (strip_trailing_slashes): Likewise.
85987         * lib/same.c (base_name): Likewise.
85988         * lib/stripslash.c (ISSLASH): Likewise.
85989
85990         * lib/addext.c: Include <dirname.h> after size_t is defined.
85991         * lib/backupfile.c: Likewise.
85992
85993         * lib/addext.c (addext): Use base_len to trim redundant
85994         trailing slashes instead of doing it ourselves.
85995         But do not trim the last slash if it is not redundant.
85996
85997         * lib/backupfile.c (find_backup_file_name,
85998         max_backup_version): Use base_len instead of rolling it ourselves.
85999         Handle the case of "" and (on DOS) "C:" correctly.
86000
86001         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86002         needed. Include <string.h>, <dirname.h>.
86003         (base_name): Allow file names ending in slashes, other than names
86004         that are all slashes.  In this case, return the basename followed
86005         by the slashes.  This is more general, and can be used in places
86006         where the original base_name purposely had an assertion failure.
86007         (base_len): New function.
86008
86009         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86010         Do not include <assert.h>; no longer needed.
86011         Include xalloc.h.
86012         (memrchr): Remove decl.
86013         (dir_name_r): Remove.
86014         (dir_len): Renamed from dirlen.  All callers changed.
86015         Rewrite in terms of base_name, for simplicity and consistency.
86016         (dir_name): Never return NULL.  All callers changed.
86017         Do not include <stdlib.h> in test program; no longer needed.
86018         return 0; is fine for test program.
86019
86020         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86021         New macros.
86022         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86023
86024         * lib/path-concat.c (path_concat): Use base_len to compute
86025         base length, not strlen; this means we cannot rely on memcpy
86026         to null-terminate.
86027
86028         * lib/same.c (STREQ): Remove.
86029         (same_name): Handle the case where the basename ends in trailing '/'.
86030
86031         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86032         a slash was stripped.  Do not strip the last slash after a
86033         file system prefix.
86034
86035 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86036
86037         * lib/Makefile.am (libfetish_a_SOURCES):
86038         Add strftime.c, since we now compile it on all hosts.
86039
86040         * lib/strftime.c (my_strftime):
86041         Define to nstrftime if emacs, but only if my_strftime is not defined.
86042         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86043         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86044         Add one more extra argument: a nanoseconds value.
86045         All uses changed.
86046         (ns): New macro.
86047         (my_strftime function): Add %N format.
86048         (emacs_strftimeu): Renamed from emacs_strftime,
86049         with extra ut argument.
86050
86051 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86052
86053         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86054
86055 2001-04-21  Jim Meyering  <meyering@lucent.com>
86056
86057         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86058         doesn't interfere.
86059
86060 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86061
86062         * m4/ftruncate.m4: Check for chsize.
86063         Link with ftruncate.o unconditionally if ftruncate is missing.
86064         This was required when cross-compiling to i586-mingw32msvc.
86065
86066 2001-04-08  Jim Meyering  <meyering@lucent.com>
86067
86068         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86069         recomputed; that's necessary when the offset spans a DST transition.
86070         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86071
86072 2001-04-02  Jim Meyering  <meyering@lucent.com>
86073
86074         * lib/regex.h, regex.c: Update from GNU libc.
86075
86076 2001-03-24  Jim Meyering  <meyering@lucent.com>
86077
86078         * m4/jm-macros.m4: Require autoconf-2.49d.
86079
86080 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86081
86082         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86083
86084 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86085
86086         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86087
86088 2001-03-17  Jim Meyering  <meyering@lucent.com>
86089
86090         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86091         now that the version in autoconf is equivalent.
86092         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86093
86094         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86095         Suggestion from Akim Demaille.
86096
86097         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86098         (jm_PREREQ_TEMPNAME): New function.
86099
86100 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86101
86102         * lib/tempname.c (uint64_t): Define to uintmax_t if
86103         not defined, and if UINT64_MAX is not defined.
86104         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86105         Reported by John David Anglin.
86106
86107 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86108
86109         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86110         resolve alias if codeset is empty.
86111         * lib/config.charset (BeOS): Use wildcard syntax.
86112
86113 2001-03-13  Jim Meyering  <meyering@lucent.com>
86114
86115         * lib/path-concat.c (path_concat)
86116         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86117         concatenating e.g., `C:' and `foo'.
86118         From Bruno Haible.
86119
86120 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86121
86122         * lib/localcharset.c (locale_charset): Don't use
86123         setlocale(LC_CTYPE,NULL). Don't return NULL.
86124         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
86125
86126 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86127
86128         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
86129         support for DOS/DJGPP.
86130
86131 2001-03-01  Paul Eggert  <eggert@twinsun.com>
86132
86133         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
86134         lacks mkstemp.  Compile our own tempname.c if we compile our own
86135         mkstemp.c, as mkstemp relies on tempname.
86136
86137 2001-03-01  Jim Meyering  <meyering@lucent.com>
86138
86139         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
86140         AH_VERBATIM really does output its argument verbatim.
86141
86142 2001-02-28  Paul Eggert  <eggert@twinsun.com>
86143
86144         * lib/Makefile.am (libfetish_a_SOURCES):
86145         Add dup-safer.c, fopen-safer.c.
86146         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
86147
86148         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
86149         * lib/unistd-safer.h: New files.
86150
86151 2001-02-25  Paul Eggert  <eggert@twinsun.com>
86152
86153         The mkstemp replacement is taken from glibc 2.2.2, with some
86154         portability fixes for use outside glibc, as follows:
86155
86156         * lib/tempname.c (struct_stat64): New macro.
86157         (direxists, __gen_tempname): Use it.
86158         This avoids a portability problem with Solaris 8.
86159
86160         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
86161         (<stddef.h>, <stdint.h>, <string.h>):
86162         Include only if STDC_HEADERS || _LIBC.
86163         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
86164         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
86165         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
86166         (__set_errno): Define this macro if <errno.h> doesn't.
86167         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
86168         Define these macros if <stdio.h> doesn't.
86169         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
86170         Define these macros if <sys/stat.h>
86171         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
86172         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
86173         __xstat64): Define if not _LIBC.
86174         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
86175         (__gen_tempname): Invoke gettimeofday only if
86176         HAVE_GETTIMEOFDAY || _LIBC;
86177         otherwise, fall back on plain "time".
86178         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86179
86180         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86181
86182         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86183
86184 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86185
86186         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86187
86188 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86189
86190         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86191         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86192         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86193         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86194
86195 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86196
86197         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86198         Remove workaround macros for hosts that have mbrtowc but not
86199         mbstate_t, as we now insist on proper declarations for both
86200         before using mbrtowc.
86201
86202 2001-02-17  Jim Meyering  <meyering@lucent.com>
86203
86204         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86205         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
86206         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
86207         UnixWare 7.1.1.
86208
86209         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
86210         rather than AC_CACHE_VAL.
86211
86212 2001-02-17  Jim Meyering  <meyering@lucent.com>
86213
86214         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
86215         around included file name.
86216
86217         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
86218
86219         * lib/strftime.c: Update from GNU libc (the only changes were to
86220         comments).
86221
86222 2001-02-17  Jim Meyering  <meyering@lucent.com>
86223
86224         * lib/regex.c: Update from libc.
86225
86226 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
86227
86228         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
86229         clash.
86230
86231 2001-02-16  Paul Eggert  <eggert@twinsun.com>
86232
86233         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
86234         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
86235         Reported by Mark Hounschell via Paul Eggert.
86236
86237 2001-02-07  Jim Meyering  <meyering@lucent.com>
86238
86239         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
86240
86241 2001-02-05  Jim Meyering  <meyering@lucent.com>
86242
86243         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
86244         it includes the patch required for `large file' support with at least
86245         HP-UX's 10.20 /bin/cc.
86246
86247 2001-02-03  Jim Meyering  <meyering@lucent.com>
86248
86249         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
86250         AS_IF, now that it works once again (mysteriously).
86251         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86252
86253 2001-01-30  Jim Meyering  <meyering@lucent.com>
86254
86255         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
86256         * m4/chown.m4: Rename conftestchown to conftest.chown.
86257         * m4/rename.m4: s/conftestdir/conftest.d1/ and
86258         s/conftestdir2/conftest.d2/.
86259         * m4/utimes.m4: s/conftestdata/conftest.data/
86260         Inspired by Pavel Roskin's change in autoconf.
86261
86262 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
86263
86264         * lib/config.charset: Update for FreeBSD 4.2.
86265
86266 2001-01-27  Jim Meyering  <meyering@lucent.com>
86267
86268         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
86269         a use of AS_IF.
86270         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86271
86272 2001-01-26  Jim Meyering  <meyering@lucent.com>
86273
86274         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
86275         quotearg.c includes it.
86276
86277 2001-01-26  Jim Meyering  <meyering@lucent.com>
86278
86279         * lib/quotearg.c: Include stddef.h.
86280         * lib/quote.c: Include stddef.h.
86281         Reported by Axel Kittenberger.
86282
86283         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
86284         line in double quotes so that it evokes a better diagnostic.
86285         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
86286         Reported by Axel Kittenberger.
86287
86288 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
86289
86290         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
86291         as if it was a `charset'.
86292
86293 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86294
86295         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
86296         has const.
86297
86298 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86299
86300         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
86301         to avoid a warning.  Add back 'const' to inptr.
86302
86303 2001-01-20  Jim Meyering  <meyering@lucent.com>
86304
86305         Be sure that headers are checked before used in code compiled
86306         for the type checks.
86307         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
86308         In place of that, invoke jm_CHECK_ALL_TYPES.
86309         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
86310         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
86311         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
86312         The check for ssize_t was mistakenly run before the test for unistd.h.
86313
86314         The configure-time check for stdbool.h was missing.
86315         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
86316         (jm_PREREQ_HASH): New function.
86317
86318 2001-01-17  Jim Meyering  <meyering@lucent.com>
86319
86320         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
86321         for autoconf-2.49c.
86322         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
86323
86324 2001-01-16  Jim Meyering  <meyering@lucent.com>
86325
86326         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
86327         From Bruno Haible.
86328
86329 2001-01-14  Jim Meyering  <meyering@lucent.com>
86330
86331         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
86332         foo and bar.  Create conftestdir/ in the script, not in the C code.
86333         Remove directories in the script, not in the C code.
86334         Remove conftestdir{,2} before trying to create the directory.
86335         Make the entire configure script fail if the mkdir fails.
86336
86337 2001-01-14  Jim Meyering  <meyering@lucent.com>
86338
86339         * lib/rename.c: New file.  From Volker Borchert.
86340         Include stdlib.h, string.h or strings.h, and xalloc.h.
86341         Use strip_trailing_slashes rather than open-coding it.
86342
86343 2001-01-03  Paul Eggert  <eggert@twinsun.com>
86344
86345         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
86346
86347 2001-01-03  Jim Meyering  <meyering@lucent.com>
86348
86349         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
86350         of local `inptr' to avoid warning with some system declarations of
86351         iconv.
86352
86353 2001-01-02  Volker Borchert  <bt@teknon.de>
86354
86355         * m4/rename.m4: New file.
86356         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
86357
86358 2001-01-01  Jim Meyering  <meyering@lucent.com>
86359
86360         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
86361         even on systems with utmpx.h.  It's necessary for the declaration of
86362         utmp's ut_user member.  Reported by Andreas Jaeger.
86363
86364         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
86365         available. They are required for the declarations of getgrgid and
86366         getpwuid resp.
86367         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
86368         Reported by Andreas Jaeger.
86369
86370 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
86371
86372         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
86373         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
86374         so `make install' also works in VPATH builds.
86375
86376 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
86377
86378         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
86379         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
86380         can be used in subdirectories.
86381
86382 2000-12-29  Paul Eggert  <eggert@twinsun.com>
86383
86384         * lib/modechange.c: Do not assume that mode_t uses the
86385         traditional octal encoding.  E.g. "chmod 1 FOO" should set
86386         the other-execute bit of FOO even if S_IXOTH != 1.
86387
86388         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
86389         WOTH, XOTH, ALLM): New macros.
86390         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
86391          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
86392         Use them.
86393         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
86394         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
86395         (mode_compile):
86396         No need to use uintmax_t; unsigned long is long enough.
86397         Don't bother to get suffix since we don't use it.
86398
86399 2000-12-26  Jim Meyering  <meyering@lucent.com>
86400
86401         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
86402         better with autoheader.
86403
86404 2000-12-24  Jim Meyering  <meyering@lucent.com>
86405
86406         * lib/hash.c (is_prime): Return explicit boolean values.
86407         (hash_get_first): Return NULL to appease Irix5.6's 89.
86408         Reported by Nelson Beebe.
86409
86410 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
86411
86412         * lib/localcharset.c (locale_charset): Add support for Win32.
86413
86414 2000-12-18  Paul Eggert  <eggert@twinsun.com>
86415
86416         * lib/physmem.h, lib/physmem.c: New files.
86417
86418         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
86419         (noinst_HEADERS): Add physmem.h.
86420
86421         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
86422         't' for compatibility with Solaris 8 sort.
86423
86424 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
86425
86426         * lib/config.charset: Add support for BeOS.
86427
86428 2000-12-17  Jim Meyering  <meyering@lucent.com>
86429
86430         * m4/dos.m4 (jm_AC_DOS): New file and macro.
86431         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
86432
86433 2000-12-16  Jim Meyering  <meyering@lucent.com>
86434
86435         This bug had a serious impact on chown: `chown N:M FILE' (for integer
86436         N and M) would have treated it like `chown N:N FILE'.
86437
86438         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
86439
86440 2000-12-16  Jim Meyering  <meyering@lucent.com>
86441
86442         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
86443         SHELLS_FILE to a file name that's useful on djgpp systems.
86444         Include stdlib.h.
86445         (ADDITIONAL_DEFAULT_SHELLS): Define.
86446         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
86447         Based mostly on a patch from Prashant TR.
86448
86449 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
86450
86451         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
86452         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
86453         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
86454
86455 2000-12-08  Andreas Schwab  <schwab@suse.de>
86456
86457         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
86458         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
86459
86460 2000-12-07  Jim Meyering  <meyering@lucent.com>
86461
86462         * lib/stripslash.c (ISSLASH): Define.
86463         (strip_trailing_slashes): Use ISSLASH rather than comparing against
86464         `/'.
86465         From Prashant TR.
86466
86467         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
86468         (dir_name_r): Declare this function as static.
86469         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
86470         manifest itself on a name containing a mix of slashes and
86471         backslashes.
86472         Make this function work with names starting with a DOS-style
86473         drive letter and colon prefix.
86474         (dir_name): Append `.' if necessary.
86475         Based mostly on patches from Prashant TR and Eli Zaretskii.
86476
86477         * lib/dirname.h (dir_name_r): Remove prototype.
86478
86479 2000-12-06  Paul Eggert  <eggert@twinsun.com>
86480
86481         * m4/off_t-format.m4: Remove this file.
86482         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
86483
86484 2000-12-06  Jim Meyering  <meyering@lucent.com>
86485
86486         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
86487         replacement strtoull, we may well need the replacement strtoul, too.
86488         Check for declarations of strtoul and strtoull.
86489         Check for strtol.  Mainly as a cue to cause automake to include
86490         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
86491         Check for limits.h -- strtol.c needs it.
86492
86493 2000-12-05  Jim Meyering  <meyering@lucent.com>
86494
86495         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
86496
86497 2000-12-04  Jim Meyering  <meyering@lucent.com>
86498
86499         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
86500         Also include memory.h, stdlib.h, unistd.h if appropriate.
86501         Reported by Andreas Jaeger (conflicting declaration of malloc).
86502
86503 2000-12-02  Jim Meyering  <meyering@lucent.com>
86504
86505         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
86506         * m4/jm-macros.m4 (jm_MACROS): require it.
86507
86508 2000-12-02  Jim Meyering  <meyering@lucent.com>
86509
86510         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
86511
86512 2000-12-01  Paul Eggert  <eggert@twinsun.com>
86513
86514         * lib/memrchr.c: Include <config.h> before any system include file.
86515
86516 2000-11-30  Jim Meyering  <meyering@lucent.com>
86517
86518         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
86519
86520 2000-11-30  Jim Meyering  <meyering@lucent.com>
86521
86522         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
86523
86524 2000-11-29  Paul Eggert  <eggert@twinsun.com>
86525
86526         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
86527
86528 2000-11-26  Jim Meyering  <meyering@lucent.com>
86529
86530         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
86531
86532 2000-11-22  Paul Eggert  <eggert@twinsun.com>
86533
86534         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
86535         size of (size_t) -1; it's not portable.
86536
86537 2000-11-17  Jim Meyering  <meyering@lucent.com>
86538
86539         * lib/strstr.c: Update from GNU libc.
86540
86541 2000-11-17  Akim Demaille  <akim@epita.fr>
86542
86543         * lib/obstack.h: Formatting changes.
86544         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
86545         prevent type checking.
86546         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
86547         cast the value to (void *): assigning a `foo *' to a `void *'
86548         variable is valid.
86549         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
86550
86551 2000-11-16  Jim Meyering  <meyering@lucent.com>
86552
86553         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
86554
86555 2000-11-11  Jim Meyering  <meyering@lucent.com>
86556
86557         * lib/error.c: Add a couple #includes, merging from GNU libc version.
86558
86559 2000-11-10  Jim Meyering  <meyering@lucent.com>
86560
86561         * lib/obstack.h: Update from GNU libc.
86562         * lib/obstack.c: Likewise.
86563
86564 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
86565
86566         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
86567
86568 2000-11-06  Paul Eggert  <eggert@twinsun.com>
86569
86570         * lib/getusershell.c (setusershell): Use rewind rather than
86571         fseek/fseeko, to avoid configuration hassles with fseeko.
86572         Don't bother opening SHELLS_FILE if shellstream is NULL;
86573         it's not necessary.
86574
86575 2000-11-05  Jim Meyering  <meyering@lucent.com>
86576
86577         * lib/makepath.h (make_dir): Declare.
86578         * lib/makepath.c (make_dir): Remove `static' attribute.
86579         Tweak a comment.
86580
86581 2000-11-04  Jim Meyering  <meyering@lucent.com>
86582
86583         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
86584
86585 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
86586
86587         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
86588         last one in a bucket, advance to the next bucket.
86589
86590 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
86591
86592         * lib/fnmatch.c: Do not comment out all the code if we are using
86593         the GNU C library, because in some cases we are replacing buggy
86594         code in the GNU C library itself.
86595
86596 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
86597
86598         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
86599         (regex_compile): Catch bogus \(\1\).
86600
86601 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86602
86603         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
86604         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
86605         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
86606
86607 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86608
86609         * lib/error.h, getline.h, modechange.h:
86610         Remove "2000" from Copyright line, as the file hasn't been
86611         changed this year other than in the copyright notice.
86612
86613         * lib/xalloc.h: Add "2000" to Copyright line, as this file
86614         was changed this year.
86615
86616 2000-10-29  Jim Meyering  <meyering@lucent.com>
86617
86618         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
86619         renaming.
86620         * m4/ls-mntd-fs.m4: Likewise
86621
86622 2000-10-29  Jim Meyering  <meyering@lucent.com>
86623
86624         * lib/xstat.in: Fix grammar in comment.
86625
86626 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
86627
86628         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
86629         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
86630         doesn't define __restrict_arr.
86631
86632 2000-10-28  Jim Meyering  <meyering@lucent.com>
86633
86634         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
86635         (jm_PREREQ_MEMCHR): New function.
86636
86637 2000-10-28  Jim Meyering  <meyering@lucent.com>
86638
86639         * lib/memchr.c: Update from libc.
86640         Adjust for portability:
86641         [HAVE_STDLIB_H]: Include stdlib.h.
86642         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
86643         Undef __memchr, too.
86644         [!weak_alias]: Define __memchr to memchr.
86645
86646         * lib/regex.c: Update from libc.
86647         * lib/regex.h: Likewise.
86648         * lib/getopt1.c: Likewise.
86649         * lib/memcmp.c: Likewise.
86650
86651         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
86652         Avoid using fseek, when possible -- it's broken by design.
86653         Patch by Ulrich Drepper.
86654
86655 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
86656
86657         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
86658         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
86659         Giving in to popular pressure to shut up the compiler with casts.
86660
86661 2000-10-26  Jim Meyering  <meyering@lucent.com>
86662
86663         * lib/strftime.c: Update from libc.
86664
86665 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
86666
86667         * regex.c: More `unsigned char' -> `re_char' changes.
86668         Also change several `int' into `re_wchar_t'.
86669         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
86670         (PUSH_FAILURE_POINTER): Don't cast any more.
86671         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
86672         We want GCC to complain, since this piece of code makes
86673         re_match non-reentrant, which *should* be fixed.
86674         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
86675         (EXTEND_BUFFER): Use RETALLOC.
86676         (SET_LIST_BIT): Don't cast.
86677         (re_wchar_t): New type.
86678         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
86679         that those two functions will always properly return.
86680         (IMMEDIATE_QUIT_CHECK): Cast to void.
86681         (analyse_first): Use recursion rather than an explicit stack.
86682         (re_compile_fastmap): Can't fail anymore.
86683         (re_search_2): Don't check re_compile_fastmap for failure.
86684         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
86685         Now also sets the new value (passed in a new argument).
86686         (re_match_2_internal): Use it.
86687         Also, use a new var `reg' of type size_t when looping through regs
86688         rather than reuse the inappropriate `mcnt'.
86689
86690 2000-10-25  Jim Meyering  <meyering@lucent.com>
86691
86692         * lib/obstack.c: Update from libc.
86693
86694 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
86695
86696         * regex.c (regex_compile): Change the way of handling a range from
86697         a char less than 256 to a char not less than 256.
86698
86699 2000-10-24  Andrew Innes  <andrewi@gnu.org>
86700
86701         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
86702         NT-Emacs only.
86703         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
86704         so that re_search functions only quit when callers expect them to.
86705
86706 2000-10-23  Jim Meyering  <meyering@lucent.com>
86707
86708         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
86709         wrong.  That set_locale call must not have any side effects.
86710         From Paul Eggert.
86711
86712 2000-10-22  Jim Meyering  <meyering@lucent.com>
86713
86714         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
86715         [CYCLIC]: Remove now-unused definition.
86716
86717         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
86718         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
86719         Suggestion from Ulrich Drepper.
86720
86721 2000-10-21  Jim Meyering  <meyering@lucent.com>
86722
86723         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
86724         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
86725         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
86726
86727 2000-10-21  Jim Meyering  <meyering@lucent.com>
86728
86729         * lib/dirname.c (memrchr): Declare if necessary.
86730         (dir_name): Remove the restriction that there be no
86731         trailing slashes.  Now, this code skips past them, effectively
86732         ignoring them.
86733         [TEST_DIRNAME] (main): New unit tests.
86734
86735         * lib/memrchr.c: New file from GNU libc.
86736         Undef __memrchr, too.
86737         [!weak_alias]: Define __memrchr to memrchr.
86738         Guard weak_alias use with `#ifdef weak_alias'.
86739
86740 2000-10-21  Jim Meyering  <meyering@lucent.com>
86741
86742         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
86743         (dir_name): Use dir_name_r.
86744         * lib/dirname.h (dir_name_r): Declare it.
86745
86746 2000-10-17  Jim Meyering  <meyering@lucent.com>
86747
86748         * lib/quote.h (PARAMS): Define and use.
86749         Reported by Akim Demaille.
86750
86751         * lib/getopt.c: Update from libc.
86752
86753 2000-10-16  Jim Meyering  <meyering@lucent.com>
86754
86755         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
86756         setlocale.
86757         From Jan Fedak.
86758
86759 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
86760
86761         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
86762
86763 2000-09-25  Jim Meyering  <meyering@lucent.com>
86764
86765         * lib/md5.h (rol): Define (from GnuPG).
86766
86767         * lib/sha.c: Give credit (GnuPG) where due.
86768         (M): Use rol rather than open-coding it.
86769         Add a FIXME comment.
86770
86771 2000-09-21  Jim Meyering  <meyering@lucent.com>
86772
86773         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
86774         Reported by Michael Stone.
86775
86776 2000-09-20  Jim Meyering  <meyering@lucent.com>
86777
86778         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
86779         (noinst_HEADERS): Add sha.h.
86780         Based on code from Scott G. Miller and from GnuPG.
86781
86782 2000-09-18  Jim Meyering  <meyering@lucent.com>
86783
86784         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
86785         LIBS. Otherwise, everyone ends up linking with -lelf for some
86786         configurations.
86787         Reported by Mike Stone.
86788
86789 2000-09-15  Jim Meyering  <meyering@lucent.com>
86790
86791         * lib/regex.c: Update from libc.
86792
86793 2000-09-10  Jim Meyering  <meyering@lucent.com>
86794
86795         * lib/getopt.c (_getopt_internal): Update from glibc.
86796
86797 2000-09-09  Jim Meyering  <meyering@lucent.com>
86798
86799         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
86800         think it should be used as a general replacement for isascii.
86801         * lib/fnmatch.c: Likewise.
86802         * lib/mbswidth.c: Likewise
86803         * lib/regex.c: Likewise.
86804
86805         Don't use atoi.
86806         * lib/userspec.c: Include sys/param.h and limits.h.
86807         Include xstrtol.h.
86808         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86809         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
86810         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
86811         UID, GID.  Check range.
86812
86813 2000-09-06  Jim Meyering  <meyering@lucent.com>
86814
86815         * lib/getopt.c (_getopt_internal): Update from glibc.
86816
86817 2000-08-30  Jim Meyering  <meyering@lucent.com>
86818
86819         * lib/strftime.c: Merge in changes from GNU libc.
86820
86821 2000-08-26  Jim Meyering  <meyering@lucent.com>
86822
86823         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
86824         * m4/fpending.m4: New file.
86825
86826 2000-08-26  Jim Meyering  <meyering@lucent.com>
86827
86828         * lib/closeout.c: Include "__fpending.h".
86829         (close_stdout_status): Return right away if there's nothing to flush.
86830
86831         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
86832         * lib/__fpending.c: New file.
86833         * lib/__fpending.h: New file.
86834
86835 2000-08-20  Jim Meyering  <meyering@lucent.com>
86836
86837         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
86838         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
86839         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
86840
86841 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
86842
86843         Improve fileutils installation on systems where running
86844         programs (like install) can't be unlinked.
86845         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
86846         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
86847
86848 2000-08-07  Paul Eggert  <eggert@twinsun.com>
86849
86850         Standardize on "memory exhausted" instead of "Memory exhausted"
86851         or "virtual memory exhausted".
86852         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
86853         "virtual memory exhausted".
86854         * lib/same.c (same_name): Invoke xalloc_die instead of printing
86855         our own message.
86856         * lib/userspec.c (parse_user_spec): Likewise.
86857         * lib/bumpalloc.h: comment fix
86858         * lib/same.c, userspec.c: Include xalloc.h.
86859
86860         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
86861         not char *const and pointing to a constant array.
86862         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
86863         (xrealloc): Comment fix.
86864
86865         * lib/userspec.c (parse_user_spec):
86866         Don't translate a message until just before returning,
86867         to avoid unnecessary translation.
86868
86869 2000-08-07  Jim Meyering  <meyering@lucent.com>
86870
86871         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
86872         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
86873         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
86874         getgroups.c, gethostname.c, getopt.h, group-member.c,
86875         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
86876         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
86877         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
86878         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
86879         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
86880         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
86881         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
86882         yesno.c: Back out Copyright date changes for each file with no change
86883         this year.  This eases coordination with other programs using the same
86884         source code modules.  From Paul Eggert.
86885
86886 2000-08-06  Paul Eggert  <eggert@twinsun.com>
86887
86888         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
86889         not char, for compatibility with glibc 2.1.3 strftime.c.
86890
86891 2000-08-03  Greg McGary  <greg@mcgary.org>
86892
86893         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
86894         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
86895         (EXTEND_BUFFER): Use them.
86896
86897 2000-08-01  Jim Meyering  <meyering@lucent.com>
86898
86899         * lib/dirname.c (ISSLASH): Define.
86900         (BACKSLASH_IS_PATH_SEPARATOR): Define.
86901         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
86902         both `\' and `/' may be use as path separators.
86903         Based on a patch from Prashant TR.
86904
86905 2000-07-31  Paul Eggert  <eggert@twinsun.com>
86906
86907         * lib/quotearg.c (quotearg_n_options): Don't make the initial
86908         slot vector a constant, since it might get modified.
86909
86910 2000-07-31  Jim Meyering  <meyering@lucent.com>
86911
86912         * lib/xmalloc.c: Use `virtual memory exhausted', not
86913         `Memory exhausted'.
86914         * lib/obstack.c (print_and_abort): Likewise.
86915
86916 2000-07-30  Paul Eggert  <eggert@twinsun.com>
86917
86918         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
86919         buffer, so that the caller can always quote one small
86920         component of a "memory exhausted" message in slot 0.
86921         From a suggestion by Jim Meyering.
86922
86923 2000-07-30  Jim Meyering  <meyering@lucent.com>
86924
86925         * lib/makepath.c (make_path): Quote the other instance, too.
86926
86927         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
86928         (STATIC_BUF_SIZE): Define.
86929         (quotearg_n_options): Use only statically allocated storage when
86930         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
86931         than STATIC_BUF_SIZE.
86932
86933 2000-07-29  Jim Meyering  <meyering@lucent.com>
86934
86935         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
86936         * lib/dirname.c (dir_name): Likewise.
86937
86938         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
86939         `/'.
86940
86941         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
86942         (dir_name): Assert that there are no trailing slashes.
86943
86944 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
86945
86946         * lib/mbswidth.h (mbswidth): Add a flags argument.
86947         (mbswidth): New declaration.
86948         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
86949         * lib/mbswidth.c (mbswidth): Add a flags argument.
86950         (mbsnwidth): New function.
86951
86952 2000-07-24  Jim Meyering  <meyering@lucent.com>
86953
86954         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
86955
86956 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86957
86958         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
86959
86960 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86961
86962         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
86963         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
86964         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
86965         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
86966         invoke multibyte primitives.
86967
86968 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86969
86970         * lib/quotearg.c:
86971         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
86972         so that mbstate_t is always defined.
86973
86974         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
86975         be 1 in at least one GCC installation, and this configuration
86976         error is likely to be common.  Ignoring MB_LEN_MAX hurts
86977         performance on hosts that have mbrtowc but have only unibyte
86978         locales, but I assume these hosts are rare.
86979
86980 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86981
86982         * lib/mbswidth.c (_XOPEN_SOURCE):
86983         Don't define; this causes problems on Solaris 7.
86984         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
86985
86986 2000-07-23  Jim Meyering  <meyering@lucent.com>
86987
86988         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
86989         too: getgrgid, getpwuid, getuid.
86990
86991 2000-07-23  Jim Meyering  <meyering@lucent.com>
86992
86993         * lib/basename.c (base_name): Add an assertion.
86994
86995 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
86996
86997         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
86998         shadow its mbsinit function.
86999
87000 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87001
87002         * lib/mbswidth.h: New file.
87003         * lib/mbswidth.c: New file.
87004         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87005         (noinst_HEADERS): Add mbswidth.h.
87006
87007 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87008
87009         * lib/config.charset: Add support for FreeBSD. Improve support for
87010         HP-UX and IRIX 6.
87011
87012 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87013
87014         * m4/mbswidth.m4: New file.
87015         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87016
87017 2000-07-15  Jim Meyering  <meyering@lucent.com>
87018
87019         * lib/makepath.c: Include quote.h.
87020         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87021         corresponding argument in a `quote (...)' call.
87022         Give better diagnostics.
87023
87024         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87025         (noinst_HEADERS): Add quote.h.
87026
87027         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87028         from tar's src/misc.c.
87029         * lib/quote.h: New file.  Prototypes for same.
87030
87031 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87032
87033         From a suggestion by Bruno Haible.
87034         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87035         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87036         to decide whether to define the BeOS workaround macro;
87037         this adjusts to the change to AC_MBSTATE_T.
87038
87039 2000-07-14  Jim Meyering  <meyering@lucent.com>
87040
87041         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87042         jm_AC_TYPE_UINTMAX_T.
87043
87044 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87045
87046         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87047
87048         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87049         quotearg_buffer_restyled): Add support for
87050         clocale_quoting_style.  Undo previous change to
87051         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87052         and "{RIGHT QUOTATION MARK}" msgids.
87053
87054 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87055
87056         From a suggestion by Bruno Haible.
87057         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87058         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87059         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87060         and mbstate_t, to a single-part test that simply defines mbstate_t.
87061         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87062         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87063
87064 2000-07-10  Jim Meyering  <meyering@lucent.com>
87065
87066         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87067
87068         * m4/gnu-source.m4: Output to confdefs.h directly.
87069         Suggestion from Akim Demaille.
87070
87071 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87072
87073         The old behavior of quoting `like this' doesn't look good with
87074         newer, ISO-style fonts.  See:
87075         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87076
87077         Instead, quote "like this" by default.  Let the translator
87078         tailor the locale-specific quoting behavior by providing
87079         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87080
87081         * lib/quotearg.c (N_): New macro.
87082         (gettext_default): New function.
87083         (quotearg_buffer_restyled): Use
87084         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87085         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87086
87087 2000-07-09  Jim Meyering  <meyering@lucent.com>
87088
87089         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87090         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87091
87092         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87093         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87094
87095 2000-07-09  Jim Meyering  <meyering@lucent.com>
87096
87097         * lib/Most files: Update copyright dates to include 2000.
87098
87099 2000-07-08  Jim Meyering  <meyering@lucent.com>
87100
87101         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87102         if not defined.
87103         (xgethostname): Remove now-unnecessary #ifdef.
87104         Move declaration of `err' into loop where it's used.
87105
87106 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87107         and Bruno Haible  <haible@clisp.cons.org>
87108
87109         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87110         only if the test for an object-type mbstate_t fails.  This
87111         prevents us from mistakenly reporting that mbstate_t is a
87112         system object type after we "#define mbstate_t int" to work
87113         around its lack.
87114
87115 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87116         and Bruno Haible  <haible@clisp.cons.org>
87117
87118         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87119
87120 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87121
87122         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87123         to strerror_r.
87124         Include <ctype.h> for use of isalpha.
87125
87126 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87127
87128         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
87129         by allocating a larger buffer. Test the gethostname return value for
87130         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
87131         returns an error and ENAMETOOLONG isn't defined.
87132
87133 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87134
87135         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
87136         dimension.
87137
87138 2000-07-04  Jim Meyering  <meyering@lucent.com>
87139
87140         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
87141         of the deprecated AC_CHECKING.
87142
87143 2000-07-04  Jim Meyering  <meyering@lucent.com>
87144
87145         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
87146         Reported by Bruno Haible.
87147
87148 2000-07-04  Jim Meyering  <meyering@lucent.com>
87149
87150         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
87151         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
87152         lacks mbrtowc.
87153
87154 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87155
87156         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
87157         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
87158
87159 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87160         and Bruno Haible  <haible@clisp.cons.org>
87161
87162         * lib/quotearg.c (mbrtowc):
87163         Assign to *pwc, and return 1 only if result is nonzero.
87164         (iswprint): Use ISPRINT when substituting our own mbrtowc.
87165
87166 2000-07-03  Jim Meyering  <meyering@lucent.com>
87167
87168         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
87169
87170 2000-07-03  Jim Meyering  <meyering@lucent.com>
87171
87172         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
87173         This is necessary to get a definition of e.g., UTMP_FILE on
87174         HP-UX 10.20.
87175         From Bob Proulx.
87176
87177 2000-07-02  Jim Meyering  <meyering@lucent.com>
87178
87179         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87180
87181         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87182         AC_LIBOBJ(function_name).
87183         * m4/chown.m4: Likewise.
87184         * m4/fnmatch.m4: Likewise.
87185         * m4/ftruncate.m4: Likewise.
87186         * m4/getgroups.m4: Likewise.
87187         * m4/getline.m4: Likewise.
87188         * m4/group-member.m4: Likewise.
87189         * m4/jm-macros.m4: Likewise.
87190         * m4/lstat.m4: Likewise.
87191         * m4/malloc.m4: Likewise.
87192         * m4/memcmp.m4: Likewise.
87193         * m4/nanosleep.m4: Likewise.
87194         * m4/putenv.m4: Likewise.
87195         * m4/realloc.m4: Likewise.
87196         * m4/regex.m4: Likewise.
87197         * m4/stat.m4: Likewise.
87198         * m4/strftime.m4: Likewise.
87199
87200 2000-07-02  Jim Meyering  <meyering@lucent.com>
87201
87202         * lib/quotearg.c (mbstate_t): Don't define here.
87203
87204 2000-07-02  Jim Meyering  <meyering@lucent.com>
87205
87206         * lib/nanosleep.c (SIGCONT): Define if not already defined.
87207
87208 2000-07-01  Jim Meyering  <meyering@lucent.com>
87209
87210         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
87211
87212 2000-07-01  Jim Meyering  <meyering@lucent.com>
87213
87214         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
87215         problem.
87216
87217 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87218
87219         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
87220         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
87221
87222 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87223
87224         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
87225         per change in ../m4/ls-mntd-fs.m4.
87226         (read_filesystem_list): Ignore symbolic links.
87227
87228 2000-06-29  Jim Meyering  <meyering@lucent.com>
87229
87230         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
87231         for declaration of strcmp.
87232
87233         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
87234
87235         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
87236         Avoid warning by casting result to `char *' to remove `const'.
87237
87238 2000-06-28  Jim Meyering  <meyering@lucent.com>
87239
87240         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
87241         included by quotearg.c, for which we perform this test.  From
87242         Bruno Haible.
87243
87244 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87245
87246         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
87247         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
87248         <utmpx.h> exists, put readutmp.o into LIBOBJS.
87249
87250 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87251
87252         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
87253
87254 2000-06-26  Paul Eggert  <eggert@twinsun.com>
87255
87256         savedir now sets errno on failure and invokes xmalloc to get memory.
87257         Fix a couple of other minor bugs while we're at it.
87258
87259         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
87260         (NAMLEN): Remove macro.
87261         (malloc, realloc): Remove decls.
87262         (stpcpy): Likewise.
87263         ("xalloc.h"): Include.
87264         (NAME_SIZE_DEFAULT): New macro.
87265         (savedir): Use xmalloc / xrealloc to allocate memory.
87266         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
87267         Skip "" directory entries.
87268         Use strlen to calculate directory entry length, since the old method
87269         is rarely used these days and isn't worth supporting.
87270         Don't use a pointer after freeing it.
87271         Check for integer overflow when calculating allocation size.
87272         Use memcpy to copy entries, instead of stpcpy.
87273         Set errno properly when returning NULL.
87274         Check for readdir error.
87275
87276 2000-06-26  Jim Meyering  <meyering@lucent.com>
87277
87278         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
87279
87280 2000-06-25  Jim Meyering  <meyering@lucent.com>
87281
87282         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
87283         Linux header bug when _XOPEN_SOURCE is defined to 500.
87284
87285 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87286
87287         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
87288         deficiency.
87289
87290 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87291
87292         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
87293         Include xalloc.h.
87294         Don't include <stdlib.h>.  Don't declare malloc, realloc.
87295
87296 2000-06-24  Jim Meyering  <meyering@lucent.com>
87297
87298         * m4/strerror_r.m4: Revive this file -- to try out an experimental
87299         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
87300         for which strerror does return char*, but which lacks a conveniently
87301         accessible declaration of the function.  If the compile-test says
87302         strerror_r doesn't work, then resort to a `run'-test that works on
87303         BeOS and segfaults on DEC Unix.
87304
87305 2000-06-24  Jim Meyering  <meyering@lucent.com>
87306
87307         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
87308
87309 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87310
87311         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
87312         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
87313
87314 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87315
87316         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
87317         (mbrtowc, mbstate_t): Define substitutes if
87318         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
87319         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
87320         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
87321
87322 2000-06-23  Jim Meyering  <meyering@lucent.com>
87323
87324         * m4/afs.m4: Add missing AC_MSG_RESULT.
87325         Reported by Bruno Haible.
87326
87327         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
87328         Suggestion from Bruno Haible.
87329
87330 2000-06-23  Jim Meyering  <meyering@lucent.com>
87331
87332         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
87333
87334 2000-06-21  Jim Meyering  <meyering@lucent.com>
87335
87336         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
87337
87338 2000-06-21  Jim Meyering  <meyering@lucent.com>
87339
87340         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
87341         (noinst_HEADERS): Add getstr.h.
87342
87343         * lib/getline.c (getstr): Move into a separate file.
87344         * lib/getstr.c (getstr): New file, extracted from getline.c, with
87345         the following changes: new parameter, delim2; both delim[12]
87346         parameters have type `int', not `char'.  The latter would lose
87347         with 8-bit delimiters.
87348         * lib/getstr.h: New file.
87349
87350 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87351
87352         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
87353         than 1024, return a memory chunk of least possible size, instead
87354         of size PATH_MAX + 2. In the loop, increment the size proportionally.
87355         Use free/xmalloc instead of xrealloc to avoid copying for very long
87356         paths.
87357
87358 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87359
87360         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
87361         the empty string.
87362
87363 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87364
87365         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
87366         address, not strdup.  Include <stdlib.h> and don't declare free().
87367
87368 2000-06-19  Jim Meyering  <meyering@lucent.com>
87369
87370         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
87371
87372 2000-06-18  Jim Meyering  <meyering@lucent.com>
87373
87374         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
87375
87376         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
87377         `checking whether...' message to be consistent with that of the
87378         lstat test.
87379
87380 2000-06-18  Jim Meyering  <meyering@lucent.com>
87381
87382         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
87383         Besides, these days every porting target provides a mkdir function.
87384
87385         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
87386         needed. (this snippet comes from src/system.h).
87387
87388 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
87389
87390         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
87391
87392 2000-06-15  Paul Eggert  <eggert@twinsun.com>
87393
87394         * lib/human.c (adjust_value): New function.
87395         (human_readable_inexact): Apply rounding style even when
87396         printing approximate values.
87397
87398 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87399
87400         * lib/human.c (human_readable_inexact): Allow an input block
87401         size that is not a multiple of the output block size, and vice versa.
87402         Reported by Piergiorgio Sartor.
87403
87404 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87405
87406         * lib/getdate.y (get_date): Apply relative times after time
87407         zone indicator, not before.  Reported by Todd A. Jacobs.
87408
87409 2000-06-13  Jim Meyering  <meyering@lucent.com>
87410
87411         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
87412
87413         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
87414
87415 2000-06-12  Paul Eggert  <eggert@twinsun.com>
87416
87417         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
87418
87419 2000-06-12  Jim Meyering  <meyering@lucent.com>
87420
87421         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
87422         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
87423         optional argument.
87424         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
87425         the optional argument, `lib'.
87426
87427 2000-06-08  Jim Meyering  <meyering@lucent.com>
87428
87429         * m4/largefile.m4: Remove file (now that it's part of autoconf).
87430
87431 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87432
87433         Rewrite largefile configuration so that we don't need to run
87434         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
87435         AC_CANONICAL_HOST in configure.in -- jmm]
87436
87437         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
87438         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
87439         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
87440         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
87441         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
87442         All uses changed.
87443         Instead of inspecting the output of getconf, try to compile the
87444         test program without and with the macro definition.
87445         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
87446         for getconf.  Instead, check for the needed flags by compiling
87447         test programs.
87448
87449 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87450
87451         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
87452
87453 2000-06-04  Jim Meyering  <meyering@lucent.com>
87454
87455         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
87456         SunOS 4.1.4 for which gid_t is an unsigned type.
87457
87458 2000-06-03  Jim Meyering  <meyering@lucent.com>
87459
87460         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
87461         now that autoconf requires that.
87462
87463         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
87464         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
87465         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
87466
87467 2000-06-03  Jim Meyering  <meyering@lucent.com>
87468
87469         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
87470
87471 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87472
87473         * m4/glibc21.m4: New file.
87474         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
87475
87476 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87477
87478         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
87479         newer, don't install charset.alias.
87480         * lib/config.charset: Change the Linux/glibc rules so they become empty
87481         on glibc-2.1 or newer.
87482
87483 2000-06-02  Jim Meyering  <meyering@lucent.com>
87484
87485         * lib/mountlist.c: Back out last change.  Instead, do this...
87486         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
87487         me_dummy member using the same `ignore'-testing code.
87488         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
87489         fs_type strings.
87490         From Mark D. Roth.
87491
87492 2000-05-29  Jim Meyering  <meyering@lucent.com>
87493
87494         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
87495         mounts with the `ignore' attribute.  Based on a patch from
87496         Mark D. Roth.
87497
87498 2000-05-28  Jim Meyering  <meyering@lucent.com>
87499
87500         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
87501         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87502         * m4/stat.m4: Likewise.
87503         * m4/lstat.m4: Likewise.
87504         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
87505
87506         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
87507         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
87508
87509 2000-05-26  Jim Meyering  <meyering@lucent.com>
87510
87511         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
87512
87513 2000-05-24  Jim Meyering  <meyering@lucent.com>
87514
87515         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
87516         autoconf requires that.
87517         * m4/lib-check.m4: Likewise.
87518         * m4/jm-macros.m4: Likewise.
87519         * m4/strftime.m4: Likewise.
87520
87521         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
87522         AC_CHECK_DECLS, now that autoconf requires that.
87523
87524 2000-05-22  Jim Meyering  <meyering@lucent.com>
87525
87526         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87527         * m4/lstat.m4: Likewise.
87528
87529 2000-05-22  Jim Meyering  <meyering@lucent.com>
87530
87531         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
87532
87533 2000-05-20  Jim Meyering  <meyering@lucent.com>
87534
87535         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
87536         (jm_PREREQ): Use it.
87537
87538 2000-05-18  Jim Meyering  <meyering@lucent.com>
87539
87540         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
87541         back, too, since it may have been modified by allocate_entry.
87542         (hash_delete): Rewrite to use neither the assignment operator
87543         nor the comma operator in an if-expression.
87544
87545 2000-05-15  Paul Eggert  <eggert@twinsun.com>
87546
87547         * lib/closeout.c:
87548         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
87549         Remove; no longer needed.
87550         "quotearg.h": Add include.
87551         (file_name): Do not bother to explicitly initialize to NULL; it's less
87552         efficient on some hosts.
87553         (close_stdout_status): Remove test as to whether stdout was already
87554         closed; it breaks for the case "echo x | sort >&-".
87555         Quote file name colons.
87556         Do not assume that _("write error") lacks format strings.
87557
87558 2000-05-15  Jim Meyering  <meyering@lucent.com>
87559
87560         * lib/version-etc.c (version_etc_copyright): Update the copyright
87561         string used in all --version output.
87562
87563 2000-05-14  Jim Meyering  <meyering@lucent.com>
87564
87565         * lib/closeout.c (close_stdout_set_file_name): New function.
87566         (close_stdout_status): Use new file-scoped global.
87567         Return right away if fstat says the stdout file descriptor is invalid.
87568         * lib/closeout.h (close_stdout_set_file_name): Declare.
87569
87570 2000-05-10  Jim Meyering  <meyering@lucent.com>
87571
87572         * lib/closeout.c [default_exit_status]: New file-scoped variable.
87573         (close_stdout_set_status): New function.
87574         * lib/closeout.h (close_stdout_set_status): Declare.
87575
87576 2000-05-09  Jim Meyering  <meyering@lucent.com>
87577
87578         * m4/gettext.m4: Rename this...
87579         * m4/libintl.m4: ...to this.
87580
87581 2000-05-08  Jim Meyering  <meyering@lucent.com>
87582
87583         * lib/long-options.c: Don't include closeout.h.
87584         (parse_long_options): Don't call close_stdout for --version.
87585
87586 2000-05-06  Paul Eggert  <eggert@twinsun.com>
87587
87588         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
87589         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
87590         2.1.3 bug.  This avoids a clash when files like regex.c define
87591         _GNU_SOURCE.
87592
87593 2000-05-06  Jim Meyering  <meyering@lucent.com>
87594
87595         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
87596         (AC_REPLACE_FUNCS): Add strnlen.
87597
87598         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
87599         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
87600
87601         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
87602         AC_SEARCH_LIBS call for nanosleep.
87603         (LIB_NANOSLEEP): Set and AC_SUBST.
87604
87605 2000-05-06  Jim Meyering  <meyering@lucent.com>
87606
87607         * lib/strnlen.c: Undefine __strnlen and strnlen.
87608         [!weak_alias]: Define __strnlen to strnlen.
87609
87610         * lib/atexit.c: New file, from libiberty.
87611
87612 2000-05-06  Jim Meyering  <meyering@lucent.com>
87613
87614         * lib/closeout.c (close_stdout_status): Also check for errors on the
87615         stderr stream.
87616
87617 2000-05-05  Jim Meyering  <meyering@lucent.com>
87618
87619         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
87620         AC_SEARCH_LIBS call for clock_gettime.
87621         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
87622
87623         * m4/search-libs.m4: Update from autoconf.
87624
87625         su doesn't work on Solaris 2.6.
87626         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
87627         <shadow.h>.  Reported by Dragos Harabor.
87628
87629 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
87630
87631         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
87632         memcpy instead of xmalloc, xrealloc, path_concat.
87633         (locale_charset): Treat empty environment variables as absent.
87634         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
87635
87636 2000-05-04  Jim Meyering  <meyering@lucent.com>
87637
87638         * lib/getopt.c: Update from glibc.
87639         * lib/obstack.c: Likewise.
87640         * lib/obstack.h: Likewise.
87641         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
87642         file
87643
87644         * lib/regex.h: Likewise.
87645         * lib/strndup.c: Likewise.
87646         * lib/strnlen.c: New file, from glibc.
87647
87648 2000-05-03  Jim Meyering  <meyering@lucent.com>
87649
87650         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
87651
87652 2000-05-02  Paul Eggert  <eggert@twinsun.com>
87653
87654         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
87655         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
87656         compile-time test, rather than inspecting host and OS, to
87657         decide whether to define _LARGEFILE_SOURCE.
87658
87659 2000-05-01  Jim Meyering  <meyering@lucent.com>
87660
87661         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
87662
87663         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
87664         Based on a patch from Bruno Haible.
87665
87666 2000-05-01  Jim Meyering  <meyering@lucent.com>
87667
87668         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
87669
87670 2000-04-29  Jim Meyering  <meyering@lucent.com>
87671
87672         * lib/path-concat.c: Declare strdup only if it's not defined.
87673         * lib/canon-host.c: Likewise.
87674
87675 2000-04-28  Jim Meyering  <meyering@lucent.com>
87676
87677         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
87678         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
87679         is included first, then limits.h is included by locale.h by libintl.h.
87680         From John David Anglin.
87681
87682 2000-04-25  Jim Meyering  <meyering@lucent.com>
87683
87684         * lib/makepath.c (S_IRWXUGO): Define.
87685         (make_path): Always perform explicit chmod if MODE specifies any
87686         of the `special' permission bits.  Prompted by a bug report against
87687         install from Mate Wierdl and Joost van Baal.
87688
87689 2000-04-18  Jim Meyering  <meyering@lucent.com>
87690
87691         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
87692         (jm_PREREQ): Use it.
87693
87694 2000-04-18  Jim Meyering  <meyering@lucent.com>
87695
87696         * lib/README: New file.
87697
87698         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
87699         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
87700
87701 2000-04-17  Jim Meyering  <meyering@lucent.com>
87702
87703         Get it right :-)
87704         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
87705         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
87706         Suggestion from Akim Demaille.
87707
87708 2000-04-17  Jim Meyering  <meyering@lucent.com>
87709
87710         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
87711         the definition of it to rpl_strftime also defined-away the system's
87712         declaration.
87713
87714 2000-04-15  Jim Meyering  <meyering@lucent.com>
87715
87716         Use `C' to denote so-called `contiguous' files, the same way
87717         that tar does.
87718         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
87719         (ftypelet): Use S_ISCTG.
87720         From Michael Deutschmann.
87721
87722 2000-04-14  Jim Meyering  <meyering@lucent.com>
87723
87724         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
87725         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
87726         clobbered.
87727
87728 2000-04-14  Jim Meyering  <meyering@lucent.com>
87729
87730         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
87731
87732 2000-04-13  Jim Meyering  <meyering@lucent.com>
87733
87734         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
87735         AH_VERBATIM to insert required #ifndef into config.h.in.
87736         Suggestion from Akim Demaille.
87737
87738 2000-04-12  Jim Meyering  <meyering@lucent.com>
87739
87740         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
87741         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
87742         Christian Krackowizer.
87743
87744         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
87745         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
87746         (AC_SYS_LARGEFILE): Require.
87747         (AM_C_PROTOTYPES): Require.
87748
87749 2000-04-08  Jim Meyering  <meyering@lucent.com>
87750
87751         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
87752         names don't conflict.  Reported by Eli Zaretskii.
87753
87754 2000-04-07  Jim Meyering  <meyering@lucent.com>
87755
87756         * lib/putenv.c: Move inclusion of errno.h so it follows that of
87757         sys/types.h, to work around system header problems on AIX 3.2.5.
87758         From Bruno Haible.
87759
87760 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
87761
87762         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
87763         bug.  Deal with the different error behavior of Irix iconv.
87764
87765 2000-04-05  Paul Eggert  <eggert@twinsun.com>
87766
87767         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
87768         IRIX if the installer said otherwise.
87769
87770 2000-04-05  Jim Meyering  <meyering@lucent.com>
87771
87772         Portability tweaks required for ultrix4.3.
87773         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
87774         (jm_CHECK_DECLS): Add getutent to the list of functions.
87775         (_jm_DECL_HEADERS): Add utmpx.h.
87776         From John David Anglin.
87777
87778         * m4/strftime.m4: Back out the 2000-04-02 change.
87779         Instead of that change, simply undefine putenv in the test program.
87780
87781 2000-04-05  Jim Meyering  <meyering@lucent.com>
87782
87783         Portability tweaks required for ultrix4.3.
87784         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
87785         getutent.
87786         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
87787         * lib/canon-host.c: Declare strdup.
87788         * lib/path-concat.c: Likewise.
87789         From John David Anglin.
87790
87791 2000-04-04  Jim Meyering  <meyering@lucent.com>
87792
87793         Be more DOS 8.3-friendly.
87794         * lib/ref-add.sin: Renamed from ref-add.sed.in.
87795         * lib/ref-del.sin: Renamed from ref-del.sed.in.
87796         * lib/Makefile.am: Reflect renaming.
87797         Reported by Eli Zaretskii.
87798
87799         Use a temporary file name that won't clash with `charset.alias'
87800         in the DOS 8.3 name space.
87801         * lib/Makefile.am (charset_tmp): Define.
87802         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
87803         (uninstall-local): Likewise.
87804         Reported by Eli Zaretskii.
87805
87806 2000-04-03  Jim Meyering  <meyering@lucent.com>
87807
87808         * m4/gettext.m4: Fix typo in comment.
87809
87810         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
87811         textutils/configure.in).  Suggestion from Paul Eggert.
87812         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
87813
87814 2000-04-02  Paul Eggert  <eggert@twinsun.com>
87815
87816         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
87817         variable in the shell rather than using putenv, which isn't
87818         portable.  This avoids the configure-time inter-test dependency
87819         on the potentially-renamed putenv function.
87820
87821 2000-03-30  Paul Eggert  <eggert@twinsun.com>
87822
87823         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
87824         before checking struct stat.st_blksize, so that
87825         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
87826
87827 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87828
87829         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
87830         since strftime.c uses HAVE_STRFTIME to decide whether to use
87831         the underlying strftime.
87832
87833 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87834
87835         * lib/time/strftime.c (my_strftime): Make sure we call the system
87836         strftime, not ourselves, when invoking the underlying strftime.
87837
87838 2000-03-24  Jim Meyering  <meyering@lucent.com>
87839
87840         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
87841         (charset_alias): Define.
87842         (install-exec-local): Factor out common code.
87843         (uninstall-local): Split lines longer than 80.
87844         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
87845         (SUFFIXES): Define.
87846         (.sed.in.sed): New rule.  Don't redirect directly to $@.
87847         (CLEANFILES): Add ref-add.sed and ref-del.sed.
87848
87849 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
87850
87851         * lib/config.charset: Output a line containing "Packages using this
87852         file".
87853         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
87854         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
87855         ref-del.sed): New rules.
87856
87857 2000-03-17  Jim Meyering  <meyering@lucent.com>
87858
87859         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
87860         Otherwise, include <strings.h>
87861
87862 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
87863
87864         * lib/unicodeio.c (utf8_wctomb): New function.
87865         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
87866         format instead of in UCS-4 with platform dependent endianness.
87867
87868 2000-03-10  Jim Meyering  <meyering@lucent.com>
87869
87870         * m4/lib-check.m4: Look for getspnam in -lgen, too.
87871         From Marco Franzen.
87872
87873 2000-03-07  Paul Eggert  <eggert@twinsun.com>
87874
87875         * lib/savedir.c (savedir): Work even if directory size is
87876         negative; this can happen with some screwy NFS configurations.
87877
87878 2000-03-06  Jim Meyering  <meyering@lucent.com>
87879
87880         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
87881         if it's NULL (because we ran out of memory).  From Bruno Haible.
87882
87883 2000-03-05  Jim Meyering  <meyering@lucent.com>
87884
87885         * lib/localcharset.c ("path-concat.h"): Include.
87886         (get_charset_aliases): Use path_concat instead of ANSI string
87887         concatenation.
87888
87889         * lib/unicodeio.h (PARAMS): Define.
87890         Use it to guard prototype.
87891
87892 2000-03-04  Jim Meyering  <meyering@lucent.com>
87893
87894         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
87895         for lib/localcharset.c.
87896
87897 2000-03-04  Jim Meyering  <meyering@lucent.com>
87898
87899         * lib/Makefile.am (install-exec-local): Create $(libdir) before
87900         installing into it.
87901         (uninstall-local): Uncomment this rule so `make distcheck' works
87902         once again.
87903
87904         * lib/unicodeio.c (<errno.h>): Include it.
87905         (errno): Declare if not defined.
87906
87907         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
87908
87909         * lib/config.charset: New version, incorporating remarks from a linux
87910         i18n mailing list.  From Bruno Haible.
87911
87912 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
87913
87914         * m4/codeset.m4: New file.
87915         * m4/iconv.m4: New file.
87916         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
87917
87918 2000-03-03  Jim Meyering  <meyering@lucent.com>
87919
87920         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
87921
87922 2000-03-02  Jim Meyering  <meyering@lucent.com>
87923
87924         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
87925         the messages come out on separate lines.
87926
87927         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
87928         rather than jm_CHECK_DECLARATIONS.
87929         * m4/decl.m4: Remove now-unused file.
87930
87931         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
87932         geteuid.
87933
87934 2000-03-02  Jim Meyering  <meyering@lucent.com>
87935
87936         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
87937
87938 2000-03-01  Jim Meyering  <meyering@lucent.com>
87939
87940         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
87941         * lib/unicodeio.c: Likewise.
87942
87943 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
87944
87945         * lib/config.charset: New file.
87946         * lib/localcharset.c: New file.
87947         * lib/unicodeio.h, lib/unicodeio.c: New files.
87948         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
87949         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
87950         (noinst_HEADERS): Add unicodeio.h.
87951         (all-local, install-exec-local, charset.alias): New targets.
87952
87953 2000-02-28  Paul Eggert  <eggert@twinsun.com>
87954
87955         * lib/quotearg.c (ALERT_CHAR): New macro.
87956         (quotearg_buffer_restyled): Use it.
87957
87958 2000-02-27  Jim Meyering  <meyering@lucent.com>
87959
87960         * m4/check-decl.m4: Add getenv to the list.
87961
87962 2000-02-27  Jim Meyering  <meyering@lucent.com>
87963
87964         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
87965         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
87966
87967         * lib/backupfile.c: Guard inclusion of stdlib.h with
87968         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
87969         Declare malloc if needed.
87970
87971         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
87972         `#ifndef HAVE_DECL..'
87973         now that autoconf always defines the HAVE_DECL_ symbols.
87974         * lib/human.c: Likewise.
87975         * lib/same.c: Likewise.
87976         * lib/strtoumax.c: Likewise.
87977
87978         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
87979         declaration check was not run.
87980         * lib/hash.c: Likewise.
87981         * lib/human.c: Likewise.
87982         * lib/same.c: Likewise.
87983         * lib/strtoumax.c: Likewise.
87984
87985         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
87986         `.', then first look up the entire `.'-containing string as a login
87987         name.
87988
87989 2000-02-23  Jim Meyering  <meyering@lucent.com>
87990
87991         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
87992         in place of my hack.
87993
87994 2000-02-18  Paul Eggert  <eggert@twinsun.com>
87995
87996         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
87997         (textint): New typedef.
87998         (parser_control): Member year changed from int to textint.
87999         All uses changed.
88000         (YYSTYPE): Removed; replaced by %union with int and textint members.
88001         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88002         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88003         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88004         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88005         (date, number, to_year): Use width of number in digits, not its value,
88006         to determine whether it's a 2-digit year, or a 2-digit time.
88007         (yylex): Store number of digits of numeric tokens.
88008         Reported by John Kendall.
88009
88010         (parser_control): Changed from struct parser_control to typedef (for
88011         consistency).  All uses changed.
88012
88013         (tID): Removed; not used.
88014         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88015
88016 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88017
88018         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88019         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88020
88021 2000-02-12  Jim Meyering  <meyering@lucent.com>
88022
88023         * lib/userspec.c (ISDIGIT): Define it.
88024         (isdigit): Remove definition.
88025         (is_number): Use ISDIGIT, not isdigit.
88026         <libintl.h>: Include.
88027         (_ and N_): Define.
88028         (parse_user_spec): Mark translatable strings.
88029
88030 2000-02-10  Jim Meyering  <meyering@lucent.com>
88031
88032         With these changes, nanosleep.[ch] are finally enough like the other
88033         lib/* replacement files to compile on a few more losing systems.
88034
88035         * lib/nanosleep.h: Don't include config.h.
88036         Remove prototype from declaration of nanosleep.
88037         (PARAMS): Remove now-unneeded definition.
88038         * lib/nanosleep.c: #undef nanosleep.
88039         (rpl_nanosleep): Rename from nanosleep.
88040
88041 2000-02-10  Jim Meyering  <meyering@lucent.com>
88042
88043         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88044         gnu_nanosleep to rpl_nanosleep.
88045
88046 2000-02-09  Jim Meyering  <meyering@lucent.com>
88047
88048         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88049         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88050
88051 2000-02-08  Akim Demaille  <akim@epita.fr>
88052
88053         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88054         `[' and `]' and remove uses of `changequote'.
88055         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88056         (AC_SYS_LARGEFILE): Likewise.
88057         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88058         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88059         of changequote.
88060         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88061         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88062         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88063         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88064
88065 2000-02-05  Jim Meyering  <meyering@lucent.com>
88066
88067         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88068         Remove explicit use of AC_HEADER_TIME.  It is required by
88069         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88070         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88071         in autoconf whereby the expansion of the latter ended up preceding
88072         the expansion of its prerequisite, AC_HEADER_TIME.
88073         Reported by Volker Borchert.
88074
88075 2000-02-03  Jim Meyering  <meyering@lucent.com>
88076
88077         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88078
88079 2000-02-03  Jim Meyering  <meyering@lucent.com>
88080
88081         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88082         rather than with `#if HAVE_UTMPNAME'.
88083
88084 2000-02-02  Jim Meyering  <meyering@lucent.com>
88085
88086         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88087         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88088         Reported by Eli Zaretskii.
88089
88090 2000-02-01  Jim Meyering  <meyering@lucent.com>
88091
88092         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88093
88094 2000-01-31  Jim Meyering  <meyering@lucent.com>
88095
88096         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88097         functions.  Add the time.h and sys/time.h headers along with the
88098         AC_REQUIRE'ment of AC_HEADER_TIME.
88099
88100 2000-01-31  Jim Meyering  <meyering@lucent.com>
88101
88102         * lib/nanosleep.h (nanosleep): Guard declaration with
88103         `#if ! HAVE_DECL_NANOSLEEP'.
88104         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88105         the declaration in that vendor's sys/timers.h.
88106         Reported by Christian Krackowizer.
88107
88108         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88109         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88110         (ISPRINT): Likewise.
88111         Reported by Tom Tromey.
88112
88113 2000-01-30  Jim Meyering  <meyering@lucent.com>
88114
88115         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88116
88117         * m4/prereq.m4 (utmp_includes): Define.
88118         Check for ut_user and ut_name members in both struct utmpx
88119         and struct utmp.
88120
88121 2000-01-30  Jim Meyering  <meyering@lucent.com>
88122
88123         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88124         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
88125         header files where only utmpx.ut_user is declared.
88126
88127         * lib/readutmp.h (UT_USER): Define.
88128
88129 2000-01-29  Jim Meyering  <meyering@lucent.com>
88130
88131         * m4/lib-check.m4: New file containing library-related checks from
88132         fileutils and sh-utils (textutils had none).
88133
88134 2000-01-28  Jim Meyering  <meyering@lucent.com>
88135
88136         * m4/perl.m4: Change format of warning message to look more like that
88137         from the missing script.  Suggestion from François Pinard.
88138
88139 2000-01-25  Jim Meyering  <meyering@lucent.com>
88140
88141         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
88142         well as time.h in the compile check.
88143         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
88144         Fix typo in cross-compiling case: s/yes/no/.
88145
88146 2000-01-23  Jim Meyering  <meyering@lucent.com>
88147
88148         * m4/jm-macros.m4: Move df-related tests here from
88149         fileutils/configure.in
88150
88151         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
88152         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
88153
88154         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
88155         s/space/ac_fsusage_space/.
88156         (jm_FILE_SYSTEM_USAGE): Take two parameters.
88157
88158         * m4/ftruncate.m4: New file (derived from part of
88159         fileutils/configure.in).
88160         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
88161         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
88162
88163         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
88164         AC_SUBST these here, rather than just in sh-util/configure.in, so
88165         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
88166         all the same.
88167         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
88168         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
88169         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
88170         (AC_SUBST(POW_LIBM)): Likewise.
88171         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
88172
88173 2000-01-23  Jim Meyering  <meyering@lucent.com>
88174
88175         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88176         obstack.c.
88177
88178 2000-01-22  Jim Meyering  <meyering@lucent.com>
88179
88180         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88181
88182         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88183
88184         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88185         configure.in
88186         (AC_CHECK_HEADERS): Likewise for sh-utils.
88187         (AC_CHECK_HEADERS): Likewise for textutils.
88188         Merge the three lists of headers.
88189
88190         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88191         from fileutils' configure.in.
88192
88193         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88194         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88195         check-decl.m4.
88196
88197         * m4/check-decl.m4: Use #if rather than #ifdef.
88198         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88199         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88200         (_jm_DECL_HEADERS): Define new function.
88201         (jm_CHECK_DECLARATIONS): Require it.
88202
88203 2000-01-22  Jim Meyering  <meyering@lucent.com>
88204
88205         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
88206         [! HAVE_DECL_STRTOULL]: Declare strtoull.
88207         Required for some AIX systems.  Reported by Christian Krackowizer.
88208         [TESTING] (main): New function.
88209
88210         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
88211         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
88212         letters.
88213
88214         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
88215         iswprint.
88216
88217         * lib/strverscmp.c (ISDIGIT): Define.
88218         (strverscmp): Use ISDIGIT, not isdigit.
88219
88220 2000-01-19  Jim Meyering  <meyering@lucent.com>
88221
88222         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
88223         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
88224         defines `struct timespec' in <sys/time.h>
88225
88226         * m4/c-bs-a.m4: Remove uses of changequote altogether.
88227         Thanks to Akim for explaining.
88228
88229 2000-01-17  Paul Eggert  <eggert@twinsun.com>
88230
88231         * lib/nanosleep.c (nanosleep):
88232         Don't use SA_INTERRUPT to decide whether to call sigaction, as
88233         POSIX.1 doesn't require SA_INTERRUPT and some systems
88234         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
88235         it's been part of POSIX.1 since day 1 (in 1988).
88236
88237 2000-01-17  Jim Meyering  <meyering@lucent.com>
88238
88239         * lib/interlock: Remove unused file.  Reported by François Pinard.
88240
88241 2000-01-16  Paul Eggert  <eggert@twinsun.com>
88242
88243         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
88244         alert, backslash, formfeed, and vertical tab unnecessarily in
88245         shell quoting style.
88246
88247 2000-01-16  Jim Meyering  <meyering@lucent.com>
88248
88249         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
88250         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
88251         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
88252         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
88253
88254 2000-01-16  Jim Meyering  <meyering@lucent.com>
88255
88256         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
88257         because the latter didn't work.
88258
88259 2000-01-15  Jim Meyering  <meyering@lucent.com>
88260
88261         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
88262         (AC_REPLACE_FUNCS): Add memcpy and memset.
88263         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
88264         Add strpbrk.
88265         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
88266
88267 2000-01-12  Jim Meyering  <meyering@lucent.com>
88268
88269         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
88270         (jm_PREREQ): Use it.
88271         (jm_PREREQ_READUTMP): New macro.
88272         (jm_PREREQ): Use it.
88273
88274 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88275
88276         Quote multibyte characters correctly.
88277         * m4/c-bs-a.m4: New file.
88278         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
88279         (jm_PREREQ): Use it.
88280
88281 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88282
88283         * m4/uintmax_t.m4: Port to autoconf 2.13.
88284
88285 2000-01-08  Jim Meyering  <meyering@ascend.com>
88286
88287         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
88288         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
88289
88290 2000-01-04  Jim Meyering  <meyering@ascend.com>
88291
88292         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
88293         jm_STRUCT_DIRENT_D_TYPE.
88294         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
88295         jm_STRUCT_DIRENT_D_INO.
88296         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
88297         jm_STRUCT_UTIMBUF.
88298         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
88299         renamings.
88300         * m4/utime.m4: Likewise.
88301
88302         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
88303         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
88304
88305 2000-01-03  Paul Eggert  <eggert@twinsun.com>
88306
88307         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
88308         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
88309
88310 2000-01-02  Jim Meyering  <meyering@ascend.com>
88311
88312         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
88313         remember if this is necessary.
88314
88315 1999-12-26  Jim Meyering  <meyering@ascend.com>
88316
88317         * m4/jm-macros.m4: Use it here.
88318         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
88319
88320 1999-12-23  Jim Meyering  <meyering@ascend.com>
88321
88322         * m4/jm-macros.m4: Check for clock_gettime (moved from
88323         fileutils/configure.in)
88324         Check for gettimeofday.
88325
88326 1999-12-20  Jim Meyering  <meyering@ascend.com>
88327
88328         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
88329         autoconf-2.14a-1999-12-20.
88330
88331 1999-12-19  Jim Meyering  <meyering@ascend.com>
88332
88333         * m4/lstat-slash.m4: New file.
88334         * m4/jm-macros.m4: Use the new macro:
88335         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88336
88337 1999-12-07  Jim Meyering  <meyering@ascend.com>
88338
88339         * m4/perl.m4: Require that File::Compare be available, too.
88340         Too many systems seem to lack it.
88341
88342         * m4/strftime.m4: Add checks for most of the cpp macros tested in
88343         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
88344
88345 1999-11-18  Paul Eggert  <eggert@twinsun.com>
88346
88347         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
88348         problem with the QNX 4.25 shell, which doesn't propagate exit
88349         status of failed commands inside shell assignments.
88350
88351 1999-11-17  Jim Meyering  <meyering@ascend.com>
88352
88353         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
88354
88355 1999-11-07  Jim Meyering  <meyering@ascend.com>
88356
88357         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
88358
88359 1999-11-06  Jim Meyering  <meyering@ascend.com>
88360
88361         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
88362         * m4/jm-macros.m4 (jm_MACROS): Use it here.
88363
88364 1999-11-05  Jim Meyering  <meyering@ascend.com>
88365
88366         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
88367         configure.in of textutils, fileutils, and sh-utils into this one
88368         (shared between those packages) file.
88369         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
88370         AC_STRUCT_ST_BLKSIZE.
88371
88372 1999-11-03  Jim Meyering  <meyering@ascend.com>
88373
88374         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
88375         of AC_CHECK_TYPE checks includes unistd.h.
88376         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
88377         Suggestion from Akim Demaille.
88378
88379 1999-10-30  Jim Meyering  <meyering@ascend.com>
88380
88381         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
88382         m4-quoted string.
88383         * m4/ls-mntd-fs.m4: Likewise.
88384         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
88385         * m4/jm-winsz1.m4: Likewise.
88386
88387         * m4/const.m4: Remove file, since the fix made it into the experimental
88388         version of autoconf.
88389         * m4/mktime.m4: Likewise.
88390
88391         * m4/check-type.m4: Remove file, now that the latest version of
88392         AC_CHECK_TYPE takes a third arg to specify additional #includes.
88393
88394         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
88395         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
88396         AC_CHECK_TYPE.
88397
88398 1999-10-04  Jim Meyering  <meyering@ascend.com>
88399
88400         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
88401
88402 1999-09-22  Paul Eggert  <eggert@twinsun.com>
88403
88404         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
88405         2.95.1 bug with HP-UX 10.20.
88406
88407 1999-09-17  Jim Meyering  <meyering@ascend.com>
88408
88409         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
88410         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
88411         due to missing strdup (against sh-utils-2.0).
88412
88413 1999-08-29  Jim Meyering  <meyering@ascend.com>
88414
88415         * m4/jm-macros.m4: Require jm_BISON.
88416         * m4/bison.m4: New file.
88417
88418 1999-08-17  Paul Eggert  <eggert@twinsun.com>
88419
88420         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
88421         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
88422
88423 1999-08-05  Jim Meyering  <meyering@ascend.com>
88424
88425         * m4/getline.m4: Rename test file from conftestdata to conftest.data
88426         to avoid conflicts with `conftest' on 8+3 filesystems.
88427         Suggestion from Eli Zaretskii.
88428
88429 1999-08-04  Jim Meyering  <meyering@ascend.com>
88430
88431         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
88432         fileutils and sh-utils (textutils's getline test was inadequate).
88433         (AM_FUNC_GETLINE): Run this test.
88434         (AC_CHECK_FUNCS): Check for getdelim.
88435         Reported by Bob Proulx.
88436
88437 1999-08-02  Jim Meyering  <meyering@ascend.com>
88438
88439         * m4/jm-macros.m4: Add a comment.
88440
88441 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88442
88443         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
88444         <inttypes.h> defines strtoumax as a macro (and not as a
88445         function).
88446
88447 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88448
88449         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
88450         that we can shift, multiply and divide unsigned long long
88451         values; Ultrix cc can't do it.
88452
88453 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88454
88455         * m4/mktime.m4: New file, which is a preview of what should appear
88456         in the next public autoconf release.
88457
88458 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88459
88460         * m4/lfs.m4: Remove this file.
88461         * m4/largefile.m4: New file.  It contains the old contents of
88462         lfs.m4, except that all names with prefix AC_LFS have been
88463         changed to use the prefix AC_SYS_LARGEFILE instead, to be
88464         compatible with future autoconf versions.  Also, some minor m4
88465         quoting problems have been fixed.
88466
88467 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88468
88469         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
88470         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
88471         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
88472         and simplify the shell code.
88473
88474 1999-08-01  Jim Meyering  <meyering@ascend.com>
88475
88476         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
88477         m4.
88478
88479 1999-07-20  Jim Meyering  <meyering@ascend.com>
88480
88481         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
88482
88483 1999-07-15  Jim Meyering  <meyering@ascend.com>
88484
88485         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
88486
88487 1999-05-22  Jim Meyering  <meyering@ascend.com>
88488
88489         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
88490
88491 1999-05-20  Jim Meyering  <meyering@ascend.com>
88492
88493         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
88494         Add a colon after each `then' in case $4 is empty.
88495
88496 1999-05-16  Jim Meyering  <meyering@ascend.com>
88497
88498         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
88499
88500 1999-05-10  Jim Meyering  <meyering@ascend.com>
88501
88502         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
88503
88504         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
88505         AC_FUNC_MKTIME.
88506
88507 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
88508
88509         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
88510
88511 1999-05-04  Paul Eggert  <eggert@twinsun.com>
88512
88513         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
88514         not CPPFLAGS, so that linking works correctly in IRIX.
88515
88516 1999-04-30  Paul Eggert  <eggert@twinsun.com>
88517
88518         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
88519
88520 1999-04-20  Paul Eggert  <eggert@twinsun.com>
88521
88522         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
88523         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
88524         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
88525         jm_AC_TYPE_UNSIGNED_LONG_LONG.
88526         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
88527
88528         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
88529
88530 1999-04-20  Jim Meyering  <meyering@ascend.com>
88531
88532         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
88533         AC_REPLACE xstroull if necessary.  From Paul Eggert.
88534         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
88535
88536 1999-04-18  Jim Meyering  <meyering@ascend.com>
88537
88538         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
88539         * m4/jm-macros.m4: Use it.
88540
88541 1999-04-06  Jim Meyering  <meyering@ascend.com>
88542
88543         * m4/strftime.m4: Remove test for %f.
88544
88545 1999-03-29  Jim Meyering  <meyering@ascend.com>
88546
88547         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
88548         superset of the AC_TYPE_* checks in the textutils, fileutils,
88549         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
88550         AC_TYPE_PID_T.
88551
88552 1999-03-28  Jim Meyering  <meyering@ascend.com>
88553
88554         * m4/jm-macros.m4: Define GNU_PACKAGE here.
88555         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
88556         replaced e.g., in the *.sh files of the sh-utils.
88557
88558 1999-03-20  Jim Meyering  <meyering@ascend.com>
88559
88560         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
88561         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
88562         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
88563
88564 1999-03-19  Jim Meyering  <meyering@ascend.com>
88565
88566         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
88567
88568 1999-03-12  Jim Meyering  <meyering@ascend.com>
88569
88570         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
88571
88572 1999-03-07  Jim Meyering  <meyering@ascend.com>
88573
88574         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
88575         declared.
88576
88577 1999-02-17  Jim Meyering  <meyering@ascend.com>
88578
88579         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
88580         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
88581
88582 1999-02-07  Jim Meyering  <meyering@ascend.com>
88583
88584         * m4/group-member.m4: New file -- extracted from sh-utils'
88585         configure.in.
88586
88587         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
88588         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
88589
88590 1999-02-06  Jim Meyering  <meyering@ascend.com>
88591
88592         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
88593         * m4/fnmatch.m4: Likewise.
88594         * m4/getgroups.m4: Likewise.
88595         * m4/lstat.m4: Likewise.
88596         * m4/malloc.m4: Likewise.
88597         * m4/putenv.m4: Likewise.
88598         * m4/realloc.m4: Likewise.
88599         * m4/regex.m4: Likewise.
88600         * m4/stat.m4: Likewise.
88601         * m4/strftime.m4: Likewise.
88602         Suggestion from Alain Magloire.
88603
88604         * m4/chown.m4: Use `.$ac_objext', not `.o'.
88605         * m4/fnmatch.m4: Likewise.
88606         * m4/getgroups.m4: Likewise.
88607         * m4/getline.m4: Likewise.
88608         * m4/lstat.m4: Likewise.
88609         * m4/malloc.m4: Likewise.
88610         * m4/memcmp.m4: Likewise.
88611         * m4/putenv.m4: Likewise.
88612         * m4/realloc.m4: Likewise.
88613         * m4/regex.m4: Likewise.
88614         * m4/stat.m4: Likewise.
88615         * m4/strftime.m4: Likewise.
88616         Suggestion from Alain Magloire.
88617
88618         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
88619         an argument.
88620
88621         * m4/regex.m4: Add a run-time Test for proper operation of
88622         re_compile_pattern.
88623
88624 1999-01-31  Jim Meyering  <meyering@ascend.com>
88625
88626         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
88627
88628 1999-01-30  Jim Meyering  <meyering@ascend.com>
88629
88630         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
88631
88632         * m4/jm-mktime.m4: Make this a wrapper around the official
88633         AM_FUNC_MKTIME rather than my private copy, now that the official one
88634         is up to date.
88635         * m4/mktime.m4: Remove file.
88636
88637         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
88638         * m4/uptime.m4: Likewise.
88639         * m4/uintmax_t.m4: Likewise.
88640
88641 1999-01-28  Jim Meyering  <meyering@ascend.com>
88642
88643         * m4/jm-macros.m4: Use jm_AFS.
88644         * m4/afs.m4: New file (from fileutils' configure.in).
88645
88646         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
88647         * m4/chown.m4: Likewise.
88648         * m4/d-ino.m4: Likewise.
88649         * m4/d-type.m4: Likewise.
88650         * m4/fnmatch.m4: Likewise.
88651         * m4/getgroups.m4: Likewise.
88652         * m4/gettext.m4: Likewise.
88653         * m4/jm-mktime.m4: Likewise.
88654         * m4/jm-winsz2.m4: Likewise.
88655         * m4/lcmessage.m4: Likewise.
88656         * m4/ls-mntd-fs.m4: Likewise.
88657         * m4/malloc.m4: Likewise.
88658         * m4/memcmp.m4: Likewise.
88659         * m4/putenv.m4: Likewise.
88660         * m4/realloc.m4: Likewise.
88661         * m4/st_mtim.m4: Likewise.
88662         * m4/strftime.m4: Likewise.
88663
88664 1999-01-16  Jim Meyering  <meyering@ascend.com>
88665
88666         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
88667         (ARGMATCH_DIE_DECL): Define.
88668
88669 1999-01-12  Jim Meyering  <meyering@ascend.com>
88670
88671         * m4/Makefile.am.in: Rewrite to avoid using fmt.
88672         Reported by Lars Hecking.
88673
88674 1999-01-10  Jim Meyering  <meyering@ascend.com>
88675
88676         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
88677         gross kludge.
88678         * m4/inttypes_h.m4: Likewise.
88679         * m4/lstat.m4: Likewise.
88680         * m4/malloc.m4: Likewise.
88681         * m4/readdir.m4: Likewise.
88682         * m4/realloc.m4: Likewise.
88683         * m4/st_dm_mode.m4: Likewise.
88684         * m4/stat.m4: Likewise.
88685         * m4/utimbuf.m4: Likewise.
88686         * m4/utimes.m4: Likewise.
88687
88688         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
88689         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
88690         comments in config.h.in are meaningful.
88691
88692         * m4/jm-macros.m4: Require autoconf-2.13 here.
88693
88694         * m4/regex.m4: By default, don't use the included regex.c on systems
88695         with glibc 2.  Suggestion from Uli Drepper.
88696
88697 1999-01-02  Jim Meyering  <meyering@ascend.com>
88698
88699         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
88700
88701 1998-12-18  Jim Meyering  <meyering@ascend.com>
88702
88703         * m4/Makefile.am.in (Makefile.am): Simplify rule.
88704         Based on a suggestion from Lars Hecking.
88705
88706 1998-11-16  Paul Eggert  <eggert@twinsun.com>
88707
88708         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
88709
88710 1998-11-16  Jim Meyering  <meyering@ascend.com>
88711
88712         * m4/lfs.m4: Double-quote the `uname...` expression.
88713
88714 1998-11-14  Jim Meyering  <meyering@ascend.com>
88715
88716         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
88717         * m4/stat.m4: Likewise.
88718
88719 1998-11-03  Jim Meyering  <meyering@ascend.com>
88720
88721         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
88722         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
88723
88724 1998-10-18  Jim Meyering  <meyering@ascend.com>
88725
88726         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
88727
88728 1998-10-17  Jim Meyering  <meyering@ascend.com>
88729
88730         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
88731         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
88732         calls for those previously hard-coded headers.  Instead, take a new
88733         parameter.
88734         (jm_CHECK_DECLARATIONS): Reflect interface change.
88735         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
88736         (jm_CHECK_DECL_LOCALTIME_R): New macro.
88737
88738         * m4/mktime.m4: Test for spring-forward gap before long-running test.
88739
88740 1998-10-14  Jim Meyering  <meyering@ascend.com>
88741
88742         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
88743         instead of "TZ=America/Vancouver".  From Paul Eggert.
88744
88745 1998-10-11  Jim Meyering  <meyering@ascend.com>
88746
88747         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
88748         This adds a test for a recently added compatibility fix for mktime.c.
88749         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
88750
88751 1998-09-27  Jim Meyering  <meyering@ascend.com>
88752
88753         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
88754
88755         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
88756         ../configure.in, including a change from Gordon Matzigkeit to allow
88757         cross-compiling for the Hurd.
88758
88759         * m4/glibc.m4: New file/macro to test for the GNU C Library
88760         versions 1 and 2.  From Gordon Matzigkeit.
88761         Indent.
88762
88763 1998-09-21  Jim Meyering  <meyering@ascend.com>
88764
88765         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
88766
88767 1998-08-18  Paul Eggert  <eggert@twinsun.com>
88768
88769         Port nanosecond-resolution times to UnixWare 2.1.2 and
88770         pedantic Solaris 2.6.
88771
88772         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
88773         AC_STRUCT_ST_MTIM.
88774         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
88775         Generate name of ns member, instead of just 1 or undef.
88776         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
88777
88778 1998-08-15  Jim Meyering  <meyering@ascend.com>
88779
88780         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
88781         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
88782         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
88783         instead of jm_TYPE_SSIZE_T.
88784
88785 1998-08-12  Jim Meyering  <meyering@ascend.com>
88786
88787         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
88788
88789 1998-08-02  Jim Meyering  <meyering@ascend.com>
88790
88791         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
88792         in acconfig.h manually.
88793
88794 1998-07-31  Paul Eggert  <eggert@twinsun.com>
88795
88796         * m4/st_mtim.m4: New file.
88797
88798 1998-07-28  Jim Meyering  <meyering@ascend.com>
88799
88800         * m4/utimes.m4: Undef stat.
88801
88802 1998-07-25  Jim Meyering  <meyering@ascend.com>
88803
88804         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
88805         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
88806
88807 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
88808
88809         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
88810         uid and gid actually remain unchanged.
88811
88812 1998-07-07  Jim Meyering  <meyering@ascend.com>
88813
88814         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
88815
88816 1998-07-04  Jim Meyering  <meyering@ascend.com>
88817
88818         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
88819         to prove that this macro can be used in packages without regex.c.
88820
88821 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
88822
88823         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
88824         is to be used.
88825
88826 1998-07-03  Jim Meyering  <meyering@ascend.com>
88827
88828         * m4/gettext.m4: Add -lintl if it's found to be necessary.
88829
88830         * m4/gettext.m4: New file -- from gettext-0.10.35.
88831         * m4/lcmessage.m4: Likewise.
88832         * m4/progtest.m4: Likewise.
88833
88834         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
88835         * m4/jm-macros.m4: Require the new macro.
88836
88837 1998-06-29  Jim Meyering  <meyering@ascend.com>
88838
88839         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
88840         for the definition of NGROUPS (used in a system header included
88841         by sys/mount.h).
88842
88843 1998-06-28  Jim Meyering  <meyering@ascend.com>
88844
88845         * m4/ls-mntd-fs.m4: New file.
88846         * m4/fstypename.m4: New file.
88847
88848         * m4/jm-macros.m4: Require the new macro.
88849         * m4/jm-glibc-io.m4: New file.
88850
88851 1998-05-19  Jim Meyering  <meyering@ascend.com>
88852
88853         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
88854         * m4/lchown.m4: New file.
88855
88856         * m4/Makefile.am.in: New file.
88857         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
88858
88859 1998-05-14  Jim Meyering  <meyering@ascend.com>
88860
88861         * m4/Makefile.am (EXTRA_DIST): Add them.
88862         * m4/jm-macros.m4: New file.
88863         * m4/utimbuf.m4: New file.
88864
88865 1998-05-12  Jim Meyering  <meyering@ascend.com>
88866
88867         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
88868
88869 1998-05-11  Jim Meyering  <meyering@ascend.com>
88870
88871         * m4/isc-posix.m4: New file.
88872
88873 1998-05-10  Jim Meyering  <meyering@ascend.com>
88874
88875         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
88876
88877 1998-05-09  Jim Meyering  <meyering@ascend.com>
88878
88879         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
88880         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
88881         with automake.
88882
88883         * m4/ssize_t.m4: New file.
88884         * m4/mktime.m4: Remove file -- the new automake has this now.
88885
88886 1998-04-26  Jim Meyering  <meyering@ascend.com>
88887
88888         * m4/assert.m4: New file.
88889         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
88890
88891 1998-04-05  Jim Meyering  <meyering@ascend.com>
88892
88893         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
88894         (jm_PREREQ): Use it here.
88895
88896 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
88897
88898         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
88899         in acconfig.h.
88900
88901 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
88902
88903         * m4/prereq.m4: New file.
88904         * m4/error.m4: New file.
88905         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
88906
88907 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
88908
88909         * m4/getline.m4: Don't set am_cv_func_working_getline before the
88910         cache-check for the same variable -- that defeated the purpose of
88911         the test; the test program was never run.  This was a problem only
88912         on systems with losing getline functions -- HP-UX 10.20 is one.
88913         Reported by Bjorn Helgaas.
88914
88915 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
88916
88917         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
88918
88919 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
88920
88921         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
88922
88923         * m4/const.m4: New file.  Use an initializer in this declaration
88924         typedef int charset[2]; const charset x;
88925         Reported by Bob Glickstein.
88926
88927 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
88928
88929         * m4/chown.m4: Fix reversed types on -1 args to chown.
88930         From Kaveh Ghazi.
88931
88932 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
88933
88934         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
88935         Add lseek and memchr.
88936
88937         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
88938         T.E.Dickey <dickey@clark.net> said that some older preprocessors
88939         have a 20-character limit on names.
88940
88941 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
88942
88943         * m4/inttypes_h.m4: New file.
88944         * m4/uintmax_t.m4: New file.
88945         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
88946
88947
88948         -----
88949
88950         Local Variables:
88951         coding: utf-8
88952         End:
88953
88954         Copyright (C) 1997-2011 Free Software Foundation, Inc.
88955
88956         Copying and distribution of this file, with or without
88957         modification, are permitted provided the copyright notice
88958         and this notice are preserved.